@infra-cryptomate/react-components 0.0.4 → 0.0.5

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.
Files changed (44) hide show
  1. package/dist/components.es.js +7118 -0
  2. package/dist/components.umd.js +41 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/src/components/atoms/button/button.d.ts +7 -0
  5. package/dist/src/components/atoms/button/button.enums.d.ts +14 -0
  6. package/dist/src/components/atoms/button/button.types.d.ts +3 -0
  7. package/dist/src/components/atoms/button/button.variants.d.ts +14 -0
  8. package/dist/src/components/atoms/checkbox/checkbox.d.ts +4 -0
  9. package/dist/src/components/atoms/heading/heading.d.ts +6 -0
  10. package/dist/src/components/atoms/heading/heading.enums.d.ts +8 -0
  11. package/dist/src/components/atoms/heading/heading.types.d.ts +2 -0
  12. package/dist/src/components/atoms/heading/heading.variants.d.ts +8 -0
  13. package/dist/src/components/atoms/index.d.ts +8 -0
  14. package/dist/src/components/atoms/input/input.d.ts +4 -0
  15. package/dist/src/components/atoms/label/label.d.ts +5 -0
  16. package/dist/src/components/atoms/paragraph/paragraph.d.ts +4 -0
  17. package/dist/src/components/atoms/spinner/spinner.d.ts +7 -0
  18. package/dist/src/components/atoms/spinner/spinner.enums.d.ts +11 -0
  19. package/dist/src/components/atoms/spinner/spinner.types.d.ts +3 -0
  20. package/dist/src/components/atoms/spinner/spinner.variants.d.ts +11 -0
  21. package/dist/src/components/atoms/text-area/text-area.d.ts +4 -0
  22. package/dist/src/components/index.d.ts +2 -0
  23. package/dist/src/components/molecules/card/card.d.ts +20 -0
  24. package/dist/src/components/molecules/checkbox-container/checkbox-container.d.ts +6 -0
  25. package/dist/src/components/molecules/checkbox-container/checkbox-container.enums.d.ts +3 -0
  26. package/dist/src/components/molecules/checkbox-container/checkbox-container.types.d.ts +6 -0
  27. package/dist/src/components/molecules/checkbox-container/checkbox-container.variants.d.ts +3 -0
  28. package/dist/src/components/molecules/dropdown/dropdown.d.ts +42 -0
  29. package/dist/src/components/molecules/index.d.ts +4 -0
  30. package/dist/src/components/molecules/radio/radio.d.ts +9 -0
  31. package/dist/src/components/molecules/select/select.d.ts +11 -0
  32. package/dist/src/components/utils.d.ts +1 -0
  33. package/dist/src/index.d.ts +1 -0
  34. package/dist/style.css +1078 -0
  35. package/dist/test/button.test.d.ts +1 -0
  36. package/dist/test/card.test.d.ts +1 -0
  37. package/dist/test/checkbox.test.d.ts +1 -0
  38. package/dist/test/dropdown.test.d.ts +1 -0
  39. package/dist/test/input.test.d.ts +1 -0
  40. package/dist/test/select.test.d.ts +1 -0
  41. package/dist/test/spinner.test.d.ts +1 -0
  42. package/dist/test/text-area.test.d.ts +1 -0
  43. package/dist/vite.svg +1 -0
  44. package/package.json +1 -1
