@medway-ui/core 1.15.5 → 1.15.6
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var B=require('react'),classVarianceAuthority=require('class-variance-authority'),icons=require('@medway-ui/icons'),clsx=require('clsx'),jsxRuntime=require('react/jsx-runtime'),radixUi=require('radix-ui'),framerMotion=require('framer-motion');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var B__namespace=/*#__PURE__*/_interopNamespace(B);var Ps=Object.defineProperty,ws=Object.defineProperties;var Ts=Object.getOwnPropertyDescriptors;var Ta=Object.getOwnPropertySymbols;var ao=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable;var eo=(e,a,o)=>a in e?Ps(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,l=(e,a)=>{for(var o in a||(a={}))ao.call(a,o)&&eo(e,o,a[o]);if(Ta)for(var o of Ta(a))to.call(a,o)&&eo(e,o,a[o]);return e},c=(e,a)=>ws(e,Ts(a));var n=(e,a)=>{var o={};for(var t in e)ao.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&Ta)for(var t of Ta(e))a.indexOf(t)<0&&to.call(e,t)&&(o[t]=e[t]);return o};var As=(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},Rs=(e,a)=>({classGroupId:e,validator:a}),uo=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var oo=[],Ms="arbitrary..",Ds=e=>{let a=Fs(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Bs(i);let u=i.split("-"),f=u[0]===""&&u.length>1?1:0;return fo(u,f,a)},getConflictingClassGroupIds:(i,u)=>{if(u){let f=t[i],p=o[i];return f?p?As(p,f):f:p||oo}return o[i]||oo}}},fo=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],s=o.nextPart.get(r);if(s){let p=fo(e,a+1,s);if(p)return p}let i=o.validators;if(i===null)return;let u=a===0?e.join("-"):e.slice(a).join("-"),f=i.length;for(let p=0;p<f;p++){let g=i[p];if(g.validator(u))return g.classGroupId}},Bs=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?Ms+t:void 0})(),Fs=e=>{let{theme:a,classGroups:o}=e;return Ns(o,a)},Ns=(e,a)=>{let o=uo();for(let t in e){let r=e[t];ut(r,o,t,a);}return o},ut=(e,a,o,t)=>{let r=e.length;for(let s=0;s<r;s++){let i=e[s];Os(i,a,o,t);}},Os=(e,a,o,t)=>{if(typeof e=="string"){qs(e,a,o);return}if(typeof e=="function"){Es(e,a,o,t);return}Hs(e,a,o,t);},qs=(e,a,o)=>{let t=e===""?a:co(a,e);t.classGroupId=o;},Es=(e,a,o,t)=>{if(zs(e)){ut(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(Rs(o,e));},Hs=(e,a,o,t)=>{let r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){let[u,f]=r[i];ut(f,co(a,u),o,t);}},co=(e,a)=>{let o=e,t=a.split("-"),r=t.length;for(let s=0;s<r;s++){let i=t[s],u=o.nextPart.get(i);u||(u=uo(),o.nextPart.set(i,u)),o=u;}return o},zs=e=>"isThemeGetter"in e&&e.isThemeGetter===true,Us=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null),r=(s,i)=>{o[s]=i,a++,a>e&&(a=0,t=o,o=Object.create(null));};return {get(s){let i=o[s];if(i!==void 0)return i;if((i=t[s])!==void 0)return r(s,i),i},set(s,i){s in o?o[s]=i:r(s,i);}}};var Vs=[],ro=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),_s=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let s=[],i=0,u=0,f=0,p,g=r.length;for(let y=0;y<g;y++){let M=r[y];if(i===0&&u===0){if(M===":"){s.push(r.slice(f,y)),f=y+1;continue}if(M==="/"){p=y;continue}}M==="["?i++:M==="]"?i--:M==="("?u++:M===")"&&u--;}let x=s.length===0?r:r.slice(f),h=x,v=false;x.endsWith("!")?(h=x.slice(0,-1),v=true):x.startsWith("!")&&(h=x.slice(1),v=true);let b=p&&p>f?p-f:void 0;return ro(s,v,h,b)};if(a){let r=a+":",s=t;t=i=>i.startsWith(r)?s(i.slice(r.length)):ro(Vs,false,i,void 0,true);}if(o){let r=t;t=s=>o({className:s,parseClassName:r});}return t},Gs=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t);}),o=>{let t=[],r=[];for(let s=0;s<o.length;s++){let i=o[s],u=i[0]==="[",f=a.has(i);u||f?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(i)):r.push(i);}return r.length>0&&(r.sort(),t.push(...r)),t}},Ws=e=>l({cache:Us(e.cacheSize),parseClassName:_s(e),sortModifiers:Gs(e)},Ds(e)),Xs=/\s+/,Ks=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:s}=a,i=[],u=e.trim().split(Xs),f="";for(let p=u.length-1;p>=0;p-=1){let g=u[p],{isExternal:x,modifiers:h,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:y}=o(g);if(x){f=g+(f.length>0?" "+f:f);continue}let M=!!y,H=t(M?b.substring(0,y):b);if(!H){if(!M){f=g+(f.length>0?" "+f:f);continue}if(H=t(b),!H){f=g+(f.length>0?" "+f:f);continue}M=false;}let I=h.length===0?"":h.length===1?h[0]:s(h).join(":"),k=v?I+"!":I,z=k+H;if(i.indexOf(z)>-1)continue;i.push(z);let E=r(H,M);for(let q=0;q<E.length;++q){let O=E[q];i.push(k+O);}f=g+(f.length>0?" "+f:f);}return f},Zs=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=po(o))&&(r&&(r+=" "),r+=t);return r},po=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=po(e[t]))&&(o&&(o+=" "),o+=a);return o},so=(e,...a)=>{let o,t,r,s,i=f=>{let p=a.reduce((g,x)=>x(g),e());return o=Ws(p),t=o.cache.get,r=o.cache.set,s=u,u(f)},u=f=>{let p=t(f);if(p)return p;let g=Ks(f,o);return r(f,g),g};return s=i,(...f)=>s(Zs(...f))},js=[],K=e=>{let a=o=>o[e]||js;return a.isThemeGetter=true,a},mo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,go=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qs=/^\d+\/\d+$/,$s=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Js=/\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$/,Ys=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,el=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,al=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>Qs.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),Se=e=>!!e&&Number.isInteger(Number(e)),nt=e=>e.endsWith("%")&&N(e.slice(0,-1)),xe=e=>$s.test(e),tl=()=>true,ol=e=>Js.test(e)&&!Ys.test(e),xo=()=>false,rl=e=>el.test(e),sl=e=>al.test(e),ll=e=>!L(e)&&!C(e),dl=e=>_e(e,Lo,xo),L=e=>mo.test(e),Te=e=>_e(e,Co,ol),it=e=>_e(e,cl,N),lo=e=>_e(e,ho,xo),nl=e=>_e(e,bo,sl),Aa=e=>_e(e,vo,rl),C=e=>go.test(e),na=e=>Ge(e,Co),il=e=>Ge(e,pl),no=e=>Ge(e,ho),ul=e=>Ge(e,Lo),fl=e=>Ge(e,bo),Ra=e=>Ge(e,vo,true),_e=(e,a,o)=>{let t=mo.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},Ge=(e,a,o=false)=>{let t=go.exec(e);return t?t[1]?a(t[1]):o:false},ho=e=>e==="position"||e==="percentage",bo=e=>e==="image"||e==="url",Lo=e=>e==="length"||e==="size"||e==="bg-size",Co=e=>e==="length",cl=e=>e==="number",pl=e=>e==="family-name",vo=e=>e==="shadow";var io=()=>{let e=K("color"),a=K("font"),o=K("text"),t=K("font-weight"),r=K("tracking"),s=K("leading"),i=K("breakpoint"),u=K("container"),f=K("spacing"),p=K("radius"),g=K("shadow"),x=K("inset-shadow"),h=K("text-shadow"),v=K("drop-shadow"),b=K("blur"),y=K("perspective"),M=K("aspect"),H=K("ease"),I=K("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...z(),C,L],q=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],S=()=>[C,L,f],$=()=>[Ve,"full","auto",...S()],He=()=>[Se,"none","subgrid",C,L],ze=()=>["auto",{span:["full",Se,C,L]},Se,C,L],ke=()=>[Se,"auto",C,L],ra=()=>["auto","min","max","fr",C,L],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],oe=()=>["auto",...S()],ce=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],T=()=>[e,C,L],sa=()=>[...z(),no,lo,{position:[C,L]}],la=()=>["no-repeat",{repeat:["","x","y","space","round"]}],da=()=>["auto","cover","contain",ul,dl,{size:[C,L]}],Ue=()=>[nt,na,Te],m=()=>["","none","full",p,C,L],P=()=>["",N,na,Te],A=()=>["solid","dashed","dotted","double"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[N,nt,no,lo],X=()=>["","none",b,C,L],G=()=>["none",N,C,L],Z=()=>["none",N,C,L],re=()=>[N,C,L],J=()=>[Ve,"full",...S()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xe],breakpoint:[xe],color:[tl],container:[xe],"drop-shadow":[xe],ease:["in","out","in-out"],font:[ll],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xe],shadow:[xe],spacing:["px",N],text:[xe],"text-shadow":[xe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,L,C,M]}],container:["container"],columns:[{columns:[N,L,C,u]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Se,"auto",C,L]}],basis:[{basis:[Ve,"full","auto",u,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,Ve,"auto","initial","none",L]}],grow:[{grow:["",N,C,L]}],shrink:[{shrink:["",N,C,L]}],order:[{order:[Se,"first","last","none",C,L]}],"grid-cols":[{"grid-cols":He()}],"col-start-end":[{col:ze()}],"col-start":[{"col-start":ke()}],"col-end":[{"col-end":ke()}],"grid-rows":[{"grid-rows":He()}],"row-start-end":[{row:ze()}],"row-start":[{"row-start":ke()}],"row-end":[{"row-end":ke()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ra()}],"auto-rows":[{"auto-rows":ra()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:oe()}],mx:[{mx:oe()}],my:[{my:oe()}],ms:[{ms:oe()}],me:[{me:oe()}],mt:[{mt:oe()}],mr:[{mr:oe()}],mb:[{mb:oe()}],ml:[{ml:oe()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],w:[{w:[u,"screen",...ce()]}],"min-w":[{"min-w":[u,"screen","none",...ce()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",o,na,Te]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,C,it]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nt,L]}],"font-family":[{font:[il,L,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,C,L]}],"line-clamp":[{"line-clamp":[N,"none",C,it]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",C,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",C,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",C,Te]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[N,"auto",C,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C,L]}],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",C,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:sa()}],"bg-repeat":[{bg:la()}],"bg-size":[{bg:da()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Se,C,L],radial:["",C,L],conic:[Se,C,L]},fl,nl]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:Ue()}],"gradient-via-pos":[{via:Ue()}],"gradient-to-pos":[{to:Ue()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:m()}],"rounded-s":[{"rounded-s":m()}],"rounded-e":[{"rounded-e":m()}],"rounded-t":[{"rounded-t":m()}],"rounded-r":[{"rounded-r":m()}],"rounded-b":[{"rounded-b":m()}],"rounded-l":[{"rounded-l":m()}],"rounded-ss":[{"rounded-ss":m()}],"rounded-se":[{"rounded-se":m()}],"rounded-ee":[{"rounded-ee":m()}],"rounded-es":[{"rounded-es":m()}],"rounded-tl":[{"rounded-tl":m()}],"rounded-tr":[{"rounded-tr":m()}],"rounded-br":[{"rounded-br":m()}],"rounded-bl":[{"rounded-bl":m()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...A(),"hidden","none"]}],"divide-style":[{divide:[...A(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...A(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,C,L]}],"outline-w":[{outline:["",N,na,Te]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",g,Ra,Aa]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",x,Ra,Aa]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[N,Te]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",h,Ra,Aa]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[N,C,L]}],"mix-blend":[{"mix-blend":[...D(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":D()}],"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":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[C,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"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":z()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:sa()}],"mask-repeat":[{mask:la()}],"mask-size":[{mask:da()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",C,L]}],filter:[{filter:["","none",C,L]}],blur:[{blur:X()}],brightness:[{brightness:[N,C,L]}],contrast:[{contrast:[N,C,L]}],"drop-shadow":[{"drop-shadow":["","none",v,Ra,Aa]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",N,C,L]}],"hue-rotate":[{"hue-rotate":[N,C,L]}],invert:[{invert:["",N,C,L]}],saturate:[{saturate:[N,C,L]}],sepia:[{sepia:["",N,C,L]}],"backdrop-filter":[{"backdrop-filter":["","none",C,L]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[N,C,L]}],"backdrop-contrast":[{"backdrop-contrast":[N,C,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,C,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,C,L]}],"backdrop-invert":[{"backdrop-invert":["",N,C,L]}],"backdrop-opacity":[{"backdrop-opacity":[N,C,L]}],"backdrop-saturate":[{"backdrop-saturate":[N,C,L]}],"backdrop-sepia":[{"backdrop-sepia":["",N,C,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",C,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",C,L]}],ease:[{ease:["linear","initial",H,C,L]}],delay:[{delay:[N,C,L]}],animate:[{animate:["none",I,C,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,C,L]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[C,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"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",C,L]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",C,L]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[N,na,Te,it]}],stroke:[{stroke:["none",...T()]}],"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"]}},ml=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:s={}})=>(ia(e,"cacheSize",a),ia(e,"prefix",o),ia(e,"experimentalParseClassName",t),Ma(e.theme,s.theme),Ma(e.classGroups,s.classGroups),Ma(e.conflictingClassGroups,s.conflictingClassGroups),Ma(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),ia(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),Da(e.theme,r.theme),Da(e.classGroups,r.classGroups),Da(e.conflictingClassGroups,r.conflictingClassGroups),Da(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Io(e,r,"orderSensitiveModifiers"),e),ia=(e,a,o)=>{o!==void 0&&(e[a]=o);},Ma=(e,a)=>{if(a)for(let o in a)ia(e,o,a[o]);},Da=(e,a)=>{if(a)for(let o in a)Io(e,a,o);},Io=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},ko=(e,...a)=>typeof e=="function"?so(io,e,...a):so(()=>ml(io(),e),...a);var xl=ko({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 xl(clsx.clsx(e))}var ft=B.createContext(null),To=classVarianceAuthority.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 Ll(s){var i=s,{className:e,variant:a="regular",onClose:o,children:t}=i,r=n(i,["className","variant","onClose","children"]);let u=B.Children.toArray(t).some(p=>B.isValidElement(p)&&p.type===Ro),f=B.Children.toArray(t).some(p=>B.isValidElement(p)&&p.type===Ao);return jsxRuntime.jsx(ft.Provider,{value:{variant:a,hasDescription:u,hasTitle:f,onClose:o},children:jsxRuntime.jsxs("div",c(l({"data-slot":"alert",role:"alert",className:d(To({variant:a}),e)},r),{children:[t,o&&jsxRuntime.jsx(icons.CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function Cl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-container",className:d("flex gap-3",e)},a))}function vl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-content",className:d("flex flex-col gap-1",e)},a))}function Il(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",c(l({"data-slot":"alert-icon",className:d("size-6",e)},o),{children:a}))}function Ao(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-title",className:d("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function Ro(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-description",className:d("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function kl(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=B.useContext(ft),s=(r==null?void 0:r.hasDescription)||false,i=(r==null?void 0:r.hasTitle)||false,u=r==null?void 0:r.onClose;return jsxRuntime.jsx("div",l({"data-slot":"alert-actions",className:d("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!s||!i)&&u&&"lg:right-5",e)},a))}var Mo=classVarianceAuthority.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 Sl(t){var r=t,{className:e,variant:a}=r,o=n(r,["className","variant"]);let s=B.useContext(ft),i=(s==null?void 0:s.variant)||"regular";return jsxRuntime.jsx("button",l({className:d(Mo({variant:a,alertVariant:i}),e)},o))}function ct({size:e=24,className:a}){return jsxRuntime.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:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var Al={sm:"size-4 p-0",md:"size-5 p-0",lg:"size-6 p-0",xl:"size-7 p-0"},Rl={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},Bo=classVarianceAuthority.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 Ae(u){var f=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:s=false}=f,i=n(f,["className","variant","size","icon","animation","asChild"]);let p=s?radixUi.Slot.Slot:"span",g=B.Children.count(i.children)>0,x=!!t&&!g,h=typeof i.children=="string"||typeof i.children=="number"?String(i.children).trim():"",v=/^[A-Za-z0-9]$/.test(h),b=/^[A-Za-z0-9]{2,3}$/.test(h),y=/^\d{1,2}\S$/.test(h),M=b||y;return jsxRuntime.jsxs(p,c(l({"data-slot":"badge",className:d(Bo({variant:a,size:o}),(x||v)&&Al[o||"md"],!x&&M&&Rl[o||"md"],r==="shine"&&"animate-shine bg-[linear-gradient(135deg,transparent_25%,var(--color-white-24)_50%,transparent_75%,transparent_100%)] bg-[length:250%_250%,100%_100%] bg-no-repeat",e)},i),{children:[t,i.children]}))}var Fl={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"},Fo={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},Nl={sm:"sm",md:"md",lg:"md",xl:"lg"},ua=classVarianceAuthority.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 se(x){var h=x,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:s,iconLeft:i,badge:u,loading:f=false,alert:p}=h,g=n(h,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let v=r?radixUi.Slot.Slot:"button",b=k=>k!=null&&k!==0&&k!==""&&k!=="0",y=k=>k,M=!g.children&&(i||s||p),H=()=>p?jsxRuntime.jsxs("span",{className:d("relative mr-1 flex size-2.5",Fo[t||"md"]),children:[jsxRuntime.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsxRuntime.jsx("span",{className:d("relative inline-flex size-2.5 rounded-full",Fo[t||"md"]),style:{backgroundColor:p}})]}):null,I=()=>f?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ct,{className:"[grid-area:stack]"}),jsxRuntime.jsx("span",{className:d("[grid-area:stack]",f&&"invisible"),children:g.children})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p?H():i&&y(i),g.children&&jsxRuntime.jsx("span",{children:g.children}),s&&y(s)]});return jsxRuntime.jsxs("div",{className:d("relative",a),children:[b(u)&&jsxRuntime.jsx(Ae,{size:Nl[t||"md"],variant:"regular",className:d("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsxRuntime.jsx(v,c(l({disabled:f,"aria-busy":f,"aria-live":f?"polite":void 0,"data-slot":"button",className:d(M&&Fl[t||"md"],f&&"!inline-grid",ua({variant:o,size:t,className:e}))},g),{children:I()}))]})}function Ol(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Root,l({"data-slot":"alert-dialog"},e))}function ql(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Trigger,l({"data-slot":"alert-dialog-trigger"},e))}function Oo(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Portal,l({"data-slot":"alert-dialog-portal"},e))}function qo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Overlay,l({"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 El(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs(Oo,{children:[jsxRuntime.jsx(qo,{}),jsxRuntime.jsx(radixUi.AlertDialog.Content,l({"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 Hl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-dialog-header",className:d("flex flex-col gap-2 text-center sm:text-left",e)},a))}function zl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-dialog-footer",className:d("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e)},a))}function Ul(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Title,l({"data-slot":"alert-dialog-title",className:d("text-lg font-semibold",e)},a))}function Vl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Description,l({"data-slot":"alert-dialog-description",className:d("text-sm text-foreground",e)},a))}function _l(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Action,l({className:d(ua(),e)},a))}function Gl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Cancel,l({className:d(ua({variant:"outlined"}),e)},a))}var Xl=0;function Kl(){return `medway-id-${++Xl}`}var Zl=B__namespace.useId||(()=>{});function ue(){let e=Zl(),[a]=B__namespace.useState(()=>e!=null?e:Kl());return a}var jl=/[\\\/_+.#"@\[\(\{&]/,Ql=/[\\\/_+.#"@\[\(\{&]/g,$l=/[\s-]/,Ho=/[\s-]/g;function pt(e,a,o,t,r,s,i){if(s===a.length)return r===e.length?1:.99;let u=`${r},${s}`;if(i[u]!==void 0)return i[u];let f=t.charAt(s),p=o.indexOf(f,r),g=0,x,h,v,b;for(;p>=0;)x=pt(e,a,o,t,p+1,s+1,i),x>g&&(p===r?x*=1:jl.test(e.charAt(p-1))?(x*=.8,v=e.slice(r,p-1).match(Ql),v&&r>0&&(x*=Math.pow(.999,v.length))):$l.test(e.charAt(p-1))?(x*=.9,b=e.slice(r,p-1).match(Ho),b&&r>0&&(x*=Math.pow(.999,b.length))):(x*=.17,r>0&&(x*=Math.pow(.999,p-r))),e.charAt(p)!==a.charAt(s)&&(x*=.9999)),(x<.1&&o.charAt(p-1)===t.charAt(s+1)||t.charAt(s+1)===t.charAt(s)&&o.charAt(p-1)!==t.charAt(s))&&(h=pt(e,a,o,t,p+1,s+2,i),h*.1>x&&(x=h*.1)),x>g&&(g=x),p=o.indexOf(f,p+1);return i[u]=g,g}function Eo(e){return e.toLowerCase().replace(Ho," ")}function zo(e,a,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,pt(e,a,Eo(e),Eo(a),0,0,{})}var fa='[cmdk-group=""]',mt='[cmdk-group-items=""]',Jl='[cmdk-group-heading=""]',Vo='[cmdk-item=""]',Uo=`${Vo}:not([aria-disabled="true"])`,gt="cmdk-item-select",We="data-value",Yl=(e,a,o)=>zo(e,a,o),_o=B__namespace.createContext(void 0),pa=()=>B__namespace.useContext(_o),Go=B__namespace.createContext(void 0),xt=()=>B__namespace.useContext(Go),Wo=B__namespace.createContext(void 0),Xo=B__namespace.forwardRef((e,a)=>{let o=Xe(()=>{var m,P;return {search:"",value:(P=(m=e.value)!=null?m:e.defaultValue)!=null?P:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),t=Xe(()=>new Set),r=Xe(()=>new Map),s=Xe(()=>new Map),i=Xe(()=>new Set),u=er(e),Ue=e,{label:f,children:p,value:g,onValueChange:x,filter:h,shouldFilter:v,loop:b,disablePointerSelection:y=false,vimBindings:M=true}=Ue,H=n(Ue,["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"]),I=ue(),k=ue(),z=ue(),E=B__namespace.useRef(null),q=td();ye(()=>{if(g!==void 0){let m=g.trim();o.current.value=m,O.emit();}},[g]),ye(()=>{q(6,ra);},[]);let O=B__namespace.useMemo(()=>({subscribe:m=>(i.current.add(m),()=>i.current.delete(m)),snapshot:()=>o.current,setState:(m,P,A)=>{var D,R,X,G,Z,re;if(!Object.is(o.current[m],P)){if(o.current[m]=P,m==="search")ke(),He(),q(1,ze);else if(m==="value"){if((D=document.activeElement)!=null&&D.hasAttribute("cmdk-input")||(R=document.activeElement)!=null&&R.hasAttribute("cmdk-root")){let J=document.getElementById(z);J?J.focus():(X=document.getElementById(I))==null||X.focus();}if(q(7,()=>{var J;o.current.selectedItemId=(J=me())==null?void 0:J.id,O.emit();}),A||q(5,ra),((G=u.current)==null?void 0:G.value)!==void 0){let J=P!=null?P:"";(re=(Z=u.current).onValueChange)==null||re.call(Z,J);return}}O.emit();}},emit:()=>{i.current.forEach(m=>m());}}),[]),S=B__namespace.useMemo(()=>({value:(m,P,A)=>{var D;P!==((D=s.current.get(m))==null?void 0:D.value)&&(s.current.set(m,{value:P,keywords:A}),o.current.filtered.items.set(m,$(P,A)),q(2,()=>{He(),O.emit();}));},item:(m,P)=>(t.current.add(m),P&&(r.current.has(P)?r.current.get(P).add(m):r.current.set(P,new Set([m]))),q(3,()=>{ke(),He(),o.current.value||ze(),O.emit();}),()=>{s.current.delete(m),t.current.delete(m),o.current.filtered.items.delete(m);let A=me();q(4,()=>{ke(),(A==null?void 0:A.getAttribute("id"))===m&&ze(),O.emit();});}),group:m=>(r.current.has(m)||r.current.set(m,new Set),()=>{s.current.delete(m),r.current.delete(m);}),filter:()=>u.current.shouldFilter!==false,label:f||e["aria-label"]||"",getDisablePointerSelection:()=>!!u.current.disablePointerSelection,listId:I,inputId:z,labelId:k,listInnerRef:E}),[]);function $(m,P){var D,R;let A=(R=(D=u.current)==null?void 0:D.filter)!=null?R:Yl;return m?A(m,o.current.search,P):0}function He(){if(!o.current.search||u.current.shouldFilter===false)return;let m=o.current.filtered.items,P=[];o.current.filtered.groups.forEach(D=>{let R=r.current.get(D),X=0;R==null||R.forEach(G=>{let Z=m.get(G);X=Math.max(Z!=null?Z:0,X);}),P.push([D,X]);});let A=E.current;ne().sort((D,R)=>{var Z,re;let X=D.getAttribute("id"),G=R.getAttribute("id");return ((Z=m.get(G))!=null?Z:0)-((re=m.get(X))!=null?re:0)}).forEach(D=>{let R=D.closest(mt);R?R.appendChild(D.parentElement===R?D:D.closest(`${mt} > *`)):A==null||A.appendChild(D.parentElement===A?D:D.closest(`${mt} > *`));}),P.sort((D,R)=>R[1]-D[1]).forEach(D=>{var X,G;let R=(X=E.current)==null?void 0:X.querySelector(`${fa}[${We}="${encodeURIComponent(D[0])}"]`);(G=R==null?void 0:R.parentElement)==null||G.appendChild(R);});}function ze(){let m=ne().find(A=>A.getAttribute("aria-disabled")!=="true"),P=m==null?void 0:m.getAttribute(We);O.setState("value",P||void 0);}function ke(){var P,A,D,R,X;if(!o.current.search||u.current.shouldFilter===false){o.current.filtered.count=t.current.size;return}o.current.filtered.groups=new Set;let m=0;for(let G of t.current){let Z=(A=(P=s.current.get(G))==null?void 0:P.value)!=null?A:"",re=(R=(D=s.current.get(G))==null?void 0:D.keywords)!=null?R:[],J=$(Z,re);o.current.filtered.items.set(G,J),J>0&&m++;}for(let[G,Z]of r.current)for(let re of Z)if(((X=o.current.filtered.items.get(re))!=null?X:0)>0){o.current.filtered.groups.add(G);break}o.current.filtered.count=m;}function ra(){var P,A,D;let m=me();m&&(((P=m.parentElement)==null?void 0:P.firstChild)===m&&((D=(A=m.closest(fa))==null?void 0:A.querySelector(Jl))==null||D.scrollIntoView({block:"nearest"})),m.scrollIntoView({block:"nearest"}));}function me(){var m;return (m=E.current)==null?void 0:m.querySelector(`${Vo}[aria-selected="true"]`)}function ne(){var m;return Array.from(((m=E.current)==null?void 0:m.querySelectorAll(Uo))||[])}function oe(m){let A=ne()[m];A&&O.setState("value",A.getAttribute(We));}function ce(m){var X;let P=me(),A=ne(),D=A.findIndex(G=>G===P),R=A[D+m];(X=u.current)!=null&&X.loop&&(R=D+m<0?A[A.length-1]:D+m===A.length?A[0]:A[D+m]),R&&O.setState("value",R.getAttribute(We));}function T(m){let P=me(),A=P==null?void 0:P.closest(fa),D;for(;A&&!D;)A=m>0?ed(A,fa):ad(A,fa),D=A==null?void 0:A.querySelector(Uo);D?O.setState("value",D.getAttribute(We)):ce(m);}let sa=()=>oe(ne().length-1),la=m=>{m.preventDefault(),m.metaKey?sa():m.altKey?T(1):ce(1);},da=m=>{m.preventDefault(),m.metaKey?oe(0):m.altKey?T(-1):ce(-1);};return jsxRuntime.jsxs("div",c(l({ref:a,tabIndex:-1},H),{"cmdk-root":"",onKeyDown:m=>{var A;(A=H.onKeyDown)==null||A.call(H,m);let P=m.nativeEvent.isComposing||m.keyCode===229;if(!(m.defaultPrevented||P))switch(m.key){case "n":case "j":{M&&m.ctrlKey&&la(m);break}case "ArrowDown":{la(m);break}case "p":case "k":{M&&m.ctrlKey&&da(m);break}case "ArrowUp":{da(m);break}case "Home":{m.preventDefault(),oe(0);break}case "End":{m.preventDefault(),sa();break}case "Enter":{m.preventDefault();let D=me();if(D){let R=new Event(gt);D.dispatchEvent(R);}}}},children:[jsxRuntime.jsx("label",{"cmdk-label":"",htmlFor:S.inputId,id:S.labelId,style:rd,children:f}),Na(e,m=>jsxRuntime.jsx(Go.Provider,{value:O,children:jsxRuntime.jsx(_o.Provider,{value:S,children:m})}))]}))});Xo.displayName="Command";var Ko=B__namespace.forwardRef((e,a)=>{var z,E;let o=ue(),t=B__namespace.useRef(null),r=B__namespace.useContext(Wo),s=pa(),i=er(e),u=(E=(z=i.current)==null?void 0:z.forceMount)!=null?E:r==null?void 0:r.forceMount;ye(()=>{if(!u)return s.item(o,r==null?void 0:r.id)},[u]);let f=ar(o,t,[e.value,e.children,t],e.keywords),p=xt(),g=Pe(O=>O.value&&O.value===f.current),x=Pe(O=>{var S;return u||s.filter()===false?true:O.search?((S=O.filtered.items.get(o))!=null?S:0)>0:true});B__namespace.useEffect(()=>{let O=t.current;if(!(!O||e.disabled))return O.addEventListener(gt,h),()=>O.removeEventListener(gt,h)},[x,e.onSelect,e.disabled]);function h(){var O,S,$;v(),($=(S=i.current).onSelect)==null||$.call(S,(O=f.current)!=null?O:"");}function v(){var O;p.setState("value",(O=f.current)!=null?O:"",true);}if(!x)return null;let q=e,{disabled:b,value:y,onSelect:M,forceMount:H,keywords:I}=q,k=n(q,["disabled","value","onSelect","forceMount","keywords"]);return jsxRuntime.jsx("div",c(l({ref:ca(t,a)},k),{id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!g,"data-disabled":!!b,"data-selected":!!g,onPointerMove:b||s.getDisablePointerSelection()?void 0:v,onClick:b?void 0:h,children:e.children}))});Ko.displayName="Item";var Zo=B__namespace.forwardRef((e,a)=>{let v=e,{heading:o,children:t,forceMount:r}=v,s=n(v,["heading","children","forceMount"]),i=ue(),u=B__namespace.useRef(null),f=B__namespace.useRef(null),p=ue(),g=pa(),x=Pe(b=>r||g.filter()===false?true:b.search?b.filtered.groups.has(i):true);ye(()=>g.group(i),[]),ar(i,u,[e.value,e.heading,f]);let h=B__namespace.useMemo(()=>({id:i,forceMount:r}),[r]);return jsxRuntime.jsxs("div",c(l({ref:ca(u,a)},s),{"cmdk-group":"",role:"presentation",hidden:x?void 0:true,children:[o&&jsxRuntime.jsx("div",{ref:f,"cmdk-group-heading":"","aria-hidden":true,id:p,children:o}),Na(e,b=>jsxRuntime.jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?p:void 0,children:jsxRuntime.jsx(Wo.Provider,{value:h,children:b})}))]}))});Zo.displayName="Group";var jo=B__namespace.forwardRef((e,a)=>{let i=e,{alwaysRender:o}=i,t=n(i,["alwaysRender"]),r=B__namespace.useRef(null),s=Pe(u=>!u.search);return !o&&!s?null:jsxRuntime.jsx("div",c(l({ref:ca(r,a)},t),{"cmdk-separator":"",role:"separator"}))});jo.displayName="Separator";var Qo=B__namespace.forwardRef((e,a)=>{let p=e,{onValueChange:o}=p,t=n(p,["onValueChange"]),r=e.value!=null,s=xt(),i=Pe(g=>g.search),u=Pe(g=>g.selectedItemId),f=pa();return B__namespace.useEffect(()=>{e.value!=null&&s.setState("search",e.value);},[e.value]),jsxRuntime.jsx("input",c(l({ref:a},t),{"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:false,"aria-autocomplete":"list",role:"combobox","aria-expanded":true,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":u,id:f.inputId,type:"text",value:r?e.value:i,onChange:g=>{r||s.setState("search",g.target.value),o==null||o(g.target.value);}}))});Qo.displayName="Input";var $o=B__namespace.forwardRef((e,a)=>{let p=e,{children:o,label:t="Suggestions"}=p,r=n(p,["children","label"]),s=B__namespace.useRef(null),i=B__namespace.useRef(null),u=Pe(g=>g.selectedItemId),f=pa();return B__namespace.useEffect(()=>{if(i.current&&s.current){let g=i.current,x=s.current,h,v=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let b=g.offsetHeight;x.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px");});});return v.observe(g),()=>{cancelAnimationFrame(h),v.unobserve(g);}}},[]),jsxRuntime.jsx("div",c(l({ref:ca(s,a)},r),{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":t,id:f.listId,children:Na(e,g=>jsxRuntime.jsx("div",{ref:ca(i,f.listInnerRef),"cmdk-list-sizer":"",children:g}))}))});$o.displayName="List";var Jo=B__namespace.forwardRef((e,a)=>Pe(t=>t.filtered.count===0)?jsxRuntime.jsx("div",c(l({ref:a},e),{"cmdk-empty":"",role:"presentation"})):null);Jo.displayName="Empty";var Yo=B__namespace.forwardRef((e,a)=>{let i=e,{progress:o,children:t,label:r="Loading..."}=i,s=n(i,["progress","children","label"]);return jsxRuntime.jsx("div",c(l({ref:a},s),{"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,children:Na(e,u=>jsxRuntime.jsx("div",{"aria-hidden":true,children:u}))}))});Yo.displayName="Loading";var Me=Object.assign(Xo,{List:$o,Item:Ko,Input:Qo,Group:Zo,Separator:jo,Empty:Jo,Loading:Yo});function ed(e,a){let o=e.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling;}}function ad(e,a){let o=e.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling;}}function er(e){let a=B__namespace.useRef(e);return ye(()=>{a.current=e;}),a}var ye=typeof window=="undefined"?B__namespace.useEffect:B__namespace.useLayoutEffect;function Xe(e){let a=B__namespace.useRef(void 0);return a.current===void 0&&(a.current=e()),a}function Pe(e){let a=xt(),[,o]=B__namespace.useState({}),t=B__namespace.useRef(e(a.snapshot()));return t.current=e(a.snapshot()),ye(()=>a.subscribe(()=>{let r=e(a.snapshot());Object.is(r,t.current)||(t.current=r,o({}));}),[a,e]),t.current}function ar(e,a,o,t=[]){let r=B__namespace.useRef(void 0),s=pa();return ye(()=>{var f;let i=(()=>{var p;for(let g of o){if(typeof g=="string")return g.trim();if(typeof g=="object"&&g!==null&&"current"in g)return g.current?(p=g.current.textContent)==null?void 0:p.trim():r.current}})(),u=t.map(p=>p.trim());s.value(e,i!=null?i:"",u),(f=a.current)==null||f.setAttribute(We,i!=null?i:""),r.current=i;}),r}var td=()=>{let[e,a]=B__namespace.useState(),o=Xe(()=>new Map);return ye(()=>{o.current.forEach(t=>t()),o.current=new Map;},[e]),(t,r)=>{o.current.set(t,r),a({});}};function od(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function Na({asChild:e,children:a},o){return e&&B__namespace.isValidElement(a)?B__namespace.cloneElement(od(a),{ref:a.ref},o(a.props.children)):o(a)}function ca(...e){return a=>{e.forEach(o=>{typeof o=="function"?o(a):o!=null&&typeof o=="object"&&(o.current=a);});}}var rd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Ke(r){var s=r,{className:e,orientation:a="horizontal",decorative:o=true}=s,t=n(s,["className","orientation","decorative"]);return jsxRuntime.jsx(radixUi.Separator.Root,l({"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 ud(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,l({"data-slot":"dialog"},e))}function fd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,l({"data-slot":"dialog-trigger"},e))}function or(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,l({"data-slot":"dialog-portal"},e))}function cd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,l({"data-slot":"dialog-close"},e))}function rr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,l({"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 pd(s){var i=s,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=n(i,["className","overlayClassName","children","showCloseButton"]);return jsxRuntime.jsxs(or,{"data-slot":"dialog-portal",children:[jsxRuntime.jsx(rr,{className:a}),jsxRuntime.jsxs(radixUi.Dialog.Content,c(l({"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&&jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx(icons.CloseMd,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function md({className:e,children:a}){return jsxRuntime.jsx("div",{className:"overflow-y-auto",children:jsxRuntime.jsx("div",{"data-slot":"dialog-content",className:d("px-8 py-6 text-md leading-md text-primary-foreground",e),children:a})})}function gd(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",l({"data-slot":"dialog-header",className:d("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsxRuntime.jsx(Ke,{})]})}function xd(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx(Ke,{}),jsxRuntime.jsx("div",l({"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 hd(s){var i=s,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=n(i,["className","iconLeft","iconRight","children"]);let u=f=>B.isValidElement(f)?B.cloneElement(f,{size:32,strokeWidth:2.2}):f;return jsxRuntime.jsxs(radixUi.Dialog.Title,c(l({"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&&u(a),t,o&&u(o)]}))}function bd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,l({"data-slot":"dialog-description",className:d("text-md leading-md text-content-paragraph",e)},a))}function lr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Me,l({className:d("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function dr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs("div",{className:"flex items-center border-b border-gray-stroke-muted px-4","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(Me.Input,l({className:d("flex h-12 w-full bg-transparent py-3 text-md font-medium outline-none placeholder:text-gray-foreground-muted disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input-wrapper"},a)),jsxRuntime.jsx(icons.SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function nr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Me.List,l({className:d("max-h-80 flex-1 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list"},a))}function ir(a){var e=n(a,[]);return jsxRuntime.jsx(Me.Empty,l({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function ur(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Me.Group,l({className:d("overflow-hidden p-2 text-gray-foreground [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-foreground-muted",e),"data-slot":"command-group"},a))}function fr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Me.Item,l({className:d("outline-hidden relative flex cursor-default select-none items-center gap-3 rounded-md px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"command-item"},a))}function cr(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Root,l({"data-slot":"popover"},e))}function pr(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Trigger,l({"data-slot":"popover-trigger"},e))}function mr(s){var i=s,{className:e,align:a="center",sideOffset:o=4,showArrow:t=false}=i,r=n(i,["className","align","sideOffset","showArrow"]);return jsxRuntime.jsx(radixUi.Popover.Portal,{children:jsxRuntime.jsxs(radixUi.Popover.Content,c(l({align:a,className:d("outline-hidden z-50 w-72 rounded-md border bg-surface-card p-4 text-gray-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),"data-slot":"popover-content",sideOffset:o},r),{children:[r.children,t&&jsxRuntime.jsx(radixUi.Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var Qe=B.createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function yd({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:s,onOpenChange:i,defaultValues:u=[]}){let[f,p]=B.useState(u),[g,x]=B.useState(false),[h,v]=B.useState([]),b=t!==void 0,y=s!==void 0,M=b?t:f,H=y?s:g,I=q=>{let O=M.includes(q)?M.filter(S=>S!==q):[...M,q];b||p(O),r==null||r(O);},k=q=>{o||(q&&v(M),y||x(q),i==null||i(q));},z=()=>{b||p(h),r==null||r(h);},E=ue();return jsxRuntime.jsx(Qe.Provider,{value:{invalid:a,disabled:o,open:H,setOpen:k,values:M,toggleValue:I,onCancelSelection:z,listId:E},children:jsxRuntime.jsx(cr,{open:H,onOpenChange:k,children:e})})}function Pd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({className:d("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function wd(r){var s=r,{className:e,placeholder:a="Selecione uma op\xE7\xE3o",children:o}=s,t=n(s,["className","placeholder","children"]);let{invalid:i,disabled:u,open:f,values:p,listId:g}=B.useContext(Qe),x=ue(),h=p.length>0;return jsxRuntime.jsx(pr,{asChild:true,children:jsxRuntime.jsxs("button",c(l({"aria-controls":g,"aria-expanded":f,"aria-invalid":i||void 0,className:d("shadow-xs flex h-12 max-h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0",h&&!i&&"border-gray-stroke-emphasis",e),"data-slot":"autocomplete-trigger","data-placeholder":"",disabled:u,id:x,role:"combobox",type:"button"},t),{children:[jsxRuntime.jsx("span",{className:"truncate text-gray-foreground-emphasis",children:o!=null?o:a}),jsxRuntime.jsx(icons.ChevronDown,{"aria-hidden":"true",className:"shrink-0 text-gray-foreground",size:24,strokeWidth:1.6})]}))})}function bt({className:e,cancelLabel:a="Cancelar",confirmLabel:o="Concluir",onCancel:t,onConfirm:r}){let{setOpen:s,onCancelSelection:i,values:u}=B.useContext(Qe);return jsxRuntime.jsxs("div",{className:d("flex items-center justify-between border-t border-gray-stroke-muted px-4 py-3",e),"data-slot":"autocomplete-content-footer",children:[jsxRuntime.jsx(se,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),s(false);},children:a}),jsxRuntime.jsx(se,{size:"sm",variant:"emphasis",iconLeft:jsxRuntime.jsx(icons.Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),s(false);},children:o})]})}function Td({children:e,className:a,searchPlaceholder:o="Buscar...",emptyMessage:t="Nenhum resultado encontrado"}){let r=B.Children.toArray(e),s=r.filter(u=>B.isValidElement(u)&&u.type===bt),i=r.filter(u=>!(B.isValidElement(u)&&u.type===bt));return jsxRuntime.jsxs(mr,{align:"start",className:d("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxRuntime.jsxs(lr,{children:[jsxRuntime.jsx(dr,{placeholder:o}),jsxRuntime.jsxs(nr,{id:B.useContext(Qe).listId,children:[jsxRuntime.jsx(ir,{children:t}),i]})]}),s]})}function Ad({children:e,value:a,className:o,disabled:t=false}){let{values:r,toggleValue:s}=B.useContext(Qe),i=r.includes(a);return jsxRuntime.jsxs(fr,{className:d("relative flex w-full cursor-default select-none items-center gap-3 rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis data-[selected=true]:bg-secondary-background-soft-emphasis",o),disabled:t,onSelect:()=>{s(a);},value:a,children:[jsxRuntime.jsx("span",{className:d("inline-flex size-[18px] shrink-0 items-center justify-center rounded-sm border-2 transition-all",i?"border-primary-background-fill bg-primary-background-fill":"border-gray-stroke-muted bg-surface-card"),children:i&&jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function Rd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(ur,l({className:e},a))}function Md(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=B.useContext(Qe);return jsxRuntime.jsx("span",l({className:d("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var Fd={sm:"sm",md:"md",lg:"md",xl:"lg"},hr=classVarianceAuthority.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 Ct(s){var i=s,{className:e,size:a,badge:o,children:t}=i,r=n(i,["className","size","badge","children"]);return jsxRuntime.jsxs("div",{className:"relative",children:[o&&jsxRuntime.jsx(Ae,{size:Fd[a||"md"],className:d("absolute -right-2 -top-1 z-10"),children:String(o)}),jsxRuntime.jsx(radixUi.Avatar.Root,c(l({"data-slot":"avatar",className:d(hr({size:a,className:e}))},r),{children:t}))]})}function vt(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Image,l({"data-slot":"avatar-image",className:d("size-full object-cover",e)},a))}function It(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Fallback,c(l({"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:jsxRuntime.jsx(icons.User,{className:"size-1/2"})}))}function kt(a){var e=n(a,[]);return jsxRuntime.jsx("nav",l({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function St(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ol",l({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 Hd(r){var s=r,{className:e,icon:a,children:o}=s,t=n(s,["className","icon","children"]);return jsxRuntime.jsx("li",c(l({className:d("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function zd(t){var r=t,{asChild:e,className:a}=r,o=n(r,["asChild","className"]);let s=e?radixUi.Slot.Root:"a";return jsxRuntime.jsx(s,l({className:d("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function Ud(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",l({"aria-current":"page","aria-disabled":"true",className:d("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function Vd(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("li",c(l({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsxRuntime.jsx(icons.ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function _d(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs("span",c(l({"aria-hidden":"true",className:d("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsxRuntime.jsx(icons.MoreHorizontal,{className:"text-gray-foreground",size:18}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]}))}var Lr=classVarianceAuthority.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 Xd(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",c(l({"data-slot":"tag-icon",className:d("[&>svg]:size-3.5",e)},o),{children:a}))}function $e(i){var u=i,{className:e,variant:a,asChild:o=false,icon:t,children:r}=u,s=n(u,["className","variant","asChild","icon","children"]);let f=o?radixUi.Slot.Slot:"span";return jsxRuntime.jsxs(f,c(l({"data-slot":"tag",className:d(Lr({variant:a}),e)},s),{children:[t&&jsxRuntime.jsx(Xd,{icon:t}),r]}))}function yt(g){var x=g,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:s,value:i=0,size:u=96,strokeWidth:f=2}=x,p=n(x,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let h=typeof i=="string",v=h?0:i,b=(u-f)/2,y=b*2*Math.PI,M=y-v/100*y,H=Math.max(18,Math.min(u/5)),I=Math.max(10,Math.min(u/9,16));return jsxRuntime.jsxs("div",c(l({"data-slot":"progress-circle",className:d("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[jsxRuntime.jsxs("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,viewBox:`0 0 ${u} ${u}`,children:[jsxRuntime.jsx("circle",{"data-slot":"progress-circle-track",cx:u/2,cy:u/2,r:b,stroke:"currentColor",strokeWidth:f,fill:"none",className:d("text-gray-stroke-muted",o)}),jsxRuntime.jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:b,stroke:"currentColor",strokeWidth:f,fill:"none",strokeDasharray:y,strokeDashoffset:M,strokeLinecap:"round",className:d("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxRuntime.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:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:d("mr-px font-semibold",t),style:{fontSize:`${H}px`},children:i}),!h&&"%"]}),r&&jsxRuntime.jsx("div",{"data-slot":"progress-circle-label",className:d("text-center font-medium leading-tight text-gray-foreground-muted",s),style:{fontSize:`${I}px`},children:r})]})]}))}function Tt(s){var i=s,{className:e,indicatorClassName:a,label:o,value:t}=i,r=n(i,["className","indicatorClassName","label","value"]);let u=Math.round(t||0);return jsxRuntime.jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxRuntime.jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ",jsxRuntime.jsx("span",{children:o})]}),jsxRuntime.jsx(radixUi.Progress.Root,c(l({"data-slot":"progress",className:d("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsxRuntime.jsx(radixUi.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 ha=B.createContext(null);function $d(s){var i=s,{className:e,done:a,postponed:o,skipped:t}=i,r=n(i,["className","done","postponed","skipped"]);let u=B.useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsxRuntime.jsx(ha.Provider,{value:u,children:jsxRuntime.jsx("div",l({"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 Jd(s){var i=s,{className:e,children:a,tag:o,tagIcon:t}=i,r=n(i,["className","children","tag","tagIcon"]);return jsxRuntime.jsxs("div",c(l({"data-slot":"card-week-breadcrumb",className:d("flex items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsxRuntime.jsx(kt,{className:"flex-1 overflow-hidden",children:jsxRuntime.jsx(St,{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&&jsxRuntime.jsx($e,{variant:"regular-soft",icon:t,children:o})]}))}function Yd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-container",className:d("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function en(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-header",className:d("flex justify-between [&.border-b]:pb-6",e)},a))}function an(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=B.useContext(ha),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.jsx("div",l({"data-slot":"card-week-title",className:d("text-lg font-semibold leading-lg text-primary-foreground",(s||i||u)&&"text-primary-foreground-muted line-through",e)},a))}function tn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=B.useContext(ha),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.jsx("div",l({"data-slot":"card-week-description",className:d("text-xs font-semibold leading-xs text-gray-foreground",(s||i||u)&&"text-gray-foreground-muted",e)},a))}function on(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"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 rn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",c(l({"data-slot":"card-week-progress-circle",className:d("flex flex-1 justify-end",e)},a),{children:jsxRuntime.jsx(yt,l({size:104},a))}))}function sn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=B.useContext(ha),s=r==null?void 0:r.done;return jsxRuntime.jsx("div",c(l({"data-slot":"card-week-progress",className:d("flex flex-1",e)},a),{children:jsxRuntime.jsx(Tt,l({value:s?100:a.value},a))}))}function ln(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-footer",className:d("mt-auto flex flex-col gap-2",e)},a))}function dn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("div",c(l({"data-slot":"card-week-content",className:d("flex flex-col text-xs font-medium",e)},o),{children:a}))}function nn(r){var s=r,{className:e,children:a,isTime:o}=s,t=n(s,["className","children","isTime"]);return jsxRuntime.jsxs("div",c(l({"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&&jsxRuntime.jsx(icons.TimeRemaining,{size:16}),jsxRuntime.jsx("span",{children:a})]}))}function un(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=B.useContext(ha),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return !s&&!i&&!u?null:i||u?jsxRuntime.jsxs("div",c(l({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-yellow-darken-4",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold text-yellow-darken-4",children:i?"Adiado":"Pulado"})]})):jsxRuntime.jsxs("div",c(l({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold",children:"Feito"})]}))}function fn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-actions",className:d("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var Sr=classVarianceAuthority.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-4 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 data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&: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 gn(s){var i=s,{className:e,size:a,variant:o,uncheckIcon:t}=i,r=n(i,["className","size","variant","uncheckIcon"]);return jsxRuntime.jsx(radixUi.Checkbox.Root,c(l({"data-slot":"checkbox",className:d("group peer",Sr({size:a,variant:o}),e)},r),{children:jsxRuntime.jsx(radixUi.Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsxRuntime.jsx(icons.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}):jsxRuntime.jsx(icons.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 yr=B.createContext({animation:void 0});function bn(o){var t=o,{animation:e}=t,a=n(t,["animation"]);return jsxRuntime.jsx(yr.Provider,{value:{animation:e},children:jsxRuntime.jsx(radixUi.Collapsible.Root,l({"data-slot":"collapsible"},a))})}function Ln(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Collapsible.Trigger,l({"data-slot":"collapsible-trigger"},e))}function Cn(o){var t=o,{className:e}=t,a=n(t,["className"]);let{animation:r}=B.useContext(yr),s={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 jsxRuntime.jsx(radixUi.Collapsible.Content,l({"data-slot":"collapsible-content",className:d(r&&s[r],e)},a))}var Rt=768;function ba(){let[e,a]=B.useState(void 0);return B.useEffect(()=>{let o=window.matchMedia(`(max-width: ${Rt-1}px)`),t=()=>{a(window.innerWidth<Rt);};return o.addEventListener("change",t),a(window.innerWidth<Rt),()=>o.removeEventListener("change",t)},[]),!!e}function Mt(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Root,l({"data-slot":"dropdown-menu"},e))}function Sn(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,l({"data-slot":"dropdown-menu-portal"},e))}function Dt(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Trigger,l({className:d("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function Bt(r){var s=r,{className:e,sideOffset:a=4,side:o}=s,t=n(s,["className","sideOffset","side"]);let i=ba();return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,{children:jsxRuntime.jsx(radixUi.DropdownMenu.Content,l({"data-slot":"dropdown-menu-content",sideOffset:a,side:i?"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 yn(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Group,l({"data-slot":"dropdown-menu-group"},e))}function _a(r){var s=r,{className:e,inset:a,variant:o="default"}=s,t=n(s,["className","inset","variant"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Item,l({"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 Pn(r){var s=r,{className:e,children:a,checked:o}=s,t=n(s,["className","children","checked"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.CheckboxItem,c(l({"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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function Ga(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.RadioGroup,l({"data-slot":"dropdown-menu-radio-group"},e))}function Ft(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.RadioItem,c(l({"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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function Nt(t){var r=t,{className:e,inset:a}=r,o=n(r,["className","inset"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Label,l({"data-slot":"dropdown-menu-label","data-inset":a,className:d("px-2 py-3 text-xs font-medium text-gray-foreground-muted data-[inset]:pl-8 [&:not(:first-child)]:mt-2.5",e)},o))}function Ot(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Separator,l({"data-slot":"dropdown-menu-separator",className:d("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function wn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",l({"data-slot":"dropdown-menu-shortcut",className:d("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function Tn(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Sub,l({"data-slot":"dropdown-menu-sub"},e))}function An(r){var s=r,{className:e,inset:a,children:o}=s,t=n(s,["className","inset","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.SubTrigger,c(l({"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,jsxRuntime.jsx(icons.ChevronRight,{className:"ml-auto size-3"})]}))}function Rn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.SubContent,l({"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 Et(t){var r=t,{className:e,type:a}=r,o=n(r,["className","type"]);return jsxRuntime.jsx("input",l({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 wr=classVarianceAuthority.cva("inline-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 whitespace-nowrap transition-all shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0",{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 Fn(s){var i=s,{className:e,variant:a,size:o,block:t}=i,r=n(i,["className","variant","size","block"]);return jsxRuntime.jsx(radixUi.Label.Root,l({"data-slot":"label",className:d(e,wr({className:e,size:o,variant:a}),t&&"flex flex-col items-start justify-center gap-4 whitespace-normal rounded-lg border border-gray-stroke-muted p-4 font-normal")},r))}function On({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxRuntime.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:[jsxRuntime.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"}),jsxRuntime.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 qn({width:e=60,height:a=67,className:o,svgClassName:t}){return jsxRuntime.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:jsxRuntime.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 Je={tablet:"600px",mobile:"320px"};function Ar(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("nav",l({role:"navigation","aria-label":"pagination",className:d("flex w-full items-center justify-between",e)},a))}function Rr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",l({className:d("flex flex-row items-center gap-2",e)},a))}function Ht(r){var s=r,{count:e,label:a="itens",className:o}=s,t=n(s,["count","label","className"]);return jsxRuntime.jsx("p",c(l({className:d("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Mostrando"," ",jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function Xa(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("li",l({className:d("",e)},a))}function Mr(p){var g=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:s="regular",activeVariant:i,inactiveVariant:u}=g,f=n(g,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsxRuntime.jsx(se,c(l({"aria-current":a?"page":void 0,variant:a&&i?i:!a&&u?u:a?s:`${s}-soft`,className:d("",e),size:r,iconLeft:o,iconRight:t},f),{children:f.children}))}function Dr(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=n(s,["className","size","variant"]);return jsxRuntime.jsx(se,c(l({"aria-label":"Go to previous page",className:d("",e),iconLeft:jsxRuntime.jsx(icons.ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function Br(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=n(s,["className","size","variant"]);return jsxRuntime.jsx(se,c(l({"aria-label":"Go to next page",className:d("",e),variant:o,iconRight:jsxRuntime.jsx(icons.ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function Fr(t){var r=t,{className:e,size:a="md"}=r,o=n(r,["className","size"]);return jsxRuntime.jsx("span",c(l({"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:jsxRuntime.jsx(icons.MoreHorizontal,{className:"h-4 w-4"})}))}function Nr(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 s=1;s<=o+1;s++)t.push(s);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let s=a-o;s<=a;s++)t.push(s);}else {t.push(1,-1);for(let s=e-r;s<=e+r;s++)t.push(s);t.push(-1,a);}}return t}function Gn({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:s,className:i,responsive:u=true,size:f="md"}){let[p,g]=B.useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(Je.tablet));B.useEffect(()=>{if(typeof window=="undefined"||!u)return;let b=parseInt(Je.tablet),y=()=>{g(window.innerWidth<=b);};return window.addEventListener("resize",y),y(),()=>window.removeEventListener("resize",y)},[u]);let x=typeof o=="number"?o:u&&p?0:2,h=u&&p,v=()=>Nr(e,a,x);return jsxRuntime.jsxs(Ar,{className:d("",i),children:[r!==void 0&&!h?jsxRuntime.jsx(Ht,{count:r,label:"itens"}):jsxRuntime.jsx("div",{}),jsxRuntime.jsxs(Rr,{children:[jsxRuntime.jsx(Xa,{children:jsxRuntime.jsx(Dr,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:f})}),v().map((b,y)=>jsxRuntime.jsx(Xa,{children:b===-1?jsxRuntime.jsx(Fr,{size:f}):jsxRuntime.jsx(Mr,{onClick:()=>t(b),isActive:b===e,size:f,children:b})},y)),jsxRuntime.jsx(Xa,{children:jsxRuntime.jsx(Br,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:f})})]}),s!==void 0&&!h?jsxRuntime.jsx(Ht,{count:s,label:"total"}):jsxRuntime.jsx("div",{})]})}var Kn={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"},Or=classVarianceAuthority.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-4 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 data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&:disabled_svg]:fill-gray-background-fill-muted"},size:{sm:"size-4",md:"size-5",lg:"size-6"}},defaultVariants:{variant:"regular",size:"md"}});function Zn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.RadioGroup.Root,l({"data-slot":"radio-group",className:d("grid gap-3",e)},a))}function jn(r){var s=r,{className:e,size:a,variant:o}=s,t=n(s,["className","size","variant"]);return jsxRuntime.jsx(radixUi.RadioGroup.Item,c(l({"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",Or({size:a,variant:o}),e)},t),{children:jsxRuntime.jsx(radixUi.RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsxRuntime.jsx(icons.Circle,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",Kn[a||"md"])})})}))}function Be(o){var t=o,{delayDuration:e=0}=t,a=n(t,["delayDuration"]);return jsxRuntime.jsx(radixUi.Tooltip.Provider,l({"data-slot":"tooltip-provider",delayDuration:e},a))}function Fe(a){var e=n(a,[]);return jsxRuntime.jsx(Be,{children:jsxRuntime.jsx(radixUi.Tooltip.Root,l({"data-slot":"tooltip"},e))})}function Ne(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Tooltip.Trigger,l({"data-slot":"tooltip-trigger"},e))}function Oe(r){var s=r,{className:e,sideOffset:a=0,children:o}=s,t=n(s,["className","sideOffset","children"]);return jsxRuntime.jsx(radixUi.Tooltip.Portal,{children:jsxRuntime.jsxs(radixUi.Tooltip.Content,c(l({"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,jsxRuntime.jsx(radixUi.Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}function oi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",{className:"w-full overflow-x-auto rounded-lg border border-gray-stroke-muted",children:jsxRuntime.jsx("table",c(l({className:d("w-full border-collapse text-left",a)},o),{children:e}))})}function ri(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("thead",c(l({className:d("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsxRuntime.jsx("tr",{children:e})}))}function si(s){var i=s,{children:e,className:a,tooltip:o,highlight:t}=i,r=n(i,["children","className","tooltip","highlight"]);return jsxRuntime.jsx("th",c(l({className:d("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{className:d(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsxRuntime.jsx(Be,{children:jsxRuntime.jsxs(Fe,{children:[jsxRuntime.jsx(Ne,{asChild:true,children:jsxRuntime.jsx(icons.Info,{className:"size-4"})}),jsxRuntime.jsx(Oe,{children:o})]})})]})}))}function li(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tbody",c(l({className:d("bg-surface-card",a)},o),{children:e}))}function di(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tr",c(l({className:d("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function ni(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",{className:"py-4 pl-5 align-middle",children:jsxRuntime.jsx("div",c(l({className:d("flex size-7 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-full bg-primary-foreground text-sm font-semibold text-primary-foreground-onfill",a)},o),{children:e}))})}function ii(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:d("flex items-center gap-5",a),children:jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function ui(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",c(l({className:d("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function fi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",c(l({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function ci(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",c(l({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function pi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx($e,c(l({className:d("bg-gradient-to-r from-cm-24 to-secondary-24 text-primary-foreground",a)},o),{icon:jsxRuntime.jsx(icons.CheckboxFill,{className:"text-primary-foreground"}),children:e}))}function mi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:d("flex flex-col items-start gap-2",a),children:e})}))}function gi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("p",c(l({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 xi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",c(l({className:d("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function hi(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,s=n(u,["src","alt","fallback","className","tooltip"]);let f=jsxRuntime.jsxs(Ct,c(l({size:"sm",className:d("ring-2 ring-background",t)},s),{children:[jsxRuntime.jsx(vt,{src:e,alt:a}),jsxRuntime.jsx(It,{children:o})]}));return r?jsxRuntime.jsx(Be,{children:jsxRuntime.jsxs(Fe,{children:[jsxRuntime.jsx(Ne,{asChild:true,children:f}),jsxRuntime.jsx(Oe,{children:r})]})}):f}function bi(r){var s=r,{children:e,className:a,icon:o}=s,t=n(s,["children","className","icon"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx($e,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Li({className:e,percentage:a}){let o=t=>t>=0&&t<=49||t>=50&&t<=80||t>=81&&t<=100?"bg-primary-stroke":"bg-gray-100";return jsxRuntime.jsx("div",{className:d("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsxRuntime.jsx("div",{className:d("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function Ci(r){var s=r,{questions:e,answered:a,className:o}=s,t=n(s,["questions","answered","className"]);let i=a>0?a/e*100:0;return i===0?jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-gray-background-soft",children:jsxRuntime.jsx(icons.RemoveMinus,{className:"size-3 text-gray-foreground",strokeWidth:2.6})}),jsxRuntime.jsx("span",{className:"whitespace-nowrap font-medium text-gray-foreground-muted",children:"N\xE3o iniciado"})]})})})):jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsxs("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:[jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:jsxRuntime.jsxs("span",{className:"relative shrink-0 whitespace-nowrap font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:a})," ",a>1?"respondidas":"respondida"]})}),jsxRuntime.jsx(Li,{percentage:i})]})}))}var vi={notStarted:{icon:icons.RemoveMinus,bgColor:"bg-gray-background-soft",iconColor:"text-gray-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"N\xE3o iniciado",subtitle:()=>""},minNotReached:{icon:icons.Warning,bgColor:"bg-feedback-warning-background-soft",iconColor:"text-feedback-warning-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"M\xEDnimo n\xE3o atingido",subtitle:({remainingQuestions:e})=>e>1?`Faltam ${e} quest\xF5es`:`Falta ${e} quest\xE3o`},dominated:{icon:icons.Check,bgColor:"bg-feedback-success-background-soft",iconColor:"text-feedback-success-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({percentage:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`},notDominated:{icon:icons.CloseMd,bgColor:"bg-feedback-error-background-soft",iconColor:"text-feedback-error-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({percentage:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`}};function Ii(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function ki(s){var i=s,{questions:e,answered:a,correct:o,className:t}=i,r=n(i,["questions","answered","correct","className"]);let u=a>0?o/a*100:0,f=a===0,p=a<e,g=e-a,x=Ii(f,p,u),{icon:h,bgColor:v,iconColor:b,titleClassName:y,title:M,subtitle:H}=vi[x],I={percentage:u,correct:o,answered:a,remainingQuestions:g};return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},r),{children:jsxRuntime.jsx("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",t),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:d("flex size-4 items-center justify-center rounded-full",v),children:jsxRuntime.jsx(h,{className:d("size-3",b),strokeWidth:2.6})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsxRuntime.jsx("span",{className:d("whitespace-nowrap",y),children:M(I)}),jsxRuntime.jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:H(I)})]})]})})}))}function Si(r){var s=r,{children:e,className:a,onClick:o}=s,t=n(s,["children","className","onClick"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(se,{variant:"regular-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var zr=classVarianceAuthority.cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),Pi=classVarianceAuthority.cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),Ur=classVarianceAuthority.cva("inline-flex items-center justify-center",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"},readOnly:{true:"cursor-default",false:"cursor-pointer"}},defaultVariants:{size:"md",readOnly:false}}),Vr=classVarianceAuthority.cva("flex w-full min-w-0 justify-between text-gray-foreground font-medium gap-2",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"md"}});function wi({state:e,className:a}){let o=ue(),t=B.useRef(`rating-${Math.random().toString(36).slice(2)}`),r=o||t.current;return e==="full"?jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",className:"fill-feedback-warning-background-soft stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}):e==="half"?jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsxRuntime.jsx("stop",{offset:"50%",className:"[stop-color:var(--color-feedback-warning-background-soft)]",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"50%",stopColor:"transparent",stopOpacity:"0"})]})}),jsxRuntime.jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:`url(#${r})`,className:"stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}):jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:"transparent",className:"stroke-gray-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ti(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function Ai({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:s="md",className:i,classNameContainer:u,classNameLabels:f}){let[p,g]=B.useState(e!=null?e:0),[x,h]=B.useState(null),v=e!==void 0,b=v?e:p,y=I=>{if(t)return;let k=I+1;v||g(k),a==null||a(k);},M=I=>{t||h(I);},H=()=>{t||h(null);};return jsxRuntime.jsxs("div",{"data-slot":"rating",className:d("inline-flex w-fit flex-col gap-2",i),children:[jsxRuntime.jsx("div",{className:d("inline-flex flex-row gap-1",u),onMouseLeave:H,children:Array.from({length:o},(I,k)=>{let z=x!==null,E=z&&k<=x,q=x===k,O=z?E?"full":"empty":Ti(k,b);return jsxRuntime.jsx("button",{type:"button",disabled:t,onClick:()=>y(k),onMouseEnter:()=>M(k),className:Ur({size:s,readOnly:t}),"aria-label":`Rate ${k+1} out of ${o}`,children:jsxRuntime.jsx(wi,{state:O,className:q&&!t?Pi({size:s}):zr({size:s})})},k)})}),r&&r.length===2&&jsxRuntime.jsxs("div",{className:d(Vr({size:s}),f),children:[jsxRuntime.jsx("span",{className:"truncate",children:r[0]}),jsxRuntime.jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function Ut(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.ScrollArea.Root,c(l({"data-slot":"scroll-area",className:d("relative",e)},o),{children:[jsxRuntime.jsx(radixUi.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsxRuntime.jsx(Ca,{}),jsxRuntime.jsx(Ca,{orientation:"horizontal"}),jsxRuntime.jsx(radixUi.ScrollArea.Corner,{})]}))}function Ca(t){var r=t,{className:e,orientation:a="vertical"}=r,o=n(r,["className","orientation"]);return jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaScrollbar,c(l({"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:jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Vt=B.createContext({invalid:false});function Fi(o){var t=o,{invalid:e=false}=t,a=n(t,["invalid"]);return jsxRuntime.jsx(Vt.Provider,{value:{invalid:e},children:jsxRuntime.jsx(radixUi.Select.Root,l({"data-slot":"select"},a))})}function Ni(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({className:d("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function Oi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("label",c(l({className:d("pointer-events-none absolute start-3 top-0 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-1/2 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground",e),"data-slot":"select-label"},o),{children:a}))}function qi(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Group,l({"data-slot":"select-group"},e))}function Ei(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Value,l({"data-slot":"select-value"},e))}function Hi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{invalid:s}=B.useContext(Vt);return jsxRuntime.jsxs(radixUi.Select.Trigger,c(l({className:d("shadow-xs flex h-12 max-h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error data-[placeholder]:text-gray-foreground-emphasis *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 disabled:data-[placeholder]:text-gray-foreground-muted [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0",!s&&"[&:not([data-placeholder])]:border-gray-stroke-emphasis","group-has-[[data-slot=select-label]]:h-14 group-has-[[data-slot=select-label]]:py-3 group-has-[[data-slot=select-label]]:data-[placeholder]:text-transparent",e),"data-slot":"select-trigger","aria-invalid":s||void 0},o),{children:[a,jsxRuntime.jsx(radixUi.Select.Icon,{asChild:true,children:jsxRuntime.jsx(icons.ChevronDown,{className:d("shrink-0 text-gray-foreground"),size:24,strokeWidth:1.6})})]}))}function zi(r){var s=r,{className:e,children:a,position:o="popper"}=s,t=n(s,["className","children","position"]);return jsxRuntime.jsx(radixUi.Select.Portal,{children:jsxRuntime.jsxs(radixUi.Select.Content,c(l({className:d("relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-32 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated text-gray-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 [&_[role=group]]:py-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),"data-slot":"select-content",position:o},t),{children:[jsxRuntime.jsx(Wr,{}),jsxRuntime.jsx(radixUi.Select.Viewport,{className:d("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsxRuntime.jsx(Xr,{})]}))})}function Ui(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Label,l({className:d("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function Vi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.Select.Item,c(l({className:d("data-disabled:pointer-events-none relative flex w-full cursor-default select-none items-center rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis",e),"data-slot":"select-item"},o),{children:[jsxRuntime.jsx(radixUi.Select.ItemText,{children:a}),jsxRuntime.jsx("span",{className:"absolute end-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.Select.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{size:20,strokeWidth:2,className:"text-secondary-foreground"})})})]}))}function _i(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Separator,l({className:d("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function Wr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollUpButton,c(l({className:d("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button"},a),{children:jsxRuntime.jsx(icons.ChevronUp,{size:16,strokeWidth:1.6,className:"text-gray-foreground"})}))}function Xr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollDownButton,c(l({className:d("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button"},a),{children:jsxRuntime.jsx(icons.ChevronDown,{size:24,strokeWidth:1.6,className:"text-gray-foreground"})}))}function Gi(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=B.useContext(Vt);return jsxRuntime.jsx("span",l({className:d("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var Kr=B.createContext(null);function Zi(r){var s=r,{className:e,size:a="md",children:o}=s,t=n(s,["className","size","children"]);return jsxRuntime.jsx(Kr.Provider,{value:{size:a},children:jsxRuntime.jsx(radixUi.Tabs.Root,c(l({"data-slot":"tabs",className:d("flex flex-col gap-2",e)},t),{children:o}))})}function ji(t){var r=t,{className:e,containerClassName:a}=r,o=n(r,["className","containerClassName"]);return jsxRuntime.jsxs(Ut,{className:d("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsxRuntime.jsx(radixUi.Tabs.List,l({"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)),jsxRuntime.jsx(Ca,{orientation:"horizontal"})]})}var Zr=classVarianceAuthority.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 Qi(i){var u=i,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=u,s=n(u,["className","icon","badge","badgeVariant","children"]);var x;let f=h=>h!=null&&h!==0&&h!==""&&h!=="0"&&!s.disabled,p=B.useContext(Kr),g=(x=p==null?void 0:p.size)!=null?x:"md";return jsxRuntime.jsxs(radixUi.Tabs.Trigger,c(l({"data-slot":"tabs-trigger",className:d(Zr({size:g,className:e}))},s),{children:[a,r&&jsxRuntime.jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsxRuntime.jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),f(o)&&jsxRuntime.jsx(Ae,{size:g,variant:t,children:String(o)})]}))}function $i(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Tabs.Content,l({"data-slot":"tabs-content",className:d("flex-1 outline-none",e)},a))}var jr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ji=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),Wt=e=>{let a=Ji(e);return a.charAt(0).toUpperCase()+a.slice(1)},Ja=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),Qr=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var $r={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 Yr=B.forwardRef((p,f)=>{var g=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:s,iconNode:i}=g,u=n(g,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return B.createElement("svg",l(l(c(l({ref:f},$r),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:Ja("lucide",r)}),!s&&!Qr(u)&&{"aria-hidden":"true"}),u),[...i.map(([x,h])=>B.createElement(x,h)),...Array.isArray(s)?s:[s]])});var es=(e,a)=>{let o=B.forwardRef((i,s)=>{var u=i,{className:t}=u,r=n(u,["className"]);return B.createElement(Yr,l({ref:s,iconNode:a,className:Ja(`lucide-${jr(Wt(e))}`,`lucide-${e}`,t)},r))});return o.displayName=Wt(e),o};var tu=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],va=es("x",tu);function Kt(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,l({"data-slot":"sheet"},e))}function ou(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,l({"data-slot":"sheet-trigger"},e))}function ru(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,l({"data-slot":"sheet-close"},e))}function su(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,l({"data-slot":"sheet-portal"},e))}function lu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,l({"data-slot":"sheet-overlay",className:d("bg-black/50 fixed inset-0 z-50 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 Zt(r){var s=r,{className:e,children:a,side:o="right"}=s,t=n(s,["className","children","side"]);return jsxRuntime.jsxs(su,{children:[jsxRuntime.jsx(lu,{}),jsxRuntime.jsxs(radixUi.Dialog.Content,c(l({"data-slot":"sheet-content",className:d("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",o==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",o==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",o==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",o==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e)},t),{children:[a,jsxRuntime.jsxs(radixUi.Dialog.Close,{className:"rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsxRuntime.jsx(va,{className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function du(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sheet-header",className:d("flex flex-col gap-1.5 p-4",e)},a))}function nu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sheet-footer",className:d("mt-auto flex flex-col gap-2 p-4",e)},a))}function iu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Title,l({"data-slot":"sheet-title",className:d("font-semibold text-foreground",e)},a))}function uu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,l({"data-slot":"sheet-description",className:d("text-muted-foreground text-sm",e)},a))}function Ya(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"skeleton",className:d("animate-pulse rounded-md bg-gray-150",e)},a))}var Cu="sidebar_state",vu=3600*24*7,Iu="b",rs=B.createContext(null);function ta(){let e=B.useContext(rs);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function ku(i){var u=i,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=u,s=n(u,["defaultOpen","open","onOpenChange","className","children"]);let f=ba(),[p,g]=B.useState(false),[x,h]=B.useState(e),v=a!=null?a:x,b=B.useCallback(I=>{let k=typeof I=="function"?I(v):I;o?o(k):h(k),document.cookie=`${Cu}=${k}; path=/; max-age=${vu}`;},[o,v]),y=B.useCallback(()=>f?g(I=>!I):b(I=>!I),[f,b,g]);B.useEffect(()=>{let I=k=>{k.key===Iu&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),y());};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[y]);let M=v?"expanded":"collapsed",H=B.useMemo(()=>({state:M,open:v,setOpen:b,isMobile:f,openMobile:p,setOpenMobile:g,toggleSidebar:y}),[M,v,b,f,p,g,y]);return jsxRuntime.jsx(rs.Provider,{value:H,children:jsxRuntime.jsx(Be,{delayDuration:0,children:jsxRuntime.jsx("div",c(l({"data-slot":"sidebar-wrapper",className:d("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},s),{children:r}))})})}function Su(u){var f=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:s}=f,i=n(f,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:g,openMobile:x,setOpenMobile:h}=ta();return o==="none"?jsxRuntime.jsx("div",c(l({"data-slot":"sidebar",className:d("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},i),{children:s})):p?jsxRuntime.jsx(Kt,c(l({open:x,onOpenChange:h},i),{children:jsxRuntime.jsx(Zt,{"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:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:s})})})):jsxRuntime.jsxs("div",{className:d("group peer hidden text-gray-foreground md:block",t),"data-state":g,"data-collapsible":g==="collapsed"?o:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[jsxRuntime.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)]")}),jsxRuntime.jsx("div",c(l({"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)},i),{children:jsxRuntime.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:s})}))]})}function yu(f){var p=f,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsxRuntime.jsx(icons.HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:s,enableHover:i=false}=p,u=n(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:g,open:x,isMobile:h}=ta(),[v,b]=B.useState(false),M=s||{open:"Esconder",closed:"Mostrar"},H=()=>i&&v?x?jsxRuntime.jsx(icons.ChevronLeftMd,{className:o}):jsxRuntime.jsx(icons.ChevronRightMd,{className:o}):t,I=jsxRuntime.jsxs("button",c(l({"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:k=>{a==null||a(k),g();},onMouseEnter:!h&&i?()=>b(true):void 0,onMouseLeave:!h&&i?()=>b(false):void 0},u),{children:[H(),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||h?I:jsxRuntime.jsxs(Fe,{children:[jsxRuntime.jsx(Ne,{asChild:true,children:I}),jsxRuntime.jsx(Oe,{side:"right",align:"center",children:x?M.open:M.closed})]})}function Pu(o){var t=o,{className:e}=t,a=n(t,["className"]);let{toggleSidebar:r}=ta();return jsxRuntime.jsx("button",l({"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 wu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("main",l({"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 Tu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Et,l({"data-slot":"sidebar-input","data-sidebar":"input",className:d("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function Au(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sidebar-header","data-sidebar":"header",className:d("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function Ru(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"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 Mu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ke,l({"data-slot":"sidebar-separator","data-sidebar":"separator",className:d("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function Du(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"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 Bu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"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 Fu(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let s=a?radixUi.Slot.Slot:"div";return jsxRuntime.jsx(s,l({"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 Nu(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let s=a?radixUi.Slot.Slot:"button";return jsxRuntime.jsx(s,l({"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 Ou(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:d("w-full text-sm",e)},a))}function qu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",l({"data-slot":"sidebar-menu","data-sidebar":"menu",className:d("flex w-full min-w-0 flex-col gap-1",e)},a))}function Eu(r){var s=r,{className:e,isActive:a,children:o}=s,t=n(s,["className","isActive","children"]);return jsxRuntime.jsxs("li",c(l({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:d("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsxRuntime.jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var Hu=classVarianceAuthority.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 zu(u){var f=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:s}=f,i=n(f,["asChild","isActive","variant","size","tooltip","className"]);let p=e?radixUi.Slot.Slot:"button",{isMobile:g,state:x}=ta(),h=jsxRuntime.jsx(p,l({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:d(Hu({variant:o,size:t}),s)},i));return r?(typeof r=="string"&&(r={children:r}),jsxRuntime.jsxs(Fe,{children:[jsxRuntime.jsx(Ne,{asChild:true,children:h}),jsxRuntime.jsx(Oe,l({side:"right",align:"center",hidden:x!=="collapsed"||g},r))]})):h}function Uu(r){var s=r,{className:e,asChild:a=false,showOnHover:o=false}=s,t=n(s,["className","asChild","showOnHover"]);let i=a?radixUi.Slot.Slot:"button";return jsxRuntime.jsx(i,l({"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 Vu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"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 _u(t){var r=t,{className:e,showIcon:a=false}=r,o=n(r,["className","showIcon"]);let s=B.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",c(l({"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&&jsxRuntime.jsx(Ya,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntime.jsx(Ya,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]}))}function Gu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",l({"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 Wu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("li",l({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:d("group/menu-sub-item relative",e)},a))}function Xu({icon:e,title:a}){let{state:o,isMobile:t}=ta();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[B.isValidElement(e)?B.cloneElement(e,{strokeWidth:1.8}):e,jsxRuntime.jsx("span",{className:d("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function Ku(){return jsxRuntime.jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:20,strokeWidth:1.5})})}function Zu(s){var i=s,{asChild:e=false,size:a="md",isActive:o=false,className:t}=i,r=n(i,["asChild","size","isActive","className"]);let u=e?radixUi.Slot.Slot:"a";return jsxRuntime.jsx(u,l({"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 Ju={sm:"size-2",md:"size-3",lg:"size-4"},ls={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},Yu={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]"},ds=classVarianceAuthority.cva("peer inline-flex shrink-0 items-center rounded-pill outline-none transition-all disabled:pointer-events-none focus:outline-0",{variants:{variant:{regular:"border-2 border-gray-stroke-muted 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-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=checked]:enabled:hover:ring-state-active data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis"},size:{sm:"h-4 w-6",md:"h-5 w-8",lg:"h-6 w-10"}},defaultVariants:{variant:"regular",size:"md"}});function ef(f){var p=f,{className:e,size:a,variant:o,checkedIcon:t,uncheckedIcon:r,checked:s,defaultChecked:i}=p,u=n(p,["className","size","variant","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[g,x]=B.useState(i||false),h=s!==void 0,v=h?s:g,b=t||r;return jsxRuntime.jsx(radixUi.Switch.Root,c(l({"data-slot":"switch",className:d("group",ds({size:a,variant:o}),e),checked:s,defaultChecked:i,onCheckedChange:y=>{var M;h||x(y),(M=u.onCheckedChange)==null||M.call(u,y);}},u),{children:jsxRuntime.jsx(radixUi.Switch.Thumb,{"data-slot":"switch-thumb",className:d("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 data-[state=unchecked]:group-hover:bg-gray-foreground data-[state=unchecked]:group-data-[disabled]:group-hover:bg-gray-foreground-muted",b&&"!bg-transparent data-[disabled]:!bg-transparent",Ju[a||"md"],Yu[a||"md"]),children:b&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[v&&t&&jsxRuntime.jsx("span",{className:d("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",ls[a||"md"]),children:t}),!v&&r&&jsxRuntime.jsx("span",{className:d("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",ls[a||"md"]),children:r})]})})}))}var ns=B.createContext({});function lf({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:s}){let[i,u]=B.useState(a||""),f={value:a||i,onValueChange:o||u};return jsxRuntime.jsx(ns.Provider,{value:f,children:jsxRuntime.jsx(Mt,{open:t,defaultOpen:r,onOpenChange:s,children:e})})}function df({children:e,asChild:a=true,className:o}){return jsxRuntime.jsx(Dt,{className:o,asChild:a,children:e})}function nf({children:e,align:a="center",side:o="right",className:t}){return jsxRuntime.jsx(Bt,{className:t,align:a,side:o,children:e})}function uf({children:e,label:a}){let{value:o,onValueChange:t}=B.useContext(ns);return a?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Nt,{children:a}),jsxRuntime.jsx(Ga,{value:o,onValueChange:t,children:e})]}):jsxRuntime.jsx(Ga,{value:o,onValueChange:t,children:e})}function ff({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxRuntime.jsxs(Ft,{value:a,onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxRuntime.jsxs(_a,{onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function cf({children:e,onClick:a,icon:o}){return jsxRuntime.jsxs(_a,{onClick:a,children:[o,e]})}function pf(){return jsxRuntime.jsx(Ot,{})}var fs=B.createContext(null),Lf=150,is=16,Cf="w-8";function rt(){let e=B.useContext(fs);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function vf(e,a){let o=B.useRef(null);return B.useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),B.useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var cs=classVarianceAuthority.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"}}),ps=classVarianceAuthority.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"}}),If=classVarianceAuthority.cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),us=classVarianceAuthority.cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",Cf],{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"}}),ms=classVarianceAuthority.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 kf(i){var u=i,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=u,s=n(u,["className","variant","size","responsive","children"]);let[f,p]=B.useState(o),g=B.useCallback(()=>{if(typeof window=="undefined")return;let h=parseInt(Je.tablet),v=parseInt(Je.mobile),b=window.innerWidth;b<=v||b<=h?p("md"):p(o);},[o]),x=vf(g,Lf);return B.useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return g(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[t,o,g,x]),jsxRuntime.jsx(fs.Provider,{value:{variant:a,size:o,responsiveSize:f},children:jsxRuntime.jsx(radixUi.Tabs.Root,c(l({"data-slot":"tabs","data-variant":a,"data-size":f,className:d("flex w-full max-w-full flex-col overflow-hidden",e)},s),{children:r}))})}function Sf(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:s,responsiveSize:i}=rt(),u=B.useRef(null),f=B.useRef(null),[p,g]=B.useState(false),[x,h]=B.useState(false),[v,b]=B.useState(null),y=B.useCallback(()=>{let I=u.current;if(!I)return;let{scrollLeft:k,scrollWidth:z,clientWidth:E}=I,q=z>E;g(q&&k>0),h(q&&k<z-E-1);},[]),M=B.useCallback(()=>{let I=f.current;if(!I)return;let k=I.querySelector('[data-state="active"]');if(k){let z=I.getBoundingClientRect(),E=k.getBoundingClientRect();b({left:E.left-z.left,width:E.width});}},[]),H=B.useCallback(()=>{let I=u.current,k=f.current;if(!I||!k)return;let z=k.querySelector('[data-state="active"]');if(z){let E=I.getBoundingClientRect(),q=z.getBoundingClientRect();q.left<E.left?I.scrollBy({left:q.left-E.left-is,behavior:"smooth"}):q.right>E.right&&I.scrollBy({left:q.right-E.right+is,behavior:"smooth"});}},[]);return B.useEffect(()=>{let I=u.current;if(!I)return;y();let k=new ResizeObserver(()=>{y(),M();});return k.observe(I),I.addEventListener("scroll",y,{passive:true}),()=>{k.disconnect(),I.removeEventListener("scroll",y);}},[y,M]),B.useEffect(()=>{M();},[M,a]),B.useEffect(()=>{let I=f.current;if(!I)return;let k=new MutationObserver(z=>{for(let E of z)if(E.type==="attributes"&&E.attributeName==="data-state"){M(),H();break}});return k.observe(I,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>k.disconnect()},[M,H]),jsxRuntime.jsxs("div",{"data-slot":"tabs-list-wrapper",className:If({variant:s}),children:[jsxRuntime.jsx("div",{className:d(us({side:"left",variant:s}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{className:d(us({side:"right",variant:s}),x?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{ref:u,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxRuntime.jsxs("div",{ref:f,className:"relative",children:[jsxRuntime.jsx(radixUi.Tabs.List,c(l({"data-slot":"tabs-list","data-variant":s,"data-size":i,className:d(cs({variant:s}),e)},o),{children:a})),v&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",style:{left:v.left,width:v.width},"aria-hidden":"true"})]})})]})}function yf(s){var i=s,{className:e,children:a,icon:o,badge:t}=i,r=n(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:f}=rt(),p=B.useRef(null),[g,x]=B.useState(false);B.useEffect(()=>{let v=p.current;if(!v)return;let b=()=>{x(v.getAttribute("data-state")==="active");};b();let y=new MutationObserver(b);return y.observe(v,{attributes:true,attributeFilter:["data-state"]}),()=>y.disconnect()},[]);let h=()=>o?B.isValidElement(o)?B.cloneElement(o,{strokeWidth:g?2:1.6}):o:null;return jsxRuntime.jsxs(radixUi.Tabs.Trigger,c(l({ref:p,"data-slot":"tabs-trigger","data-variant":u,"data-size":f,className:d(ps({variant:u,size:f}),e)},r),{children:[o&&jsxRuntime.jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:h()}),jsxRuntime.jsx("span",{children:a}),t&&jsxRuntime.jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function Pf(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r,responsiveSize:s}=rt();return jsxRuntime.jsx(radixUi.Tabs.Content,l({"data-slot":"tabs-content","data-variant":r,"data-size":s,className:d(ms({variant:r,size:s}),e)},a))}var gs=classVarianceAuthority.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 Rf(i){var u=i,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=u,s=n(u,["className","variant","asChild","disabled","inactive"]);let f=o?radixUi.Slot.Slot:"div";return jsxRuntime.jsxs(f,c(l({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:d(gs({variant:a,className:e}),s.onClick&&!t&&"cursor-pointer")},s),{children:[s.children,s.onClick&&!t&&jsxRuntime.jsx(icons.EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function Mf(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",c(l({"data-slot":"tile-icon",className:d("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function Df(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"tile-title",className:d("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function Bf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",l({"data-slot":"tile-description",className:d("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var qf=3,Ef=1e6,Ie={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},$t=0;function Hf(){return $t=($t+1)%Number.MAX_SAFE_INTEGER,$t.toString()}var Jt=new Map,xs=e=>{if(Jt.has(e))return;let a=setTimeout(()=>{Jt.delete(e),Pa({type:Ie.REMOVE_TOAST,toastId:e});},Ef);Jt.set(e,a);},zf=(e,a)=>{switch(a.type){case Ie.ADD_TOAST:return c(l({},e),{toasts:[a.toast,...e.toasts].slice(0,qf)});case Ie.UPDATE_TOAST:return c(l({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?l(l({},o),a.toast):o)});case Ie.DISMISS_TOAST:{let{toastId:o}=a;return o?xs(o):e.toasts.forEach(t=>{xs(t.id);}),c(l({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?c(l({},t),{open:false}):t)})}case Ie.REMOVE_TOAST:return a.toastId===void 0?c(l({},e),{toasts:[]}):c(l({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},lt=[],dt={toasts:[]};function Pa(e){dt=zf(dt,e),lt.forEach(a=>{a(dt);});}function Uf(a){var e=n(a,[]);let o=Hf(),t=s=>Pa({type:Ie.UPDATE_TOAST,toast:c(l({},s),{id:o})}),r=()=>Pa({type:Ie.DISMISS_TOAST,toastId:o});return Pa({type:Ie.ADD_TOAST,toast:c(l({},e),{id:o,open:true,onOpenChange:s=>{s||r();}})}),{id:o,dismiss:r,update:t}}function Yt(){let[e,a]=B.useState(dt);return B.useEffect(()=>(lt.push(a),()=>{let o=lt.indexOf(a);o>-1&<.splice(o,1);}),[e]),c(l({},e),{toast:Uf,dismiss:o=>Pa({type:Ie.DISMISS_TOAST,toastId:o})})}var Ls=classVarianceAuthority.cva("group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md bg-surface-elevated p-2 pl-4 shadow-lg",{variants:{variant:{primary:"text-primary-foreground",secondary:"text-secondary-foreground",success:"text-feedback-success-foreground",warning:"text-feedback-warning-foreground",error:"text-feedback-error-foreground"}},defaultVariants:{variant:"primary"}}),Zf=classVarianceAuthority.cva("size-6 shrink-0",{variants:{variant:{primary:"text-primary-foreground fill-primary-background-soft",secondary:"text-secondary-foreground fill-secondary-background-soft",success:"text-feedback-success-foreground fill-feedback-success-background-soft",warning:"text-feedback-warning-foreground fill-feedback-warning-background-soft",error:"text-feedback-error-foreground fill-feedback-error-background-soft"}},defaultVariants:{variant:"primary"}}),jf={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},Qf={primary:icons.Info,secondary:icons.Info,success:icons.CircleCheck,warning:icons.TriangleWarning,error:icons.OctagonWarning},Cs=radixUi.Toast.Provider;function vs(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Viewport,l({className:d("fixed right-0 top-0 z-[100] flex max-h-screen w-full min-w-0 max-w-[500px] flex-col gap-2 p-4 md:w-[500px]",e)},a))}function Is(i){var u=i,{className:e,variant:a="primary",showIcon:o=true,duration:t=5e3,children:r}=u,s=n(u,["className","variant","showIcon","duration","children"]);let f=Qf[a||"primary"];return jsxRuntime.jsx(radixUi.Toast.Root,c(l({duration:t},s),{forceMount:true,asChild:true,children:jsxRuntime.jsxs(framerMotion.motion.li,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:-50,zIndex:-1},transition:{duration:.4,ease:"easeInOut"},layout:true,className:d(Ls({variant:a}),e),children:[o&&jsxRuntime.jsx(f,{className:d(Zf({variant:a}))}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]})}))}function $f(f){var p=f,{className:e,variant:a="primary",size:o="sm",iconLeft:t,iconRight:r,children:s,altText:i="Toast action"}=p,u=n(p,["className","variant","size","iconLeft","iconRight","children","altText"]);return jsxRuntime.jsx(radixUi.Toast.Action,c(l({asChild:true,altText:i,className:d("inline-flex items-center justify-center",e)},u),{children:jsxRuntime.jsx(se,{iconLeft:t,iconRight:r,size:o,variant:jf[a],children:s})}))}function ks(t){var r=t,{className:e,label:a="Fechar"}=r,o=n(r,["className","label"]);return jsxRuntime.jsx(radixUi.Toast.Close,c(l({className:d("shrink-0",e)},o),{asChild:true,children:jsxRuntime.jsx(se,{iconLeft:jsxRuntime.jsx(icons.CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function Ss(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Title,l({className:d("flex-1 text-md font-medium",e)},a))}function ys(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Description,l({className:d("text-xs",e)},a))}function Jf(){let{toasts:e}=Yt();return jsxRuntime.jsxs(Cs,{children:[jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"popLayout",children:e.filter(a=>a.open).map(function(i){var u=i,{id:a,title:o,description:t,action:r}=u,s=n(u,["id","title","description","action"]);return jsxRuntime.jsxs(Is,c(l({},s),{children:[jsxRuntime.jsxs("div",{className:"grid",children:[o&&jsxRuntime.jsx(Ss,{children:o}),t&&jsxRuntime.jsx(ys,{children:t})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[r,jsxRuntime.jsx(ks,{})]})]}),a)})}),jsxRuntime.jsx(vs,{})]})}/*! Bundled license information:
|
|
1
|
+
'use strict';var D=require('react'),classVarianceAuthority=require('class-variance-authority'),icons=require('@medway-ui/icons'),clsx=require('clsx'),jsxRuntime=require('react/jsx-runtime'),radixUi=require('radix-ui'),framerMotion=require('framer-motion');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var D__namespace=/*#__PURE__*/_interopNamespace(D);var Ps=Object.defineProperty,ws=Object.defineProperties;var Ts=Object.getOwnPropertyDescriptors;var Ta=Object.getOwnPropertySymbols;var ao=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable;var eo=(e,a,o)=>a in e?Ps(e,a,{enumerable:true,configurable:true,writable:true,value:o}):e[a]=o,l=(e,a)=>{for(var o in a||(a={}))ao.call(a,o)&&eo(e,o,a[o]);if(Ta)for(var o of Ta(a))to.call(a,o)&&eo(e,o,a[o]);return e},c=(e,a)=>ws(e,Ts(a));var n=(e,a)=>{var o={};for(var t in e)ao.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&Ta)for(var t of Ta(e))a.indexOf(t)<0&&to.call(e,t)&&(o[t]=e[t]);return o};var As=(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},Rs=(e,a)=>({classGroupId:e,validator:a}),uo=(e=new Map,a=null,o)=>({nextPart:e,validators:a,classGroupId:o});var oo=[],Ms="arbitrary..",Ds=e=>{let a=Fs(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Bs(i);let u=i.split("-"),f=u[0]===""&&u.length>1?1:0;return fo(u,f,a)},getConflictingClassGroupIds:(i,u)=>{if(u){let f=t[i],p=o[i];return f?p?As(p,f):f:p||oo}return o[i]||oo}}},fo=(e,a,o)=>{if(e.length-a===0)return o.classGroupId;let r=e[a],s=o.nextPart.get(r);if(s){let p=fo(e,a+1,s);if(p)return p}let i=o.validators;if(i===null)return;let u=a===0?e.join("-"):e.slice(a).join("-"),f=i.length;for(let p=0;p<f;p++){let m=i[p];if(m.validator(u))return m.classGroupId}},Bs=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?Ms+t:void 0})(),Fs=e=>{let{theme:a,classGroups:o}=e;return Ns(o,a)},Ns=(e,a)=>{let o=uo();for(let t in e){let r=e[t];ut(r,o,t,a);}return o},ut=(e,a,o,t)=>{let r=e.length;for(let s=0;s<r;s++){let i=e[s];Os(i,a,o,t);}},Os=(e,a,o,t)=>{if(typeof e=="string"){Es(e,a,o);return}if(typeof e=="function"){qs(e,a,o,t);return}Hs(e,a,o,t);},Es=(e,a,o)=>{let t=e===""?a:co(a,e);t.classGroupId=o;},qs=(e,a,o,t)=>{if(zs(e)){ut(e(t),a,o,t);return}a.validators===null&&(a.validators=[]),a.validators.push(Rs(o,e));},Hs=(e,a,o,t)=>{let r=Object.entries(e),s=r.length;for(let i=0;i<s;i++){let[u,f]=r[i];ut(f,co(a,u),o,t);}},co=(e,a)=>{let o=e,t=a.split("-"),r=t.length;for(let s=0;s<r;s++){let i=t[s],u=o.nextPart.get(i);u||(u=uo(),o.nextPart.set(i,u)),o=u;}return o},zs=e=>"isThemeGetter"in e&&e.isThemeGetter===true,Us=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=Object.create(null),t=Object.create(null),r=(s,i)=>{o[s]=i,a++,a>e&&(a=0,t=o,o=Object.create(null));};return {get(s){let i=o[s];if(i!==void 0)return i;if((i=t[s])!==void 0)return r(s,i),i},set(s,i){s in o?o[s]=i:r(s,i);}}};var Vs=[],ro=(e,a,o,t,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:o,maybePostfixModifierPosition:t,isExternal:r}),_s=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=r=>{let s=[],i=0,u=0,f=0,p,m=r.length;for(let y=0;y<m;y++){let M=r[y];if(i===0&&u===0){if(M===":"){s.push(r.slice(f,y)),f=y+1;continue}if(M==="/"){p=y;continue}}M==="["?i++:M==="]"?i--:M==="("?u++:M===")"&&u--;}let x=s.length===0?r:r.slice(f),h=x,v=false;x.endsWith("!")?(h=x.slice(0,-1),v=true):x.startsWith("!")&&(h=x.slice(1),v=true);let b=p&&p>f?p-f:void 0;return ro(s,v,h,b)};if(a){let r=a+":",s=t;t=i=>i.startsWith(r)?s(i.slice(r.length)):ro(Vs,false,i,void 0,true);}if(o){let r=t;t=s=>o({className:s,parseClassName:r});}return t},Gs=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{a.set(o,1e6+t);}),o=>{let t=[],r=[];for(let s=0;s<o.length;s++){let i=o[s],u=i[0]==="[",f=a.has(i);u||f?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(i)):r.push(i);}return r.length>0&&(r.sort(),t.push(...r)),t}},Ws=e=>l({cache:Us(e.cacheSize),parseClassName:_s(e),sortModifiers:Gs(e)},Ds(e)),Xs=/\s+/,Ks=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:r,sortModifiers:s}=a,i=[],u=e.trim().split(Xs),f="";for(let p=u.length-1;p>=0;p-=1){let m=u[p],{isExternal:x,modifiers:h,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:y}=o(m);if(x){f=m+(f.length>0?" "+f:f);continue}let M=!!y,H=t(M?b.substring(0,y):b);if(!H){if(!M){f=m+(f.length>0?" "+f:f);continue}if(H=t(b),!H){f=m+(f.length>0?" "+f:f);continue}M=false;}let I=h.length===0?"":h.length===1?h[0]:s(h).join(":"),k=v?I+"!":I,z=k+H;if(i.indexOf(z)>-1)continue;i.push(z);let q=r(H,M);for(let E=0;E<q.length;++E){let O=q[E];i.push(k+O);}f=m+(f.length>0?" "+f:f);}return f},Zs=(...e)=>{let a=0,o,t,r="";for(;a<e.length;)(o=e[a++])&&(t=po(o))&&(r&&(r+=" "),r+=t);return r},po=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=po(e[t]))&&(o&&(o+=" "),o+=a);return o},so=(e,...a)=>{let o,t,r,s,i=f=>{let p=a.reduce((m,x)=>x(m),e());return o=Ws(p),t=o.cache.get,r=o.cache.set,s=u,u(f)},u=f=>{let p=t(f);if(p)return p;let m=Ks(f,o);return r(f,m),m};return s=i,(...f)=>s(Zs(...f))},js=[],K=e=>{let a=o=>o[e]||js;return a.isThemeGetter=true,a},mo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,go=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qs=/^\d+\/\d+$/,$s=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Js=/\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$/,Ys=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,el=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,al=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>Qs.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),Se=e=>!!e&&Number.isInteger(Number(e)),nt=e=>e.endsWith("%")&&N(e.slice(0,-1)),xe=e=>$s.test(e),tl=()=>true,ol=e=>Js.test(e)&&!Ys.test(e),xo=()=>false,rl=e=>el.test(e),sl=e=>al.test(e),ll=e=>!L(e)&&!C(e),dl=e=>_e(e,Lo,xo),L=e=>mo.test(e),Te=e=>_e(e,Co,ol),it=e=>_e(e,cl,N),lo=e=>_e(e,ho,xo),nl=e=>_e(e,bo,sl),Aa=e=>_e(e,vo,rl),C=e=>go.test(e),na=e=>Ge(e,Co),il=e=>Ge(e,pl),no=e=>Ge(e,ho),ul=e=>Ge(e,Lo),fl=e=>Ge(e,bo),Ra=e=>Ge(e,vo,true),_e=(e,a,o)=>{let t=mo.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},Ge=(e,a,o=false)=>{let t=go.exec(e);return t?t[1]?a(t[1]):o:false},ho=e=>e==="position"||e==="percentage",bo=e=>e==="image"||e==="url",Lo=e=>e==="length"||e==="size"||e==="bg-size",Co=e=>e==="length",cl=e=>e==="number",pl=e=>e==="family-name",vo=e=>e==="shadow";var io=()=>{let e=K("color"),a=K("font"),o=K("text"),t=K("font-weight"),r=K("tracking"),s=K("leading"),i=K("breakpoint"),u=K("container"),f=K("spacing"),p=K("radius"),m=K("shadow"),x=K("inset-shadow"),h=K("text-shadow"),v=K("drop-shadow"),b=K("blur"),y=K("perspective"),M=K("aspect"),H=K("ease"),I=K("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...z(),C,L],E=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],S=()=>[C,L,f],$=()=>[Ve,"full","auto",...S()],He=()=>[Se,"none","subgrid",C,L],ze=()=>["auto",{span:["full",Se,C,L]},Se,C,L],ke=()=>[Se,"auto",C,L],ra=()=>["auto","min","max","fr",C,L],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],oe=()=>["auto",...S()],ce=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],T=()=>[e,C,L],sa=()=>[...z(),no,lo,{position:[C,L]}],la=()=>["no-repeat",{repeat:["","x","y","space","round"]}],da=()=>["auto","cover","contain",ul,dl,{size:[C,L]}],Ue=()=>[nt,na,Te],g=()=>["","none","full",p,C,L],P=()=>["",N,na,Te],A=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[N,nt,no,lo],X=()=>["","none",b,C,L],G=()=>["none",N,C,L],Z=()=>["none",N,C,L],re=()=>[N,C,L],J=()=>[Ve,"full",...S()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xe],breakpoint:[xe],color:[tl],container:[xe],"drop-shadow":[xe],ease:["in","out","in-out"],font:[ll],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xe],shadow:[xe],spacing:["px",N],text:[xe],"text-shadow":[xe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,L,C,M]}],container:["container"],columns:[{columns:[N,L,C,u]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:q()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Se,"auto",C,L]}],basis:[{basis:[Ve,"full","auto",u,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,Ve,"auto","initial","none",L]}],grow:[{grow:["",N,C,L]}],shrink:[{shrink:["",N,C,L]}],order:[{order:[Se,"first","last","none",C,L]}],"grid-cols":[{"grid-cols":He()}],"col-start-end":[{col:ze()}],"col-start":[{"col-start":ke()}],"col-end":[{"col-end":ke()}],"grid-rows":[{"grid-rows":He()}],"row-start-end":[{row:ze()}],"row-start":[{"row-start":ke()}],"row-end":[{"row-end":ke()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ra()}],"auto-rows":[{"auto-rows":ra()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:oe()}],mx:[{mx:oe()}],my:[{my:oe()}],ms:[{ms:oe()}],me:[{me:oe()}],mt:[{mt:oe()}],mr:[{mr:oe()}],mb:[{mb:oe()}],ml:[{ml:oe()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],w:[{w:[u,"screen",...ce()]}],"min-w":[{"min-w":[u,"screen","none",...ce()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",o,na,Te]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,C,it]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nt,L]}],"font-family":[{font:[il,L,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,C,L]}],"line-clamp":[{"line-clamp":[N,"none",C,it]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",C,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",C,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",C,Te]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[N,"auto",C,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C,L]}],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",C,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:sa()}],"bg-repeat":[{bg:la()}],"bg-size":[{bg:da()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Se,C,L],radial:["",C,L],conic:[Se,C,L]},fl,nl]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:Ue()}],"gradient-via-pos":[{via:Ue()}],"gradient-to-pos":[{to:Ue()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],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:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...A(),"hidden","none"]}],"divide-style":[{divide:[...A(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...A(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,C,L]}],"outline-w":[{outline:["",N,na,Te]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",m,Ra,Aa]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",x,Ra,Aa]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[N,Te]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",h,Ra,Aa]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[N,C,L]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"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":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[C,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"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":z()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:sa()}],"mask-repeat":[{mask:la()}],"mask-size":[{mask:da()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",C,L]}],filter:[{filter:["","none",C,L]}],blur:[{blur:X()}],brightness:[{brightness:[N,C,L]}],contrast:[{contrast:[N,C,L]}],"drop-shadow":[{"drop-shadow":["","none",v,Ra,Aa]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",N,C,L]}],"hue-rotate":[{"hue-rotate":[N,C,L]}],invert:[{invert:["",N,C,L]}],saturate:[{saturate:[N,C,L]}],sepia:[{sepia:["",N,C,L]}],"backdrop-filter":[{"backdrop-filter":["","none",C,L]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[N,C,L]}],"backdrop-contrast":[{"backdrop-contrast":[N,C,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,C,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,C,L]}],"backdrop-invert":[{"backdrop-invert":["",N,C,L]}],"backdrop-opacity":[{"backdrop-opacity":[N,C,L]}],"backdrop-saturate":[{"backdrop-saturate":[N,C,L]}],"backdrop-sepia":[{"backdrop-sepia":["",N,C,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",C,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",C,L]}],ease:[{ease:["linear","initial",H,C,L]}],delay:[{delay:[N,C,L]}],animate:[{animate:["none",I,C,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,C,L]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[C,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"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",C,L]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",C,L]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[N,na,Te,it]}],stroke:[{stroke:["none",...T()]}],"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"]}},ml=(e,{cacheSize:a,prefix:o,experimentalParseClassName:t,extend:r={},override:s={}})=>(ia(e,"cacheSize",a),ia(e,"prefix",o),ia(e,"experimentalParseClassName",t),Ma(e.theme,s.theme),Ma(e.classGroups,s.classGroups),Ma(e.conflictingClassGroups,s.conflictingClassGroups),Ma(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),ia(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),Da(e.theme,r.theme),Da(e.classGroups,r.classGroups),Da(e.conflictingClassGroups,r.conflictingClassGroups),Da(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Io(e,r,"orderSensitiveModifiers"),e),ia=(e,a,o)=>{o!==void 0&&(e[a]=o);},Ma=(e,a)=>{if(a)for(let o in a)ia(e,o,a[o]);},Da=(e,a)=>{if(a)for(let o in a)Io(e,a,o);},Io=(e,a,o)=>{let t=a[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},ko=(e,...a)=>typeof e=="function"?so(io,e,...a):so(()=>ml(io(),e),...a);var xl=ko({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 xl(clsx.clsx(e))}var ft=D.createContext(null),To=classVarianceAuthority.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 Ll(s){var i=s,{className:e,variant:a="regular",onClose:o,children:t}=i,r=n(i,["className","variant","onClose","children"]);let u=D.Children.toArray(t).some(p=>D.isValidElement(p)&&p.type===Ro),f=D.Children.toArray(t).some(p=>D.isValidElement(p)&&p.type===Ao);return jsxRuntime.jsx(ft.Provider,{value:{variant:a,hasDescription:u,hasTitle:f,onClose:o},children:jsxRuntime.jsxs("div",c(l({"data-slot":"alert",role:"alert",className:d(To({variant:a}),e)},r),{children:[t,o&&jsxRuntime.jsx(icons.CloseMd,{"aria-label":"alert-close",onClick:o,className:"absolute right-4 top-2 !size-4 cursor-pointer !text-gray-foreground"})]}))})}function Cl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-container",className:d("flex gap-3",e)},a))}function vl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-content",className:d("flex flex-col gap-1",e)},a))}function Il(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",c(l({"data-slot":"alert-icon",className:d("size-6",e)},o),{children:a}))}function Ao(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-title",className:d("line-clamp-1 min-h-4 text-md font-medium",e)},a))}function Ro(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-description",className:d("!line-clamp-3 grid justify-items-start gap-1 text-sm leading-5",e)},a))}function kl(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(ft),s=(r==null?void 0:r.hasDescription)||false,i=(r==null?void 0:r.hasTitle)||false,u=r==null?void 0:r.onClose;return jsxRuntime.jsx("div",l({"data-slot":"alert-actions",className:d("relative mt-2 flex flex-wrap items-center gap-x-2 lg:mt-0 lg:flex-nowrap",(!s||!i)&&u&&"lg:right-5",e)},a))}var Mo=classVarianceAuthority.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 Sl(t){var r=t,{className:e,variant:a}=r,o=n(r,["className","variant"]);let s=D.useContext(ft),i=(s==null?void 0:s.variant)||"regular";return jsxRuntime.jsx("button",l({className:d(Mo({variant:a,alertVariant:i}),e)},o))}function ct({size:e=24,className:a}){return jsxRuntime.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:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})}var Al={sm:"size-4 p-0",md:"size-5 p-0",lg:"size-6 p-0",xl:"size-7 p-0"},Rl={sm:"px-1",md:"px-1",lg:"px-1",xl:"px-1.5"},Bo=classVarianceAuthority.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 Ae(u){var f=u,{className:e,variant:a,size:o,icon:t,animation:r,asChild:s=false}=f,i=n(f,["className","variant","size","icon","animation","asChild"]);let p=s?radixUi.Slot.Slot:"span",m=D.Children.count(i.children)>0,x=!!t&&!m,h=typeof i.children=="string"||typeof i.children=="number"?String(i.children).trim():"",v=/^[A-Za-z0-9]$/.test(h),b=/^[A-Za-z0-9]{2,3}$/.test(h),y=/^\d{1,2}\S$/.test(h),M=b||y;return jsxRuntime.jsxs(p,c(l({"data-slot":"badge",className:d(Bo({variant:a,size:o}),(x||v)&&Al[o||"md"],!x&&M&&Rl[o||"md"],r==="shine"&&"animate-shine bg-[linear-gradient(135deg,transparent_25%,var(--color-white-24)_50%,transparent_75%,transparent_100%)] bg-[length:250%_250%,100%_100%] bg-no-repeat",e)},i),{children:[t,i.children]}))}var Fl={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"},Fo={sm:"size-2",md:"size-2.5",lg:"size-2.5",xl:"size-3"},Nl={sm:"sm",md:"md",lg:"md",xl:"lg"},ua=classVarianceAuthority.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 se(x){var h=x,{className:e,containerClassName:a,variant:o,size:t,asChild:r=false,iconRight:s,iconLeft:i,badge:u,loading:f=false,alert:p}=h,m=n(h,["className","containerClassName","variant","size","asChild","iconRight","iconLeft","badge","loading","alert"]);let v=r?radixUi.Slot.Slot:"button",b=k=>k!=null&&k!==0&&k!==""&&k!=="0",y=k=>k,M=!m.children&&(i||s||p),H=()=>p?jsxRuntime.jsxs("span",{className:d("relative mr-1 flex size-2.5",Fo[t||"md"]),children:[jsxRuntime.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:p}}),jsxRuntime.jsx("span",{className:d("relative inline-flex size-2.5 rounded-full",Fo[t||"md"]),style:{backgroundColor:p}})]}):null,I=()=>f?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ct,{className:"[grid-area:stack]"}),jsxRuntime.jsx("span",{className:d("[grid-area:stack]",f&&"invisible"),children:m.children})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p?H():i&&y(i),m.children&&jsxRuntime.jsx("span",{children:m.children}),s&&y(s)]});return jsxRuntime.jsxs("div",{className:d("relative",a),children:[b(u)&&jsxRuntime.jsx(Ae,{size:Nl[t||"md"],variant:"regular",className:d("absolute -right-2 -top-1 z-10"),role:"status","aria-label":`${u}-notifications`,children:String(u)}),jsxRuntime.jsx(v,c(l({disabled:f,"aria-busy":f,"aria-live":f?"polite":void 0,"data-slot":"button",className:d(M&&Fl[t||"md"],f&&"!inline-grid",ua({variant:o,size:t,className:e}))},m),{children:I()}))]})}function Ol(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Root,l({"data-slot":"alert-dialog"},e))}function El(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Trigger,l({"data-slot":"alert-dialog-trigger"},e))}function Oo(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.AlertDialog.Portal,l({"data-slot":"alert-dialog-portal"},e))}function Eo(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Overlay,l({"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 ql(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs(Oo,{children:[jsxRuntime.jsx(Eo,{}),jsxRuntime.jsx(radixUi.AlertDialog.Content,l({"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 Hl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-dialog-header",className:d("flex flex-col gap-2 text-center sm:text-left",e)},a))}function zl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"alert-dialog-footer",className:d("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e)},a))}function Ul(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Title,l({"data-slot":"alert-dialog-title",className:d("text-lg font-semibold",e)},a))}function Vl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Description,l({"data-slot":"alert-dialog-description",className:d("text-sm text-foreground",e)},a))}function _l(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Action,l({className:d(ua(),e)},a))}function Gl(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.AlertDialog.Cancel,l({className:d(ua({variant:"outlined"}),e)},a))}var Xl=0;function Kl(){return `medway-id-${++Xl}`}var Zl=D__namespace.useId||(()=>{});function ue(){let e=Zl(),[a]=D__namespace.useState(()=>e!=null?e:Kl());return a}var jl=/[\\\/_+.#"@\[\(\{&]/,Ql=/[\\\/_+.#"@\[\(\{&]/g,$l=/[\s-]/,Ho=/[\s-]/g;function pt(e,a,o,t,r,s,i){if(s===a.length)return r===e.length?1:.99;let u=`${r},${s}`;if(i[u]!==void 0)return i[u];let f=t.charAt(s),p=o.indexOf(f,r),m=0,x,h,v,b;for(;p>=0;)x=pt(e,a,o,t,p+1,s+1,i),x>m&&(p===r?x*=1:jl.test(e.charAt(p-1))?(x*=.8,v=e.slice(r,p-1).match(Ql),v&&r>0&&(x*=Math.pow(.999,v.length))):$l.test(e.charAt(p-1))?(x*=.9,b=e.slice(r,p-1).match(Ho),b&&r>0&&(x*=Math.pow(.999,b.length))):(x*=.17,r>0&&(x*=Math.pow(.999,p-r))),e.charAt(p)!==a.charAt(s)&&(x*=.9999)),(x<.1&&o.charAt(p-1)===t.charAt(s+1)||t.charAt(s+1)===t.charAt(s)&&o.charAt(p-1)!==t.charAt(s))&&(h=pt(e,a,o,t,p+1,s+2,i),h*.1>x&&(x=h*.1)),x>m&&(m=x),p=o.indexOf(f,p+1);return i[u]=m,m}function qo(e){return e.toLowerCase().replace(Ho," ")}function zo(e,a,o){return e=o&&o.length>0?`${e+" "+o.join(" ")}`:e,pt(e,a,qo(e),qo(a),0,0,{})}var fa='[cmdk-group=""]',mt='[cmdk-group-items=""]',Jl='[cmdk-group-heading=""]',Vo='[cmdk-item=""]',Uo=`${Vo}:not([aria-disabled="true"])`,gt="cmdk-item-select",We="data-value",Yl=(e,a,o)=>zo(e,a,o),_o=D__namespace.createContext(void 0),pa=()=>D__namespace.useContext(_o),Go=D__namespace.createContext(void 0),xt=()=>D__namespace.useContext(Go),Wo=D__namespace.createContext(void 0),Xo=D__namespace.forwardRef((e,a)=>{let o=Xe(()=>{var g,P;return {search:"",value:(P=(g=e.value)!=null?g:e.defaultValue)!=null?P:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),t=Xe(()=>new Set),r=Xe(()=>new Map),s=Xe(()=>new Map),i=Xe(()=>new Set),u=er(e),Ue=e,{label:f,children:p,value:m,onValueChange:x,filter:h,shouldFilter:v,loop:b,disablePointerSelection:y=false,vimBindings:M=true}=Ue,H=n(Ue,["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"]),I=ue(),k=ue(),z=ue(),q=D__namespace.useRef(null),E=td();ye(()=>{if(m!==void 0){let g=m.trim();o.current.value=g,O.emit();}},[m]),ye(()=>{E(6,ra);},[]);let O=D__namespace.useMemo(()=>({subscribe:g=>(i.current.add(g),()=>i.current.delete(g)),snapshot:()=>o.current,setState:(g,P,A)=>{var B,R,X,G,Z,re;if(!Object.is(o.current[g],P)){if(o.current[g]=P,g==="search")ke(),He(),E(1,ze);else if(g==="value"){if((B=document.activeElement)!=null&&B.hasAttribute("cmdk-input")||(R=document.activeElement)!=null&&R.hasAttribute("cmdk-root")){let J=document.getElementById(z);J?J.focus():(X=document.getElementById(I))==null||X.focus();}if(E(7,()=>{var J;o.current.selectedItemId=(J=me())==null?void 0:J.id,O.emit();}),A||E(5,ra),((G=u.current)==null?void 0:G.value)!==void 0){let J=P!=null?P:"";(re=(Z=u.current).onValueChange)==null||re.call(Z,J);return}}O.emit();}},emit:()=>{i.current.forEach(g=>g());}}),[]),S=D__namespace.useMemo(()=>({value:(g,P,A)=>{var B;P!==((B=s.current.get(g))==null?void 0:B.value)&&(s.current.set(g,{value:P,keywords:A}),o.current.filtered.items.set(g,$(P,A)),E(2,()=>{He(),O.emit();}));},item:(g,P)=>(t.current.add(g),P&&(r.current.has(P)?r.current.get(P).add(g):r.current.set(P,new Set([g]))),E(3,()=>{ke(),He(),o.current.value||ze(),O.emit();}),()=>{s.current.delete(g),t.current.delete(g),o.current.filtered.items.delete(g);let A=me();E(4,()=>{ke(),(A==null?void 0:A.getAttribute("id"))===g&&ze(),O.emit();});}),group:g=>(r.current.has(g)||r.current.set(g,new Set),()=>{s.current.delete(g),r.current.delete(g);}),filter:()=>u.current.shouldFilter!==false,label:f||e["aria-label"]||"",getDisablePointerSelection:()=>!!u.current.disablePointerSelection,listId:I,inputId:z,labelId:k,listInnerRef:q}),[]);function $(g,P){var B,R;let A=(R=(B=u.current)==null?void 0:B.filter)!=null?R:Yl;return g?A(g,o.current.search,P):0}function He(){if(!o.current.search||u.current.shouldFilter===false)return;let g=o.current.filtered.items,P=[];o.current.filtered.groups.forEach(B=>{let R=r.current.get(B),X=0;R==null||R.forEach(G=>{let Z=g.get(G);X=Math.max(Z!=null?Z:0,X);}),P.push([B,X]);});let A=q.current;ne().sort((B,R)=>{var Z,re;let X=B.getAttribute("id"),G=R.getAttribute("id");return ((Z=g.get(G))!=null?Z:0)-((re=g.get(X))!=null?re:0)}).forEach(B=>{let R=B.closest(mt);R?R.appendChild(B.parentElement===R?B:B.closest(`${mt} > *`)):A==null||A.appendChild(B.parentElement===A?B:B.closest(`${mt} > *`));}),P.sort((B,R)=>R[1]-B[1]).forEach(B=>{var X,G;let R=(X=q.current)==null?void 0:X.querySelector(`${fa}[${We}="${encodeURIComponent(B[0])}"]`);(G=R==null?void 0:R.parentElement)==null||G.appendChild(R);});}function ze(){let g=ne().find(A=>A.getAttribute("aria-disabled")!=="true"),P=g==null?void 0:g.getAttribute(We);O.setState("value",P||void 0);}function ke(){var P,A,B,R,X;if(!o.current.search||u.current.shouldFilter===false){o.current.filtered.count=t.current.size;return}o.current.filtered.groups=new Set;let g=0;for(let G of t.current){let Z=(A=(P=s.current.get(G))==null?void 0:P.value)!=null?A:"",re=(R=(B=s.current.get(G))==null?void 0:B.keywords)!=null?R:[],J=$(Z,re);o.current.filtered.items.set(G,J),J>0&&g++;}for(let[G,Z]of r.current)for(let re of Z)if(((X=o.current.filtered.items.get(re))!=null?X:0)>0){o.current.filtered.groups.add(G);break}o.current.filtered.count=g;}function ra(){var P,A,B;let g=me();g&&(((P=g.parentElement)==null?void 0:P.firstChild)===g&&((B=(A=g.closest(fa))==null?void 0:A.querySelector(Jl))==null||B.scrollIntoView({block:"nearest"})),g.scrollIntoView({block:"nearest"}));}function me(){var g;return (g=q.current)==null?void 0:g.querySelector(`${Vo}[aria-selected="true"]`)}function ne(){var g;return Array.from(((g=q.current)==null?void 0:g.querySelectorAll(Uo))||[])}function oe(g){let A=ne()[g];A&&O.setState("value",A.getAttribute(We));}function ce(g){var X;let P=me(),A=ne(),B=A.findIndex(G=>G===P),R=A[B+g];(X=u.current)!=null&&X.loop&&(R=B+g<0?A[A.length-1]:B+g===A.length?A[0]:A[B+g]),R&&O.setState("value",R.getAttribute(We));}function T(g){let P=me(),A=P==null?void 0:P.closest(fa),B;for(;A&&!B;)A=g>0?ed(A,fa):ad(A,fa),B=A==null?void 0:A.querySelector(Uo);B?O.setState("value",B.getAttribute(We)):ce(g);}let sa=()=>oe(ne().length-1),la=g=>{g.preventDefault(),g.metaKey?sa():g.altKey?T(1):ce(1);},da=g=>{g.preventDefault(),g.metaKey?oe(0):g.altKey?T(-1):ce(-1);};return jsxRuntime.jsxs("div",c(l({ref:a,tabIndex:-1},H),{"cmdk-root":"",onKeyDown:g=>{var A;(A=H.onKeyDown)==null||A.call(H,g);let P=g.nativeEvent.isComposing||g.keyCode===229;if(!(g.defaultPrevented||P))switch(g.key){case "n":case "j":{M&&g.ctrlKey&&la(g);break}case "ArrowDown":{la(g);break}case "p":case "k":{M&&g.ctrlKey&&da(g);break}case "ArrowUp":{da(g);break}case "Home":{g.preventDefault(),oe(0);break}case "End":{g.preventDefault(),sa();break}case "Enter":{g.preventDefault();let B=me();if(B){let R=new Event(gt);B.dispatchEvent(R);}}}},children:[jsxRuntime.jsx("label",{"cmdk-label":"",htmlFor:S.inputId,id:S.labelId,style:rd,children:f}),Na(e,g=>jsxRuntime.jsx(Go.Provider,{value:O,children:jsxRuntime.jsx(_o.Provider,{value:S,children:g})}))]}))});Xo.displayName="Command";var Ko=D__namespace.forwardRef((e,a)=>{var z,q;let o=ue(),t=D__namespace.useRef(null),r=D__namespace.useContext(Wo),s=pa(),i=er(e),u=(q=(z=i.current)==null?void 0:z.forceMount)!=null?q:r==null?void 0:r.forceMount;ye(()=>{if(!u)return s.item(o,r==null?void 0:r.id)},[u]);let f=ar(o,t,[e.value,e.children,t],e.keywords),p=xt(),m=Pe(O=>O.value&&O.value===f.current),x=Pe(O=>{var S;return u||s.filter()===false?true:O.search?((S=O.filtered.items.get(o))!=null?S:0)>0:true});D__namespace.useEffect(()=>{let O=t.current;if(!(!O||e.disabled))return O.addEventListener(gt,h),()=>O.removeEventListener(gt,h)},[x,e.onSelect,e.disabled]);function h(){var O,S,$;v(),($=(S=i.current).onSelect)==null||$.call(S,(O=f.current)!=null?O:"");}function v(){var O;p.setState("value",(O=f.current)!=null?O:"",true);}if(!x)return null;let E=e,{disabled:b,value:y,onSelect:M,forceMount:H,keywords:I}=E,k=n(E,["disabled","value","onSelect","forceMount","keywords"]);return jsxRuntime.jsx("div",c(l({ref:ca(t,a)},k),{id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!m,"data-disabled":!!b,"data-selected":!!m,onPointerMove:b||s.getDisablePointerSelection()?void 0:v,onClick:b?void 0:h,children:e.children}))});Ko.displayName="Item";var Zo=D__namespace.forwardRef((e,a)=>{let v=e,{heading:o,children:t,forceMount:r}=v,s=n(v,["heading","children","forceMount"]),i=ue(),u=D__namespace.useRef(null),f=D__namespace.useRef(null),p=ue(),m=pa(),x=Pe(b=>r||m.filter()===false?true:b.search?b.filtered.groups.has(i):true);ye(()=>m.group(i),[]),ar(i,u,[e.value,e.heading,f]);let h=D__namespace.useMemo(()=>({id:i,forceMount:r}),[r]);return jsxRuntime.jsxs("div",c(l({ref:ca(u,a)},s),{"cmdk-group":"",role:"presentation",hidden:x?void 0:true,children:[o&&jsxRuntime.jsx("div",{ref:f,"cmdk-group-heading":"","aria-hidden":true,id:p,children:o}),Na(e,b=>jsxRuntime.jsx("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?p:void 0,children:jsxRuntime.jsx(Wo.Provider,{value:h,children:b})}))]}))});Zo.displayName="Group";var jo=D__namespace.forwardRef((e,a)=>{let i=e,{alwaysRender:o}=i,t=n(i,["alwaysRender"]),r=D__namespace.useRef(null),s=Pe(u=>!u.search);return !o&&!s?null:jsxRuntime.jsx("div",c(l({ref:ca(r,a)},t),{"cmdk-separator":"",role:"separator"}))});jo.displayName="Separator";var Qo=D__namespace.forwardRef((e,a)=>{let p=e,{onValueChange:o}=p,t=n(p,["onValueChange"]),r=e.value!=null,s=xt(),i=Pe(m=>m.search),u=Pe(m=>m.selectedItemId),f=pa();return D__namespace.useEffect(()=>{e.value!=null&&s.setState("search",e.value);},[e.value]),jsxRuntime.jsx("input",c(l({ref:a},t),{"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:false,"aria-autocomplete":"list",role:"combobox","aria-expanded":true,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":u,id:f.inputId,type:"text",value:r?e.value:i,onChange:m=>{r||s.setState("search",m.target.value),o==null||o(m.target.value);}}))});Qo.displayName="Input";var $o=D__namespace.forwardRef((e,a)=>{let p=e,{children:o,label:t="Suggestions"}=p,r=n(p,["children","label"]),s=D__namespace.useRef(null),i=D__namespace.useRef(null),u=Pe(m=>m.selectedItemId),f=pa();return D__namespace.useEffect(()=>{if(i.current&&s.current){let m=i.current,x=s.current,h,v=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let b=m.offsetHeight;x.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px");});});return v.observe(m),()=>{cancelAnimationFrame(h),v.unobserve(m);}}},[]),D__namespace.useEffect(()=>{let m=s.current;if(!m)return;let x=h=>{m.contains(h.target)&&h.stopPropagation();};return document.addEventListener("wheel",x,{capture:true}),()=>{document.removeEventListener("wheel",x,{capture:true});}},[]),jsxRuntime.jsx("div",c(l({ref:ca(s,a)},r),{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":t,id:f.listId,children:Na(e,m=>jsxRuntime.jsx("div",{ref:ca(i,f.listInnerRef),"cmdk-list-sizer":"",children:m}))}))});$o.displayName="List";var Jo=D__namespace.forwardRef((e,a)=>Pe(t=>t.filtered.count===0)?jsxRuntime.jsx("div",c(l({ref:a},e),{"cmdk-empty":"",role:"presentation"})):null);Jo.displayName="Empty";var Yo=D__namespace.forwardRef((e,a)=>{let i=e,{progress:o,children:t,label:r="Loading..."}=i,s=n(i,["progress","children","label"]);return jsxRuntime.jsx("div",c(l({ref:a},s),{"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r,children:Na(e,u=>jsxRuntime.jsx("div",{"aria-hidden":true,children:u}))}))});Yo.displayName="Loading";var Me=Object.assign(Xo,{List:$o,Item:Ko,Input:Qo,Group:Zo,Separator:jo,Empty:Jo,Loading:Yo});function ed(e,a){let o=e.nextElementSibling;for(;o;){if(o.matches(a))return o;o=o.nextElementSibling;}}function ad(e,a){let o=e.previousElementSibling;for(;o;){if(o.matches(a))return o;o=o.previousElementSibling;}}function er(e){let a=D__namespace.useRef(e);return ye(()=>{a.current=e;}),a}var ye=typeof window=="undefined"?D__namespace.useEffect:D__namespace.useLayoutEffect;function Xe(e){let a=D__namespace.useRef(void 0);return a.current===void 0&&(a.current=e()),a}function Pe(e){let a=xt(),[,o]=D__namespace.useState({}),t=D__namespace.useRef(e(a.snapshot()));return t.current=e(a.snapshot()),ye(()=>a.subscribe(()=>{let r=e(a.snapshot());Object.is(r,t.current)||(t.current=r,o({}));}),[a,e]),t.current}function ar(e,a,o,t=[]){let r=D__namespace.useRef(void 0),s=pa();return ye(()=>{var f;let i=(()=>{var p;for(let m of o){if(typeof m=="string")return m.trim();if(typeof m=="object"&&m!==null&&"current"in m)return m.current?(p=m.current.textContent)==null?void 0:p.trim():r.current}})(),u=t.map(p=>p.trim());s.value(e,i!=null?i:"",u),(f=a.current)==null||f.setAttribute(We,i!=null?i:""),r.current=i;}),r}var td=()=>{let[e,a]=D__namespace.useState(),o=Xe(()=>new Map);return ye(()=>{o.current.forEach(t=>t()),o.current=new Map;},[e]),(t,r)=>{o.current.set(t,r),a({});}};function od(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function Na({asChild:e,children:a},o){return e&&D__namespace.isValidElement(a)?D__namespace.cloneElement(od(a),{ref:a.ref},o(a.props.children)):o(a)}function ca(...e){return a=>{e.forEach(o=>{typeof o=="function"?o(a):o!=null&&typeof o=="object"&&(o.current=a);});}}var rd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Ke(r){var s=r,{className:e,orientation:a="horizontal",decorative:o=true}=s,t=n(s,["className","orientation","decorative"]);return jsxRuntime.jsx(radixUi.Separator.Root,l({"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 ud(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,l({"data-slot":"dialog"},e))}function fd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,l({"data-slot":"dialog-trigger"},e))}function or(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,l({"data-slot":"dialog-portal"},e))}function cd(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,l({"data-slot":"dialog-close"},e))}function rr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,l({"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 pd(s){var i=s,{className:e,overlayClassName:a,children:o,showCloseButton:t=true}=i,r=n(i,["className","overlayClassName","children","showCloseButton"]);return jsxRuntime.jsxs(or,{"data-slot":"dialog-portal",children:[jsxRuntime.jsx(rr,{className:a}),jsxRuntime.jsxs(radixUi.Dialog.Content,c(l({"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&&jsxRuntime.jsxs(radixUi.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:[jsxRuntime.jsx(icons.CloseMd,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function md({className:e,children:a}){return jsxRuntime.jsx("div",{className:"overflow-y-auto",children:jsxRuntime.jsx("div",{"data-slot":"dialog-content",className:d("px-8 py-6 text-md leading-md text-primary-foreground",e),children:a})})}function gd(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",l({"data-slot":"dialog-header",className:d("flex flex-col gap-2 px-8 py-6 text-center sm:text-left",e)},o)),a&&jsxRuntime.jsx(Ke,{})]})}function xd(t){var r=t,{className:e,separator:a=false}=r,o=n(r,["className","separator"]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx(Ke,{}),jsxRuntime.jsx("div",l({"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 hd(s){var i=s,{className:e,iconLeft:a,iconRight:o,children:t}=i,r=n(i,["className","iconLeft","iconRight","children"]);let u=f=>D.isValidElement(f)?D.cloneElement(f,{size:32,strokeWidth:2.2}):f;return jsxRuntime.jsxs(radixUi.Dialog.Title,c(l({"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&&u(a),t,o&&u(o)]}))}function bd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,l({"data-slot":"dialog-description",className:d("text-md leading-md text-content-paragraph",e)},a))}function lr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Me,l({className:d("flex size-full flex-col overflow-hidden rounded-md bg-surface-card text-gray-foreground",e),"data-slot":"command"},a))}function dr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs("div",{className:"flex items-center border-b border-gray-stroke-muted px-4","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(Me.Input,l({className:d("flex h-12 w-full bg-transparent py-3 text-md font-medium outline-none placeholder:text-gray-foreground-muted disabled:cursor-not-allowed disabled:opacity-50",e),"data-slot":"command-input-wrapper"},a)),jsxRuntime.jsx(icons.SearchMagnifyingGlass,{className:"text-gray-foreground-muted",size:24})]})}function nr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Me.List,l({className:d("max-h-80 flex-1 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list","data-radix-scroll-area":""},a))}function ir(a){var e=n(a,[]);return jsxRuntime.jsx(Me.Empty,l({className:"py-6 text-center text-sm","data-slot":"command-empty"},e))}function ur(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Me.Group,l({className:d("overflow-hidden p-2 text-gray-foreground [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-foreground-muted",e),"data-slot":"command-group"},a))}function fr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Me.Item,l({className:d("outline-hidden relative flex cursor-default select-none items-center gap-3 rounded-md px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"command-item"},a))}function cr(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Root,l({"data-slot":"popover"},e))}function pr(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Popover.Trigger,l({"data-slot":"popover-trigger"},e))}function mr(s){var i=s,{className:e,align:a="center",sideOffset:o=4,showArrow:t=false}=i,r=n(i,["className","align","sideOffset","showArrow"]);return jsxRuntime.jsx(radixUi.Popover.Portal,{children:jsxRuntime.jsxs(radixUi.Popover.Content,c(l({align:a,className:d("outline-hidden z-50 w-72 rounded-md border bg-surface-card p-4 text-gray-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),"data-slot":"popover-content",sideOffset:o},r),{children:[r.children,t&&jsxRuntime.jsx(radixUi.Popover.Arrow,{className:"-my-px fill-gray-foreground drop-shadow-[0_1px_0_var(--border)]"})]}))})}var Qe=D.createContext({invalid:false,disabled:false,open:false,setOpen:()=>{},values:[],toggleValue:()=>{},onCancelSelection:()=>{},listId:""});function yd({children:e,invalid:a=false,disabled:o=false,values:t,onValuesChange:r,open:s,onOpenChange:i,defaultValues:u=[]}){let[f,p]=D.useState(u),[m,x]=D.useState(false),[h,v]=D.useState([]),b=t!==void 0,y=s!==void 0,M=b?t:f,H=y?s:m,I=E=>{let O=M.includes(E)?M.filter(S=>S!==E):[...M,E];b||p(O),r==null||r(O);},k=E=>{o||(E&&v(M),y||x(E),i==null||i(E));},z=()=>{b||p(h),r==null||r(h);},q=ue();return jsxRuntime.jsx(Qe.Provider,{value:{invalid:a,disabled:o,open:H,setOpen:k,values:M,toggleValue:I,onCancelSelection:z,listId:q},children:jsxRuntime.jsx(cr,{open:H,onOpenChange:k,children:e})})}function Pd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({className:d("group relative flex flex-col gap-2",e),"data-slot":"autocomplete-wrapper"},a))}function wd(r){var s=r,{className:e,placeholder:a="Selecione uma op\xE7\xE3o",children:o}=s,t=n(s,["className","placeholder","children"]);let{invalid:i,disabled:u,open:f,values:p,listId:m}=D.useContext(Qe),x=ue(),h=p.length>0;return jsxRuntime.jsx(pr,{asChild:true,children:jsxRuntime.jsxs("button",c(l({"aria-controls":m,"aria-expanded":f,"aria-invalid":i||void 0,className:d("shadow-xs flex h-12 max-h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0",h&&!i&&"border-gray-stroke-emphasis",e),"data-slot":"autocomplete-trigger","data-placeholder":"",disabled:u,id:x,role:"combobox",type:"button"},t),{children:[jsxRuntime.jsx("span",{className:"truncate text-gray-foreground-emphasis",children:o!=null?o:a}),jsxRuntime.jsx(icons.ChevronDown,{"aria-hidden":"true",className:"shrink-0 text-gray-foreground",size:24,strokeWidth:1.6})]}))})}function bt({className:e,cancelLabel:a="Cancelar",confirmLabel:o="Concluir",onCancel:t,onConfirm:r}){let{setOpen:s,onCancelSelection:i,values:u}=D.useContext(Qe);return jsxRuntime.jsxs("div",{className:d("flex items-center justify-between border-t border-gray-stroke-muted px-4 py-3",e),"data-slot":"autocomplete-content-footer",children:[jsxRuntime.jsx(se,{size:"sm",variant:"regular-soft",onClick:()=>{i(),t==null||t(),s(false);},children:a}),jsxRuntime.jsx(se,{size:"sm",variant:"emphasis",iconLeft:jsxRuntime.jsx(icons.Check,{strokeWidth:2.6}),onClick:()=>{r==null||r(u),s(false);},children:o})]})}function Td({children:e,className:a,searchPlaceholder:o="Buscar...",emptyMessage:t="Nenhum resultado encontrado"}){let r=D.Children.toArray(e),s=r.filter(u=>D.isValidElement(u)&&u.type===bt),i=r.filter(u=>!(D.isValidElement(u)&&u.type===bt));return jsxRuntime.jsxs(mr,{align:"start",className:d("w-full min-w-[var(--radix-popper-anchor-width)] border-gray-stroke-muted p-0",a),children:[jsxRuntime.jsxs(lr,{children:[jsxRuntime.jsx(dr,{placeholder:o}),jsxRuntime.jsxs(nr,{id:D.useContext(Qe).listId,children:[jsxRuntime.jsx(ir,{children:t}),i]})]}),s]})}function Ad({children:e,value:a,className:o,disabled:t=false}){let{values:r,toggleValue:s}=D.useContext(Qe),i=r.includes(a);return jsxRuntime.jsxs(fr,{className:d("relative flex w-full cursor-default select-none items-center gap-3 rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis data-[selected=true]:bg-secondary-background-soft-emphasis",o),disabled:t,onSelect:()=>{s(a);},value:a,children:[jsxRuntime.jsx("span",{className:d("inline-flex size-[18px] shrink-0 items-center justify-center rounded-sm border-2 transition-all",i?"border-primary-background-fill bg-primary-background-fill":"border-gray-stroke-muted bg-surface-card"),children:i&&jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:2.6,className:"text-primary-foreground-onfill"})}),e]})}function Rd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(ur,l({className:e},a))}function Md(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=D.useContext(Qe);return jsxRuntime.jsx("span",l({className:d("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"autocomplete-text"},a))}var Fd={sm:"sm",md:"md",lg:"md",xl:"lg"},hr=classVarianceAuthority.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 Ct(s){var i=s,{className:e,size:a,badge:o,children:t}=i,r=n(i,["className","size","badge","children"]);return jsxRuntime.jsxs("div",{className:"relative",children:[o&&jsxRuntime.jsx(Ae,{size:Fd[a||"md"],className:d("absolute -right-2 -top-1 z-10"),children:String(o)}),jsxRuntime.jsx(radixUi.Avatar.Root,c(l({"data-slot":"avatar",className:d(hr({size:a,className:e}))},r),{children:t}))]})}function vt(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Image,l({"data-slot":"avatar-image",className:d("size-full object-cover",e)},a))}function It(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Avatar.Fallback,c(l({"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:jsxRuntime.jsx(icons.User,{className:"size-1/2"})}))}function kt(a){var e=n(a,[]);return jsxRuntime.jsx("nav",l({"aria-label":"breadcrumb","data-slot":"breadcrumb"},e))}function St(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ol",l({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 Hd(r){var s=r,{className:e,icon:a,children:o}=s,t=n(s,["className","icon","children"]);return jsxRuntime.jsx("li",c(l({className:d("inline-flex items-center gap-1.5 [&_svg]:text-primary-foreground",e),"data-slot":"breadcrumb-item"},t),{children:jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-2",children:[a&&a,o]})}))}function zd(t){var r=t,{asChild:e,className:a}=r,o=n(r,["asChild","className"]);let s=e?radixUi.Slot.Root:"a";return jsxRuntime.jsx(s,l({className:d("transition-colors hover:underline",a),"data-slot":"breadcrumb-link"},o))}function Ud(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",l({"aria-current":"page","aria-disabled":"true",className:d("font-semibold text-primary-foreground",e),"data-slot":"breadcrumb-page",role:"link"},a))}function Vd(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("li",c(l({"aria-hidden":"true",className:a,"data-slot":"breadcrumb-separator",role:"presentation"},o),{children:e!=null?e:jsxRuntime.jsx(icons.ChevronRightMd,{className:"text-gray-foreground",strokeWidth:1.33,size:20})}))}function _d(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsxs("span",c(l({"aria-hidden":"true",className:d("flex size-5 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation"},a),{children:[jsxRuntime.jsx(icons.MoreHorizontal,{className:"text-gray-foreground",size:18}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]}))}var Lr=classVarianceAuthority.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 Xd(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",c(l({"data-slot":"tag-icon",className:d("[&>svg]:size-3.5",e)},o),{children:a}))}function $e(i){var u=i,{className:e,variant:a,asChild:o=false,icon:t,children:r}=u,s=n(u,["className","variant","asChild","icon","children"]);let f=o?radixUi.Slot.Slot:"span";return jsxRuntime.jsxs(f,c(l({"data-slot":"tag",className:d(Lr({variant:a}),e)},s),{children:[t&&jsxRuntime.jsx(Xd,{icon:t}),r]}))}function yt(m){var x=m,{className:e,indicatorClassName:a,trackClassName:o,valueClassName:t,label:r,labelClassName:s,value:i=0,size:u=96,strokeWidth:f=2}=x,p=n(x,["className","indicatorClassName","trackClassName","valueClassName","label","labelClassName","value","size","strokeWidth"]);let h=typeof i=="string",v=h?0:i,b=(u-f)/2,y=b*2*Math.PI,M=y-v/100*y,H=Math.max(18,Math.min(u/5)),I=Math.max(10,Math.min(u/9,16));return jsxRuntime.jsxs("div",c(l({"data-slot":"progress-circle",className:d("relative inline-flex items-center justify-center",e),style:{width:u,height:u}},p),{children:[jsxRuntime.jsxs("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,viewBox:`0 0 ${u} ${u}`,children:[jsxRuntime.jsx("circle",{"data-slot":"progress-circle-track",cx:u/2,cy:u/2,r:b,stroke:"currentColor",strokeWidth:f,fill:"none",className:d("text-gray-stroke-muted",o)}),jsxRuntime.jsx("circle",{"data-slot":"progress-circle-indicator",cx:u/2,cy:u/2,r:b,stroke:"currentColor",strokeWidth:f,fill:"none",strokeDasharray:y,strokeDashoffset:M,strokeLinecap:"round",className:d("text-primary-stroke transition-all duration-300 ease-in-out",a)})]}),jsxRuntime.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:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:d("mr-px font-semibold",t),style:{fontSize:`${H}px`},children:i}),!h&&"%"]}),r&&jsxRuntime.jsx("div",{"data-slot":"progress-circle-label",className:d("text-center font-medium leading-tight text-gray-foreground-muted",s),style:{fontSize:`${I}px`},children:r})]})]}))}function Tt(s){var i=s,{className:e,indicatorClassName:a,label:o,value:t}=i,r=n(i,["className","indicatorClassName","label","value"]);let u=Math.round(t||0);return jsxRuntime.jsxs("div",{className:"flex w-full flex-col gap-2",children:[o&&jsxRuntime.jsxs("div",{"data-slot":"progress-label",className:"text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[u,"%"]})," ",jsxRuntime.jsx("span",{children:o})]}),jsxRuntime.jsx(radixUi.Progress.Root,c(l({"data-slot":"progress",className:d("relative flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",e)},r),{children:jsxRuntime.jsx(radixUi.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 ha=D.createContext(null);function $d(s){var i=s,{className:e,done:a,postponed:o,skipped:t}=i,r=n(i,["className","done","postponed","skipped"]);let u=D.useMemo(()=>({done:a,postponed:o,skipped:t}),[a,o,t]);return jsxRuntime.jsx(ha.Provider,{value:u,children:jsxRuntime.jsx("div",l({"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 Jd(s){var i=s,{className:e,children:a,tag:o,tagIcon:t}=i,r=n(i,["className","children","tag","tagIcon"]);return jsxRuntime.jsxs("div",c(l({"data-slot":"card-week-breadcrumb",className:d("flex items-center gap-4 bg-primary-background-soft-muted px-6 py-3",e)},r),{children:[jsxRuntime.jsx(kt,{className:"flex-1 overflow-hidden",children:jsxRuntime.jsx(St,{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&&jsxRuntime.jsx($e,{variant:"regular-soft",icon:t,children:o})]}))}function Yd(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-container",className:d("flex flex-1 flex-col gap-5 bg-surface-card px-6 py-5",e)},a))}function en(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-header",className:d("flex justify-between [&.border-b]:pb-6",e)},a))}function an(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(ha),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.jsx("div",l({"data-slot":"card-week-title",className:d("text-lg font-semibold leading-lg text-primary-foreground",(s||i||u)&&"text-primary-foreground-muted line-through",e)},a))}function tn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(ha),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return jsxRuntime.jsx("div",l({"data-slot":"card-week-description",className:d("text-xs font-semibold leading-xs text-gray-foreground",(s||i||u)&&"text-gray-foreground-muted",e)},a))}function on(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"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 rn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",c(l({"data-slot":"card-week-progress-circle",className:d("flex flex-1 justify-end",e)},a),{children:jsxRuntime.jsx(yt,l({size:104},a))}))}function sn(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(ha),s=r==null?void 0:r.done;return jsxRuntime.jsx("div",c(l({"data-slot":"card-week-progress",className:d("flex flex-1",e)},a),{children:jsxRuntime.jsx(Tt,l({value:s?100:a.value},a))}))}function ln(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-footer",className:d("mt-auto flex flex-col gap-2",e)},a))}function dn(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("div",c(l({"data-slot":"card-week-content",className:d("flex flex-col text-xs font-medium",e)},o),{children:a}))}function nn(r){var s=r,{className:e,children:a,isTime:o}=s,t=n(s,["className","children","isTime"]);return jsxRuntime.jsxs("div",c(l({"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&&jsxRuntime.jsx(icons.TimeRemaining,{size:16}),jsxRuntime.jsx("span",{children:a})]}))}function un(o){var t=o,{className:e}=t,a=n(t,["className"]);let r=D.useContext(ha),s=r==null?void 0:r.done,i=r==null?void 0:r.postponed,u=r==null?void 0:r.skipped;return !s&&!i&&!u?null:i||u?jsxRuntime.jsxs("div",c(l({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-yellow-24 text-yellow-darken-4",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold text-yellow-darken-4",children:i?"Adiado":"Pulado"})]})):jsxRuntime.jsxs("div",c(l({"data-slot":"card-week-status",className:d("flex items-center gap-1.5",e)},a),{children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-secondary-background-soft text-secondary-foreground",children:jsxRuntime.jsx(icons.Check,{size:12,strokeWidth:1.67})}),jsxRuntime.jsx("div",{className:"font-semibold",children:"Feito"})]}))}function fn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"card-week-actions",className:d("flex flex-wrap items-center justify-end gap-2 pt-4",e)},a))}var Sr=classVarianceAuthority.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-4 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 data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&: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 gn(s){var i=s,{className:e,size:a,variant:o,uncheckIcon:t}=i,r=n(i,["className","size","variant","uncheckIcon"]);return jsxRuntime.jsx(radixUi.Checkbox.Root,c(l({"data-slot":"checkbox",className:d("group peer",Sr({size:a,variant:o}),e)},r),{children:jsxRuntime.jsx(radixUi.Checkbox.Indicator,{"data-slot":"checkbox-indicator",className:"relative flex items-center justify-center",children:t?jsxRuntime.jsx(icons.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}):jsxRuntime.jsx(icons.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 yr=D.createContext({animation:void 0});function bn(o){var t=o,{animation:e}=t,a=n(t,["animation"]);return jsxRuntime.jsx(yr.Provider,{value:{animation:e},children:jsxRuntime.jsx(radixUi.Collapsible.Root,l({"data-slot":"collapsible"},a))})}function Ln(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Collapsible.Trigger,l({"data-slot":"collapsible-trigger"},e))}function Cn(o){var t=o,{className:e}=t,a=n(t,["className"]);let{animation:r}=D.useContext(yr),s={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 jsxRuntime.jsx(radixUi.Collapsible.Content,l({"data-slot":"collapsible-content",className:d(r&&s[r],e)},a))}var Rt=768;function ba(){let[e,a]=D.useState(void 0);return D.useEffect(()=>{let o=window.matchMedia(`(max-width: ${Rt-1}px)`),t=()=>{a(window.innerWidth<Rt);};return o.addEventListener("change",t),a(window.innerWidth<Rt),()=>o.removeEventListener("change",t)},[]),!!e}function Mt(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Root,l({"data-slot":"dropdown-menu"},e))}function Sn(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,l({"data-slot":"dropdown-menu-portal"},e))}function Dt(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Trigger,l({className:d("cursor-pointer",e.className),"data-slot":"dropdown-menu-trigger"},e))}function Bt(r){var s=r,{className:e,sideOffset:a=4,side:o}=s,t=n(s,["className","sideOffset","side"]);let i=ba();return jsxRuntime.jsx(radixUi.DropdownMenu.Portal,{children:jsxRuntime.jsx(radixUi.DropdownMenu.Content,l({"data-slot":"dropdown-menu-content",sideOffset:a,side:i?"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 yn(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Group,l({"data-slot":"dropdown-menu-group"},e))}function _a(r){var s=r,{className:e,inset:a,variant:o="default"}=s,t=n(s,["className","inset","variant"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Item,l({"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 Pn(r){var s=r,{className:e,children:a,checked:o}=s,t=n(s,["className","children","checked"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.CheckboxItem,c(l({"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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function Ga(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.RadioGroup,l({"data-slot":"dropdown-menu-radio-group"},e))}function Ft(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.RadioItem,c(l({"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:[jsxRuntime.jsx("span",{className:"flex min-w-0 flex-1 gap-2 break-words",children:a}),jsxRuntime.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.DropdownMenu.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{className:"size-4"})})})]}))}function Nt(t){var r=t,{className:e,inset:a}=r,o=n(r,["className","inset"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Label,l({"data-slot":"dropdown-menu-label","data-inset":a,className:d("px-2 py-3 text-xs font-medium text-gray-foreground-muted data-[inset]:pl-8 [&:not(:first-child)]:mt-2.5",e)},o))}function Ot(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.Separator,l({"data-slot":"dropdown-menu-separator",className:d("-mx-3 my-2 h-px bg-gray-stroke-muted",e)},a))}function wn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",l({"data-slot":"dropdown-menu-shortcut",className:d("ml-auto text-xs tracking-widest text-gray-foreground",e)},a))}function Tn(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.DropdownMenu.Sub,l({"data-slot":"dropdown-menu-sub"},e))}function An(r){var s=r,{className:e,inset:a,children:o}=s,t=n(s,["className","inset","children"]);return jsxRuntime.jsxs(radixUi.DropdownMenu.SubTrigger,c(l({"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,jsxRuntime.jsx(icons.ChevronRight,{className:"ml-auto size-3"})]}))}function Rn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.DropdownMenu.SubContent,l({"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 qt(t){var r=t,{className:e,type:a}=r,o=n(r,["className","type"]);return jsxRuntime.jsx("input",l({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 wr=classVarianceAuthority.cva("inline-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 whitespace-nowrap transition-all shrink-0 [&_svg]:shrink-0 hover:cursor-pointer focus:outline-0",{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 Fn(s){var i=s,{className:e,variant:a,size:o,block:t}=i,r=n(i,["className","variant","size","block"]);return jsxRuntime.jsx(radixUi.Label.Root,l({"data-slot":"label",className:d(e,wr({className:e,size:o,variant:a}),t&&"flex flex-col items-start justify-center gap-4 whitespace-normal rounded-lg border border-gray-stroke-muted p-4 font-normal")},r))}function On({width:e=171,height:a=36,className:o,svgClassName:t}){return jsxRuntime.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:[jsxRuntime.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"}),jsxRuntime.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 En({width:e=60,height:a=67,className:o,svgClassName:t}){return jsxRuntime.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:jsxRuntime.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 Je={tablet:"600px",mobile:"320px"};function Ar(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("nav",l({role:"navigation","aria-label":"pagination",className:d("flex w-full items-center justify-between",e)},a))}function Rr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",l({className:d("flex flex-row items-center gap-2",e)},a))}function Ht(r){var s=r,{count:e,label:a="itens",className:o}=s,t=n(s,["count","label","className"]);return jsxRuntime.jsx("p",c(l({className:d("text-xs font-medium text-gray-foreground-muted",o)},t),{children:a==="itens"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Mostrando"," ",jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:e})," ",a]})}))}function Xa(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("li",l({className:d("",e)},a))}function Mr(p){var m=p,{className:e,isActive:a,iconLeft:o,iconRight:t,size:r="md",variant:s="regular",activeVariant:i,inactiveVariant:u}=m,f=n(m,["className","isActive","iconLeft","iconRight","size","variant","activeVariant","inactiveVariant"]);return jsxRuntime.jsx(se,c(l({"aria-current":a?"page":void 0,variant:a&&i?i:!a&&u?u:a?s:`${s}-soft`,className:d("",e),size:r,iconLeft:o,iconRight:t},f),{children:f.children}))}function Dr(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=n(s,["className","size","variant"]);return jsxRuntime.jsx(se,c(l({"aria-label":"Go to previous page",className:d("",e),iconLeft:jsxRuntime.jsx(icons.ChevronLeftDuo,{}),variant:o,size:a},t),{children:t.children||"Anterior"}))}function Br(r){var s=r,{className:e,size:a="md",variant:o="regular-basic"}=s,t=n(s,["className","size","variant"]);return jsxRuntime.jsx(se,c(l({"aria-label":"Go to next page",className:d("",e),variant:o,iconRight:jsxRuntime.jsx(icons.ChevronRightDuo,{}),size:a},t),{children:t.children||"Pr\xF3ximo"}))}function Fr(t){var r=t,{className:e,size:a="md"}=r,o=n(r,["className","size"]);return jsxRuntime.jsx("span",c(l({"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:jsxRuntime.jsx(icons.MoreHorizontal,{className:"h-4 w-4"})}))}function Nr(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 s=1;s<=o+1;s++)t.push(s);o+1<a&&t.push(-1,a);}else if(e>=a-r){t.push(1),a-o>1&&t.push(-1);for(let s=a-o;s<=a;s++)t.push(s);}else {t.push(1,-1);for(let s=e-r;s<=e+r;s++)t.push(s);t.push(-1,a);}}return t}function Gn({currentPage:e,totalPages:a,maxVisibleItems:o,onPageChange:t,itemsPerPage:r,totalItems:s,className:i,responsive:u=true,size:f="md"}){let[p,m]=D.useState(()=>typeof window=="undefined"?false:window.innerWidth<=parseInt(Je.tablet));D.useEffect(()=>{if(typeof window=="undefined"||!u)return;let b=parseInt(Je.tablet),y=()=>{m(window.innerWidth<=b);};return window.addEventListener("resize",y),y(),()=>window.removeEventListener("resize",y)},[u]);let x=typeof o=="number"?o:u&&p?0:2,h=u&&p,v=()=>Nr(e,a,x);return jsxRuntime.jsxs(Ar,{className:d("",i),children:[r!==void 0&&!h?jsxRuntime.jsx(Ht,{count:r,label:"itens"}):jsxRuntime.jsx("div",{}),jsxRuntime.jsxs(Rr,{children:[jsxRuntime.jsx(Xa,{children:jsxRuntime.jsx(Dr,{onClick:()=>t(Math.max(1,e-1)),disabled:e===1,size:f})}),v().map((b,y)=>jsxRuntime.jsx(Xa,{children:b===-1?jsxRuntime.jsx(Fr,{size:f}):jsxRuntime.jsx(Mr,{onClick:()=>t(b),isActive:b===e,size:f,children:b})},y)),jsxRuntime.jsx(Xa,{children:jsxRuntime.jsx(Br,{onClick:()=>t(Math.min(a,e+1)),disabled:e===a,size:f})})]}),s!==void 0&&!h?jsxRuntime.jsx(Ht,{count:s,label:"total"}):jsxRuntime.jsx("div",{})]})}var Kn={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"},Or=classVarianceAuthority.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-4 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 data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis [&:disabled_svg]:fill-gray-background-fill-muted"},size:{sm:"size-4",md:"size-5",lg:"size-6"}},defaultVariants:{variant:"regular",size:"md"}});function Zn(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.RadioGroup.Root,l({"data-slot":"radio-group",className:d("grid gap-3",e)},a))}function jn(r){var s=r,{className:e,size:a,variant:o}=s,t=n(s,["className","size","variant"]);return jsxRuntime.jsx(radixUi.RadioGroup.Item,c(l({"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",Or({size:a,variant:o}),e)},t),{children:jsxRuntime.jsx(radixUi.RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:jsxRuntime.jsx(icons.Circle,{className:d("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 fill-surface-card",Kn[a||"md"])})})}))}function Be(o){var t=o,{delayDuration:e=0}=t,a=n(t,["delayDuration"]);return jsxRuntime.jsx(radixUi.Tooltip.Provider,l({"data-slot":"tooltip-provider",delayDuration:e},a))}function Fe(a){var e=n(a,[]);return jsxRuntime.jsx(Be,{children:jsxRuntime.jsx(radixUi.Tooltip.Root,l({"data-slot":"tooltip"},e))})}function Ne(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Tooltip.Trigger,l({"data-slot":"tooltip-trigger"},e))}function Oe(r){var s=r,{className:e,sideOffset:a=0,children:o}=s,t=n(s,["className","sideOffset","children"]);return jsxRuntime.jsx(radixUi.Tooltip.Portal,{children:jsxRuntime.jsxs(radixUi.Tooltip.Content,c(l({"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,jsxRuntime.jsx(radixUi.Tooltip.Arrow,{className:"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-surface-elevated fill-surface-elevated"})]}))})}function oi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",{className:"w-full overflow-x-auto rounded-lg border border-gray-stroke-muted",children:jsxRuntime.jsx("table",c(l({className:d("w-full border-collapse text-left",a)},o),{children:e}))})}function ri(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("thead",c(l({className:d("h-11 border-b border-gray-stroke-muted bg-surface-card",a)},o),{children:jsxRuntime.jsx("tr",{children:e})}))}function si(s){var i=s,{children:e,className:a,tooltip:o,highlight:t}=i,r=n(i,["children","className","tooltip","highlight"]);return jsxRuntime.jsx("th",c(l({className:d("text-ellipsis whitespace-nowrap px-5 text-sm font-semibold text-gray-foreground first:pr-0",a)},r),{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{className:d(t&&"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary-foreground-onfill"),children:e}),o&&jsxRuntime.jsx(Be,{children:jsxRuntime.jsxs(Fe,{children:[jsxRuntime.jsx(Ne,{asChild:true,children:jsxRuntime.jsx(icons.Info,{className:"size-4"})}),jsxRuntime.jsx(Oe,{children:o})]})})]})}))}function li(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tbody",c(l({className:d("bg-surface-card",a)},o),{children:e}))}function di(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("tr",c(l({className:d("w-full border-t border-solid border-gray-stroke-muted first:border-t-0",a)},o),{children:e}))}function ni(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",{className:"py-4 pl-5 align-middle",children:jsxRuntime.jsx("div",c(l({className:d("flex size-7 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-full bg-primary-foreground text-sm font-semibold text-primary-foreground-onfill",a)},o),{children:e}))})}function ii(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:d("flex items-center gap-5",a),children:jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-5 pr-8",children:e})})}))}function ui(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",c(l({className:d("flex shrink-0 flex-col items-start whitespace-nowrap text-gray-foreground",a)},o),{children:e}))}function fi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",c(l({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-xxs font-medium leading-xxs",a)},o),{children:e}))}function ci(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("span",c(l({className:d("shrink-0 overflow-hidden text-ellipsis font-sans text-sm font-semibold leading-5",a)},o),{children:e}))}function pi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx($e,c(l({className:d("bg-gradient-to-r from-cm-24 to-secondary-24 text-primary-foreground",a)},o),{icon:jsxRuntime.jsx(icons.CheckboxFill,{className:"text-primary-foreground"}),children:e}))}function mi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},o),{children:jsxRuntime.jsx("div",{className:d("flex flex-col items-start gap-2",a),children:e})}))}function gi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("p",c(l({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 xi(t){var r=t,{children:e,className:a}=r,o=n(r,["children","className"]);return jsxRuntime.jsx("div",c(l({className:d("avatar-group flex shrink-0 items-center gap-2",a)},o),{children:e}))}function hi(i){var u=i,{src:e,alt:a,fallback:o="?",className:t,tooltip:r}=u,s=n(u,["src","alt","fallback","className","tooltip"]);let f=jsxRuntime.jsxs(Ct,c(l({size:"sm",className:d("ring-2 ring-background",t)},s),{children:[jsxRuntime.jsx(vt,{src:e,alt:a}),jsxRuntime.jsx(It,{children:o})]}));return r?jsxRuntime.jsx(Be,{children:jsxRuntime.jsxs(Fe,{children:[jsxRuntime.jsx(Ne,{asChild:true,children:f}),jsxRuntime.jsx(Oe,{children:r})]})}):f}function bi(r){var s=r,{children:e,className:a,icon:o}=s,t=n(s,["children","className","icon"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx($e,{variant:"regular-soft",className:a,icon:o,children:e})}))}function Li({className:e,percentage:a}){let o=t=>t>=0&&t<=49||t>=50&&t<=80||t>=81&&t<=100?"bg-primary-stroke":"bg-gray-100";return jsxRuntime.jsx("div",{className:d("relative h-0.5 w-full overflow-hidden rounded-pill bg-gray-100",e),children:jsxRuntime.jsx("div",{className:d("absolute inset-y-0 left-0 rounded-pill transition-all duration-300",o(a)),style:{width:`${a}%`}})})}function Ci(r){var s=r,{questions:e,answered:a,className:o}=s,t=n(s,["questions","answered","className"]);let i=a>0?a/e*100:0;return i===0?jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:"flex size-4 items-center justify-center rounded-full bg-gray-background-soft",children:jsxRuntime.jsx(icons.RemoveMinus,{className:"size-3 text-gray-foreground",strokeWidth:2.6})}),jsxRuntime.jsx("span",{className:"whitespace-nowrap font-medium text-gray-foreground-muted",children:"N\xE3o iniciado"})]})})})):jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsxs("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",o),children:[jsxRuntime.jsx("div",{className:"flex shrink-0 items-center gap-0.5 text-xs leading-4",children:jsxRuntime.jsxs("span",{className:"relative shrink-0 whitespace-nowrap font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("span",{className:"font-semibold text-gray-foreground",children:a})," ",a>1?"respondidas":"respondida"]})}),jsxRuntime.jsx(Li,{percentage:i})]})}))}var vi={notStarted:{icon:icons.RemoveMinus,bgColor:"bg-gray-background-soft",iconColor:"text-gray-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"N\xE3o iniciado",subtitle:()=>""},minNotReached:{icon:icons.Warning,bgColor:"bg-feedback-warning-background-soft",iconColor:"text-feedback-warning-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:()=>"M\xEDnimo n\xE3o atingido",subtitle:({remainingQuestions:e})=>e>1?`Faltam ${e} quest\xF5es`:`Falta ${e} quest\xE3o`},dominated:{icon:icons.Check,bgColor:"bg-feedback-success-background-soft",iconColor:"text-feedback-success-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({percentage:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`},notDominated:{icon:icons.CloseMd,bgColor:"bg-feedback-error-background-soft",iconColor:"text-feedback-error-foreground",titleClassName:"font-medium text-gray-foreground-muted",title:({percentage:e})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"font-semibold text-gray-foreground",children:[Math.round(e),"%"]})," ","de ",e>1?"acertos":"acerto"]}),subtitle:({correct:e,answered:a})=>`${e} de ${a} acertos`}};function Ii(e,a,o){return [[e,"notStarted"],[a,"minNotReached"],[o>=80,"dominated"],[true,"notDominated"]].find(([r])=>r)[1]}function ki(s){var i=s,{questions:e,answered:a,correct:o,className:t}=i,r=n(i,["questions","answered","correct","className"]);let u=a>0?o/a*100:0,f=a===0,p=a<e,m=e-a,x=Ii(f,p,u),{icon:h,bgColor:v,iconColor:b,titleClassName:y,title:M,subtitle:H}=vi[x],I={percentage:u,correct:o,answered:a,remainingQuestions:m};return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},r),{children:jsxRuntime.jsx("div",{className:d("flex min-w-[140px] flex-col items-start justify-center gap-2",t),children:jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-center gap-2 text-xs font-medium text-gray-foreground-muted",children:[jsxRuntime.jsx("div",{className:d("flex size-4 items-center justify-center rounded-full",v),children:jsxRuntime.jsx(h,{className:d("size-3",b),strokeWidth:2.6})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start justify-center",children:[jsxRuntime.jsx("span",{className:d("whitespace-nowrap",y),children:M(I)}),jsxRuntime.jsx("span",{className:"whitespace-nowrap text-xxs font-semibold text-gray-foreground-muted",children:H(I)})]})]})})}))}function Si(r){var s=r,{children:e,className:a,onClick:o}=s,t=n(s,["children","className","onClick"]);return jsxRuntime.jsx("td",c(l({className:"px-5 py-4 align-middle"},t),{children:jsxRuntime.jsx(se,{variant:"regular-soft",size:"sm",iconRight:jsxRuntime.jsx(icons.ArrowRightMd,{className:"size-4"}),onClick:o,className:a,children:e})}))}var zr=classVarianceAuthority.cva("transition-all duration-150",{variants:{size:{sm:"size-6",md:"size-7",lg:"size-8"}},defaultVariants:{size:"md"}}),Pi=classVarianceAuthority.cva("",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"}},defaultVariants:{size:"md"}}),Ur=classVarianceAuthority.cva("inline-flex items-center justify-center",{variants:{size:{sm:"size-7",md:"size-8",lg:"size-9"},readOnly:{true:"cursor-default",false:"cursor-pointer"}},defaultVariants:{size:"md",readOnly:false}}),Vr=classVarianceAuthority.cva("flex w-full min-w-0 justify-between text-gray-foreground font-medium gap-2",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"md"}});function wi({state:e,className:a}){let o=ue(),t=D.useRef(`rating-${Math.random().toString(36).slice(2)}`),r=o||t.current;return e==="full"?jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",className:"fill-feedback-warning-background-soft stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}):e==="half"?jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsxRuntime.jsx("stop",{offset:"50%",className:"[stop-color:var(--color-feedback-warning-background-soft)]",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"50%",stopColor:"transparent",stopOpacity:"0"})]})}),jsxRuntime.jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:`url(#${r})`,className:"stroke-feedback-warning-stroke hover:stroke-feedback-warning-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}):jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",fill:"none",className:a,children:jsxRuntime.jsx("path",{d:"M0.888855 9.61676C0.523397 9.27879 0.721914 8.66782 1.21623 8.60921L8.2204 7.77843C8.42186 7.75455 8.59685 7.62803 8.68182 7.44381L11.6361 1.03906C11.8446 0.587053 12.4872 0.586967 12.6957 1.03898L15.6499 7.44368C15.7349 7.6279 15.9087 7.75475 16.1102 7.77864L23.1148 8.60921C23.6091 8.66782 23.807 9.27897 23.4416 9.61694L18.2638 14.4061C18.1148 14.5438 18.0485 14.7488 18.0881 14.9478L19.4622 21.8658C19.5593 22.354 19.0396 22.7323 18.6053 22.4892L12.4507 19.0432C12.2737 18.9441 12.0586 18.9446 11.8816 19.0437L5.72641 22.4883C5.29205 22.7314 4.7715 22.354 4.86851 21.8658L6.2429 14.9483C6.28244 14.7493 6.21629 14.5438 6.06735 14.406L0.888855 9.61676Z",fill:"transparent",className:"stroke-gray-stroke-emphasis",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ti(e,a){let o=e+1;return a>=o?"full":a>=o-.5?"half":"empty"}function Ai({value:e,onChange:a,maxStars:o=5,readOnly:t=false,labels:r,size:s="md",className:i,classNameContainer:u,classNameLabels:f}){let[p,m]=D.useState(e!=null?e:0),[x,h]=D.useState(null),v=e!==void 0,b=v?e:p,y=I=>{if(t)return;let k=I+1;v||m(k),a==null||a(k);},M=I=>{t||h(I);},H=()=>{t||h(null);};return jsxRuntime.jsxs("div",{"data-slot":"rating",className:d("inline-flex w-fit flex-col gap-2",i),children:[jsxRuntime.jsx("div",{className:d("inline-flex flex-row gap-1",u),onMouseLeave:H,children:Array.from({length:o},(I,k)=>{let z=x!==null,q=z&&k<=x,E=x===k,O=z?q?"full":"empty":Ti(k,b);return jsxRuntime.jsx("button",{type:"button",disabled:t,onClick:()=>y(k),onMouseEnter:()=>M(k),className:Ur({size:s,readOnly:t}),"aria-label":`Rate ${k+1} out of ${o}`,children:jsxRuntime.jsx(wi,{state:O,className:E&&!t?Pi({size:s}):zr({size:s})})},k)})}),r&&r.length===2&&jsxRuntime.jsxs("div",{className:d(Vr({size:s}),f),children:[jsxRuntime.jsx("span",{className:"truncate",children:r[0]}),jsxRuntime.jsx("span",{className:"truncate text-right",children:r[1]})]})]})}function Ut(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.ScrollArea.Root,c(l({"data-slot":"scroll-area",className:d("relative",e)},o),{children:[jsxRuntime.jsx(radixUi.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit]",children:a}),jsxRuntime.jsx(Ca,{}),jsxRuntime.jsx(Ca,{orientation:"horizontal"}),jsxRuntime.jsx(radixUi.ScrollArea.Corner,{})]}))}function Ca(t){var r=t,{className:e,orientation:a="vertical"}=r,o=n(r,["className","orientation"]);return jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaScrollbar,c(l({"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:jsxRuntime.jsx(radixUi.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-gray-stroke-muted"})}))}var Vt=D.createContext({invalid:false});function Fi(o){var t=o,{invalid:e=false}=t,a=n(t,["invalid"]);return jsxRuntime.jsx(Vt.Provider,{value:{invalid:e},children:jsxRuntime.jsx(radixUi.Select.Root,l({"data-slot":"select"},a))})}function Ni(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({className:d("group relative flex flex-col gap-2",e),"data-slot":"select-wrapper"},a))}function Oi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsx("label",c(l({className:d("pointer-events-none absolute start-3 top-0 origin-left -translate-y-1/2 bg-surface-card px-1 text-xs font-medium text-gray-foreground transition-all duration-200 ease-out","group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:start-4 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:top-1/2 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:px-0 group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-md group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:font-normal group-has-[[data-slot=select-trigger][data-placeholder]:not([data-state=open])]:text-gray-foreground",e),"data-slot":"select-label"},o),{children:a}))}function Ei(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Group,l({"data-slot":"select-group"},e))}function qi(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Select.Value,l({"data-slot":"select-value"},e))}function Hi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{invalid:s}=D.useContext(Vt);return jsxRuntime.jsxs(radixUi.Select.Trigger,c(l({className:d("shadow-xs flex h-12 max-h-12 w-full items-center justify-between gap-2 rounded-md border-2 border-gray-stroke-muted bg-surface-card px-4 py-3 text-left text-md text-gray-foreground outline-none transition-[color,box-shadow] hover:border-gray-stroke-emphasis hover:ring-[3px] hover:ring-state-focus disabled:cursor-default disabled:bg-gray-background-soft-muted disabled:hover:border-gray-stroke-muted disabled:hover:ring-0 aria-[invalid]:border-feedback-error-stroke aria-[invalid]:hover:ring-[3px] aria-[invalid]:hover:ring-state-error data-[placeholder]:text-gray-foreground-emphasis *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 disabled:data-[placeholder]:text-gray-foreground-muted [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0",!s&&"[&:not([data-placeholder])]:border-gray-stroke-emphasis","group-has-[[data-slot=select-label]]:h-14 group-has-[[data-slot=select-label]]:py-3 group-has-[[data-slot=select-label]]:data-[placeholder]:text-transparent",e),"data-slot":"select-trigger","aria-invalid":s||void 0},o),{children:[a,jsxRuntime.jsx(radixUi.Select.Icon,{asChild:true,children:jsxRuntime.jsx(icons.ChevronDown,{className:d("shrink-0 text-gray-foreground"),size:24,strokeWidth:1.6})})]}))}function zi(r){var s=r,{className:e,children:a,position:o="popper"}=s,t=n(s,["className","children","position"]);return jsxRuntime.jsx(radixUi.Select.Portal,{children:jsxRuntime.jsxs(radixUi.Select.Content,c(l({className:d("relative z-50 max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-32 overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-elevated text-gray-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 [&_[role=group]]:py-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),"data-slot":"select-content",position:o},t),{children:[jsxRuntime.jsx(Wr,{}),jsxRuntime.jsx(radixUi.Select.Viewport,{className:d("p-2",o==="popper"&&"h-[var(--radix-select-trigger-height)]"),children:a}),jsxRuntime.jsx(Xr,{})]}))})}function Ui(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Label,l({className:d("px-2 py-2 text-xs font-medium text-gray-foreground-muted",e),"data-slot":"select-header"},a))}function Vi(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);return jsxRuntime.jsxs(radixUi.Select.Item,c(l({className:d("data-disabled:pointer-events-none relative flex w-full cursor-default select-none items-center rounded px-2 py-2.5 text-base font-medium text-gray-foreground outline-none hover:cursor-pointer hover:bg-secondary-background-soft-emphasis",e),"data-slot":"select-item"},o),{children:[jsxRuntime.jsx(radixUi.Select.ItemText,{children:a}),jsxRuntime.jsx("span",{className:"absolute end-2 flex size-3.5 items-center justify-center",children:jsxRuntime.jsx(radixUi.Select.ItemIndicator,{children:jsxRuntime.jsx(icons.Check,{size:20,strokeWidth:2,className:"text-secondary-foreground"})})})]}))}function _i(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.Separator,l({className:d("-mx-1 my-1 h-px bg-gray-stroke-muted",e),"data-slot":"select-separator"},a))}function Wr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollUpButton,c(l({className:d("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button"},a),{children:jsxRuntime.jsx(icons.ChevronUp,{size:16,strokeWidth:1.6,className:"text-gray-foreground"})}))}function Xr(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Select.ScrollDownButton,c(l({className:d("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button"},a),{children:jsxRuntime.jsx(icons.ChevronDown,{size:24,strokeWidth:1.6,className:"text-gray-foreground"})}))}function Gi(o){var t=o,{className:e}=t,a=n(t,["className"]);let{invalid:r}=D.useContext(Vt);return jsxRuntime.jsx("span",l({className:d("-mt-1 text-xs",r?"text-feedback-error-foreground":"text-gray-foreground",e),"data-slot":"select-text"},a))}var Kr=D.createContext(null);function Zi(r){var s=r,{className:e,size:a="md",children:o}=s,t=n(s,["className","size","children"]);return jsxRuntime.jsx(Kr.Provider,{value:{size:a},children:jsxRuntime.jsx(radixUi.Tabs.Root,c(l({"data-slot":"tabs",className:d("flex flex-col gap-2",e)},t),{children:o}))})}function ji(t){var r=t,{className:e,containerClassName:a}=r,o=n(r,["className","containerClassName"]);return jsxRuntime.jsxs(Ut,{className:d("[&_[data-slot=scroll-area-scrollbar][data-orientation=horizontal]]:h-1",a),children:[jsxRuntime.jsx(radixUi.Tabs.List,l({"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)),jsxRuntime.jsx(Ca,{orientation:"horizontal"})]})}var Zr=classVarianceAuthority.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 Qi(i){var u=i,{className:e,icon:a,badge:o,badgeVariant:t,children:r}=u,s=n(u,["className","icon","badge","badgeVariant","children"]);var x;let f=h=>h!=null&&h!==0&&h!==""&&h!=="0"&&!s.disabled,p=D.useContext(Kr),m=(x=p==null?void 0:p.size)!=null?x:"md";return jsxRuntime.jsxs(radixUi.Tabs.Trigger,c(l({"data-slot":"tabs-trigger",className:d(Zr({size:m,className:e}))},s),{children:[a,r&&jsxRuntime.jsxs("span",{className:"inline-grid [grid-template-areas:'stack']",children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:"invisible font-semibold [grid-area:stack]",children:r}),jsxRuntime.jsx("span",{className:"font-medium [grid-area:stack] group-data-[state=active]:font-semibold",children:r})]}),f(o)&&jsxRuntime.jsx(Ae,{size:m,variant:t,children:String(o)})]}))}function $i(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Tabs.Content,l({"data-slot":"tabs-content",className:d("flex-1 outline-none",e)},a))}var jr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ji=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),Wt=e=>{let a=Ji(e);return a.charAt(0).toUpperCase()+a.slice(1)},Ja=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),Qr=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var $r={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 Yr=D.forwardRef((p,f)=>{var m=p,{color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:r="",children:s,iconNode:i}=m,u=n(m,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return D.createElement("svg",l(l(c(l({ref:f},$r),{width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:Ja("lucide",r)}),!s&&!Qr(u)&&{"aria-hidden":"true"}),u),[...i.map(([x,h])=>D.createElement(x,h)),...Array.isArray(s)?s:[s]])});var es=(e,a)=>{let o=D.forwardRef((i,s)=>{var u=i,{className:t}=u,r=n(u,["className"]);return D.createElement(Yr,l({ref:s,iconNode:a,className:Ja(`lucide-${jr(Wt(e))}`,`lucide-${e}`,t)},r))});return o.displayName=Wt(e),o};var tu=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],va=es("x",tu);function Kt(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Root,l({"data-slot":"sheet"},e))}function ou(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Trigger,l({"data-slot":"sheet-trigger"},e))}function ru(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Close,l({"data-slot":"sheet-close"},e))}function su(a){var e=n(a,[]);return jsxRuntime.jsx(radixUi.Dialog.Portal,l({"data-slot":"sheet-portal"},e))}function lu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Overlay,l({"data-slot":"sheet-overlay",className:d("bg-black/50 fixed inset-0 z-50 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 Zt(r){var s=r,{className:e,children:a,side:o="right"}=s,t=n(s,["className","children","side"]);return jsxRuntime.jsxs(su,{children:[jsxRuntime.jsx(lu,{}),jsxRuntime.jsxs(radixUi.Dialog.Content,c(l({"data-slot":"sheet-content",className:d("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",o==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",o==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",o==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",o==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e)},t),{children:[a,jsxRuntime.jsxs(radixUi.Dialog.Close,{className:"rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsxRuntime.jsx(va,{className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function du(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sheet-header",className:d("flex flex-col gap-1.5 p-4",e)},a))}function nu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sheet-footer",className:d("mt-auto flex flex-col gap-2 p-4",e)},a))}function iu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Title,l({"data-slot":"sheet-title",className:d("font-semibold text-foreground",e)},a))}function uu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Dialog.Description,l({"data-slot":"sheet-description",className:d("text-muted-foreground text-sm",e)},a))}function Ya(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"skeleton",className:d("animate-pulse rounded-md bg-gray-150",e)},a))}var Cu="sidebar_state",vu=3600*24*7,Iu="b",rs=D.createContext(null);function ta(){let e=D.useContext(rs);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function ku(i){var u=i,{defaultOpen:e=true,open:a,onOpenChange:o,className:t,children:r}=u,s=n(u,["defaultOpen","open","onOpenChange","className","children"]);let f=ba(),[p,m]=D.useState(false),[x,h]=D.useState(e),v=a!=null?a:x,b=D.useCallback(I=>{let k=typeof I=="function"?I(v):I;o?o(k):h(k),document.cookie=`${Cu}=${k}; path=/; max-age=${vu}`;},[o,v]),y=D.useCallback(()=>f?m(I=>!I):b(I=>!I),[f,b,m]);D.useEffect(()=>{let I=k=>{k.key===Iu&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),y());};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[y]);let M=v?"expanded":"collapsed",H=D.useMemo(()=>({state:M,open:v,setOpen:b,isMobile:f,openMobile:p,setOpenMobile:m,toggleSidebar:y}),[M,v,b,f,p,m,y]);return jsxRuntime.jsx(rs.Provider,{value:H,children:jsxRuntime.jsx(Be,{delayDuration:0,children:jsxRuntime.jsx("div",c(l({"data-slot":"sidebar-wrapper",className:d("group/sidebar-wrapper has-data-[variant=inset]:bg-surface-navigation flex min-h-svh w-full",t)},s),{children:r}))})})}function Su(u){var f=u,{side:e="left",variant:a="sidebar",collapsible:o="offcanvas",className:t,containerClassName:r,children:s}=f,i=n(f,["side","variant","collapsible","className","containerClassName","children"]);let{isMobile:p,state:m,openMobile:x,setOpenMobile:h}=ta();return o==="none"?jsxRuntime.jsx("div",c(l({"data-slot":"sidebar",className:d("flex h-full w-[var(--sidebar-width)] flex-col bg-surface-navigation text-gray-foreground",t)},i),{children:s})):p?jsxRuntime.jsx(Kt,c(l({open:x,onOpenChange:h},i),{children:jsxRuntime.jsx(Zt,{"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:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:s})})})):jsxRuntime.jsxs("div",{className:d("group peer hidden text-gray-foreground md:block",t),"data-state":m,"data-collapsible":m==="collapsed"?o:"","data-variant":a,"data-side":e,"data-slot":"sidebar",children:[jsxRuntime.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)]")}),jsxRuntime.jsx("div",c(l({"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)},i),{children:jsxRuntime.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:s})}))]})}function yu(f){var p=f,{className:e,onClick:a,sizeIcon:o="size-5",icon:t=jsxRuntime.jsx(icons.HamburgerMd,{className:o}),showTooltip:r=false,tooltipContent:s,enableHover:i=false}=p,u=n(p,["className","onClick","sizeIcon","icon","showTooltip","tooltipContent","enableHover"]);let{toggleSidebar:m,open:x,isMobile:h}=ta(),[v,b]=D.useState(false),M=s||{open:"Esconder",closed:"Mostrar"},H=()=>i&&v?x?jsxRuntime.jsx(icons.ChevronLeftMd,{className:o}):jsxRuntime.jsx(icons.ChevronRightMd,{className:o}):t,I=jsxRuntime.jsxs("button",c(l({"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:k=>{a==null||a(k),m();},onMouseEnter:!h&&i?()=>b(true):void 0,onMouseLeave:!h&&i?()=>b(false):void 0},u),{children:[H(),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}));return !r||h?I:jsxRuntime.jsxs(Fe,{children:[jsxRuntime.jsx(Ne,{asChild:true,children:I}),jsxRuntime.jsx(Oe,{side:"right",align:"center",children:x?M.open:M.closed})]})}function Pu(o){var t=o,{className:e}=t,a=n(t,["className"]);let{toggleSidebar:r}=ta();return jsxRuntime.jsx("button",l({"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 wu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("main",l({"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 Tu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(qt,l({"data-slot":"sidebar-input","data-sidebar":"input",className:d("bg-bg-surface-navigation h-8 w-full shadow-none",e)},a))}function Au(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sidebar-header","data-sidebar":"header",className:d("flex flex-col gap-0.5 px-4 pt-3",e)},a))}function Ru(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"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 Mu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(Ke,l({"data-slot":"sidebar-separator","data-sidebar":"separator",className:d("mx-2 w-auto bg-gray-stroke-muted",e)},a))}function Du(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"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 Bu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"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 Fu(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let s=a?radixUi.Slot.Slot:"div";return jsxRuntime.jsx(s,l({"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 Nu(t){var r=t,{className:e,asChild:a=false}=r,o=n(r,["className","asChild"]);let s=a?radixUi.Slot.Slot:"button";return jsxRuntime.jsx(s,l({"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 Ou(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:d("w-full text-sm",e)},a))}function Eu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",l({"data-slot":"sidebar-menu","data-sidebar":"menu",className:d("flex w-full min-w-0 flex-col gap-1",e)},a))}function qu(r){var s=r,{className:e,isActive:a,children:o}=s,t=n(s,["className","isActive","children"]);return jsxRuntime.jsxs("li",c(l({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:d("group/menu-item relative hover:cursor-pointer",e)},t),{children:[a&&jsxRuntime.jsx("span",{className:"absolute -left-4 top-0 h-full w-0.5 bg-secondary-stroke-emphasis","aria-hidden":"true"}),o]}))}var Hu=classVarianceAuthority.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 zu(u){var f=u,{asChild:e=false,isActive:a=false,variant:o="default",size:t="md",tooltip:r,className:s}=f,i=n(f,["asChild","isActive","variant","size","tooltip","className"]);let p=e?radixUi.Slot.Slot:"button",{isMobile:m,state:x}=ta(),h=jsxRuntime.jsx(p,l({"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":t,"data-active":a,className:d(Hu({variant:o,size:t}),s)},i));return r?(typeof r=="string"&&(r={children:r}),jsxRuntime.jsxs(Fe,{children:[jsxRuntime.jsx(Ne,{asChild:true,children:h}),jsxRuntime.jsx(Oe,l({side:"right",align:"center",hidden:x!=="collapsed"||m},r))]})):h}function Uu(r){var s=r,{className:e,asChild:a=false,showOnHover:o=false}=s,t=n(s,["className","asChild","showOnHover"]);let i=a?radixUi.Slot.Slot:"button";return jsxRuntime.jsx(i,l({"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 Vu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"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 _u(t){var r=t,{className:e,showIcon:a=false}=r,o=n(r,["className","showIcon"]);let s=D.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",c(l({"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&&jsxRuntime.jsx(Ya,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntime.jsx(Ya,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]}))}function Gu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("ul",l({"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 Wu(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("li",l({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:d("group/menu-sub-item relative",e)},a))}function Xu({icon:e,title:a}){let{state:o,isMobile:t}=ta();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[D.isValidElement(e)?D.cloneElement(e,{strokeWidth:1.8}):e,jsxRuntime.jsx("span",{className:d("whitespace-nowrap",o==="collapsed"&&"opacity-0",t&&"opacity-100"),children:a})]})}function Ku(){return jsxRuntime.jsx("div",{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90",children:jsxRuntime.jsx(icons.ChevronRightMd,{size:20,strokeWidth:1.5})})}function Zu(s){var i=s,{asChild:e=false,size:a="md",isActive:o=false,className:t}=i,r=n(i,["asChild","size","isActive","className"]);let u=e?radixUi.Slot.Slot:"a";return jsxRuntime.jsx(u,l({"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 Ju={sm:"size-2",md:"size-3",lg:"size-4"},ls={sm:"[&_svg]:size-2",md:"[&_svg]:size-3",lg:"[&_svg]:size-3.5"},Yu={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]"},ds=classVarianceAuthority.cva("peer inline-flex shrink-0 items-center rounded-pill outline-none transition-all disabled:pointer-events-none focus:outline-0",{variants:{variant:{regular:"border-2 border-gray-stroke-muted 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-4 data-[state=unchecked]:enabled:hover:ring-state-hover data-[state=checked]:enabled:hover:ring-state-active data-[state=unchecked]:enabled:hover:border-gray-stroke data-[state=checked]:enabled:hover:bg-primary-background-fill-emphasis"},size:{sm:"h-4 w-6",md:"h-5 w-8",lg:"h-6 w-10"}},defaultVariants:{variant:"regular",size:"md"}});function ef(f){var p=f,{className:e,size:a,variant:o,checkedIcon:t,uncheckedIcon:r,checked:s,defaultChecked:i}=p,u=n(p,["className","size","variant","checkedIcon","uncheckedIcon","checked","defaultChecked"]);let[m,x]=D.useState(i||false),h=s!==void 0,v=h?s:m,b=t||r;return jsxRuntime.jsx(radixUi.Switch.Root,c(l({"data-slot":"switch",className:d("group",ds({size:a,variant:o}),e),checked:s,defaultChecked:i,onCheckedChange:y=>{var M;h||x(y),(M=u.onCheckedChange)==null||M.call(u,y);}},u),{children:jsxRuntime.jsx(radixUi.Switch.Thumb,{"data-slot":"switch-thumb",className:d("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 data-[state=unchecked]:group-hover:bg-gray-foreground data-[state=unchecked]:group-data-[disabled]:group-hover:bg-gray-foreground-muted",b&&"!bg-transparent data-[disabled]:!bg-transparent",Ju[a||"md"],Yu[a||"md"]),children:b&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[v&&t&&jsxRuntime.jsx("span",{className:d("flex items-center justify-center text-primary-foreground-onfill group-data-[disabled]:text-gray-300",ls[a||"md"]),children:t}),!v&&r&&jsxRuntime.jsx("span",{className:d("flex items-center justify-center text-gray-foreground group-data-[disabled]:text-gray-300",ls[a||"md"]),children:r})]})})}))}var ns=D.createContext({});function lf({children:e,value:a,onValueChange:o,open:t,defaultOpen:r,onOpenChange:s}){let[i,u]=D.useState(a||""),f={value:a||i,onValueChange:o||u};return jsxRuntime.jsx(ns.Provider,{value:f,children:jsxRuntime.jsx(Mt,{open:t,defaultOpen:r,onOpenChange:s,children:e})})}function df({children:e,asChild:a=true,className:o}){return jsxRuntime.jsx(Dt,{className:o,asChild:a,children:e})}function nf({children:e,align:a="center",side:o="right",className:t}){return jsxRuntime.jsx(Bt,{className:t,align:a,side:o,children:e})}function uf({children:e,label:a}){let{value:o,onValueChange:t}=D.useContext(ns);return a?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Nt,{children:a}),jsxRuntime.jsx(Ga,{value:o,onValueChange:t,children:e})]}):jsxRuntime.jsx(Ga,{value:o,onValueChange:t,children:e})}function ff({children:e,value:a,onClick:o,icon:t}){let r=()=>{o&&o();};return a?jsxRuntime.jsxs(Ft,{value:a,onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]}):jsxRuntime.jsxs(_a,{onClick:r,children:[typeof t=="string"?jsxRuntime.jsx("img",{src:t,alt:"",width:20,height:14}):t,e]})}function cf({children:e,onClick:a,icon:o}){return jsxRuntime.jsxs(_a,{onClick:a,children:[o,e]})}function pf(){return jsxRuntime.jsx(Ot,{})}var fs=D.createContext(null),Lf=150,is=16,Cf="w-8";function rt(){let e=D.useContext(fs);if(!e)throw new Error("useTabsContext must be used within a Tabs component.");return e}function vf(e,a){let o=D.useRef(null);return D.useEffect(()=>()=>{o.current&&clearTimeout(o.current);},[]),D.useCallback(((...t)=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(...t),a);}),[e,a])}var cs=classVarianceAuthority.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"}}),ps=classVarianceAuthority.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"}}),If=classVarianceAuthority.cva("relative min-w-0 max-w-full",{variants:{variant:{standalone:"",header:"px-3.5 sm:px-6 lg:px-8"}},defaultVariants:{variant:"standalone"}}),us=classVarianceAuthority.cva(["pointer-events-none absolute top-0 z-10 h-full transition-opacity duration-200",Cf],{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"}}),ms=classVarianceAuthority.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 kf(i){var u=i,{className:e,variant:a="standalone",size:o="md",responsive:t=true,children:r}=u,s=n(u,["className","variant","size","responsive","children"]);let[f,p]=D.useState(o),m=D.useCallback(()=>{if(typeof window=="undefined")return;let h=parseInt(Je.tablet),v=parseInt(Je.mobile),b=window.innerWidth;b<=v||b<=h?p("md"):p(o);},[o]),x=vf(m,Lf);return D.useEffect(()=>{if(typeof window=="undefined"||!t){p(o);return}return m(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[t,o,m,x]),jsxRuntime.jsx(fs.Provider,{value:{variant:a,size:o,responsiveSize:f},children:jsxRuntime.jsx(radixUi.Tabs.Root,c(l({"data-slot":"tabs","data-variant":a,"data-size":f,className:d("flex w-full max-w-full flex-col overflow-hidden",e)},s),{children:r}))})}function Sf(t){var r=t,{className:e,children:a}=r,o=n(r,["className","children"]);let{variant:s,responsiveSize:i}=rt(),u=D.useRef(null),f=D.useRef(null),[p,m]=D.useState(false),[x,h]=D.useState(false),[v,b]=D.useState(null),y=D.useCallback(()=>{let I=u.current;if(!I)return;let{scrollLeft:k,scrollWidth:z,clientWidth:q}=I,E=z>q;m(E&&k>0),h(E&&k<z-q-1);},[]),M=D.useCallback(()=>{let I=f.current;if(!I)return;let k=I.querySelector('[data-state="active"]');if(k){let z=I.getBoundingClientRect(),q=k.getBoundingClientRect();b({left:q.left-z.left,width:q.width});}},[]),H=D.useCallback(()=>{let I=u.current,k=f.current;if(!I||!k)return;let z=k.querySelector('[data-state="active"]');if(z){let q=I.getBoundingClientRect(),E=z.getBoundingClientRect();E.left<q.left?I.scrollBy({left:E.left-q.left-is,behavior:"smooth"}):E.right>q.right&&I.scrollBy({left:E.right-q.right+is,behavior:"smooth"});}},[]);return D.useEffect(()=>{let I=u.current;if(!I)return;y();let k=new ResizeObserver(()=>{y(),M();});return k.observe(I),I.addEventListener("scroll",y,{passive:true}),()=>{k.disconnect(),I.removeEventListener("scroll",y);}},[y,M]),D.useEffect(()=>{M();},[M,a]),D.useEffect(()=>{let I=f.current;if(!I)return;let k=new MutationObserver(z=>{for(let q of z)if(q.type==="attributes"&&q.attributeName==="data-state"){M(),H();break}});return k.observe(I,{attributes:true,subtree:true,attributeFilter:["data-state"]}),()=>k.disconnect()},[M,H]),jsxRuntime.jsxs("div",{"data-slot":"tabs-list-wrapper",className:If({variant:s}),children:[jsxRuntime.jsx("div",{className:d(us({side:"left",variant:s}),p?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{className:d(us({side:"right",variant:s}),x?"opacity-100":"opacity-0"),"aria-hidden":"true"}),jsxRuntime.jsx("div",{ref:u,className:"overflow-x-auto overflow-y-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:jsxRuntime.jsxs("div",{ref:f,className:"relative",children:[jsxRuntime.jsx(radixUi.Tabs.List,c(l({"data-slot":"tabs-list","data-variant":s,"data-size":i,className:d(cs({variant:s}),e)},o),{children:a})),v&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute bottom-0 h-0.5 bg-secondary-stroke-emphasis transition-all duration-300 ease-out",style:{left:v.left,width:v.width},"aria-hidden":"true"})]})})]})}function yf(s){var i=s,{className:e,children:a,icon:o,badge:t}=i,r=n(i,["className","children","icon","badge"]);let{variant:u,responsiveSize:f}=rt(),p=D.useRef(null),[m,x]=D.useState(false);D.useEffect(()=>{let v=p.current;if(!v)return;let b=()=>{x(v.getAttribute("data-state")==="active");};b();let y=new MutationObserver(b);return y.observe(v,{attributes:true,attributeFilter:["data-state"]}),()=>y.disconnect()},[]);let h=()=>o?D.isValidElement(o)?D.cloneElement(o,{strokeWidth:m?2:1.6}):o:null;return jsxRuntime.jsxs(radixUi.Tabs.Trigger,c(l({ref:p,"data-slot":"tabs-trigger","data-variant":u,"data-size":f,className:d(ps({variant:u,size:f}),e)},r),{children:[o&&jsxRuntime.jsx("span",{"data-slot":"tabs-icon",className:"flex shrink-0 items-center","aria-hidden":"true",children:h()}),jsxRuntime.jsx("span",{children:a}),t&&jsxRuntime.jsx("span",{"data-slot":"tabs-badge",className:"flex shrink-0 items-center",role:"status",children:t})]}))}function Pf(o){var t=o,{className:e}=t,a=n(t,["className"]);let{variant:r,responsiveSize:s}=rt();return jsxRuntime.jsx(radixUi.Tabs.Content,l({"data-slot":"tabs-content","data-variant":r,"data-size":s,className:d(ms({variant:r,size:s}),e)},a))}var gs=classVarianceAuthority.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 Rf(i){var u=i,{className:e,variant:a="regular",asChild:o=false,disabled:t=false,inactive:r=false}=u,s=n(u,["className","variant","asChild","disabled","inactive"]);let f=o?radixUi.Slot.Slot:"div";return jsxRuntime.jsxs(f,c(l({"data-slot":"tile","data-variant":a,"data-inactive":r,"data-disabled":t,"aria-disabled":t||r,className:d(gs({variant:a,className:e}),s.onClick&&!t&&"cursor-pointer")},s),{children:[s.children,s.onClick&&!t&&jsxRuntime.jsx(icons.EditPencil,{className:"absolute right-5 top-4 size-5 opacity-0 transition-opacity group-hover/tile:opacity-100"})]}))}function Mf(t){var r=t,{className:e,icon:a}=r,o=n(r,["className","icon"]);return jsxRuntime.jsx("div",c(l({"data-slot":"tile-icon",className:d("mb-2.5 last:mb-0 [&>svg]:size-5",e)},o),{children:a}))}function Df(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("div",l({"data-slot":"tile-title",className:d("line-clamp-1 flex w-fit text-xs font-medium",e)},a))}function Bf(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx("span",l({"data-slot":"tile-description",className:d("line-clamp-1 flex w-fit text-sm font-semibold",e)},a))}var Ef=3,qf=1e6,Ie={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"},$t=0;function Hf(){return $t=($t+1)%Number.MAX_SAFE_INTEGER,$t.toString()}var Jt=new Map,xs=e=>{if(Jt.has(e))return;let a=setTimeout(()=>{Jt.delete(e),Pa({type:Ie.REMOVE_TOAST,toastId:e});},qf);Jt.set(e,a);},zf=(e,a)=>{switch(a.type){case Ie.ADD_TOAST:return c(l({},e),{toasts:[a.toast,...e.toasts].slice(0,Ef)});case Ie.UPDATE_TOAST:return c(l({},e),{toasts:e.toasts.map(o=>o.id===a.toast.id?l(l({},o),a.toast):o)});case Ie.DISMISS_TOAST:{let{toastId:o}=a;return o?xs(o):e.toasts.forEach(t=>{xs(t.id);}),c(l({},e),{toasts:e.toasts.map(t=>t.id===o||a.toastId===void 0?c(l({},t),{open:false}):t)})}case Ie.REMOVE_TOAST:return a.toastId===void 0?c(l({},e),{toasts:[]}):c(l({},e),{toasts:e.toasts.filter(o=>o.id!==a.toastId)})}},lt=[],dt={toasts:[]};function Pa(e){dt=zf(dt,e),lt.forEach(a=>{a(dt);});}function Uf(a){var e=n(a,[]);let o=Hf(),t=s=>Pa({type:Ie.UPDATE_TOAST,toast:c(l({},s),{id:o})}),r=()=>Pa({type:Ie.DISMISS_TOAST,toastId:o});return Pa({type:Ie.ADD_TOAST,toast:c(l({},e),{id:o,open:true,onOpenChange:s=>{s||r();}})}),{id:o,dismiss:r,update:t}}function Yt(){let[e,a]=D.useState(dt);return D.useEffect(()=>(lt.push(a),()=>{let o=lt.indexOf(a);o>-1&<.splice(o,1);}),[e]),c(l({},e),{toast:Uf,dismiss:o=>Pa({type:Ie.DISMISS_TOAST,toastId:o})})}var Ls=classVarianceAuthority.cva("group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md bg-surface-elevated p-2 pl-4 shadow-lg",{variants:{variant:{primary:"text-primary-foreground",secondary:"text-secondary-foreground",success:"text-feedback-success-foreground",warning:"text-feedback-warning-foreground",error:"text-feedback-error-foreground"}},defaultVariants:{variant:"primary"}}),Zf=classVarianceAuthority.cva("size-6 shrink-0",{variants:{variant:{primary:"text-primary-foreground fill-primary-background-soft",secondary:"text-secondary-foreground fill-secondary-background-soft",success:"text-feedback-success-foreground fill-feedback-success-background-soft",warning:"text-feedback-warning-foreground fill-feedback-warning-background-soft",error:"text-feedback-error-foreground fill-feedback-error-background-soft"}},defaultVariants:{variant:"primary"}}),jf={primary:"regular-soft",secondary:"emphasis-soft",success:"success-soft",warning:"warning-soft",error:"error-soft"},Qf={primary:icons.Info,secondary:icons.Info,success:icons.CircleCheck,warning:icons.TriangleWarning,error:icons.OctagonWarning},Cs=radixUi.Toast.Provider;function vs(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Viewport,l({className:d("fixed right-0 top-0 z-[100] flex max-h-screen w-full min-w-0 max-w-[500px] flex-col gap-2 p-4 md:w-[500px]",e)},a))}function Is(i){var u=i,{className:e,variant:a="primary",showIcon:o=true,duration:t=5e3,children:r}=u,s=n(u,["className","variant","showIcon","duration","children"]);let f=Qf[a||"primary"];return jsxRuntime.jsx(radixUi.Toast.Root,c(l({duration:t},s),{forceMount:true,asChild:true,children:jsxRuntime.jsxs(framerMotion.motion.li,{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:-50,zIndex:-1},transition:{duration:.4,ease:"easeInOut"},layout:true,className:d(Ls({variant:a}),e),children:[o&&jsxRuntime.jsx(f,{className:d(Zf({variant:a}))}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-between gap-4",children:r})]})}))}function $f(f){var p=f,{className:e,variant:a="primary",size:o="sm",iconLeft:t,iconRight:r,children:s,altText:i="Toast action"}=p,u=n(p,["className","variant","size","iconLeft","iconRight","children","altText"]);return jsxRuntime.jsx(radixUi.Toast.Action,c(l({asChild:true,altText:i,className:d("inline-flex items-center justify-center",e)},u),{children:jsxRuntime.jsx(se,{iconLeft:t,iconRight:r,size:o,variant:jf[a],children:s})}))}function ks(t){var r=t,{className:e,label:a="Fechar"}=r,o=n(r,["className","label"]);return jsxRuntime.jsx(radixUi.Toast.Close,c(l({className:d("shrink-0",e)},o),{asChild:true,children:jsxRuntime.jsx(se,{iconLeft:jsxRuntime.jsx(icons.CloseMd,{className:"size-4"}),size:"sm","aria-label":a,variant:"regular-basic"})}))}function Ss(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Title,l({className:d("flex-1 text-md font-medium",e)},a))}function ys(o){var t=o,{className:e}=t,a=n(t,["className"]);return jsxRuntime.jsx(radixUi.Toast.Description,l({className:d("text-xs",e)},a))}function Jf(){let{toasts:e}=Yt();return jsxRuntime.jsxs(Cs,{children:[jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"popLayout",children:e.filter(a=>a.open).map(function(i){var u=i,{id:a,title:o,description:t,action:r}=u,s=n(u,["id","title","description","action"]);return jsxRuntime.jsxs(Is,c(l({},s),{children:[jsxRuntime.jsxs("div",{className:"grid",children:[o&&jsxRuntime.jsx(Ss,{children:o}),t&&jsxRuntime.jsx(ys,{children:t})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[r,jsxRuntime.jsx(ks,{})]})]}),a)})}),jsxRuntime.jsx(vs,{})]})}/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
4
|
lucide-react/dist/esm/defaultAttributes.js:
|
|
@@ -12,5 +12,5 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
12
12
|
* This source code is licensed under the ISC license.
|
|
13
13
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
14
|
*)
|
|
15
|
-
*/exports.Alert=Ll;exports.AlertActions=kl;exports.AlertButton=Sl;exports.AlertContainer=Cl;exports.AlertContent=vl;exports.AlertDescription=Ro;exports.AlertDialog=Ol;exports.AlertDialogAction=_l;exports.AlertDialogCancel=Gl;exports.AlertDialogContent=
|
|
15
|
+
*/exports.Alert=Ll;exports.AlertActions=kl;exports.AlertButton=Sl;exports.AlertContainer=Cl;exports.AlertContent=vl;exports.AlertDescription=Ro;exports.AlertDialog=Ol;exports.AlertDialogAction=_l;exports.AlertDialogCancel=Gl;exports.AlertDialogContent=ql;exports.AlertDialogDescription=Vl;exports.AlertDialogFooter=zl;exports.AlertDialogHeader=Hl;exports.AlertDialogOverlay=Eo;exports.AlertDialogPortal=Oo;exports.AlertDialogTitle=Ul;exports.AlertDialogTrigger=El;exports.AlertIcon=Il;exports.AlertTitle=Ao;exports.Autocomplete=yd;exports.AutocompleteContent=Td;exports.AutocompleteContentFooter=bt;exports.AutocompleteGroup=Rd;exports.AutocompleteItem=Ad;exports.AutocompleteText=Md;exports.AutocompleteTrigger=wd;exports.AutocompleteWrapper=Pd;exports.Avatar=Ct;exports.AvatarFallback=It;exports.AvatarImage=vt;exports.Badge=Ae;exports.Breadcrumb=kt;exports.BreadcrumbEllipsis=_d;exports.BreadcrumbItem=Hd;exports.BreadcrumbLink=zd;exports.BreadcrumbList=St;exports.BreadcrumbPage=Ud;exports.BreadcrumbSeparator=Vd;exports.Button=se;exports.CardWeek=$d;exports.CardWeekActions=fn;exports.CardWeekBreadcrumb=Jd;exports.CardWeekContainer=Yd;exports.CardWeekContent=dn;exports.CardWeekDescription=tn;exports.CardWeekFooter=ln;exports.CardWeekHeader=en;exports.CardWeekProgress=sn;exports.CardWeekProgressCircle=rn;exports.CardWeekStatus=un;exports.CardWeekTags=on;exports.CardWeekText=nn;exports.CardWeekTitle=an;exports.Checkbox=gn;exports.Collapsible=bn;exports.CollapsibleContent=Cn;exports.CollapsibleTrigger=Ln;exports.Dialog=ud;exports.DialogClose=cd;exports.DialogContainer=pd;exports.DialogContent=md;exports.DialogDescription=bd;exports.DialogFooter=xd;exports.DialogHeader=gd;exports.DialogOverlay=rr;exports.DialogPortal=or;exports.DialogTitle=hd;exports.DialogTrigger=fd;exports.DropdownMenu=Mt;exports.DropdownMenuCheckboxItem=Pn;exports.DropdownMenuContent=Bt;exports.DropdownMenuGroup=yn;exports.DropdownMenuItem=_a;exports.DropdownMenuLabel=Nt;exports.DropdownMenuPortal=Sn;exports.DropdownMenuRadioGroup=Ga;exports.DropdownMenuRadioItem=Ft;exports.DropdownMenuSeparator=Ot;exports.DropdownMenuShortcut=wn;exports.DropdownMenuSub=Tn;exports.DropdownMenuSubContent=Rn;exports.DropdownMenuSubTrigger=An;exports.DropdownMenuTrigger=Dt;exports.Input=qt;exports.Label=Fn;exports.Loading=ct;exports.Logo=On;exports.LogoShort=En;exports.Pagination=Gn;exports.PaginationContent=Rr;exports.PaginationEllipsis=Fr;exports.PaginationInfo=Ht;exports.PaginationItem=Xa;exports.PaginationLink=Mr;exports.PaginationNext=Br;exports.PaginationPrevious=Dr;exports.PaginationRoot=Ar;exports.Progress=Tt;exports.ProgressCircle=yt;exports.RadioGroup=Zn;exports.RadioGroupItem=jn;exports.Ranking=oi;exports.RankingAssigneeGroup=xi;exports.RankingAssigneeItem=hi;exports.RankingAssigneeLabel=gi;exports.RankingAssigneesColumn=mi;exports.RankingBody=li;exports.RankingButton=Si;exports.RankingHeader=ri;exports.RankingHeaderCell=si;exports.RankingItem=di;exports.RankingNumber=ni;exports.RankingPerformance=ki;exports.RankingPriority=bi;exports.RankingQuestions=Ci;exports.RankingSpecialty=fi;exports.RankingSuperFocus=pi;exports.RankingTopic=ci;exports.RankingTopicColumn=ii;exports.RankingTopicContent=ui;exports.Rating=Ai;exports.RatingButtonVariants=Ur;exports.RatingLabelVariants=Vr;exports.RatingStarVariants=zr;exports.ScrollArea=Ut;exports.ScrollBar=Ca;exports.SegmentControl=Zi;exports.SegmentControlContent=$i;exports.SegmentControlList=ji;exports.SegmentControlTrigger=Qi;exports.Select=Fi;exports.SelectContent=zi;exports.SelectGroup=Ei;exports.SelectHeader=Ui;exports.SelectItem=Vi;exports.SelectLabel=Oi;exports.SelectScrollDownButton=Xr;exports.SelectScrollUpButton=Wr;exports.SelectSeparator=_i;exports.SelectText=Gi;exports.SelectTrigger=Hi;exports.SelectValue=qi;exports.SelectWrapper=Ni;exports.Separator=Ke;exports.Sheet=Kt;exports.SheetClose=ru;exports.SheetContent=Zt;exports.SheetDescription=uu;exports.SheetFooter=nu;exports.SheetHeader=du;exports.SheetTitle=iu;exports.SheetTrigger=ou;exports.Sidebar=Su;exports.SidebarContent=Du;exports.SidebarFooter=Ru;exports.SidebarGroup=Bu;exports.SidebarGroupAction=Nu;exports.SidebarGroupContent=Ou;exports.SidebarGroupLabel=Fu;exports.SidebarHeader=Au;exports.SidebarInput=Tu;exports.SidebarInset=wu;exports.SidebarMenu=Eu;exports.SidebarMenuAction=Uu;exports.SidebarMenuBadge=Vu;exports.SidebarMenuButton=zu;exports.SidebarMenuItem=qu;exports.SidebarMenuItemCollapse=Ku;exports.SidebarMenuItemTitle=Xu;exports.SidebarMenuSkeleton=_u;exports.SidebarMenuSub=Gu;exports.SidebarMenuSubButton=Zu;exports.SidebarMenuSubItem=Wu;exports.SidebarProvider=ku;exports.SidebarRail=Pu;exports.SidebarSeparator=Mu;exports.SidebarTrigger=yu;exports.Skeleton=Ya;exports.Switch=ef;exports.Switcher=lf;exports.SwitcherContent=nf;exports.SwitcherFooter=cf;exports.SwitcherGroup=uf;exports.SwitcherItem=ff;exports.SwitcherSeparator=pf;exports.SwitcherTrigger=df;exports.Tabs=kf;exports.TabsContent=Pf;exports.TabsList=Sf;exports.TabsTrigger=yf;exports.Tag=$e;exports.Tile=Rf;exports.TileDescription=Bf;exports.TileIcon=Mf;exports.TileTitle=Df;exports.Toast=Is;exports.ToastAction=$f;exports.ToastClose=ks;exports.ToastDescription=ys;exports.ToastProvider=Cs;exports.ToastTitle=Ss;exports.ToastViewport=vs;exports.Toaster=Jf;exports.Tooltip=Fe;exports.TooltipContent=Oe;exports.TooltipProvider=Be;exports.TooltipTrigger=Ne;exports.alertButtonVariants=Mo;exports.alertVariants=To;exports.avatarVariants=hr;exports.badgeVariants=Bo;exports.buttonVariants=ua;exports.calculatePageNumbers=Nr;exports.checkboxVariants=Sr;exports.labelVariants=wr;exports.radioGroupVariants=Or;exports.segmentControlTriggerVariants=Zr;exports.switchVariants=ds;exports.tabsContentVariants=ms;exports.tabsListVariants=cs;exports.tabsTriggerVariants=ps;exports.tagVariants=Lr;exports.tileVariants=gs;exports.toastVariants=Ls;exports.useIsMobile=ba;exports.useSidebar=ta;exports.useTabsContext=rt;exports.useToast=Yt;//# sourceMappingURL=index.js.map
|
|
16
16
|
//# sourceMappingURL=index.js.map
|