@@ -0,0 +1,41 @@
1
+ (function(k,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],O):(k=typeof globalThis<"u"?globalThis:k||self,O(k.components={},k["react/jsx-runtime"],k.React,k.ReactDOM))})(this,function(k,O,c,Fe){"use strict";function bn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=bn(c),ss=bn(Fe),Bd="";function cs(){for(var e=0,t,n,o="";e<arguments.length;)(t=arguments[e++])&&(n=$n(t))&&(o&&(o+=" "),o+=n);return o}function $n(e){if(typeof e=="string")return e;for(var t,n="",o=0;o<e.length;o++)e[o]&&(t=$n(e[o]))&&(n&&(n+=" "),n+=t);return n}var Lt="-";function is(e){var t=ls(e),n=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,r=o===void 0?{}:o;function s(a){var l=a.split(Lt);return l[0]===""&&l.length!==1&&l.shift(),wn(l,t)||as(a)}function i(a,l){var u=n[a]||[];return l&&r[a]?[].concat(u,r[a]):u}return{getClassGroupId:s,getConflictingClassGroupIds:i}}function wn(e,t){var i;if(e.length===0)return t.classGroupId;var n=e[0],o=t.nextPart.get(n),r=o?wn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length!==0){var s=e.join(Lt);return(i=t.validators.find(function(a){var l=a.validator;return l(s)}))==null?void 0:i.classGroupId}}var xn=/^\[(.+)\]$/;function as(e){if(xn.test(e)){var t=xn.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function ls(e){var t=e.theme,n=e.prefix,o={nextPart:new Map,validators:[]},r=us(Object.entries(e.classGroups),n);return r.forEach(function(s){var i=s[0],a=s[1];Gt(a,o,i,t)}),o}function Gt(e,t,n,o){e.forEach(function(r){if(typeof r=="string"){var s=r===""?t:yn(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(ds(r)){Gt(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(function(i){var a=i[0],l=i[1];Gt(l,yn(t,a),n,o)})})}function yn(e,t){var n=e;return t.split(Lt).forEach(function(o){n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n}function ds(e){return e.isThemeGetter}function us(e,t){return t?e.map(function(n){var o=n[0],r=n[1],s=r.map(function(i){return typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(a){var l=a[0],u=a[1];return[t+l,u]})):i});return[o,s]}):e}function fs(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,o=new Map;function r(s,i){n.set(s,i),t++,t>e&&(t=0,o=n,n=new Map)}return{get:function(i){var a=n.get(i);if(a!==void 0)return a;if((a=o.get(i))!==void 0)return r(i,a),a},set:function(i,a){n.has(i)?n.set(i,a):r(i,a)}}}var Cn="!";function ps(e){var t=e.separator||":",n=t.length===1,o=t[0],r=t.length;return function(i){for(var a=[],l=0,u=0,f,d=0;d<i.length;d++){var v=i[d];if(l===0){if(v===o&&(n||i.slice(d,d+r)===t)){a.push(i.slice(u,d)),u=d+r;continue}if(v==="/"){f=d;continue}}v==="["?l++:v==="]"&&l--}var p=a.length===0?i:i.substring(u),g=p.startsWith(Cn),m=g?p.substring(1):p,$=f&&f>u?f-u:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:$}}}function ms(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(o){var r=o[0]==="[";r?(t.push.apply(t,n.sort().concat([o])),n=[]):n.push(o)}),t.push.apply(t,n.sort()),t}function gs(e){return{cache:fs(e.cacheSize),splitModifiers:ps(e),...is(e)}}var vs=/\s+/;function hs(e,t){var n=t.splitModifiers,o=t.getClassGroupId,r=t.getConflictingClassGroupIds,s=new Set;return e.trim().split(vs).map(function(i){var a=n(i),l=a.modifiers,u=a.hasImportantModifier,f=a.baseClassName,d=a.maybePostfixModifierPosition,v=o(d?f.substring(0,d):f),p=!!d;if(!v){if(!d)return{isTailwindClass:!1,originalClassName:i};if(v=o(f),!v)return{isTailwindClass:!1,originalClassName:i};p=!1}var g=ms(l).join(":"),m=u?g+Cn:g;return{isTailwindClass:!0,modifierId:m,classGroupId:v,originalClassName:i,hasPostfixModifier:p}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var a=i.modifierId,l=i.classGroupId,u=i.hasPostfixModifier,f=a+l;return s.has(f)?!1:(s.add(f),r(l,u).forEach(function(d){return s.add(a+d)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function bs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r,s,i=a;function a(u){var f=t[0],d=t.slice(1),v=d.reduce(function(p,g){return g(p)},f());return o=gs(v),r=o.cache.get,s=o.cache.set,i=l,l(u)}function l(u){var f=r(u);if(f)return f;var d=hs(u,o);return s(u,d),d}return function(){return i(cs.apply(null,arguments))}}function X(e){var t=function(o){return o[e]||[]};return t.isThemeGetter=!0,t}var En=/^\[(?:([a-z-]+):)?(.+)\]$/i,$s=/^\d+\/\d+$/,ws=new Set(["px","full","screen"]),xs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ys=/\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$/,Cs=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function pe(e){return Ie(e)||ws.has(e)||$s.test(e)||Bt(e)}function Bt(e){return Ae(e,"length",Ts)}function Es(e){return Ae(e,"size",Sn)}function Ss(e){return Ae(e,"position",Sn)}function Ps(e){return Ae(e,"url",Os)}function st(e){return Ae(e,"number",Ie)}function Ie(e){return!Number.isNaN(Number(e))}function Ms(e){return e.endsWith("%")&&Ie(e.slice(0,-1))}function qe(e){return Pn(e)||Ae(e,"number",Pn)}function W(e){return En.test(e)}function Xe(){return!0}function Ce(e){return xs.test(e)}function _s(e){return Ae(e,"",Is)}function Ae(e,t,n){var o=En.exec(e);return o?o[1]?o[1]===t:n(o[2]):!1}function Ts(e){return ys.test(e)}function Sn(){return!1}function Os(e){return e.startsWith("url(")}function Pn(e){return Number.isInteger(Number(e))}function Is(e){return Cs.test(e)}function As(){var e=X("colors"),t=X("spacing"),n=X("blur"),o=X("brightness"),r=X("borderColor"),s=X("borderRadius"),i=X("borderSpacing"),a=X("borderWidth"),l=X("contrast"),u=X("grayscale"),f=X("hueRotate"),d=X("invert"),v=X("gap"),p=X("gradientColorStops"),g=X("gradientColorStopPositions"),m=X("inset"),$=X("margin"),h=X("opacity"),b=X("padding"),w=X("saturate"),x=X("scale"),y=X("sepia"),M=X("skew"),S=X("space"),P=X("translate"),N=function(){return["auto","contain","none"]},H=function(){return["auto","hidden","clip","visible","scroll"]},F=function(){return["auto",W,t]},T=function(){return[W,t]},B=function(){return["",pe]},G=function(){return["auto",Ie,W]},L=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},D=function(){return["solid","dashed","dotted","double","none"]},te=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},q=function(){return["start","end","center","between","around","evenly","stretch"]},_=function(){return["","0",W]},V=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},J=function(){return[Ie,st]},ne=function(){return[Ie,W]};return{cacheSize:500,theme:{colors:[Xe],spacing:[pe],blur:["none","",Ce,W],brightness:J(),borderColor:[e],borderRadius:["none","","full",Ce,W],borderSpacing:T(),borderWidth:B(),contrast:J(),grayscale:_(),hueRotate:ne(),invert:_(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[Ms,Bt],inset:F(),margin:F(),opacity:J(),padding:T(),saturate:J(),scale:J(),sepia:_(),skew:ne(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[Ce]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(L(),[W])}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qe]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",qe]}],"grid-cols":[{"grid-cols":[Xe]}],"col-start-end":[{col:["auto",{span:["full",qe]},W]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[Xe]}],"row-start-end":[{row:["auto",{span:[qe]},W]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal"].concat(q())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(q(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(q(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[$]}],mx:[{mx:[$]}],my:[{my:[$]}],ms:[{ms:[$]}],me:[{me:[$]}],mt:[{mt:[$]}],mr:[{mr:[$]}],mb:[{mb:[$]}],ml:[{ml:[$]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",W,t]}],"min-w":[{"min-w":["min","max","fit",W,pe]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ce]},Ce,W]}],h:[{h:[W,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",W,pe]}],"max-h":[{"max-h":[W,t,"min","max","fit"]}],"font-size":[{text:["base",Ce,Bt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",st]}],"font-family":[{font:[Xe]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Ie,st]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W,pe]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(D(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",pe]}],"underline-offset":[{"underline-offset":["auto",W,pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(L(),[Ss])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Es]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ps]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[].concat(D(),["hidden"])}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:D()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:[""].concat(D())}],"outline-offset":[{"outline-offset":[W,pe]}],"outline-w":[{outline:[pe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ce,_s]}],"shadow-color":[{shadow:[Xe]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":te()}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ce,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[qe,W]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pe,st]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},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"],"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"],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-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-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"],"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"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var ks=bs(As);function z(...e){return ks(e.filter(Boolean).join(" "))}const Mn={default:"bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90 focus:outline-none",destructive:"bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",outline:"border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",secondary:"bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"},Ds={default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"};var _n=(e=>(e.DEFAULT="default",e.DESTRUCTIVE="destructive",e.OUTLINE="outline",e.SECONDARY="secondary",e.GHOST="ghost",e.LINK="link",e))(_n||{}),Tn=(e=>(e.DEFAULT="default",e.SM="sm",e.LG="lg",e.ICON="icon",e))(Tn||{});const Ns=({children:e,className:t="",variant:n=_n.DEFAULT,size:o=Tn.DEFAULT,...r})=>{const s=z(Mn.default,Mn[n],Ds[o],t);return O.jsx("button",{className:s,...r,children:e})},On={default:"stroke-1",primary:"fill-amber-400 stroke-black",secondary:"fill-purple-400 stroke-white"},Fs={default:"w-16 h-16",sm:"w-12 h-12",md:"w-20 h-20",lg:"w-24 h-24"};var In=(e=>(e.DEFAULT="default",e.PRIMARY="primary",e.SECONDARY="secondary",e))(In||{}),An=(e=>(e.DEFAULT="default",e.SM="sm",e.MD="md",e.LG="lg",e))(An||{});const Ls=({variant:e=In.SECONDARY,size:t=An.DEFAULT,...n})=>{const o=z(Fs[t]),r=z(On.default,On[e],"animate-spin origin-center");return O.jsx("svg",{role:"img",className:o,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:O.jsx("path",{className:r,d:"M12,23a9.63,9.63,0,0,1-8-9.5,9.51,9.51,0,0,1,6.79-9.1A1.66,1.66,0,0,0,12,2.81h0a1.67,1.67,0,0,0-1.94-1.64A11,11,0,0,0,12,23Z"})})},Gs=({className:e="",type:t,...n})=>{const o=z("flex h-10 w-full rounded-md border border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:bg-neutral-950 dark:ring-offset-neutral-950 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300",e);return O.jsx("input",{className:o,type:t,...n})},Bs=({className:e="",...t})=>{const n=z("flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e);return O.jsx("textarea",{className:n,...t})},Ws=({children:e,className:t="",...n})=>{const o=z("text-base font-medium",t);return O.jsx("p",{className:o,...n,children:e})},Hs=({children:e,className:t="",...n})=>{const o=z("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t);return O.jsx("label",{className:o,...n,children:e})},zs={h1:"text-2xl",h2:"text-xl",h3:"text-lg",h4:"text-base",h5:"text-sm",h6:"text-xs"};var kn=(e=>(e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e))(kn||{});const Us=({children:e,className:t="",level:n=kn.H1,...o})=>{const r=z("font-medium",zs[n],t);return c.createElement(n,{className:r,...o},e)},Vs=({className:e="",...t})=>{const n=z("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e);return O.jsx("input",{id:t.id,className:n,type:"checkbox",...t})},Dn=E.forwardRef(({className:e="",...t},n)=>{const o=z("rounded-lg border border-neutral-200 bg-white text-neutral-950 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e);return O.jsx("div",{ref:n,className:o,...t})});Dn.displayName="Card";const Nn=E.forwardRef(({className:e="",...t},n)=>{const o=z("flex flex-col space-y-1.5 p-6",e);return O.jsx("div",{ref:n,className:o,...t})});Nn.displayName="CardHeader";const Fn=E.forwardRef(({className:e="",...t},n)=>{const o=z("text-2xl font-semibold leading-none tracking-tight",e);return O.jsx("h3",{ref:n,className:o,...t})});Fn.displayName="CardTitle";const Ln=E.forwardRef(({className:e="",...t},n)=>{const o=z("text-sm text-neutral-500 dark:text-neutral-400",e);return O.jsx("p",{ref:n,className:o,...t})});Ln.displayName="CardDescription";const Gn=E.forwardRef(({className:e="",...t},n)=>{const o=z("p-6 pt-0",e);return O.jsx("div",{ref:n,className:o,...t})});Gn.displayName="CardContent";const Bn=E.forwardRef(({className:e="",...t},n)=>{const o=z("flex items-center p-6 pt-0",e);return O.jsx("div",{ref:n,className:o,...t})});Bn.displayName="CardFooter";function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},C.apply(this,arguments)}function I(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Ks(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ct(...e){return t=>e.forEach(n=>Ks(n,t))}function ee(...e){return c.useCallback(ct(...e),e)}function Ee(e,t=[]){let n=[];function o(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];function u(d){const{scope:v,children:p,...g}=d,m=(v==null?void 0:v[e][l])||a,$=c.useMemo(()=>g,Object.values(g));return c.createElement(m.Provider,{value:$},p)}function f(d,v){const p=(v==null?void 0:v[e][l])||a,g=c.useContext(p);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,f]}const r=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,js(r,...t)]}function js(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ie(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Le({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Rs({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:o,a=ie(n),l=c.useCallback(u=>{if(s){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else r(u)},[s,e,r,a]);return[i,l]}function Rs({defaultProp:e,onChange:t}){const n=c.useState(e),[o]=n,r=c.useRef(o),s=ie(t);return c.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}const Ge=c.forwardRef((e,t)=>{const{children:n,...o}=e,r=c.Children.toArray(n),s=r.find(qs);if(s){const i=s.props.children,a=r.map(l=>l===s?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:l);return c.createElement(Wt,C({},o,{ref:t}),c.isValidElement(i)?c.cloneElement(i,void 0,a):null)}return c.createElement(Wt,C({},o,{ref:t}),n)});Ge.displayName="Slot";const Wt=c.forwardRef((e,t)=>{const{children:n,...o}=e;return c.isValidElement(n)?c.cloneElement(n,{...Xs(o,n.props),ref:t?ct(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});Wt.displayName="SlotClone";const Ys=({children:e})=>c.createElement(c.Fragment,null,e);function qs(e){return c.isValidElement(e)&&e.type===Ys}function Xs(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{s(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}const K=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=c.forwardRef((o,r)=>{const{asChild:s,...i}=o,a=s?Ge:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(a,C({},i,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Wn(e,t){e&&Fe.flushSync(()=>e.dispatchEvent(t))}function Ht(e){const t=e+"CollectionProvider",[n,o]=Ee(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:g,children:m}=p,$=c.useRef(null),h=c.useRef(new Map).current;return c.createElement(r,{scope:g,itemMap:h,collectionRef:$},m)},a=e+"CollectionSlot",l=c.forwardRef((p,g)=>{const{scope:m,children:$}=p,h=s(a,m),b=ee(g,h.collectionRef);return c.createElement(Ge,{ref:b},$)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",d=c.forwardRef((p,g)=>{const{scope:m,children:$,...h}=p,b=c.useRef(null),w=ee(g,b),x=s(u,m);return c.useEffect(()=>(x.itemMap.set(b,{ref:b,...h}),()=>void x.itemMap.delete(b))),c.createElement(Ge,{[f]:"",ref:w},$)});function v(p){const g=s(e+"CollectionConsumer",p);return c.useCallback(()=>{const $=g.collectionRef.current;if(!$)return[];const h=Array.from($.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((x,y)=>h.indexOf(x.ref.current)-h.indexOf(y.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},v,o]}const Zs=c.createContext(void 0);function it(e){const t=c.useContext(Zs);return e||t||"ltr"}function Qs(e,t=globalThis==null?void 0:globalThis.document){const n=ie(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const zt="dismissableLayer.update",Js="dismissableLayer.pointerDownOutside",ec="dismissableLayer.focusOutside";let Hn;const tc=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zn=c.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...u}=e,f=c.useContext(tc),[d,v]=c.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,g]=c.useState({}),m=ee(t,P=>v(P)),$=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=$.indexOf(h),w=d?$.indexOf(d):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,y=w>=b,M=nc(P=>{const N=P.target,H=[...f.branches].some(F=>F.contains(N));!y||H||(s==null||s(P),a==null||a(P),P.defaultPrevented||l==null||l())},p),S=oc(P=>{const N=P.target;[...f.branches].some(F=>F.contains(N))||(i==null||i(P),a==null||a(P),P.defaultPrevented||l==null||l())},p);return Qs(P=>{w===f.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},p),c.useEffect(()=>{if(d)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Hn=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Un(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Hn)}},[d,p,o,f]),c.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Un())},[d,f]),c.useEffect(()=>{const P=()=>g({});return document.addEventListener(zt,P),()=>document.removeEventListener(zt,P)},[]),c.createElement(K.div,C({},u,{ref:m,style:{pointerEvents:x?y?"auto":"none":void 0,...e.style},onFocusCapture:I(e.onFocusCapture,S.onFocusCapture),onBlurCapture:I(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,M.onPointerDownCapture)}))});function nc(e,t=globalThis==null?void 0:globalThis.document){const n=ie(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let u=function(){Vn(Js,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function oc(e,t=globalThis==null?void 0:globalThis.document){const n=ie(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&Vn(ec,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Un(){const e=new CustomEvent(zt);document.dispatchEvent(e)}function Vn(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Wn(r,s):r.dispatchEvent(s)}let Ut=0;function Kn(){c.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:jn()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:jn()),Ut++,()=>{Ut===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ut--}},[])}function jn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Vt="focusScope.autoFocusOnMount",Kt="focusScope.autoFocusOnUnmount",Rn={bubbles:!1,cancelable:!0},Yn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[a,l]=c.useState(null),u=ie(r),f=ie(s),d=c.useRef(null),v=ee(t,m=>l(m)),p=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let m=function(w){if(p.paused||!a)return;const x=w.target;a.contains(x)?d.current=x:Se(d.current,{select:!0})},$=function(w){if(p.paused||!a)return;const x=w.relatedTarget;x!==null&&(a.contains(x)||Se(d.current,{select:!0}))},h=function(w){const x=document.activeElement;for(const y of w)y.removedNodes.length>0&&(a!=null&&a.contains(x)||Se(a))};document.addEventListener("focusin",m),document.addEventListener("focusout",$);const b=new MutationObserver(h);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",$),b.disconnect()}}},[o,a,p.paused]),c.useEffect(()=>{if(a){Zn.add(p);const m=document.activeElement;if(!a.contains(m)){const h=new CustomEvent(Vt,Rn);a.addEventListener(Vt,u),a.dispatchEvent(h),h.defaultPrevented||(rc(lc(qn(a)),{select:!0}),document.activeElement===m&&Se(a))}return()=>{a.removeEventListener(Vt,u),setTimeout(()=>{const h=new CustomEvent(Kt,Rn);a.addEventListener(Kt,f),a.dispatchEvent(h),h.defaultPrevented||Se(m??document.body,{select:!0}),a.removeEventListener(Kt,f),Zn.remove(p)},0)}}},[a,u,f,p]);const g=c.useCallback(m=>{if(!n&&!o||p.paused)return;const $=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if($&&h){const b=m.currentTarget,[w,x]=sc(b);w&&x?!m.shiftKey&&h===x?(m.preventDefault(),n&&Se(w,{select:!0})):m.shiftKey&&h===w&&(m.preventDefault(),n&&Se(x,{select:!0})):h===b&&m.preventDefault()}},[n,o,p.paused]);return c.createElement(K.div,C({tabIndex:-1},i,{ref:v,onKeyDown:g}))});function rc(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Se(o,{select:t}),document.activeElement!==n)return}function sc(e){const t=qn(e),n=Xn(t,e),o=Xn(t.reverse(),e);return[n,o]}function qn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xn(e,t){for(const n of e)if(!cc(n,{upTo:t}))return n}function cc(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ic(e){return e instanceof HTMLInputElement&&"select"in e}function Se(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ic(e)&&t&&e.select()}}const Zn=ac();function ac(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Qn(e,t),e.unshift(t)},remove(t){var n;e=Qn(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Qn(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function lc(e){return e.filter(t=>t.tagName!=="A")}const me=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},dc=E["useId".toString()]||(()=>{});let uc=0;function Pe(e){const[t,n]=E.useState(dc());return me(()=>{e||n(o=>o??String(uc++))},[e]),e||(t?`radix-${t}`:"")}const fc=["top","right","bottom","left"],Me=Math.min,ae=Math.max,at=Math.round,lt=Math.floor,_e=e=>({x:e,y:e}),pc={left:"right",right:"left",bottom:"top",top:"bottom"},mc={start:"end",end:"start"};function jt(e,t,n){return ae(e,Me(t,n))}function be(e,t){return typeof e=="function"?e(t):e}function $e(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function Rt(e){return e==="x"?"y":"x"}function Yt(e){return e==="y"?"height":"width"}function We(e){return["top","bottom"].includes($e(e))?"y":"x"}function qt(e){return Rt(We(e))}function gc(e,t,n){n===void 0&&(n=!1);const o=Be(e),r=qt(e),s=Yt(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=dt(i)),[i,dt(i)]}function vc(e){const t=dt(e);return[Xt(e),t,Xt(t)]}function Xt(e){return e.replace(/start|end/g,t=>mc[t])}function hc(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:i;default:return[]}}function bc(e,t,n,o){const r=Be(e);let s=hc($e(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Xt)))),s}function dt(e){return e.replace(/left|right|bottom|top/g,t=>pc[t])}function $c(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jn(e){return typeof e!="number"?$c(e):{top:e,right:e,bottom:e,left:e}}function ut(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function eo(e,t,n){let{reference:o,floating:r}=e;const s=We(t),i=qt(t),a=Yt(i),l=$e(t),u=s==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,v=o[a]/2-r[a]/2;let p;switch(l){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Be(t)){case"start":p[i]-=v*(n&&u?-1:1);break;case"end":p[i]+=v*(n&&u?-1:1);break}return p}const wc=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=eo(u,o,l),v=o,p={},g=0;for(let m=0;m<a.length;m++){const{name:$,fn:h}=a[m],{x:b,y:w,data:x,reset:y}=await h({x:f,y:d,initialPlacement:o,placement:v,strategy:r,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});if(f=b??f,d=w??d,p={...p,[$]:{...p[$],...x}},y&&g<=50){g++,typeof y=="object"&&(y.placement&&(v=y.placement),y.rects&&(u=y.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:f,y:d}=eo(u,v,l)),m=-1;continue}}return{x:f,y:d,placement:v,strategy:r,middlewareData:p}};async function Ze(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:v=!1,padding:p=0}=be(t,e),g=Jn(p),$=a[v?d==="floating"?"reference":"floating":d],h=ut(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement($)))==null||n?$:$.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),b=d==="floating"?{...i.floating,x:o,y:r}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},y=ut(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:w,strategy:l}):b);return{top:(h.top-y.top+g.top)/x.y,bottom:(y.bottom-h.bottom+g.bottom)/x.y,left:(h.left-y.left+g.left)/x.x,right:(y.right-h.right+g.right)/x.x}}const to=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:a}=t,{element:l,padding:u=0}=be(e,t)||{};if(l==null)return{};const f=Jn(u),d={x:n,y:o},v=qt(r),p=Yt(v),g=await i.getDimensions(l),m=v==="y",$=m?"top":"left",h=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=s.reference[p]+s.reference[v]-d[v]-s.floating[p],x=d[v]-s.reference[v],y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let M=y?y[b]:0;(!M||!await(i.isElement==null?void 0:i.isElement(y)))&&(M=a.floating[b]||s.floating[p]);const S=w/2-x/2,P=M/2-g[p]/2-1,N=Me(f[$],P),H=Me(f[h],P),F=N,T=M-g[p]-H,B=M/2-g[p]/2+S,G=jt(F,B,T),D=Be(r)!=null&&B!=G&&s.reference[p]/2-(B<F?N:H)-g[p]/2<0?B<F?F-B:T-B:0;return{[v]:d[v]-D,data:{[v]:G,centerOffset:B-G+D}}}}),xc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:s,initialPlacement:i,platform:a,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=be(e,t),$=$e(o),h=$e(i)===i,b=await(a.isRTL==null?void 0:a.isRTL(l.floating)),w=d||(h||!g?[dt(i)]:vc(i));!d&&p!=="none"&&w.push(...bc(i,g,p,b));const x=[i,...w],y=await Ze(t,m),M=[];let S=((n=r.flip)==null?void 0:n.overflows)||[];if(u&&M.push(y[$]),f){const F=gc(o,s,b);M.push(y[F[0]],y[F[1]])}if(S=[...S,{placement:o,overflows:M}],!M.every(F=>F<=0)){var P,N;const F=(((P=r.flip)==null?void 0:P.index)||0)+1,T=x[F];if(T)return{data:{index:F,overflows:S},reset:{placement:T}};let B=(N=S.filter(G=>G.overflows[0]<=0).sort((G,L)=>G.overflows[1]-L.overflows[1])[0])==null?void 0:N.placement;if(!B)switch(v){case"bestFit":{var H;const G=(H=S.map(L=>[L.placement,L.overflows.filter(D=>D>0).reduce((D,te)=>D+te,0)]).sort((L,D)=>L[1]-D[1])[0])==null?void 0:H[0];G&&(B=G);break}case"initialPlacement":B=i;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function no(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oo(e){return fc.some(t=>e[t]>=0)}const yc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=be(e,t);switch(o){case"referenceHidden":{const s=await Ze(t,{...r,elementContext:"reference"}),i=no(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:oo(i)}}}case"escaped":{const s=await Ze(t,{...r,altBoundary:!0}),i=no(s,n.floating);return{data:{escapedOffsets:i,escaped:oo(i)}}}default:return{}}}}};async function Cc(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=$e(n),a=Be(n),l=We(n)==="y",u=["left","top"].includes(i)?-1:1,f=s&&l?-1:1,d=be(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*f,y:v*u}:{x:v*u,y:p*f}}const Ec=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await Cc(t,e);return{x:n+r.x,y:o+r.y,data:r}}}},Sc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:$=>{let{x:h,y:b}=$;return{x:h,y:b}}},...l}=be(e,t),u={x:n,y:o},f=await Ze(t,l),d=We($e(r)),v=Rt(d);let p=u[v],g=u[d];if(s){const $=v==="y"?"top":"left",h=v==="y"?"bottom":"right",b=p+f[$],w=p-f[h];p=jt(b,p,w)}if(i){const $=d==="y"?"top":"left",h=d==="y"?"bottom":"right",b=g+f[$],w=g-f[h];g=jt(b,g,w)}const m=a.fn({...t,[v]:p,[d]:g});return{...m,data:{x:m.x-n,y:m.y-o}}}}},Pc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=be(e,t),f={x:n,y:o},d=We(r),v=Rt(d);let p=f[v],g=f[d];const m=be(a,t),$=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=v==="y"?"height":"width",x=s.reference[v]-s.floating[w]+$.mainAxis,y=s.reference[v]+s.reference[w]-$.mainAxis;p<x?p=x:p>y&&(p=y)}if(u){var h,b;const w=v==="y"?"width":"height",x=["top","left"].includes($e(r)),y=s.reference[d]-s.floating[w]+(x&&((h=i.offset)==null?void 0:h[d])||0)+(x?0:$.crossAxis),M=s.reference[d]+s.reference[w]+(x?0:((b=i.offset)==null?void 0:b[d])||0)-(x?$.crossAxis:0);g<y?g=y:g>M&&(g=M)}return{[v]:p,[d]:g}}}},Mc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...a}=be(e,t),l=await Ze(t,a),u=$e(n),f=Be(n),d=We(n)==="y",{width:v,height:p}=o.floating;let g,m;u==="top"||u==="bottom"?(g=u,m=f===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(m=u,g=f==="end"?"top":"bottom");const $=p-l[g],h=v-l[m],b=!t.middlewareData.shift;let w=$,x=h;if(d){const M=v-l.left-l.right;x=f||b?Me(h,M):M}else{const M=p-l.top-l.bottom;w=f||b?Me($,M):M}if(b&&!f){const M=ae(l.left,0),S=ae(l.right,0),P=ae(l.top,0),N=ae(l.bottom,0);d?x=v-2*(M!==0||S!==0?M+S:ae(l.left,l.right)):w=p-2*(P!==0||N!==0?P+N:ae(l.top,l.bottom))}await i({...t,availableWidth:x,availableHeight:w});const y=await r.getDimensions(s.floating);return v!==y.width||p!==y.height?{reset:{rects:!0}}:{}}}};function Te(e){return ro(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(ro(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ro(e){return e instanceof Node||e instanceof le(e).Node}function xe(e){return e instanceof Element||e instanceof le(e).Element}function ve(e){return e instanceof HTMLElement||e instanceof le(e).HTMLElement}function so(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}function Qe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function _c(e){return["table","td","th"].includes(Te(e))}function Zt(e){const t=Qt(),n=fe(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Tc(e){let t=He(e);for(;ve(t)&&!ft(t);){if(Zt(t))return t;t=He(t)}return null}function Qt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ft(e){return["html","body","#document"].includes(Te(e))}function fe(e){return le(e).getComputedStyle(e)}function pt(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function He(e){if(Te(e)==="html")return e;const t=e.assignedSlot||e.parentNode||so(e)&&e.host||we(e);return so(t)?t.host:t}function co(e){const t=He(e);return ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:ve(t)&&Qe(t)?t:co(t)}function mt(e,t){var n;t===void 0&&(t=[]);const o=co(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),s=le(o);return r?t.concat(s,s.visualViewport||[],Qe(o)?o:[]):t.concat(o,mt(o))}function io(e){const t=fe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ve(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=at(n)!==s||at(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function Jt(e){return xe(e)?e:e.contextElement}function ze(e){const t=Jt(e);if(!ve(t))return _e(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=io(t);let i=(s?at(n.width):n.width)/o,a=(s?at(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Oc=_e(0);function ao(e){const t=le(e);return!Qt()||!t.visualViewport?Oc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ic(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function ke(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Jt(e);let i=_e(1);t&&(o?xe(o)&&(i=ze(o)):i=ze(e));const a=Ic(s,n,o)?ao(s):_e(0);let l=(r.left+a.x)/i.x,u=(r.top+a.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(s){const v=le(s),p=o&&xe(o)?le(o):o;let g=v.frameElement;for(;g&&o&&p!==v;){const m=ze(g),$=g.getBoundingClientRect(),h=fe(g),b=$.left+(g.clientLeft+parseFloat(h.paddingLeft))*m.x,w=$.top+(g.clientTop+parseFloat(h.paddingTop))*m.y;l*=m.x,u*=m.y,f*=m.x,d*=m.y,l+=b,u+=w,g=le(g).frameElement}}return ut({width:f,height:d,x:l,y:u})}function Ac(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=ve(n),s=we(n);if(n===s)return t;let i={scrollLeft:0,scrollTop:0},a=_e(1);const l=_e(0);if((r||!r&&o!=="fixed")&&((Te(n)!=="body"||Qe(s))&&(i=pt(n)),ve(n))){const u=ke(n);a=ze(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-i.scrollLeft*a.x+l.x,y:t.y*a.y-i.scrollTop*a.y+l.y}}function kc(e){return Array.from(e.getClientRects())}function lo(e){return ke(we(e)).left+pt(e).scrollLeft}function Dc(e){const t=we(e),n=pt(e),o=e.ownerDocument.body,r=ae(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ae(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+lo(e);const a=-n.scrollTop;return fe(o).direction==="rtl"&&(i+=ae(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:a}}function Nc(e,t){const n=le(e),o=we(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const u=Qt();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:i,x:a,y:l}}function Fc(e,t){const n=ke(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=ve(e)?ze(e):_e(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:a,x:l,y:u}}function uo(e,t,n){let o;if(t==="viewport")o=Nc(e,n);else if(t==="document")o=Dc(we(e));else if(xe(t))o=Fc(t,n);else{const r=ao(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return ut(o)}function fo(e,t){const n=He(e);return n===t||!xe(n)||ft(n)?!1:fe(n).position==="fixed"||fo(n,t)}function Lc(e,t){const n=t.get(e);if(n)return n;let o=mt(e).filter(a=>xe(a)&&Te(a)!=="body"),r=null;const s=fe(e).position==="fixed";let i=s?He(e):e;for(;xe(i)&&!ft(i);){const a=fe(i),l=Zt(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Qe(i)&&!l&&fo(e,i))?o=o.filter(f=>f!==i):r=a,i=He(i)}return t.set(e,o),o}function Gc(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Lc(t,this._c):[].concat(n),o],a=i[0],l=i.reduce((u,f)=>{const d=uo(t,f,r);return u.top=ae(d.top,u.top),u.right=Me(d.right,u.right),u.bottom=Me(d.bottom,u.bottom),u.left=ae(d.left,u.left),u},uo(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Bc(e){return io(e)}function Wc(e,t,n){const o=ve(t),r=we(t),s=n==="fixed",i=ke(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=_e(0);if(o||!o&&!s)if((Te(t)!=="body"||Qe(r))&&(a=pt(t)),o){const u=ke(t,!0,s,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else r&&(l.x=lo(r));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function po(e,t){return!ve(e)||fe(e).position==="fixed"?null:t?t(e):e.offsetParent}function mo(e,t){const n=le(e);if(!ve(e))return n;let o=po(e,t);for(;o&&_c(o)&&fe(o).position==="static";)o=po(o,t);return o&&(Te(o)==="html"||Te(o)==="body"&&fe(o).position==="static"&&!Zt(o))?n:o||Tc(e)||n}const Hc=async function(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||mo,s=this.getDimensions;return{reference:Wc(t,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function zc(e){return fe(e).direction==="rtl"}const Uc={convertOffsetParentRelativeRectToViewportRelativeRect:Ac,getDocumentElement:we,getClippingRect:Gc,getOffsetParent:mo,getElementRects:Hc,getClientRects:kc,getDimensions:Bc,getScale:ze,isElement:xe,isRTL:zc};function Vc(e,t){let n=null,o;const r=we(e);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:u,top:f,width:d,height:v}=e.getBoundingClientRect();if(a||t(),!d||!v)return;const p=lt(f),g=lt(r.clientWidth-(u+d)),m=lt(r.clientHeight-(f+v)),$=lt(u),b={rootMargin:-p+"px "+-g+"px "+-m+"px "+-$+"px",threshold:ae(0,Me(1,l))||1};let w=!0;function x(y){const M=y[0].intersectionRatio;if(M!==l){if(!w)return i();M?i(!1,M):o=setTimeout(()=>{i(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(x,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return i(!0),s}function Kc(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Jt(e),f=r||s?[...u?mt(u):[],...mt(t)]:[];f.forEach(h=>{r&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const d=u&&a?Vc(u,n):null;let v=-1,p=null;i&&(p=new ResizeObserver(h=>{let[b]=h;b&&b.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let g,m=l?ke(e):null;l&&$();function $(){const h=ke(e);m&&(h.x!==m.x||h.y!==m.y||h.width!==m.width||h.height!==m.height)&&n(),m=h,g=requestAnimationFrame($)}return n(),()=>{f.forEach(h=>{r&&h.removeEventListener("scroll",n),s&&h.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const jc=(e,t,n)=>{const o=new Map,r={platform:Uc,...n},s={...r.platform,_c:o};return wc(e,t,{...r,platform:s})},Rc=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?to({element:o.current,padding:r}).fn(n):{}:o?to({element:o,padding:r}).fn(n):{}}}};var gt=typeof document<"u"?c.useLayoutEffect:c.useEffect;function vt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!vt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!vt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function go(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vo(e,t){const n=go(e);return Math.round(t*n)/n}function ho(e){const t=E.useRef(e);return gt(()=>{t.current=e}),t}function Yc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,d]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,p]=E.useState(o);vt(v,o)||p(o);const[g,m]=E.useState(null),[$,h]=E.useState(null),b=E.useCallback(D=>{D!=M.current&&(M.current=D,m(D))},[m]),w=E.useCallback(D=>{D!==S.current&&(S.current=D,h(D))},[h]),x=s||g,y=i||$,M=E.useRef(null),S=E.useRef(null),P=E.useRef(f),N=ho(l),H=ho(r),F=E.useCallback(()=>{if(!M.current||!S.current)return;const D={placement:t,strategy:n,middleware:v};H.current&&(D.platform=H.current),jc(M.current,S.current,D).then(te=>{const q={...te,isPositioned:!0};T.current&&!vt(P.current,q)&&(P.current=q,ss.flushSync(()=>{d(q)}))})},[v,t,n,H]);gt(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(D=>({...D,isPositioned:!1})))},[u]);const T=E.useRef(!1);gt(()=>(T.current=!0,()=>{T.current=!1}),[]),gt(()=>{if(x&&(M.current=x),y&&(S.current=y),x&&y){if(N.current)return N.current(x,y,F);F()}},[x,y,F,N]);const B=E.useMemo(()=>({reference:M,floating:S,setReference:b,setFloating:w}),[b,w]),G=E.useMemo(()=>({reference:x,floating:y}),[x,y]),L=E.useMemo(()=>{const D={position:n,left:0,top:0};if(!G.floating)return D;const te=vo(G.floating,f.x),q=vo(G.floating,f.y);return a?{...D,transform:"translate("+te+"px, "+q+"px)",...go(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:q}},[n,a,G.floating,f.x,f.y]);return E.useMemo(()=>({...f,update:F,refs:B,elements:G,floatingStyles:L}),[f,F,B,G,L])}function bo(e){const[t,n]=c.useState(void 0);return me(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const $o="Popper",[wo,ht]=Ee($o),[qc,xo]=wo($o),Xc=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return c.createElement(qc,{scope:t,anchor:o,onAnchorChange:r},n)},Zc="PopperAnchor",Qc=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=xo(Zc,n),i=c.useRef(null),a=ee(t,i);return c.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||i.current)}),o?null:c.createElement(K.div,C({},r,{ref:a}))}),yo="PopperContent",[Jc,Hd]=wo(yo),ei=c.forwardRef((e,t)=>{var n,o,r,s,i,a,l,u;const{__scopePopper:f,side:d="bottom",sideOffset:v=0,align:p="center",alignOffset:g=0,arrowPadding:m=0,collisionBoundary:$=[],collisionPadding:h=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:y,...M}=e,S=xo(yo,f),[P,N]=c.useState(null),H=ee(t,se=>N(se)),[F,T]=c.useState(null),B=bo(F),G=(n=B==null?void 0:B.width)!==null&&n!==void 0?n:0,L=(o=B==null?void 0:B.height)!==null&&o!==void 0?o:0,D=d+(p!=="center"?"-"+p:""),te=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},q=Array.isArray($)?$:[$],_=q.length>0,V={padding:te,boundary:q.filter(ti),altBoundary:_},{refs:J,floatingStyles:ne,placement:Z,isPositioned:re,middlewareData:ce}=Yc({strategy:"fixed",placement:D,whileElementsMounted:Kc,elements:{reference:S.anchor},middleware:[Ec({mainAxis:v+L,alignmentAxis:g}),x&&Sc({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?Pc():void 0,...V}),x&&xc({...V}),Mc({...V,apply:({elements:se,rects:nt,availableWidth:ot,availableHeight:rt})=>{const{width:Ld,height:Gd}=nt.reference,Ft=se.floating.style;Ft.setProperty("--radix-popper-available-width",`${ot}px`),Ft.setProperty("--radix-popper-available-height",`${rt}px`),Ft.setProperty("--radix-popper-anchor-width",`${Ld}px`),Ft.setProperty("--radix-popper-anchor-height",`${Gd}px`)}}),F&&Rc({element:F,padding:m}),ni({arrowWidth:G,arrowHeight:L}),w&&yc({strategy:"referenceHidden"})]}),[de,A]=Co(Z),U=ie(y);me(()=>{re&&(U==null||U())},[re,U]);const Q=(r=ce.arrow)===null||r===void 0?void 0:r.x,j=(s=ce.arrow)===null||s===void 0?void 0:s.y,R=((i=ce.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[Y,ue]=c.useState();return me(()=>{P&&ue(window.getComputedStyle(P).zIndex)},[P]),c.createElement("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:re?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(a=ce.transformOrigin)===null||a===void 0?void 0:a.x,(l=ce.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},c.createElement(Jc,{scope:f,placedSide:de,onArrowChange:T,arrowX:Q,arrowY:j,shouldHideArrow:R},c.createElement(K.div,C({"data-side":de,"data-align":A},M,{ref:H,style:{...M.style,animation:re?void 0:"none",opacity:(u=ce.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function ti(e){return e!==null}const ni=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,s,i;const{placement:a,rects:l,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,v=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[g,m]=Co(a),$={start:"0%",center:"50%",end:"100%"}[m],h=((o=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+v/2,b=((s=(i=u.arrow)===null||i===void 0?void 0:i.y)!==null&&s!==void 0?s:0)+p/2;let w="",x="";return g==="bottom"?(w=d?$:`${h}px`,x=`${-p}px`):g==="top"?(w=d?$:`${h}px`,x=`${l.floating.height+p}px`):g==="right"?(w=`${-p}px`,x=d?$:`${b}px`):g==="left"&&(w=`${l.floating.width+p}px`,x=d?$:`${b}px`),{data:{x:w,y:x}}}});function Co(e){const[t,n="center"]=e.split("-");return[t,n]}const en=Xc,Eo=Qc,So=ei,Po=c.forwardRef((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return o?Fe.createPortal(c.createElement(K.div,C({},r,{ref:t})),o):null});function oi(e,t){return c.useReducer((n,o)=>{const r=t[n][o];return r??n},e)}const Ue=e=>{const{present:t,children:n}=e,o=ri(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=ee(o.ref,r.ref);return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};Ue.displayName="Presence";function ri(e){const[t,n]=c.useState(),o=c.useRef({}),r=c.useRef(e),s=c.useRef("none"),i=e?"mounted":"unmounted",[a,l]=oi(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=bt(o.current);s.current=a==="mounted"?u:"none"},[a]),me(()=>{const u=o.current,f=r.current;if(f!==e){const v=s.current,p=bt(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&v!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),me(()=>{if(t){const u=d=>{const p=bt(o.current).includes(d.animationName);d.target===t&&p&&Fe.flushSync(()=>l("ANIMATION_END"))},f=d=>{d.target===t&&(s.current=bt(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function bt(e){return(e==null?void 0:e.animationName)||"none"}const tn="rovingFocusGroup.onEntryFocus",si={bubbles:!1,cancelable:!0},nn="RovingFocusGroup",[on,Mo,ci]=Ht(nn),[ii,$t]=Ee(nn,[ci]),[ai,li]=ii(nn),di=c.forwardRef((e,t)=>c.createElement(on.Provider,{scope:e.__scopeRovingFocusGroup},c.createElement(on.Slot,{scope:e.__scopeRovingFocusGroup},c.createElement(ui,C({},e,{ref:t}))))),ui=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,...f}=e,d=c.useRef(null),v=ee(t,d),p=it(s),[g=null,m]=Le({prop:i,defaultProp:a,onChange:l}),[$,h]=c.useState(!1),b=ie(u),w=Mo(n),x=c.useRef(!1),[y,M]=c.useState(0);return c.useEffect(()=>{const S=d.current;if(S)return S.addEventListener(tn,b),()=>S.removeEventListener(tn,b)},[b]),c.createElement(ai,{scope:n,orientation:o,dir:p,loop:r,currentTabStopId:g,onItemFocus:c.useCallback(S=>m(S),[m]),onItemShiftTab:c.useCallback(()=>h(!0),[]),onFocusableItemAdd:c.useCallback(()=>M(S=>S+1),[]),onFocusableItemRemove:c.useCallback(()=>M(S=>S-1),[])},c.createElement(K.div,C({tabIndex:$||y===0?-1:0,"data-orientation":o},f,{ref:v,style:{outline:"none",...e.style},onMouseDown:I(e.onMouseDown,()=>{x.current=!0}),onFocus:I(e.onFocus,S=>{const P=!x.current;if(S.target===S.currentTarget&&P&&!$){const N=new CustomEvent(tn,si);if(S.currentTarget.dispatchEvent(N),!N.defaultPrevented){const H=w().filter(L=>L.focusable),F=H.find(L=>L.active),T=H.find(L=>L.id===g),G=[F,T,...H].filter(Boolean).map(L=>L.ref.current);_o(G)}}x.current=!1}),onBlur:I(e.onBlur,()=>h(!1))})))}),fi="RovingFocusGroupItem",pi=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,...i}=e,a=Pe(),l=s||a,u=li(fi,n),f=u.currentTabStopId===l,d=Mo(n),{onFocusableItemAdd:v,onFocusableItemRemove:p}=u;return c.useEffect(()=>{if(o)return v(),()=>p()},[o,v,p]),c.createElement(on.ItemSlot,{scope:n,id:l,focusable:o,active:r},c.createElement(K.span,C({tabIndex:f?0:-1,"data-orientation":u.orientation},i,{ref:t,onMouseDown:I(e.onMouseDown,g=>{o?u.onItemFocus(l):g.preventDefault()}),onFocus:I(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:I(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const m=vi(g,u.orientation,u.dir);if(m!==void 0){g.preventDefault();let h=d().filter(b=>b.focusable).map(b=>b.ref.current);if(m==="last")h.reverse();else if(m==="prev"||m==="next"){m==="prev"&&h.reverse();const b=h.indexOf(g.currentTarget);h=u.loop?hi(h,b+1):h.slice(b+1)}setTimeout(()=>_o(h))}})})))}),mi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gi(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function vi(e,t,n){const o=gi(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return mi[o]}function _o(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function hi(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const To=di,Oo=pi;var bi=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ve=new WeakMap,wt=new WeakMap,xt={},rn=0,Io=function(e){return e&&(e.host||Io(e.parentNode))},$i=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Io(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},wi=function(e,t,n,o){var r=$i(t,Array.isArray(e)?e:[e]);xt[n]||(xt[n]=new WeakMap);var s=xt[n],i=[],a=new Set,l=new Set(r),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};r.forEach(u);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(v){if(a.has(v))f(v);else{var p=v.getAttribute(o),g=p!==null&&p!=="false",m=(Ve.get(v)||0)+1,$=(s.get(v)||0)+1;Ve.set(v,m),s.set(v,$),i.push(v),m===1&&g&&wt.set(v,!0),$===1&&v.setAttribute(n,"true"),g||v.setAttribute(o,"true")}})};return f(t),a.clear(),rn++,function(){i.forEach(function(d){var v=Ve.get(d)-1,p=s.get(d)-1;Ve.set(d,v),s.set(d,p),v||(wt.has(d)||d.removeAttribute(o),wt.delete(d)),p||d.removeAttribute(n)}),rn--,rn||(Ve=new WeakMap,Ve=new WeakMap,wt=new WeakMap,xt={})}},Ao=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||bi(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),wi(o,r,n,"aria-hidden")):function(){return null}},he=function(){return he=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},he.apply(this,arguments)};function ko(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function xi(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var yt="right-scroll-bar-position",Ct="width-before-scroll-bar",yi="with-scroll-bars-hidden",Ci="--removed-body-scroll-bar-size";function Ei(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Si(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}function Pi(e,t){return Si(t||null,function(n){return e.forEach(function(o){return Ei(o,n)})})}function Mi(e){return e}function _i(e,t){t===void 0&&(t=Mi);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return r}function Ti(e){e===void 0&&(e={});var t=_i(null);return t.options=he({async:!0,ssr:!1},e),t}var Do=function(e){var t=e.sideCar,n=ko(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return E.createElement(o,he({},n))};Do.isSideCarExport=!0;function Oi(e,t){return e.useMedium(t),Do}var No=Ti(),sn=function(){},Et=E.forwardRef(function(e,t){var n=E.useRef(null),o=E.useState({onScrollCapture:sn,onWheelCapture:sn,onTouchMoveCapture:sn}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,v=e.sideCar,p=e.noIsolation,g=e.inert,m=e.allowPinchZoom,$=e.as,h=$===void 0?"div":$,b=ko(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=v,x=Pi([n,t]),y=he(he({},b),r);return E.createElement(E.Fragment,null,f&&E.createElement(w,{sideCar:No,removeScrollBar:u,shards:d,noIsolation:p,inert:g,setCallbacks:s,allowPinchZoom:!!m,lockRef:n}),i?E.cloneElement(E.Children.only(a),he(he({},y),{ref:x})):E.createElement(h,he({},y,{className:l,ref:x}),a))});Et.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Et.classNames={fullWidth:Ct,zeroRight:yt};var Fo,Ii=function(){if(Fo)return Fo;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ai(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ii();return t&&e.setAttribute("nonce",t),e}function ki(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Di(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ni=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ai())&&(ki(t,n),Di(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fi=function(){var e=Ni();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Lo=function(){var e=Fi(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Li={left:0,top:0,right:0,gap:0},cn=function(e){return parseInt(e||"",10)||0},Gi=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[cn(n),cn(o),cn(r)]},Bi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Li;var t=Gi(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Wi=Lo(),Hi=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2
+ .`.concat(yi,` {
3
+ overflow: hidden `).concat(o,`;
4
+ padding-right: `).concat(a,"px ").concat(o,`;
5
+ }
6
+ body {
7
+ overflow: hidden `).concat(o,`;
8
+ overscroll-behavior: contain;
9
+ `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
10
+ padding-left: `.concat(r,`px;
11
+ padding-top: `).concat(s,`px;
12
+ padding-right: `).concat(i,`px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: `).concat(a,"px ").concat(o,`;
16
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),`
17
+ }
18
+
19
+ .`).concat(yt,` {
20
+ right: `).concat(a,"px ").concat(o,`;
21
+ }
22
+
23
+ .`).concat(Ct,` {
24
+ margin-right: `).concat(a,"px ").concat(o,`;
25
+ }
26
+
27
+ .`).concat(yt," .").concat(yt,` {
28
+ right: 0 `).concat(o,`;
29
+ }
30
+
31
+ .`).concat(Ct," .").concat(Ct,` {
32
+ margin-right: 0 `).concat(o,`;
33
+ }
34
+
35
+ body {
36
+ `).concat(Ci,": ").concat(a,`px;
37
+ }
38
+ `)},zi=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o,s=E.useMemo(function(){return Bi(r)},[r]);return E.createElement(Wi,{styles:Hi(s,!t,r,n?"":"!important")})},an=!1;if(typeof window<"u")try{var St=Object.defineProperty({},"passive",{get:function(){return an=!0,!0}});window.addEventListener("test",St,St),window.removeEventListener("test",St,St)}catch{an=!1}var Ke=an?{passive:!1}:!1,Ui=function(e){return e.tagName==="TEXTAREA"},Go=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ui(e)&&n[t]==="visible")},Vi=function(e){return Go(e,"overflowY")},Ki=function(e){return Go(e,"overflowX")},Bo=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Wo(e,n);if(o){var r=Ho(e,n),s=r[1],i=r[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ji=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Ri=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Wo=function(e,t){return e==="v"?Vi(t):Ki(t)},Ho=function(e,t){return e==="v"?ji(t):Ri(t)},Yi=function(e,t){return e==="h"&&t==="rtl"?-1:1},qi=function(e,t,n,o,r){var s=Yi(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,l=t.contains(a),u=!1,f=i>0,d=0,v=0;do{var p=Ho(e,a),g=p[0],m=p[1],$=p[2],h=m-$-s*g;(g||h)&&Wo(e,a)&&(d+=h,v+=g),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&(r&&d===0||!r&&i>d)||!f&&(r&&v===0||!r&&-i>v))&&(u=!0),u},Pt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zo=function(e){return[e.deltaX,e.deltaY]},Uo=function(e){return e&&"current"in e?e.current:e},Xi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Zi=function(e){return`
39
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
40
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
+ `)},Qi=0,je=[];function Ji(e){var t=E.useRef([]),n=E.useRef([0,0]),o=E.useRef(),r=E.useState(Qi++)[0],s=E.useState(function(){return Lo()})[0],i=E.useRef(e);E.useEffect(function(){i.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=xi([e.lockRef.current],(e.shards||[]).map(Uo),!0).filter(Boolean);return m.forEach(function($){return $.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function($){return $.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=E.useCallback(function(m,$){if("touches"in m&&m.touches.length===2)return!i.current.allowPinchZoom;var h=Pt(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-h[0],x="deltaY"in m?m.deltaY:b[1]-h[1],y,M=m.target,S=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in m&&S==="h"&&M.type==="range")return!1;var P=Bo(S,M);if(!P)return!0;if(P?y=S:(y=S==="v"?"h":"v",P=Bo(S,M)),!P)return!1;if(!o.current&&"changedTouches"in m&&(w||x)&&(o.current=y),!y)return!0;var N=o.current||y;return qi(N,$,m,N==="h"?w:x,!0)},[]),l=E.useCallback(function(m){var $=m;if(!(!je.length||je[je.length-1]!==s)){var h="deltaY"in $?zo($):Pt($),b=t.current.filter(function(y){return y.name===$.type&&y.target===$.target&&Xi(y.delta,h)})[0];if(b&&b.should){$.cancelable&&$.preventDefault();return}if(!b){var w=(i.current.shards||[]).map(Uo).filter(Boolean).filter(function(y){return y.contains($.target)}),x=w.length>0?a($,w[0]):!i.current.noIsolation;x&&$.cancelable&&$.preventDefault()}}},[]),u=E.useCallback(function(m,$,h,b){var w={name:m,delta:$,target:h,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),f=E.useCallback(function(m){n.current=Pt(m),o.current=void 0},[]),d=E.useCallback(function(m){u(m.type,zo(m),m.target,a(m,e.lockRef.current))},[]),v=E.useCallback(function(m){u(m.type,Pt(m),m.target,a(m,e.lockRef.current))},[]);E.useEffect(function(){return je.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Ke),document.addEventListener("touchmove",l,Ke),document.addEventListener("touchstart",f,Ke),function(){je=je.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,Ke),document.removeEventListener("touchmove",l,Ke),document.removeEventListener("touchstart",f,Ke)}},[]);var p=e.removeScrollBar,g=e.inert;return E.createElement(E.Fragment,null,g?E.createElement(s,{styles:Zi(r)}):null,p?E.createElement(zi,{gapMode:"margin"}):null)}const ea=Oi(No,Ji);var Vo=E.forwardRef(function(e,t){return E.createElement(Et,he({},e,{ref:t,sideCar:ea}))});Vo.classNames=Et.classNames;const Ko=Vo,ln=["Enter"," "],ta=["ArrowDown","PageUp","Home"],jo=["ArrowUp","PageDown","End"],na=[...ta,...jo],oa={ltr:[...ln,"ArrowRight"],rtl:[...ln,"ArrowLeft"]},ra={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Mt="Menu",[Je,sa,ca]=Ht(Mt),[De,Ro]=Ee(Mt,[ca,ht,$t]),_t=ht(),Yo=$t(),[qo,Oe]=De(Mt),[ia,et]=De(Mt),aa=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=e,a=_t(t),[l,u]=c.useState(null),f=c.useRef(!1),d=ie(s),v=it(r);return c.useEffect(()=>{const p=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),c.createElement(en,a,c.createElement(qo,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},c.createElement(ia,{scope:t,onClose:c.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:v,modal:i},o)))},Xo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=_t(n);return c.createElement(Eo,C({},r,o,{ref:t}))}),Zo="MenuPortal",[la,Qo]=De(Zo,{forceMount:void 0}),da=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=Oe(Zo,t);return c.createElement(la,{scope:t,forceMount:n},c.createElement(Ue,{present:n||s.open},c.createElement(Po,{asChild:!0,container:r},o)))},ge="MenuContent",[ua,dn]=De(ge),fa=c.forwardRef((e,t)=>{const n=Qo(ge,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Oe(ge,e.__scopeMenu),i=et(ge,e.__scopeMenu);return c.createElement(Je.Provider,{scope:e.__scopeMenu},c.createElement(Ue,{present:o||s.open},c.createElement(Je.Slot,{scope:e.__scopeMenu},i.modal?c.createElement(pa,C({},r,{ref:t})):c.createElement(ma,C({},r,{ref:t})))))}),pa=c.forwardRef((e,t)=>{const n=Oe(ge,e.__scopeMenu),o=c.useRef(null),r=ee(t,o);return c.useEffect(()=>{const s=o.current;if(s)return Ao(s)},[]),c.createElement(un,C({},e,{ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:I(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),ma=c.forwardRef((e,t)=>{const n=Oe(ge,e.__scopeMenu);return c.createElement(un,C({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),un=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:v,onDismiss:p,disableOutsideScroll:g,...m}=e,$=Oe(ge,n),h=et(ge,n),b=_t(n),w=Yo(n),x=sa(n),[y,M]=c.useState(null),S=c.useRef(null),P=ee(t,S,$.onContentChange),N=c.useRef(0),H=c.useRef(""),F=c.useRef(0),T=c.useRef(null),B=c.useRef("right"),G=c.useRef(0),L=g?Ko:c.Fragment,D=g?{as:Ge,allowPinchZoom:!0}:void 0,te=_=>{var V,J;const ne=H.current+_,Z=x().filter(Q=>!Q.disabled),re=document.activeElement,ce=(V=Z.find(Q=>Q.ref.current===re))===null||V===void 0?void 0:V.textValue,de=Z.map(Q=>Q.textValue),A=ka(de,ne,ce),U=(J=Z.find(Q=>Q.textValue===A))===null||J===void 0?void 0:J.ref.current;(function Q(j){H.current=j,window.clearTimeout(N.current),j!==""&&(N.current=window.setTimeout(()=>Q(""),1e3))})(ne),U&&setTimeout(()=>U.focus())};c.useEffect(()=>()=>window.clearTimeout(N.current),[]),Kn();const q=c.useCallback(_=>{var V,J;return B.current===((V=T.current)===null||V===void 0?void 0:V.side)&&Na(_,(J=T.current)===null||J===void 0?void 0:J.area)},[]);return c.createElement(ua,{scope:n,searchRef:H,onItemEnter:c.useCallback(_=>{q(_)&&_.preventDefault()},[q]),onItemLeave:c.useCallback(_=>{var V;q(_)||((V=S.current)===null||V===void 0||V.focus(),M(null))},[q]),onTriggerLeave:c.useCallback(_=>{q(_)&&_.preventDefault()},[q]),pointerGraceTimerRef:F,onPointerGraceIntentChange:c.useCallback(_=>{T.current=_},[])},c.createElement(L,D,c.createElement(Yn,{asChild:!0,trapped:r,onMountAutoFocus:I(s,_=>{var V;_.preventDefault(),(V=S.current)===null||V===void 0||V.focus()}),onUnmountAutoFocus:i},c.createElement(zn,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:v,onDismiss:p},c.createElement(To,C({asChild:!0},w,{dir:h.dir,orientation:"vertical",loop:o,currentTabStopId:y,onCurrentTabStopIdChange:M,onEntryFocus:I(l,_=>{h.isUsingKeyboardRef.current||_.preventDefault()})}),c.createElement(So,C({role:"menu","aria-orientation":"vertical","data-state":cr($.open),"data-radix-menu-content":"",dir:h.dir},b,m,{ref:P,style:{outline:"none",...m.style},onKeyDown:I(m.onKeyDown,_=>{const J=_.target.closest("[data-radix-menu-content]")===_.currentTarget,ne=_.ctrlKey||_.altKey||_.metaKey,Z=_.key.length===1;J&&(_.key==="Tab"&&_.preventDefault(),!ne&&Z&&te(_.key));const re=S.current;if(_.target!==re||!na.includes(_.key))return;_.preventDefault();const de=x().filter(A=>!A.disabled).map(A=>A.ref.current);jo.includes(_.key)&&de.reverse(),Ia(de)}),onBlur:I(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(N.current),H.current="")}),onPointerMove:I(e.onPointerMove,tt(_=>{const V=_.target,J=G.current!==_.clientX;if(_.currentTarget.contains(V)&&J){const ne=_.clientX>G.current?"right":"left";B.current=ne,G.current=_.clientX}}))})))))))}),Jo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return c.createElement(K.div,C({role:"group"},o,{ref:t}))}),ga=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return c.createElement(K.div,C({},o,{ref:t}))}),fn="MenuItem",er="menu.itemSelect",pn=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=c.useRef(null),i=et(fn,e.__scopeMenu),a=dn(fn,e.__scopeMenu),l=ee(t,s),u=c.useRef(!1),f=()=>{const d=s.current;if(!n&&d){const v=new CustomEvent(er,{bubbles:!0,cancelable:!0});d.addEventListener(er,p=>o==null?void 0:o(p),{once:!0}),Wn(d,v),v.defaultPrevented?u.current=!1:i.onClose()}};return c.createElement(tr,C({},r,{ref:l,disabled:n,onClick:I(e.onClick,f),onPointerDown:d=>{var v;(v=e.onPointerDown)===null||v===void 0||v.call(e,d),u.current=!0},onPointerUp:I(e.onPointerUp,d=>{var v;u.current||(v=d.currentTarget)===null||v===void 0||v.click()}),onKeyDown:I(e.onKeyDown,d=>{const v=a.searchRef.current!=="";n||v&&d.key===" "||ln.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),tr=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,i=dn(fn,n),a=Yo(n),l=c.useRef(null),u=ee(t,l),[f,d]=c.useState(!1),[v,p]=c.useState("");return c.useEffect(()=>{const g=l.current;if(g){var m;p(((m=g.textContent)!==null&&m!==void 0?m:"").trim())}},[s.children]),c.createElement(Je.ItemSlot,{scope:n,disabled:o,textValue:r??v},c.createElement(Oo,C({asChild:!0},a,{focusable:!o}),c.createElement(K.div,C({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},s,{ref:u,onPointerMove:I(e.onPointerMove,tt(g=>{o?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus())})),onPointerLeave:I(e.onPointerLeave,tt(g=>i.onItemLeave(g))),onFocus:I(e.onFocus,()=>d(!0)),onBlur:I(e.onBlur,()=>d(!1))}))))}),va=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return c.createElement(or,{scope:e.__scopeMenu,checked:n},c.createElement(pn,C({role:"menuitemcheckbox","aria-checked":Ot(n)?"mixed":n},r,{ref:t,"data-state":mn(n),onSelect:I(r.onSelect,()=>o==null?void 0:o(Ot(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),ha="MenuRadioGroup",[ba,$a]=De(ha,{value:void 0,onValueChange:()=>{}}),wa=c.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=ie(o);return c.createElement(ba,{scope:e.__scopeMenu,value:n,onValueChange:s},c.createElement(Jo,C({},r,{ref:t})))}),xa="MenuRadioItem",ya=c.forwardRef((e,t)=>{const{value:n,...o}=e,r=$a(xa,e.__scopeMenu),s=n===r.value;return c.createElement(or,{scope:e.__scopeMenu,checked:s},c.createElement(pn,C({role:"menuitemradio","aria-checked":s},o,{ref:t,"data-state":mn(s),onSelect:I(o.onSelect,()=>{var i;return(i=r.onValueChange)===null||i===void 0?void 0:i.call(r,n)},{checkForDefaultPrevented:!1})})))}),nr="MenuItemIndicator",[or,Ca]=De(nr,{checked:!1}),Ea=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Ca(nr,n);return c.createElement(Ue,{present:o||Ot(s.checked)||s.checked===!0},c.createElement(K.span,C({},r,{ref:t,"data-state":mn(s.checked)})))}),Sa=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return c.createElement(K.div,C({role:"separator","aria-orientation":"horizontal"},o,{ref:t}))}),rr="MenuSub",[Pa,sr]=De(rr),Ma=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,s=Oe(rr,t),i=_t(t),[a,l]=c.useState(null),[u,f]=c.useState(null),d=ie(r);return c.useEffect(()=>(s.open===!1&&d(!1),()=>d(!1)),[s.open,d]),c.createElement(en,i,c.createElement(qo,{scope:t,open:o,onOpenChange:d,content:u,onContentChange:f},c.createElement(Pa,{scope:t,contentId:Pe(),triggerId:Pe(),trigger:a,onTriggerChange:l},n)))},Tt="MenuSubTrigger",_a=c.forwardRef((e,t)=>{const n=Oe(Tt,e.__scopeMenu),o=et(Tt,e.__scopeMenu),r=sr(Tt,e.__scopeMenu),s=dn(Tt,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=s,u={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),l(null)}},[a,l]),c.createElement(Xo,C({asChild:!0},u),c.createElement(tr,C({id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":cr(n.open)},e,{ref:ct(t,r.onTriggerChange),onClick:d=>{var v;(v=e.onClick)===null||v===void 0||v.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:I(e.onPointerMove,tt(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:I(e.onPointerLeave,tt(d=>{var v;f();const p=(v=n.content)===null||v===void 0?void 0:v.getBoundingClientRect();if(p){var g;const m=(g=n.content)===null||g===void 0?void 0:g.dataset.side,$=m==="right",h=$?-5:5,b=p[$?"left":"right"],w=p[$?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+h,y:d.clientY},{x:b,y:p.top},{x:w,y:p.top},{x:w,y:p.bottom},{x:b,y:p.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:I(e.onKeyDown,d=>{const v=s.searchRef.current!=="";if(!(e.disabled||v&&d.key===" ")&&oa[o.dir].includes(d.key)){var p;n.onOpenChange(!0),(p=n.content)===null||p===void 0||p.focus(),d.preventDefault()}})})))}),Ta="MenuSubContent",Oa=c.forwardRef((e,t)=>{const n=Qo(ge,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Oe(ge,e.__scopeMenu),i=et(ge,e.__scopeMenu),a=sr(Ta,e.__scopeMenu),l=c.useRef(null),u=ee(t,l);return c.createElement(Je.Provider,{scope:e.__scopeMenu},c.createElement(Ue,{present:o||s.open},c.createElement(Je.Slot,{scope:e.__scopeMenu},c.createElement(un,C({id:a.contentId,"aria-labelledby":a.triggerId},r,{ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;i.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:I(e.onFocusOutside,f=>{f.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:I(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:I(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),v=ra[i.dir].includes(f.key);if(d&&v){var p;s.onOpenChange(!1),(p=a.trigger)===null||p===void 0||p.focus(),f.preventDefault()}})})))))});function cr(e){return e?"open":"closed"}function Ot(e){return e==="indeterminate"}function mn(e){return Ot(e)?"indeterminate":e?"checked":"unchecked"}function Ia(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Aa(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function ka(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Aa(e,Math.max(s,0));r.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Da(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,l=t[s].y,u=t[i].x,f=t[i].y;l>o!=f>o&&n<(u-a)*(o-l)/(f-l)+a&&(r=!r)}return r}function Na(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Da(n,t)}function tt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Fa=aa,La=Xo,Ga=da,Ba=fa,Wa=Jo,Ha=ga,za=pn,Ua=va,Va=wa,Ka=ya,ja=Ea,Ra=Sa,Ya=Ma,qa=_a,Xa=Oa,ir="DropdownMenu",[Za,zd]=Ee(ir,[Ro]),oe=Ro(),[Qa,ar]=Za(ir),Ja=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=oe(t),u=c.useRef(null),[f=!1,d]=Le({prop:r,defaultProp:s,onChange:i});return c.createElement(Qa,{scope:t,triggerId:Pe(),triggerRef:u,contentId:Pe(),open:f,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(v=>!v),[d]),modal:a},c.createElement(Fa,C({},l,{open:f,onOpenChange:d,dir:o,modal:a}),n))},el="DropdownMenuTrigger",tl=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=ar(el,n),i=oe(n);return c.createElement(La,C({asChild:!0},i),c.createElement(K.button,C({type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o},r,{ref:ct(t,s.triggerRef),onPointerDown:I(e.onPointerDown,a=>{!o&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:I(e.onKeyDown,a=>{o||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})))}),nl=e=>{const{__scopeDropdownMenu:t,...n}=e,o=oe(t);return c.createElement(Ga,C({},o,n))},ol="DropdownMenuContent",rl=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ar(ol,n),s=oe(n),i=c.useRef(!1);return c.createElement(Ba,C({id:r.contentId,"aria-labelledby":r.triggerId},s,o,{ref:t,onCloseAutoFocus:I(e.onCloseAutoFocus,a=>{var l;i.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:I(e.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!r.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),sl=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return c.createElement(Wa,C({},r,o,{ref:t}))}),cl=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return c.createElement(Ha,C({},r,o,{ref:t}))}),il=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return c.createElement(za,C({},r,o,{ref:t}))}),al=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return c.createElement(Ua,C({},r,o,{ref:t}))}),ll=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return c.createElement(Va,C({},r,o,{ref:t}))}),dl=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return c.createElement(Ka,C({},r,o,{ref:t}))}),ul=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return c.createElement(ja,C({},r,o,{ref:t}))}),fl=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return c.createElement(Ra,C({},r,o,{ref:t}))}),pl=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:s}=e,i=oe(t),[a=!1,l]=Le({prop:o,defaultProp:s,onChange:r});return c.createElement(Ya,C({},i,{open:a,onOpenChange:l}),n)},ml=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return c.createElement(qa,C({},r,o,{ref:t}))}),gl=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return c.createElement(Xa,C({},r,o,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),vl=Ja,hl=tl,lr=nl,dr=rl,bl=sl,ur=cl,fr=il,pr=al,$l=ll,mr=dl,gr=ul,vr=fl,wl=pl,hr=ml,br=gl;var xl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const yl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),It=(e,t)=>{const n=c.forwardRef(({color:o="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:i,children:a,...l},u)=>c.createElement("svg",{ref:u,...xl,width:r,height:r,stroke:o,strokeWidth:i?Number(s)*24/Number(r):s,className:`lucide lucide-${yl(e)}`,...l},[...t.map(([f,d])=>c.createElement(f,d)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},$r=It("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),Cl=It("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),El=It("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),wr=It("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Sl=vl,Pl=hl,Ml=bl,_l=lr,Tl=wl,Ol=$l,xr=E.forwardRef(({className:e="",inset:t,children:n,...o},r)=>O.jsxs(hr,{ref:r,className:z("flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t?"pl-8":"",e),...o,children:[n,O.jsx(El,{className:"ml-auto h-4 w-4"})]}));xr.displayName=hr.displayName;const yr=E.forwardRef(({className:e="",...t},n)=>O.jsx(br,{ref:n,className:z("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-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),...t}));yr.displayName=br.displayName;const Cr=E.forwardRef(({className:e="",sideOffset:t=4,...n},o)=>O.jsx(lr,{children:O.jsx(dr,{ref:o,sideOffset:t,className:z("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-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),...n})}));Cr.displayName=dr.displayName;const Er=E.forwardRef(({className:e="",inset:t,...n},o)=>O.jsx(fr,{ref:o,className:z("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t?"pl-8":"",e),...n}));Er.displayName=fr.displayName;const Sr=E.forwardRef(({className:e="",children:t,checked:n,...o},r)=>O.jsxs(pr,{ref:r,className:z("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[O.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O.jsx(gr,{children:O.jsx($r,{className:"h-4 w-4"})})}),t]}));Sr.displayName=pr.displayName;const Pr=E.forwardRef(({className:e="",children:t,...n},o)=>O.jsxs(mr,{ref:o,className:z("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[O.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O.jsx(gr,{children:O.jsx(wr,{className:"h-2 w-2 fill-current"})})}),t]}));Pr.displayName=mr.displayName;const Mr=E.forwardRef(({className:e="",inset:t,...n},o)=>O.jsx(ur,{ref:o,className:z("px-2 py-1.5 text-sm font-semibold",t?"pl-8":"",e),...n}));Mr.displayName=ur.displayName;const _r=E.forwardRef(({className:e="",...t},n)=>O.jsx(vr,{ref:n,className:z("-mx-1 my-1 h-px bg-muted",e),...t}));_r.displayName=vr.displayName;const Tr=({className:e="",...t})=>O.jsx("span",{className:z("ml-auto text-xs tracking-widest opacity-60",e),...t});Tr.displayName="DropdownMenuShortcut";function Or(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Ir="Radio",[Il,Ar]=Ee(Ir),[Al,kl]=Il(Ir),Dl=c.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:r=!1,required:s,disabled:i,value:a="on",onCheck:l,...u}=e,[f,d]=c.useState(null),v=ee(t,m=>d(m)),p=c.useRef(!1),g=f?!!f.closest("form"):!0;return c.createElement(Al,{scope:n,checked:r,disabled:i},c.createElement(K.button,C({type:"button",role:"radio","aria-checked":r,"data-state":kr(r),"data-disabled":i?"":void 0,disabled:i,value:a},u,{ref:v,onClick:I(e.onClick,m=>{r||l==null||l(),g&&(p.current=m.isPropagationStopped(),p.current||m.stopPropagation())})})),g&&c.createElement(Ll,{control:f,bubbles:!p.current,name:o,value:a,checked:r,required:s,disabled:i,style:{transform:"translateX(-100%)"}}))}),Nl="RadioIndicator",Fl=c.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...r}=e,s=kl(Nl,n);return c.createElement(Ue,{present:o||s.checked},c.createElement(K.span,C({"data-state":kr(s.checked),"data-disabled":s.disabled?"":void 0},r,{ref:t})))}),Ll=e=>{const{control:t,checked:n,bubbles:o=!0,...r}=e,s=c.useRef(null),i=Or(n),a=bo(t);return c.useEffect(()=>{const l=s.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==n&&d){const v=new Event("click",{bubbles:o});d.call(l,n),l.dispatchEvent(v)}},[i,n,o]),c.createElement("input",C({type:"radio","aria-hidden":!0,defaultChecked:n},r,{tabIndex:-1,ref:s,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function kr(e){return e?"checked":"unchecked"}const Gl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Dr="RadioGroup",[Bl,Ud]=Ee(Dr,[$t,Ar]),Nr=$t(),Fr=Ar(),[Wl,Hl]=Bl(Dr),zl=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:r,value:s,required:i=!1,disabled:a=!1,orientation:l,dir:u,loop:f=!0,onValueChange:d,...v}=e,p=Nr(n),g=it(u),[m,$]=Le({prop:s,defaultProp:r,onChange:d});return c.createElement(Wl,{scope:n,name:o,required:i,disabled:a,value:m,onValueChange:$},c.createElement(To,C({asChild:!0},p,{orientation:l,dir:g,loop:f}),c.createElement(K.div,C({role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":a?"":void 0,dir:g},v,{ref:t}))))}),Ul="RadioGroupItem",Vl=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...r}=e,s=Hl(Ul,n),i=s.disabled||o,a=Nr(n),l=Fr(n),u=c.useRef(null),f=ee(t,u),d=s.value===r.value,v=c.useRef(!1);return c.useEffect(()=>{const p=m=>{Gl.includes(m.key)&&(v.current=!0)},g=()=>v.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",g)}},[]),c.createElement(Oo,C({asChild:!0},a,{focusable:!i,active:d}),c.createElement(Dl,C({disabled:i,required:s.required,checked:d},l,r,{name:s.name,ref:f,onCheck:()=>s.onValueChange(r.value),onKeyDown:I(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:I(r.onFocus,()=>{var p;v.current&&((p=u.current)===null||p===void 0||p.click())})})))}),Kl=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,r=Fr(n);return c.createElement(Fl,C({},r,o,{ref:t}))}),Lr=zl,Gr=Vl,jl=Kl,Br=E.forwardRef(({className:e="",...t},n)=>O.jsx(Lr,{className:z("grid gap-2",e),...t,ref:n}));Br.displayName=Lr.displayName;const Wr=E.forwardRef(({className:e="",children:t,...n},o)=>O.jsx(Gr,{ref:o,className:z("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:O.jsx(jl,{className:"flex items-center justify-center",children:O.jsx(wr,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Wr.displayName=Gr.displayName;function Hr(e,[t,n]){return Math.min(n,Math.max(t,e))}const Rl=c.forwardRef((e,t)=>c.createElement(K.span,C({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Yl=[" ","Enter","ArrowUp","ArrowDown"],ql=[" ","Enter"],At="Select",[kt,gn,Xl]=Ht(At),[Re,Vd]=Ee(At,[Xl,ht]),vn=ht(),[Zl,Ne]=Re(At),[Ql,Jl]=Re(At),ed=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:u,name:f,autoComplete:d,disabled:v,required:p}=e,g=vn(t),[m,$]=c.useState(null),[h,b]=c.useState(null),[w,x]=c.useState(!1),y=it(u),[M=!1,S]=Le({prop:o,defaultProp:r,onChange:s}),[P,N]=Le({prop:i,defaultProp:a,onChange:l}),H=c.useRef(null),F=m?!!m.closest("form"):!0,[T,B]=c.useState(new Set),G=Array.from(T).map(L=>L.props.value).join(";");return c.createElement(en,g,c.createElement(Zl,{required:p,scope:t,trigger:m,onTriggerChange:$,valueNode:h,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:Pe(),value:P,onValueChange:N,open:M,onOpenChange:S,dir:y,triggerPointerDownPosRef:H,disabled:v},c.createElement(kt.Provider,{scope:t},c.createElement(Ql,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(L=>{B(D=>new Set(D).add(L))},[]),onNativeOptionRemove:c.useCallback(L=>{B(D=>{const te=new Set(D);return te.delete(L),te})},[])},n)),F?c.createElement(jr,{key:G,"aria-hidden":!0,required:p,tabIndex:-1,name:f,autoComplete:d,value:P,onChange:L=>N(L.target.value),disabled:v},P===void 0?c.createElement("option",{value:""}):null,Array.from(T)):null))},td="SelectTrigger",nd=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=vn(n),i=Ne(td,n),a=i.disabled||o,l=ee(t,i.onTriggerChange),u=gn(n),[f,d,v]=Rr(g=>{const m=u().filter(b=>!b.disabled),$=m.find(b=>b.value===i.value),h=Yr(m,g,$);h!==void 0&&i.onValueChange(h.value)}),p=()=>{a||(i.onOpenChange(!0),v())};return c.createElement(Eo,C({asChild:!0},s),c.createElement(K.button,C({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":i.value===void 0?"":void 0},r,{ref:l,onClick:I(r.onClick,g=>{g.currentTarget.focus()}),onPointerDown:I(r.onPointerDown,g=>{const m=g.target;m.hasPointerCapture(g.pointerId)&&m.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(p(),i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:I(r.onKeyDown,g=>{const m=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&d(g.key),!(m&&g.key===" ")&&Yl.includes(g.key)&&(p(),g.preventDefault())})})))}),od="SelectValue",rd=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:i,...a}=e,l=Ne(od,n),{onValueNodeHasChildrenChange:u}=l,f=s!==void 0,d=ee(t,l.onValueNodeChange);return me(()=>{u(f)},[u,f]),c.createElement(K.span,C({},a,{ref:d,style:{pointerEvents:"none"}}),l.value===void 0&&i!==void 0?i:s)}),sd=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return c.createElement(K.span,C({"aria-hidden":!0},r,{ref:t}),o||"▼")}),cd=e=>c.createElement(Po,C({asChild:!0},e)),Ye="SelectContent",id=c.forwardRef((e,t)=>{const n=Ne(Ye,e.__scopeSelect),[o,r]=c.useState();if(me(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?Fe.createPortal(c.createElement(zr,{scope:e.__scopeSelect},c.createElement(kt.Slot,{scope:e.__scopeSelect},c.createElement("div",null,e.children))),s):null}return c.createElement(ad,C({},e,{ref:t}))}),ye=10,[zr,Dt]=Re(Ye),ad=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:v,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:$,...h}=e,b=Ne(Ye,n),[w,x]=c.useState(null),[y,M]=c.useState(null),S=ee(t,A=>x(A)),[P,N]=c.useState(null),[H,F]=c.useState(null),T=gn(n),[B,G]=c.useState(!1),L=c.useRef(!1);c.useEffect(()=>{if(w)return Ao(w)},[w]),Kn();const D=c.useCallback(A=>{const[U,...Q]=T().map(Y=>Y.ref.current),[j]=Q.slice(-1),R=document.activeElement;for(const Y of A)if(Y===R||(Y==null||Y.scrollIntoView({block:"nearest"}),Y===U&&y&&(y.scrollTop=0),Y===j&&y&&(y.scrollTop=y.scrollHeight),Y==null||Y.focus(),document.activeElement!==R))return},[T,y]),te=c.useCallback(()=>D([P,w]),[D,P,w]);c.useEffect(()=>{B&&te()},[B,te]);const{onOpenChange:q,triggerPointerDownPosRef:_}=b;c.useEffect(()=>{if(w){let A={x:0,y:0};const U=j=>{var R,Y,ue,se;A={x:Math.abs(Math.round(j.pageX)-((R=(Y=_.current)===null||Y===void 0?void 0:Y.x)!==null&&R!==void 0?R:0)),y:Math.abs(Math.round(j.pageY)-((ue=(se=_.current)===null||se===void 0?void 0:se.y)!==null&&ue!==void 0?ue:0))}},Q=j=>{A.x<=10&&A.y<=10?j.preventDefault():w.contains(j.target)||q(!1),document.removeEventListener("pointermove",U),_.current=null};return _.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",Q,{capture:!0})}}},[w,q,_]),c.useEffect(()=>{const A=()=>q(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[q]);const[V,J]=Rr(A=>{const U=T().filter(R=>!R.disabled),Q=U.find(R=>R.ref.current===document.activeElement),j=Yr(U,A,Q);j&&setTimeout(()=>j.ref.current.focus())}),ne=c.useCallback((A,U,Q)=>{const j=!L.current&&!Q;(b.value!==void 0&&b.value===U||j)&&(N(A),j&&(L.current=!0))},[b.value]),Z=c.useCallback(()=>w==null?void 0:w.focus(),[w]),re=c.useCallback((A,U,Q)=>{const j=!L.current&&!Q;(b.value!==void 0&&b.value===U||j)&&F(A)},[b.value]),ce=o==="popper"?Ur:ld,de=ce===Ur?{side:a,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:v,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:$}:{};return c.createElement(zr,{scope:n,content:w,viewport:y,onViewportChange:M,itemRefCallback:ne,selectedItem:P,onItemLeave:Z,itemTextRefCallback:re,focusSelectedItem:te,selectedItemText:H,position:o,isPositioned:B,searchRef:V},c.createElement(Ko,{as:Ge,allowPinchZoom:!0},c.createElement(Yn,{asChild:!0,trapped:b.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:I(r,A=>{var U;(U=b.trigger)===null||U===void 0||U.focus({preventScroll:!0}),A.preventDefault()})},c.createElement(zn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},c.createElement(ce,C({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:A=>A.preventDefault()},h,de,{onPlaced:()=>G(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:I(h.onKeyDown,A=>{const U=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!U&&A.key.length===1&&J(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let j=T().filter(R=>!R.disabled).map(R=>R.ref.current);if(["ArrowUp","End"].includes(A.key)&&(j=j.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const R=A.target,Y=j.indexOf(R);j=j.slice(Y+1)}setTimeout(()=>D(j)),A.preventDefault()}})}))))))}),ld=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Ne(Ye,n),i=Dt(Ye,n),[a,l]=c.useState(null),[u,f]=c.useState(null),d=ee(t,S=>f(S)),v=gn(n),p=c.useRef(!1),g=c.useRef(!0),{viewport:m,selectedItem:$,selectedItemText:h,focusSelectedItem:b}=i,w=c.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&m&&$&&h){const S=s.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),H=h.getBoundingClientRect();if(s.dir!=="rtl"){const R=H.left-P.left,Y=N.left-R,ue=S.left-Y,se=S.width+ue,nt=Math.max(se,P.width),ot=window.innerWidth-ye,rt=Hr(Y,[ye,ot-nt]);a.style.minWidth=se+"px",a.style.left=rt+"px"}else{const R=P.right-H.right,Y=window.innerWidth-N.right-R,ue=window.innerWidth-S.right-Y,se=S.width+ue,nt=Math.max(se,P.width),ot=window.innerWidth-ye,rt=Hr(Y,[ye,ot-nt]);a.style.minWidth=se+"px",a.style.right=rt+"px"}const F=v(),T=window.innerHeight-ye*2,B=m.scrollHeight,G=window.getComputedStyle(u),L=parseInt(G.borderTopWidth,10),D=parseInt(G.paddingTop,10),te=parseInt(G.borderBottomWidth,10),q=parseInt(G.paddingBottom,10),_=L+D+B+q+te,V=Math.min($.offsetHeight*5,_),J=window.getComputedStyle(m),ne=parseInt(J.paddingTop,10),Z=parseInt(J.paddingBottom,10),re=S.top+S.height/2-ye,ce=T-re,de=$.offsetHeight/2,A=$.offsetTop+de,U=L+D+A,Q=_-U;if(U<=re){const R=$===F[F.length-1].ref.current;a.style.bottom="0px";const Y=u.clientHeight-m.offsetTop-m.offsetHeight,ue=Math.max(ce,de+(R?Z:0)+Y+te),se=U+ue;a.style.height=se+"px"}else{const R=$===F[0].ref.current;a.style.top="0px";const ue=Math.max(re,L+m.offsetTop+(R?ne:0)+de)+Q;a.style.height=ue+"px",m.scrollTop=U-re+m.offsetTop}a.style.margin=`${ye}px 0`,a.style.minHeight=V+"px",a.style.maxHeight=T+"px",o==null||o(),requestAnimationFrame(()=>p.current=!0)}},[v,s.trigger,s.valueNode,a,u,m,$,h,s.dir,o]);me(()=>w(),[w]);const[x,y]=c.useState();me(()=>{u&&y(window.getComputedStyle(u).zIndex)},[u]);const M=c.useCallback(S=>{S&&g.current===!0&&(w(),b==null||b(),g.current=!1)},[w,b]);return c.createElement(dd,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:M},c.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},c.createElement(K.div,C({},r,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}}))))}),Ur=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=ye,...s}=e,i=vn(n);return c.createElement(So,C({},i,s,{ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[dd,ud]=Re(Ye,{}),Vr="SelectViewport",fd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Dt(Vr,n),s=ud(Vr,n),i=ee(t,r.onViewportChange),a=c.useRef(0);return c.createElement(c.Fragment,null,c.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),c.createElement(kt.Slot,{scope:n},c.createElement(K.div,C({"data-radix-select-viewport":"",role:"presentation"},o,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:I(o.onScroll,l=>{const u=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=s;if(d!=null&&d.current&&f){const v=Math.abs(a.current-u.scrollTop);if(v>0){const p=window.innerHeight-ye*2,g=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),$=Math.max(g,m);if($<p){const h=$+v,b=Math.min(p,h),w=h-b;f.style.height=b+"px",f.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}a.current=u.scrollTop})}))))}),pd="SelectGroup",[md,gd]=Re(pd),vd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Pe();return c.createElement(md,{scope:n,id:r},c.createElement(K.div,C({role:"group","aria-labelledby":r},o,{ref:t})))}),hd="SelectLabel",bd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=gd(hd,n);return c.createElement(K.div,C({id:r.id},o,{ref:t}))}),hn="SelectItem",[$d,Kr]=Re(hn),wd=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...i}=e,a=Ne(hn,n),l=Dt(hn,n),u=a.value===o,[f,d]=c.useState(s??""),[v,p]=c.useState(!1),g=ee(t,h=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,h,o,r)}),m=Pe(),$=()=>{r||(a.onValueChange(o),a.onOpenChange(!1))};return c.createElement($d,{scope:n,value:o,disabled:r,textId:m,isSelected:u,onItemTextChange:c.useCallback(h=>{d(b=>{var w;return b||((w=h==null?void 0:h.textContent)!==null&&w!==void 0?w:"").trim()})},[])},c.createElement(kt.ItemSlot,{scope:n,value:o,disabled:r,textValue:f},c.createElement(K.div,C({role:"option","aria-labelledby":m,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1},i,{ref:g,onFocus:I(i.onFocus,()=>p(!0)),onBlur:I(i.onBlur,()=>p(!1)),onPointerUp:I(i.onPointerUp,$),onPointerMove:I(i.onPointerMove,h=>{if(r){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:I(i.onPointerLeave,h=>{if(h.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:I(i.onKeyDown,h=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&h.key===" "||(ql.includes(h.key)&&$(),h.key===" "&&h.preventDefault())})}))))}),Nt="SelectItemText",xd=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,i=Ne(Nt,n),a=Dt(Nt,n),l=Kr(Nt,n),u=Jl(Nt,n),[f,d]=c.useState(null),v=ee(t,h=>d(h),l.onItemTextChange,h=>{var b;return(b=a.itemTextRefCallback)===null||b===void 0?void 0:b.call(a,h,l.value,l.disabled)}),p=f==null?void 0:f.textContent,g=c.useMemo(()=>c.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},p),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:$}=u;return me(()=>(m(g),()=>$(g)),[m,$,g]),c.createElement(c.Fragment,null,c.createElement(K.span,C({id:l.textId},s,{ref:v})),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Fe.createPortal(s.children,i.valueNode):null)}),yd="SelectItemIndicator",Cd=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return Kr(yd,n).isSelected?c.createElement(K.span,C({"aria-hidden":!0},o,{ref:t})):null}),Ed=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return c.createElement(K.div,C({"aria-hidden":!0},o,{ref:t}))}),jr=c.forwardRef((e,t)=>{const{value:n,...o}=e,r=c.useRef(null),s=ee(t,r),i=Or(n);return c.useEffect(()=>{const a=r.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&f){const d=new Event("change",{bubbles:!0});f.call(a,n),a.dispatchEvent(d)}},[i,n]),c.createElement(Rl,{asChild:!0},c.createElement("select",C({},o,{ref:s,defaultValue:n})))});jr.displayName="BubbleSelect";function Rr(e){const t=ie(e),n=c.useRef(""),o=c.useRef(0),r=c.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=c.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Yr(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Sd(e,Math.max(s,0));r.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Sd(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const Pd=ed,qr=nd,Md=rd,_d=sd,Td=cd,Xr=id,Od=fd,Id=vd,Zr=bd,Qr=wd,Ad=xd,kd=Cd,Jr=Ed,Dd=Pd,Nd=Id,Fd=Md,es=E.forwardRef(({className:e="",children:t,...n},o)=>O.jsxs(qr,{ref:o,className:z("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,O.jsx(_d,{asChild:!0,children:O.jsx(Cl,{className:"h-4 w-4 opacity-50"})})]}));es.displayName=qr.displayName;const ts=E.forwardRef(({className:e="",children:t,position:n="popper",...o},r)=>O.jsx(Td,{children:O.jsx(Xr,{ref:r,className:z("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-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",n==="popper"?"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),position:n,...o,children:O.jsx(Od,{className:z("p-1",n==="popper"?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:t})})}));ts.displayName=Xr.displayName;const ns=E.forwardRef(({className:e="",...t},n)=>O.jsx(Zr,{ref:n,className:z("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));ns.displayName=Zr.displayName;const os=E.forwardRef(({className:e="",children:t,...n},o)=>O.jsxs(Qr,{ref:o,className:z("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[O.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O.jsx(kd,{children:O.jsx($r,{className:"h-4 w-4"})})}),O.jsx(Ad,{children:t})]}));os.displayName=Qr.displayName;const rs=E.forwardRef(({className:e="",...t},n)=>O.jsx(Jr,{ref:n,className:z("-mx-1 my-1 h-px bg-muted",e),...t}));rs.displayName=Jr.displayName,k.Button=Ns,k.Card=Dn,k.CardContent=Gn,k.CardDescription=Ln,k.CardFooter=Bn,k.CardHeader=Nn,k.CardTitle=Fn,k.Checkbox=Vs,k.DropdownMenu=Sl,k.DropdownMenuCheckboxItem=Sr,k.DropdownMenuContent=Cr,k.DropdownMenuGroup=Ml,k.DropdownMenuItem=Er,k.DropdownMenuLabel=Mr,k.DropdownMenuPortal=_l,k.DropdownMenuRadioGroup=Ol,k.DropdownMenuRadioItem=Pr,k.DropdownMenuSeparator=_r,k.DropdownMenuShortcut=Tr,k.DropdownMenuSub=Tl,k.DropdownMenuSubContent=yr,k.DropdownMenuSubTrigger=xr,k.DropdownMenuTrigger=Pl,k.Heading=Us,k.Input=Gs,k.Label=Hs,k.Paragraph=Ws,k.RadioGroup=Br,k.RadioGroupItem=Wr,k.Select=Dd,k.SelectContent=ts,k.SelectGroup=Nd,k.SelectItem=os,k.SelectLabel=ns,k.SelectSeparator=rs,k.SelectTrigger=es,k.SelectValue=Fd,k.Spinner=Ls,k.TextArea=Bs,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ export * from './src/index'
@@ -0,0 +1,7 @@
1
+ import { type StylesVariants, type SizesVariants } from './button.types';
2
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ variant?: StylesVariants;
4
+ size?: SizesVariants;
5
+ }
6
+ export declare const Button: React.FC<ButtonProps>;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ export declare enum STYLES_VARIANTS {
2
+ DEFAULT = "default",
3
+ DESTRUCTIVE = "destructive",
4
+ OUTLINE = "outline",
5
+ SECONDARY = "secondary",
6
+ GHOST = "ghost",
7
+ LINK = "link"
8
+ }
9
+ export declare enum SIZES_VARIANTS {
10
+ DEFAULT = "default",
11
+ SM = "sm",
12
+ LG = "lg",
13
+ ICON = "icon"
14
+ }
@@ -0,0 +1,3 @@
1
+ import { type STYLES_VARIANTS, type SIZES_VARIANTS } from './button.variants';
2
+ export type StylesVariants = keyof typeof STYLES_VARIANTS;
3
+ export type SizesVariants = keyof typeof SIZES_VARIANTS;
@@ -0,0 +1,14 @@
1
+ export declare const STYLES_VARIANTS: {
2
+ default: string;
3
+ destructive: string;
4
+ outline: string;
5
+ secondary: string;
6
+ ghost: string;
7
+ link: string;
8
+ };
9
+ export declare const SIZES_VARIANTS: {
10
+ default: string;
11
+ sm: string;
12
+ lg: string;
13
+ icon: string;
14
+ };
@@ -0,0 +1,4 @@
1
+ interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
2
+ }
3
+ export declare const Checkbox: React.FC<CheckboxProps>;
4
+ export {};
@@ -0,0 +1,6 @@
1
+ import { LevelVariants } from './heading.types';
2
+ interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
+ level?: LevelVariants;
4
+ }
5
+ export declare const Heading: React.FC<HeadingProps>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare enum LEVELS_VARIANTS {
2
+ H1 = "h1",
3
+ H2 = "h2",
4
+ H3 = "h3",
5
+ H4 = "h4",
6
+ H5 = "h5",
7
+ H6 = "h6"
8
+ }
@@ -0,0 +1,2 @@
1
+ import { LEVELS_VARIANTS } from './heading.variants';
2
+ export type LevelVariants = keyof typeof LEVELS_VARIANTS;
@@ -0,0 +1,8 @@
1
+ export declare const LEVELS_VARIANTS: {
2
+ h1: string;
3
+ h2: string;
4
+ h3: string;
5
+ h4: string;
6
+ h5: string;
7
+ h6: string;
8
+ };
@@ -0,0 +1,8 @@
1
+ export * from './button/button';
2
+ export * from './spinner/spinner';
3
+ export * from './input/input';
4
+ export * from './text-area/text-area';
5
+ export * from './paragraph/paragraph';
6
+ export * from './label/label';
7
+ export * from './heading/heading';
8
+ export * from './checkbox/checkbox';
@@ -0,0 +1,4 @@
1
+ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
2
+ }
3
+ export declare const Input: React.FC<InputProps>;
4
+ export {};
@@ -0,0 +1,5 @@
1
+ interface LabelProps extends React.HTMLAttributes<HTMLLabelElement> {
2
+ htmlFor?: string;
3
+ }
4
+ export declare const Label: React.FC<LabelProps>;
5
+ export {};
@@ -0,0 +1,4 @@
1
+ interface ParagraphProps extends React.HTMLAttributes<HTMLParagraphElement> {
2
+ }
3
+ export declare const Paragraph: React.FC<ParagraphProps>;
4
+ export {};
@@ -0,0 +1,7 @@
1
+ import { StylesVariants, SizesVariants } from './spinner.types';
2
+ interface SpinnerProps {
3
+ variant?: StylesVariants;
4
+ size?: SizesVariants;
5
+ }
6
+ export declare const Spinner: React.FC<SpinnerProps>;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ export declare enum STYLES_VARIANTS {
2
+ DEFAULT = "default",
3
+ PRIMARY = "primary",
4
+ SECONDARY = "secondary"
5
+ }
6
+ export declare enum SIZES_VARIANTS {
7
+ DEFAULT = "default",
8
+ SM = "sm",
9
+ MD = "md",
10
+ LG = "lg"
11
+ }
@@ -0,0 +1,3 @@
1
+ import { STYLES_VARIANTS, SIZES_VARIANTS } from './spinner.variants';
2
+ export type StylesVariants = keyof typeof STYLES_VARIANTS;
3
+ export type SizesVariants = keyof typeof SIZES_VARIANTS;
@@ -0,0 +1,11 @@
1
+ export declare const STYLES_VARIANTS: {
2
+ default: string;
3
+ primary: string;
4
+ secondary: string;
5
+ };
6
+ export declare const SIZES_VARIANTS: {
7
+ default: string;
8
+ sm: string;
9
+ md: string;
10
+ lg: string;
11
+ };
@@ -0,0 +1,4 @@
1
+ interface TextAreaProps extends React.HTMLProps<HTMLTextAreaElement> {
2
+ }
3
+ export declare const TextArea: React.FC<TextAreaProps>;
4
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './atoms';
2
+ export * from './molecules';
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ }
4
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
5
+ interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ }
7
+ declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
8
+ interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
9
+ }
10
+ declare const CardTitle: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLParagraphElement>>;
11
+ interface CardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
12
+ }
13
+ declare const CardDescription: React.ForwardRefExoticComponent<CardDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
14
+ interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
15
+ }
16
+ declare const CardContent: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<HTMLDivElement>>;
17
+ interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
18
+ }
19
+ declare const CardFooter: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
20
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -0,0 +1,6 @@
1
+ import { Label as LabelType } from './checkbox-container.types';
2
+ interface CheckboxContainerProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ label?: LabelType;
4
+ }
5
+ export declare const CheckboxContainer: React.FC<CheckboxContainerProps>;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare enum STYLES_VARIANTS {
2
+ DEFAULT = "default"
3
+ }
@@ -0,0 +1,6 @@
1
+ import { STYLES_VARIANTS } from './checkbox-container.variants';
2
+ export type StylesVariants = keyof typeof STYLES_VARIANTS;
3
+ export type Label = {
4
+ value: string;
5
+ className: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ export declare const STYLES_VARIANTS: {
2
+ default: string;
3
+ };