@neydareh/ui 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.stories.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert-dialog.stories.d.ts +7 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/alert.stories.d.ts +8 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/avatar.stories.d.ts +8 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.stories.d.ts +10 -0
- package/dist/components/ui/breadcrumb.d.ts +19 -0
- package/dist/components/ui/breadcrumb.stories.d.ts +7 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.stories.d.ts +12 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/calendar.stories.d.ts +7 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/card.stories.d.ts +8 -0
- package/dist/components/ui/carousel.d.ts +18 -0
- package/dist/components/ui/carousel.stories.d.ts +8 -0
- package/dist/components/ui/chart.d.ts +62 -0
- package/dist/components/ui/chart.stories.d.ts +7 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.stories.d.ts +9 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.stories.d.ts +7 -0
- package/dist/components/ui/command.d.ts +80 -0
- package/dist/components/ui/context-menu.d.ts +27 -0
- package/dist/components/ui/dialog.d.ts +19 -0
- package/dist/components/ui/dialog.stories.d.ts +7 -0
- package/dist/components/ui/drawer.d.ts +22 -0
- package/dist/components/ui/drawer.stories.d.ts +7 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/form.d.ts +23 -0
- package/dist/components/ui/form.stories.d.ts +7 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.stories.d.ts +7 -0
- package/dist/components/ui/input-otp.d.ts +34 -0
- package/dist/components/ui/input-otp.stories.d.ts +7 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.stories.d.ts +11 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.stories.d.ts +7 -0
- package/dist/components/ui/menubar.d.ts +28 -0
- package/dist/components/ui/menubar.stories.d.ts +7 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/navigation-menu.stories.d.ts +7 -0
- package/dist/components/ui/pagination.d.ts +28 -0
- package/dist/components/ui/pagination.stories.d.ts +7 -0
- package/dist/components/ui/popover.d.ts +6 -0
- package/dist/components/ui/popover.stories.d.ts +7 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/progress.stories.d.ts +8 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group.stories.d.ts +7 -0
- package/dist/components/ui/resizable.d.ts +23 -0
- package/dist/components/ui/resizable.stories.d.ts +7 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.stories.d.ts +7 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/select.stories.d.ts +7 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.stories.d.ts +7 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/sheet.stories.d.ts +8 -0
- package/dist/components/ui/sidebar.d.ts +65 -0
- package/dist/components/ui/sidebar.stories.d.ts +7 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton.stories.d.ts +8 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/slider.stories.d.ts +8 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/switch.stories.d.ts +9 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.stories.d.ts +7 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tabs.stories.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/textarea.stories.d.ts +10 -0
- package/dist/components/ui/toast.d.ts +15 -0
- package/dist/components/ui/toast.stories.d.ts +7 -0
- package/dist/components/ui/toaster.d.ts +1 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle-group.stories.d.ts +7 -0
- package/dist/components/ui/toggle.d.ts +12 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip.stories.d.ts +7 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-toast.d.ts +44 -0
- package/dist/index.d.ts +51 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/planpal-ui.es.js +26076 -0
- package/dist/planpal-ui.umd.js +225 -0
- package/dist/style.css +1 -0
- package/package.json +103 -0
- package/readme.md +43 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
(function(P,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],_):(P=typeof globalThis<"u"?globalThis:P||self,_(P.PlanPalUI={},P.React,P.ReactDOM))})(this,function(P,_,ds){"use strict";function Zd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=Zd(_),Fr=Zd(ds);function Qd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Qd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Qd(e))&&(r&&(r+=" "),r+=t);return r}const fs="-",qP=e=>{const t=ZP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(fs);return s[0]===""&&s.length!==1&&s.shift(),Jd(s,t)||XP(i)},getConflictingClassGroupIds:(i,s)=>{const l=n[i]||[];return s&&r[i]?[...l,...r[i]]:l}}},Jd=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Jd(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(fs);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},ef=/^\[(.+)\]$/,XP=e=>{if(ef.test(e)){const t=ef.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ZP=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return JP(Object.entries(e.classGroups),n).forEach(([a,i])=>{ps(i,r,a,t)}),r},ps=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:tf(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(QP(o)){ps(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{ps(i,tf(t,a),n,r)})})},tf=(e,t)=>{let n=e;return t.split(fs).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},QP=e=>e.isThemeGetter,JP=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[n,o]}):e,eN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},nf="!",tN=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,i=s=>{const l=[];let u=0,f=0,p;for(let b=0;b<s.length;b++){let y=s[b];if(u===0){if(y===o&&(r||s.slice(b,b+a)===t)){l.push(s.slice(f,b)),f=b+a;continue}if(y==="/"){p=b;continue}}y==="["?u++:y==="]"&&u--}const m=l.length===0?s:s.substring(f),v=m.startsWith(nf),g=v?m.substring(1):m,h=p&&p>f?p-f:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:h}};return n?s=>n({className:s,parseClassName:i}):i},nN=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},rN=e=>({cache:eN(e.cacheSize),parseClassName:tN(e),...qP(e)}),oN=/\s+/,aN=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(oN);let s="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:v}=n(u);let g=!!v,h=r(g?m.substring(0,v):m);if(!h){if(!g){s=u+(s.length>0?" "+s:s);continue}if(h=r(m),!h){s=u+(s.length>0?" "+s:s);continue}g=!1}const b=nN(f).join(":"),y=p?b+nf:b,w=y+h;if(a.includes(w))continue;a.push(w);const x=o(h,g);for(let S=0;S<x.length;++S){const C=x[S];a.push(y+C)}s=u+(s.length>0?" "+s:s)}return s};function iN(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=rf(t))&&(r&&(r+=" "),r+=n);return r}const rf=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=rf(e[r]))&&(n&&(n+=" "),n+=t);return n};function sN(e,...t){let n,r,o,a=i;function i(l){const u=t.reduce((f,p)=>p(f),e());return n=rN(u),r=n.cache.get,o=n.cache.set,a=s,s(l)}function s(l){const u=r(l);if(u)return u;const f=aN(l,n);return o(l,f),f}return function(){return a(iN.apply(null,arguments))}}const Ne=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},of=/^\[(?:([a-z-]+):)?(.+)\]$/i,lN=/^\d+\/\d+$/,cN=new Set(["px","full","screen"]),uN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dN=/\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$/,fN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gt=e=>Zn(e)||cN.has(e)||lN.test(e),rn=e=>Qn(e,"length",SN),Zn=e=>!!e&&!Number.isNaN(Number(e)),ms=e=>Qn(e,"number",Zn),Br=e=>!!e&&Number.isInteger(Number(e)),hN=e=>e.endsWith("%")&&Zn(e.slice(0,-1)),ue=e=>of.test(e),on=e=>uN.test(e),vN=new Set(["length","size","percentage"]),gN=e=>Qn(e,vN,af),bN=e=>Qn(e,"position",af),yN=new Set(["image","url"]),wN=e=>Qn(e,yN,_N),xN=e=>Qn(e,"",CN),zr=()=>!0,Qn=(e,t,n)=>{const r=of.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},SN=e=>dN.test(e)&&!fN.test(e),af=()=>!1,CN=e=>pN.test(e),_N=e=>mN.test(e),EN=sN(()=>{const e=Ne("colors"),t=Ne("spacing"),n=Ne("blur"),r=Ne("brightness"),o=Ne("borderColor"),a=Ne("borderRadius"),i=Ne("borderSpacing"),s=Ne("borderWidth"),l=Ne("contrast"),u=Ne("grayscale"),f=Ne("hueRotate"),p=Ne("invert"),m=Ne("gap"),v=Ne("gradientColorStops"),g=Ne("gradientColorStopPositions"),h=Ne("inset"),b=Ne("margin"),y=Ne("opacity"),w=Ne("padding"),x=Ne("saturate"),S=Ne("scale"),C=Ne("sepia"),N=Ne("skew"),E=Ne("space"),A=Ne("translate"),T=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",ue,t],k=()=>[ue,t],U=()=>["",Gt,rn],L=()=>["auto",Zn,ue],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",ue],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>[Zn,ue];return{cacheSize:500,separator:":",theme:{colors:[zr],spacing:[Gt,rn],blur:["none","",on,ue],brightness:O(),borderColor:[e],borderRadius:["none","","full",on,ue],borderSpacing:k(),borderWidth:U(),contrast:O(),grayscale:K(),hueRotate:O(),invert:K(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[hN,rn],inset:R(),margin:R(),opacity:O(),padding:k(),saturate:O(),scale:O(),sepia:K(),skew:O(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[on]}],"break-after":[{"break-after":oe()}],"break-before":[{"break-before":oe()}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),ue]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Br,ue]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",Br,ue]}],"grid-cols":[{"grid-cols":[zr]}],"col-start-end":[{col:["auto",{span:["full",Br,ue]},ue]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[zr]}],"row-start-end":[{row:["auto",{span:[Br,ue]},ue]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,t]}],"min-w":[{"min-w":[ue,t,"min","max","fit"]}],"max-w":[{"max-w":[ue,t,"none","full","min","max","fit","prose",{screen:[on]},on]}],h:[{h:[ue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",on,rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ms]}],"font-family":[{font:[zr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ue]}],"line-clamp":[{"line-clamp":["none",Zn,ms]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Gt,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Gt,rn]}],"underline-offset":[{"underline-offset":["auto",Gt,ue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],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",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),bN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:V()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Gt,ue]}],"outline-w":[{outline:[Gt,rn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Gt,rn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",on,xN]}],"shadow-color":[{shadow:[zr]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",on,ue]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"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",ue]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Br,ue]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",ue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Gt,rn,ms]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-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-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function M(...e){return EN(Vt(e))}const hs=768;function sf(){const[e,t]=c.useState(void 0);return c.useEffect(()=>{const n=window.matchMedia(`(max-width: ${hs-1}px)`),r=()=>{t(window.innerWidth<hs)};return n.addEventListener("change",r),t(window.innerWidth<hs),()=>{n.removeEventListener("change",r)}},[]),!!e}const PN=1,NN=1e6;let vs=0;function TN(){return vs=(vs+1)%Number.MAX_SAFE_INTEGER,vs.toString()}const gs=new Map,lf=e=>{if(gs.has(e))return;const t=setTimeout(()=>{gs.delete(e),Wr({type:"REMOVE_TOAST",toastId:e})},NN);gs.set(e,t)},cf=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,PN)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?lf(n):e.toasts.forEach(r=>{lf(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ra=[];let oa={toasts:[]};function Wr(e){oa=cf(oa,e),ra.forEach(t=>{t(oa)})}function uf({...e}){const t=TN(),n=o=>Wr({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>{Wr({type:"DISMISS_TOAST",toastId:t})};return Wr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function df(){const[e,t]=c.useState(oa);return c.useEffect(()=>(ra.push(t),()=>{const n=ra.indexOf(t);n>-1&&ra.splice(n,1)}),[e]),{...e,toast:uf,dismiss:n=>{Wr({type:"DISMISS_TOAST",toastId:n})}}}var aa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bs={exports:{}},Hr={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ff;function MN(){if(ff)return Hr;ff=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return Hr.Fragment=t,Hr.jsx=n,Hr.jsxs=n,Hr}var Vr={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var pf;function RN(){return pf||(pf=1,process.env.NODE_ENV!=="production"&&function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===R?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case b:return"Fragment";case w:return"Profiler";case y:return"StrictMode";case N:return"Suspense";case E:return"SuspenseList";case F:return"Activity"}if(typeof O=="object")switch(typeof O.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case h:return"Portal";case S:return O.displayName||"Context";case x:return(O._context.displayName||"Context")+".Consumer";case C:var D=O.render;return O=O.displayName,O||(O=D.displayName||D.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case A:return D=O.displayName||null,D!==null?D:e(O.type)||"Memo";case T:D=O._payload,O=O._init;try{return e(O(D))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var D=!1}catch{D=!0}if(D){D=console;var j=D.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return j.call(D,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),t(O)}}function r(O){if(O===b)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===T)return"<...>";try{var D=e(O);return D?"<"+D+">":"<...>"}catch{return"<...>"}}function o(){var O=k.A;return O===null?null:O.getOwner()}function a(){return Error("react-stack-top-frame")}function i(O){if(U.call(O,"key")){var D=Object.getOwnPropertyDescriptor(O,"key").get;if(D&&D.isReactWarning)return!1}return O.key!==void 0}function s(O,D){function j(){V||(V=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",D))}j.isReactWarning=!0,Object.defineProperty(O,"key",{get:j,configurable:!0})}function l(){var O=e(this.type);return B[O]||(B[O]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),O=this.props.ref,O!==void 0?O:null}function u(O,D,j,H,Y,Z){var I=j.ref;return O={$$typeof:g,type:O,key:D,props:j,_owner:H},(I!==void 0?I:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:l}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function f(O,D,j,H,Y,Z){var I=D.children;if(I!==void 0)if(H)if(L(I)){for(H=0;H<I.length;H++)p(I[H]);Object.freeze&&Object.freeze(I)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(I);if(U.call(D,"key")){I=e(O);var q=Object.keys(D).filter(function(te){return te!=="key"});H=0<q.length?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}",oe[I+H]||(q=0<q.length?"{"+q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,H,I,q,I),oe[I+H]=!0)}if(I=null,j!==void 0&&(n(j),I=""+j),i(D)&&(n(D.key),I=""+D.key),"key"in D){j={};for(var J in D)J!=="key"&&(j[J]=D[J])}else j=D;return I&&s(j,typeof O=="function"?O.displayName||O.name||"Unknown":O),u(O,I,j,o(),Y,Z)}function p(O){m(O)?O._store&&(O._store.validated=1):typeof O=="object"&&O!==null&&O.$$typeof===T&&(O._payload.status==="fulfilled"?m(O._payload.value)&&O._payload.value._store&&(O._payload.value._store.validated=1):O._store&&(O._store.validated=1))}function m(O){return typeof O=="object"&&O!==null&&O.$$typeof===g}var v=_,g=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),S=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),k=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,L=Array.isArray,G=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(O){return O()}};var V,B={},$=v.react_stack_bottom_frame.bind(v,a)(),K=G(r(a)),oe={};Vr.Fragment=b,Vr.jsx=function(O,D,j){var H=1e4>k.recentlyCreatedOwnerStacks++;return f(O,D,j,!1,H?Error("react-stack-top-frame"):$,H?G(r(O)):K)},Vr.jsxs=function(O,D,j){var H=1e4>k.recentlyCreatedOwnerStacks++;return f(O,D,j,!0,H?Error("react-stack-top-frame"):$,H?G(r(O)):K)}}()),Vr}process.env.NODE_ENV==="production"?bs.exports=MN():bs.exports=RN();var d=bs.exports;function ON(e,t){const n=c.createContext(t),r=a=>{const{children:i,...s}=a,l=c.useMemo(()=>s,Object.values(s));return d.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(a){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Te(e,t=[]){let n=[];function r(a,i){const s=c.createContext(i),l=n.length;n=[...n,i];const u=p=>{var y;const{scope:m,children:v,...g}=p,h=((y=m==null?void 0:m[e])==null?void 0:y[l])||s,b=c.useMemo(()=>g,Object.values(g));return d.jsx(h.Provider,{value:b,children:v})};u.displayName=a+"Provider";function f(p,m){var h;const v=((h=m==null?void 0:m[e])==null?void 0:h[l])||s,g=c.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,AN(o,...t)]}function AN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:u})=>{const p=l(a)[`__scope${u}`];return{...s,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function mf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Be(...e){return t=>{let n=!1;const r=e.map(o=>{const a=mf(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():mf(e[o],null)}}}}function ae(...e){return c.useCallback(Be(...e),e)}function hf(e){const t=DN(e),n=c.forwardRef((r,o)=>{const{children:a,...i}=r,s=c.Children.toArray(a),l=s.find(jN);if(l){const u=l.props.children,f=s.map(p=>p===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return d.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function DN(e){const t=c.forwardRef((n,r)=>{const{children:o,...a}=n;if(c.isValidElement(o)){const i=kN(o),s=$N(a,o.props);return o.type!==c.Fragment&&(s.ref=r?Be(r,i):i),c.cloneElement(o,s)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var IN=Symbol("radix.slottable");function jN(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IN}function $N(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function kN(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ut(e){const t=e+"CollectionProvider",[n,r]=Te(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:b,children:y}=h,w=_.useRef(null),x=_.useRef(new Map).current;return d.jsx(o,{scope:b,itemMap:x,collectionRef:w,children:y})};i.displayName=t;const s=e+"CollectionSlot",l=hf(s),u=_.forwardRef((h,b)=>{const{scope:y,children:w}=h,x=a(s,y),S=ae(b,x.collectionRef);return d.jsx(l,{ref:S,children:w})});u.displayName=s;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=hf(f),v=_.forwardRef((h,b)=>{const{scope:y,children:w,...x}=h,S=_.useRef(null),C=ae(b,S),N=a(f,y);return _.useEffect(()=>(N.itemMap.set(S,{ref:S,...x}),()=>void N.itemMap.delete(S))),d.jsx(m,{[p]:"",ref:C,children:w})});v.displayName=f;function g(h){const b=a(e+"CollectionConsumer",h);return _.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((N,E)=>x.indexOf(N.ref.current)-x.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:v},g,r]}function z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var Me=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},LN=c[" useInsertionEffect ".trim().toString()]||Me;function _e({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=FN({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const p=f.current;p!==s&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,r])}const u=c.useCallback(f=>{var p;if(s){const m=BN(f)?f(e):f;m!==e&&((p=i.current)==null||p.call(i,m))}else a(f)},[s,e,a,i]);return[l,u]}function FN({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return LN(()=>{a.current=t},[t]),c.useEffect(()=>{var i;o.current!==n&&((i=a.current)==null||i.call(a,n),o.current=n)},[n,o]),[n,r,a]}function BN(e){return typeof e=="function"}function zN(e){const t=WN(e),n=c.forwardRef((r,o)=>{const{children:a,...i}=r,s=c.Children.toArray(a),l=s.find(VN);if(l){const u=l.props.children,f=s.map(p=>p===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return d.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function WN(e){const t=c.forwardRef((n,r)=>{const{children:o,...a}=n;if(c.isValidElement(o)){const i=UN(o),s=GN(a,o.props);return o.type!==c.Fragment&&(s.ref=r?Be(r,i):i),c.cloneElement(o,s)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var HN=Symbol("radix.slottable");function VN(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===HN}function GN(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function UN(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var KN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=KN.reduce((e,t)=>{const n=zN(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Gr(e,t){e&&Fr.flushSync(()=>e.dispatchEvent(t))}function YN(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var Re=e=>{const{present:t,children:n}=e,r=qN(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=ae(r.ref,XN(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};Re.displayName="Presence";function qN(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,l]=YN(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=ia(r.current);a.current=s==="mounted"?u:"none"},[s]),Me(()=>{const u=r.current,f=o.current;if(f!==e){const m=a.current,v=ia(u);e?l("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Me(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=v=>{const h=ia(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&h&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=v=>{v.target===t&&(a.current=ia(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ia(e){return(e==null?void 0:e.animationName)||"none"}function XN(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ZN=c[" useId ".trim().toString()]||(()=>{}),QN=0;function xe(e){const[t,n]=c.useState(ZN());return Me(()=>{n(r=>r??String(QN++))},[e]),t?`radix-${t}`:""}var sa="Collapsible",[JN,vf]=Te(sa),[eT,ys]=JN(sa),gf=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[l,u]=_e({prop:r,defaultProp:o??!1,onChange:i,caller:sa});return d.jsx(eT,{scope:n,disabled:a,contentId:xe(),open:l,onOpenToggle:c.useCallback(()=>u(f=>!f),[u]),children:d.jsx(ee.div,{"data-state":Cs(l),"data-disabled":a?"":void 0,...s,ref:t})})});gf.displayName=sa;var bf="CollapsibleTrigger",ws=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=ys(bf,n);return d.jsx(ee.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Cs(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:z(e.onClick,o.onOpenToggle)})});ws.displayName=bf;var xs="CollapsibleContent",Ss=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ys(xs,e.__scopeCollapsible);return d.jsx(Re,{present:n||o.open,children:({present:a})=>d.jsx(tT,{...r,ref:t,present:a})})});Ss.displayName=xs;var tT=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=ys(xs,n),[s,l]=c.useState(r),u=c.useRef(null),f=ae(t,u),p=c.useRef(0),m=p.current,v=c.useRef(0),g=v.current,h=i.open||s,b=c.useRef(h),y=c.useRef(void 0);return c.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),Me(()=>{const w=u.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();p.current=x.height,v.current=x.width,b.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),l(r)}},[i.open,r]),d.jsx(ee.div,{"data-state":Cs(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!h,...a,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:h&&o})});function Cs(e){return e?"open":"closed"}var yf=gf,nT=ws,rT=Ss,oT=c.createContext(void 0);function ht(e){const t=c.useContext(oT);return e||t||"ltr"}var vt="Accordion",aT=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_s,iT,sT]=Ut(vt),[la]=Te(vt,[sT,vf]),Es=vf(),wf=_.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return d.jsx(_s.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?d.jsx(dT,{...a,ref:t}):d.jsx(uT,{...o,ref:t})})});wf.displayName=vt;var[xf,lT]=la(vt),[Sf,cT]=la(vt,{collapsible:!1}),uT=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,l]=_e({prop:n,defaultProp:r??"",onChange:o,caller:vt});return d.jsx(xf,{scope:e.__scopeAccordion,value:_.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:_.useCallback(()=>a&&l(""),[a,l]),children:d.jsx(Sf,{scope:e.__scopeAccordion,collapsible:a,children:d.jsx(Cf,{...i,ref:t})})})}),dT=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=_e({prop:n,defaultProp:r??[],onChange:o,caller:vt}),l=_.useCallback(f=>s((p=[])=>[...p,f]),[s]),u=_.useCallback(f=>s((p=[])=>p.filter(m=>m!==f)),[s]);return d.jsx(xf,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:u,children:d.jsx(Sf,{scope:e.__scopeAccordion,collapsible:!0,children:d.jsx(Cf,{...a,ref:t})})})}),[fT,ca]=la(vt),Cf=_.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,s=_.useRef(null),l=ae(s,t),u=iT(n),p=ht(o)==="ltr",m=z(e.onKeyDown,v=>{var A;if(!aT.includes(v.key))return;const g=v.target,h=u().filter(T=>{var F;return!((F=T.ref.current)!=null&&F.disabled)}),b=h.findIndex(T=>T.ref.current===g),y=h.length;if(b===-1)return;v.preventDefault();let w=b;const x=0,S=y-1,C=()=>{w=b+1,w>S&&(w=x)},N=()=>{w=b-1,w<x&&(w=S)};switch(v.key){case"Home":w=x;break;case"End":w=S;break;case"ArrowRight":a==="horizontal"&&(p?C():N());break;case"ArrowDown":a==="vertical"&&C();break;case"ArrowLeft":a==="horizontal"&&(p?N():C());break;case"ArrowUp":a==="vertical"&&N();break}const E=w%y;(A=h[E].ref.current)==null||A.focus()});return d.jsx(fT,{scope:n,disabled:r,direction:o,orientation:a,children:d.jsx(_s.Slot,{scope:n,children:d.jsx(ee.div,{...i,"data-orientation":a,ref:l,onKeyDown:r?void 0:m})})})}),ua="AccordionItem",[pT,Ps]=la(ua),_f=_.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=ca(ua,n),i=lT(ua,n),s=Es(n),l=xe(),u=r&&i.value.includes(r)||!1,f=a.disabled||e.disabled;return d.jsx(pT,{scope:n,open:u,disabled:f,triggerId:l,children:d.jsx(yf,{"data-orientation":a.orientation,"data-state":Rf(u),...s,...o,ref:t,disabled:f,open:u,onOpenChange:p=>{p?i.onItemOpen(r):i.onItemClose(r)}})})});_f.displayName=ua;var Ef="AccordionHeader",Pf=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ca(vt,n),a=Ps(Ef,n);return d.jsx(ee.h3,{"data-orientation":o.orientation,"data-state":Rf(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Pf.displayName=Ef;var Ns="AccordionTrigger",Nf=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ca(vt,n),a=Ps(Ns,n),i=cT(Ns,n),s=Es(n);return d.jsx(_s.ItemSlot,{scope:n,children:d.jsx(nT,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...r,ref:t})})});Nf.displayName=Ns;var Tf="AccordionContent",Mf=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ca(vt,n),a=Ps(Tf,n),i=Es(n);return d.jsx(rT,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Mf.displayName=Tf;function Rf(e){return e?"open":"closed"}var mT=wf,hT=_f,vT=Pf,Of=Nf,Af=Mf;/**
|
|
23
|
+
* @license lucide-react v0.300.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/var gT={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"};/**
|
|
28
|
+
* @license lucide-react v0.300.0 - ISC
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the ISC license.
|
|
31
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/const bT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Xe=(e,t)=>{const n=_.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:s="",children:l,...u},f)=>_.createElement("svg",{ref:f,...gT,width:o,height:o,stroke:r,strokeWidth:i?Number(a)*24/Number(o):a,className:["lucide",`lucide-${bT(e)}`,s].join(" "),...u},[...t.map(([p,m])=>_.createElement(p,m)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/**
|
|
33
|
+
* @license lucide-react v0.300.0 - ISC
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the ISC license.
|
|
36
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/const yT=Xe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
38
|
+
* @license lucide-react v0.300.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/const wT=Xe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
43
|
+
* @license lucide-react v0.300.0 - ISC
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the ISC license.
|
|
46
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/const Ur=Xe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
48
|
+
* @license lucide-react v0.300.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/const da=Xe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
53
|
+
* @license lucide-react v0.300.0 - ISC
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the ISC license.
|
|
56
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/const Df=Xe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
58
|
+
* @license lucide-react v0.300.0 - ISC
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the ISC license.
|
|
61
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/const Jn=Xe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
63
|
+
* @license lucide-react v0.300.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/const xT=Xe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
68
|
+
* @license lucide-react v0.300.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/const fa=Xe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
73
|
+
* @license lucide-react v0.300.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/const ST=Xe("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);/**
|
|
78
|
+
* @license lucide-react v0.300.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const CT=Xe("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
|
|
83
|
+
* @license lucide-react v0.300.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/const If=Xe("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
88
|
+
* @license lucide-react v0.300.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/const _T=Xe("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]);/**
|
|
93
|
+
* @license lucide-react v0.300.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/const ET=Xe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
98
|
+
* @license lucide-react v0.300.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the ISC license.
|
|
101
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/const Ts=Xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),PT=mT,jf=c.forwardRef(({className:e,...t},n)=>d.jsx(hT,{ref:n,className:M("border-b",e),...t}));jf.displayName="AccordionItem";const $f=c.forwardRef(({className:e,children:t,...n},r)=>d.jsx(vT,{className:"flex",children:d.jsxs(Of,{ref:r,className:M("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,d.jsx(da,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));$f.displayName=Of.displayName;const kf=c.forwardRef(({className:e,children:t,...n},r)=>d.jsx(Af,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:d.jsx("div",{className:M("pb-4 pt-0",e),children:t})}));kf.displayName=Af.displayName;function he(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function NT(e,t=globalThis==null?void 0:globalThis.document){const n=he(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var TT="DismissableLayer",Ms="dismissableLayer.update",MT="dismissableLayer.pointerDownOutside",RT="dismissableLayer.focusOutside",Lf,Ff=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,u=c.useContext(Ff),[f,p]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=c.useState({}),g=ae(t,E=>p(E)),h=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(b),w=f?h.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,C=AT(E=>{const A=E.target,T=[...u.branches].some(F=>F.contains(A));!S||T||(o==null||o(E),i==null||i(E),E.defaultPrevented||s==null||s())},m),N=DT(E=>{const A=E.target;[...u.branches].some(F=>F.contains(A))||(a==null||a(E),i==null||i(E),E.defaultPrevented||s==null||s())},m);return NT(E=>{w===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},m),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Lf=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),zf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Lf)}},[f,m,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),zf())},[f,u]),c.useEffect(()=>{const E=()=>v({});return document.addEventListener(Ms,E),()=>document.removeEventListener(Ms,E)},[]),d.jsx(ee.div,{...l,ref:g,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,N.onFocusCapture),onBlurCapture:z(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,C.onPointerDownCapture)})});Kt.displayName=TT;var OT="DismissableLayerBranch",Bf=c.forwardRef((e,t)=>{const n=c.useContext(Ff),r=c.useRef(null),o=ae(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(ee.div,{...e,ref:o})});Bf.displayName=OT;function AT(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let l=function(){Wf(MT,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function DT(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Wf(RT,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zf(){const e=new CustomEvent(Ms);document.dispatchEvent(e)}function Wf(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Gr(o,a):o.dispatchEvent(a)}var IT=Kt,jT=Bf,Rs="focusScope.autoFocusOnMount",Os="focusScope.autoFocusOnUnmount",Hf={bubbles:!1,cancelable:!0},$T="FocusScope",Kr=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=c.useState(null),u=he(o),f=he(a),p=c.useRef(null),m=ae(t,h=>l(h)),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let h=function(x){if(v.paused||!s)return;const S=x.target;s.contains(S)?p.current=S:an(p.current,{select:!0})},b=function(x){if(v.paused||!s)return;const S=x.relatedTarget;S!==null&&(s.contains(S)||an(p.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&an(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",b);const w=new MutationObserver(y);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",b),w.disconnect()}}},[r,s,v.paused]),c.useEffect(()=>{if(s){Uf.add(v);const h=document.activeElement;if(!s.contains(h)){const y=new CustomEvent(Rs,Hf);s.addEventListener(Rs,u),s.dispatchEvent(y),y.defaultPrevented||(kT(WT(Vf(s)),{select:!0}),document.activeElement===h&&an(s))}return()=>{s.removeEventListener(Rs,u),setTimeout(()=>{const y=new CustomEvent(Os,Hf);s.addEventListener(Os,f),s.dispatchEvent(y),y.defaultPrevented||an(h??document.body,{select:!0}),s.removeEventListener(Os,f),Uf.remove(v)},0)}}},[s,u,f,v]);const g=c.useCallback(h=>{if(!n&&!r||v.paused)return;const b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(b&&y){const w=h.currentTarget,[x,S]=LT(w);x&&S?!h.shiftKey&&y===S?(h.preventDefault(),n&&an(x,{select:!0})):h.shiftKey&&y===x&&(h.preventDefault(),n&&an(S,{select:!0})):y===w&&h.preventDefault()}},[n,r,v.paused]);return d.jsx(ee.div,{tabIndex:-1,...i,ref:m,onKeyDown:g})});Kr.displayName=$T;function kT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(an(r,{select:t}),document.activeElement!==n)return}function LT(e){const t=Vf(e),n=Gf(t,e),r=Gf(t.reverse(),e);return[n,r]}function Vf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gf(e,t){for(const n of e)if(!FT(n,{upTo:t}))return n}function FT(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 BT(e){return e instanceof HTMLInputElement&&"select"in e}function an(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&BT(e)&&t&&e.select()}}var Uf=zT();function zT(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Kf(e,t),e.unshift(t)},remove(t){var n;e=Kf(e,t),(n=e[0])==null||n.resume()}}}function Kf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function WT(e){return e.filter(t=>t.tagName!=="A")}var HT="Portal",er=c.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=c.useState(!1);Me(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?ds.createPortal(d.jsx(ee.div,{...r,ref:t}),i):null});er.displayName=HT;var As=0;function pa(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yf()),document.body.insertAdjacentElement("beforeend",e[1]??Yf()),As++,()=>{As===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),As--}},[])}function Yf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ot=function(){return Ot=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ot.apply(this,arguments)};function qf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function VT(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ma="right-scroll-bar-position",ha="width-before-scroll-bar",GT="with-scroll-bars-hidden",UT="--removed-body-scroll-bar-size";function Ds(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function KT(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var YT=typeof window<"u"?c.useLayoutEffect:c.useEffect,Xf=new WeakMap;function qT(e,t){var n=KT(null,function(r){return e.forEach(function(o){return Ds(o,r)})});return YT(function(){var r=Xf.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||Ds(s,null)}),a.forEach(function(s){o.has(s)||Ds(s,i)})}Xf.set(n,e)},[e]),n}function XT(e){return e}function ZT(e,t){t===void 0&&(t=XT);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var l=function(){var f=i;i=[],f.forEach(a)},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 o}function QT(e){e===void 0&&(e={});var t=ZT(null);return t.options=Ot({async:!0,ssr:!1},e),t}var Zf=function(e){var t=e.sideCar,n=qf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,Ot({},n))};Zf.isSideCarExport=!0;function JT(e,t){return e.useMedium(t),Zf}var Qf=QT(),Is=function(){},va=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Is,onWheelCapture:Is,onTouchMoveCapture:Is}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,v=e.noRelative,g=e.noIsolation,h=e.inert,b=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,x=e.gapMode,S=qf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,N=qT([n,t]),E=Ot(Ot({},S),o);return c.createElement(c.Fragment,null,f&&c.createElement(C,{sideCar:Qf,removeScrollBar:u,shards:p,noRelative:v,noIsolation:g,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:x}),i?c.cloneElement(c.Children.only(s),Ot(Ot({},E),{ref:N})):c.createElement(w,Ot({},E,{className:l,ref:N}),s))});va.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},va.classNames={fullWidth:ha,zeroRight:ma};var e1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function t1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=e1();return t&&e.setAttribute("nonce",t),e}function n1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function r1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var o1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=t1())&&(n1(t,n),r1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},a1=function(){var e=o1();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jf=function(){var e=a1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},i1={left:0,top:0,right:0,gap:0},js=function(e){return parseInt(e||"",10)||0},s1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[js(n),js(r),js(o)]},l1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return i1;var t=s1(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},c1=Jf(),tr="data-scroll-locked",u1=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
103
|
+
.`.concat(GT,` {
|
|
104
|
+
overflow: hidden `).concat(r,`;
|
|
105
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
106
|
+
}
|
|
107
|
+
body[`).concat(tr,`] {
|
|
108
|
+
overflow: hidden `).concat(r,`;
|
|
109
|
+
overscroll-behavior: contain;
|
|
110
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
111
|
+
padding-left: `.concat(o,`px;
|
|
112
|
+
padding-top: `).concat(a,`px;
|
|
113
|
+
padding-right: `).concat(i,`px;
|
|
114
|
+
margin-left:0;
|
|
115
|
+
margin-top:0;
|
|
116
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
117
|
+
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.`).concat(ma,` {
|
|
121
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.`).concat(ha,` {
|
|
125
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.`).concat(ma," .").concat(ma,` {
|
|
129
|
+
right: 0 `).concat(r,`;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.`).concat(ha," .").concat(ha,` {
|
|
133
|
+
margin-right: 0 `).concat(r,`;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
body[`).concat(tr,`] {
|
|
137
|
+
`).concat(UT,": ").concat(s,`px;
|
|
138
|
+
}
|
|
139
|
+
`)},ep=function(){var e=parseInt(document.body.getAttribute(tr)||"0",10);return isFinite(e)?e:0},d1=function(){c.useEffect(function(){return document.body.setAttribute(tr,(ep()+1).toString()),function(){var e=ep()-1;e<=0?document.body.removeAttribute(tr):document.body.setAttribute(tr,e.toString())}},[])},f1=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;d1();var a=c.useMemo(function(){return l1(o)},[o]);return c.createElement(c1,{styles:u1(a,!t,o,n?"":"!important")})},$s=!1;if(typeof window<"u")try{var ga=Object.defineProperty({},"passive",{get:function(){return $s=!0,!0}});window.addEventListener("test",ga,ga),window.removeEventListener("test",ga,ga)}catch{$s=!1}var nr=$s?{passive:!1}:!1,p1=function(e){return e.tagName==="TEXTAREA"},tp=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!p1(e)&&n[t]==="visible")},m1=function(e){return tp(e,"overflowY")},h1=function(e){return tp(e,"overflowX")},np=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=rp(e,r);if(o){var a=op(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},v1=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},g1=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},rp=function(e,t){return e==="v"?m1(t):h1(t)},op=function(e,t){return e==="v"?v1(t):g1(t)},b1=function(e,t){return e==="h"&&t==="rtl"?-1:1},y1=function(e,t,n,r,o){var a=b1(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),u=!1,f=i>0,p=0,m=0;do{if(!s)break;var v=op(e,s),g=v[0],h=v[1],b=v[2],y=h-b-a*g;(g||y)&&rp(e,s)&&(p+=y,m+=g);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(u=!0),u},ba=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ap=function(e){return[e.deltaX,e.deltaY]},ip=function(e){return e&&"current"in e?e.current:e},w1=function(e,t){return e[0]===t[0]&&e[1]===t[1]},x1=function(e){return`
|
|
140
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
141
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
142
|
+
`)},S1=0,rr=[];function C1(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(S1++)[0],a=c.useState(Jf)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=VT([e.lockRef.current],(e.shards||[]).map(ip),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=ba(h),w=n.current,x="deltaX"in h?h.deltaX:w[0]-y[0],S="deltaY"in h?h.deltaY:w[1]-y[1],C,N=h.target,E=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in h&&E==="h"&&N.type==="range")return!1;var A=window.getSelection(),T=A&&A.anchorNode,F=T?T===N||T.contains(N):!1;if(F)return!1;var R=np(E,N);if(!R)return!0;if(R?C=E:(C=E==="v"?"h":"v",R=np(E,N)),!R)return!1;if(!r.current&&"changedTouches"in h&&(x||S)&&(r.current=C),!C)return!0;var k=r.current||C;return y1(k,b,h,k==="h"?x:S)},[]),l=c.useCallback(function(h){var b=h;if(!(!rr.length||rr[rr.length-1]!==a)){var y="deltaY"in b?ap(b):ba(b),w=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&w1(C.delta,y)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var x=(i.current.shards||[]).map(ip).filter(Boolean).filter(function(C){return C.contains(b.target)}),S=x.length>0?s(b,x[0]):!i.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=c.useCallback(function(h,b,y,w){var x={name:h,delta:b,target:y,should:w,shadowParent:_1(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),f=c.useCallback(function(h){n.current=ba(h),r.current=void 0},[]),p=c.useCallback(function(h){u(h.type,ap(h),h.target,s(h,e.lockRef.current))},[]),m=c.useCallback(function(h){u(h.type,ba(h),h.target,s(h,e.lockRef.current))},[]);c.useEffect(function(){return rr.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,nr),document.addEventListener("touchmove",l,nr),document.addEventListener("touchstart",f,nr),function(){rr=rr.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,nr),document.removeEventListener("touchmove",l,nr),document.removeEventListener("touchstart",f,nr)}},[]);var v=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(a,{styles:x1(o)}):null,v?c.createElement(f1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const E1=JT(Qf,C1);var Yr=c.forwardRef(function(e,t){return c.createElement(va,Ot({},e,{ref:t,sideCar:E1}))});Yr.classNames=va.classNames;var P1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},or=new WeakMap,ya=new WeakMap,wa={},ks=0,sp=function(e){return e&&(e.host||sp(e.parentNode))},N1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=sp(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},T1=function(e,t,n,r){var o=N1(t,Array.isArray(e)?e:[e]);wa[n]||(wa[n]=new WeakMap);var a=wa[n],i=[],s=new Set,l=new Set(o),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(m){if(s.has(m))f(m);else try{var v=m.getAttribute(r),g=v!==null&&v!=="false",h=(or.get(m)||0)+1,b=(a.get(m)||0)+1;or.set(m,h),a.set(m,b),i.push(m),h===1&&g&&ya.set(m,!0),b===1&&m.setAttribute(n,"true"),g||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),s.clear(),ks++,function(){i.forEach(function(p){var m=or.get(p)-1,v=a.get(p)-1;or.set(p,m),a.set(p,v),m||(ya.has(p)||p.removeAttribute(r),ya.delete(p)),v||p.removeAttribute(n)}),ks--,ks||(or=new WeakMap,or=new WeakMap,ya=new WeakMap,wa={})}},xa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=P1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),T1(r,o,n,"aria-hidden")):function(){return null}};function M1(e){const t=R1(e),n=c.forwardRef((r,o)=>{const{children:a,...i}=r,s=c.Children.toArray(a),l=s.find(A1);if(l){const u=l.props.children,f=s.map(p=>p===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return d.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function R1(e){const t=c.forwardRef((n,r)=>{const{children:o,...a}=n;if(c.isValidElement(o)){const i=I1(o),s=D1(a,o.props);return o.type!==c.Fragment&&(s.ref=r?Be(r,i):i),c.cloneElement(o,s)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var O1=Symbol("radix.slottable");function A1(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===O1}function D1(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function I1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sa="Dialog",[lp,cp]=Te(Sa),[j1,gt]=lp(Sa),up=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=c.useRef(null),l=c.useRef(null),[u,f]=_e({prop:r,defaultProp:o??!1,onChange:a,caller:Sa});return d.jsx(j1,{scope:t,triggerRef:s,contentRef:l,contentId:xe(),titleId:xe(),descriptionId:xe(),open:u,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(p=>!p),[f]),modal:i,children:n})};up.displayName=Sa;var dp="DialogTrigger",fp=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(dp,n),a=ae(t,o.triggerRef);return d.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Bs(o.open),...r,ref:a,onClick:z(e.onClick,o.onOpenToggle)})});fp.displayName=dp;var Ls="DialogPortal",[$1,pp]=lp(Ls,{forceMount:void 0}),mp=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=gt(Ls,t);return d.jsx($1,{scope:t,forceMount:n,children:c.Children.map(r,i=>d.jsx(Re,{present:n||a.open,children:d.jsx(er,{asChild:!0,container:o,children:i})}))})};mp.displayName=Ls;var Ca="DialogOverlay",hp=c.forwardRef((e,t)=>{const n=pp(Ca,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=gt(Ca,e.__scopeDialog);return a.modal?d.jsx(Re,{present:r||a.open,children:d.jsx(L1,{...o,ref:t})}):null});hp.displayName=Ca;var k1=M1("DialogOverlay.RemoveScroll"),L1=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(Ca,n);return d.jsx(Yr,{as:k1,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(ee.div,{"data-state":Bs(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Cn="DialogContent",vp=c.forwardRef((e,t)=>{const n=pp(Cn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=gt(Cn,e.__scopeDialog);return d.jsx(Re,{present:r||a.open,children:a.modal?d.jsx(F1,{...o,ref:t}):d.jsx(B1,{...o,ref:t})})});vp.displayName=Cn;var F1=c.forwardRef((e,t)=>{const n=gt(Cn,e.__scopeDialog),r=c.useRef(null),o=ae(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return xa(a)},[]),d.jsx(gp,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:z(e.onFocusOutside,a=>a.preventDefault())})}),B1=c.forwardRef((e,t)=>{const n=gt(Cn,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return d.jsx(gp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),gp=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=gt(Cn,n),l=c.useRef(null),u=ae(t,l);return pa(),d.jsxs(d.Fragment,{children:[d.jsx(Kr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(Kt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Bs(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(W1,{titleId:s.titleId}),d.jsx(V1,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Fs="DialogTitle",bp=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(Fs,n);return d.jsx(ee.h2,{id:o.titleId,...r,ref:t})});bp.displayName=Fs;var yp="DialogDescription",wp=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(yp,n);return d.jsx(ee.p,{id:o.descriptionId,...r,ref:t})});wp.displayName=yp;var xp="DialogClose",Sp=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(xp,n);return d.jsx(ee.button,{type:"button",...r,ref:t,onClick:z(e.onClick,()=>o.onOpenChange(!1))})});Sp.displayName=xp;function Bs(e){return e?"open":"closed"}var Cp="DialogTitleWarning",[z1,_p]=ON(Cp,{contentName:Cn,titleName:Fs,docsSlug:"dialog"}),W1=({titleId:e})=>{const t=_p(Cp),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
143
|
+
|
|
144
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
145
|
+
|
|
146
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},H1="DialogDescriptionWarning",V1=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_p(H1).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},qr=up,_a=fp,Xr=mp,_n=hp,En=vp,ar=bp,ir=wp,Pn=Sp,G1=Symbol("radix.slottable");function U1(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=G1,t}var Ep="AlertDialog",[K1]=Te(Ep,[cp]),Yt=cp(),Pp=e=>{const{__scopeAlertDialog:t,...n}=e,r=Yt(t);return d.jsx(qr,{...r,...n,modal:!0})};Pp.displayName=Ep;var Y1="AlertDialogTrigger",Np=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Yt(n);return d.jsx(_a,{...o,...r,ref:t})});Np.displayName=Y1;var q1="AlertDialogPortal",Tp=e=>{const{__scopeAlertDialog:t,...n}=e,r=Yt(t);return d.jsx(Xr,{...r,...n})};Tp.displayName=q1;var X1="AlertDialogOverlay",Mp=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Yt(n);return d.jsx(_n,{...o,...r,ref:t})});Mp.displayName=X1;var sr="AlertDialogContent",[Z1,Q1]=K1(sr),J1=U1("AlertDialogContent"),Rp=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Yt(n),i=c.useRef(null),s=ae(t,i),l=c.useRef(null);return d.jsx(z1,{contentName:sr,titleName:Op,docsSlug:"alert-dialog",children:d.jsx(Z1,{scope:n,cancelRef:l,children:d.jsxs(En,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:z(o.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=l.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[d.jsx(J1,{children:r}),d.jsx(tM,{contentRef:i})]})})})});Rp.displayName=sr;var Op="AlertDialogTitle",Ap=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Yt(n);return d.jsx(ar,{...o,...r,ref:t})});Ap.displayName=Op;var Dp="AlertDialogDescription",Ip=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Yt(n);return d.jsx(ir,{...o,...r,ref:t})});Ip.displayName=Dp;var eM="AlertDialogAction",jp=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Yt(n);return d.jsx(Pn,{...o,...r,ref:t})});jp.displayName=eM;var $p="AlertDialogCancel",kp=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Q1($p,n),a=Yt(n),i=ae(t,o);return d.jsx(Pn,{...a,...r,ref:i})});kp.displayName=$p;var tM=({contentRef:e})=>{const t=`\`${sr}\` requires a description for the component to be accessible for screen reader users.
|
|
147
|
+
|
|
148
|
+
You can add a description to the \`${sr}\` by passing a \`${Dp}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
149
|
+
|
|
150
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${sr}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
151
|
+
|
|
152
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},nM=Pp,rM=Np,oM=Tp,Lp=Mp,Fp=Rp,Bp=jp,zp=kp,Wp=Ap,Hp=Ip,aM=Symbol.for("react.lazy"),Ea=c[" use ".trim().toString()];function iM(e){return typeof e=="object"&&e!==null&&"then"in e}function Vp(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===aM&&"_payload"in e&&iM(e._payload)}function Nn(e){const t=sM(e),n=c.forwardRef((r,o)=>{let{children:a,...i}=r;Vp(a)&&typeof Ea=="function"&&(a=Ea(a._payload));const s=c.Children.toArray(a),l=s.find(cM);if(l){const u=l.props.children,f=s.map(p=>p===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return d.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var sn=Nn("Slot");function sM(e){const t=c.forwardRef((n,r)=>{let{children:o,...a}=n;if(Vp(o)&&typeof Ea=="function"&&(o=Ea(o._payload)),c.isValidElement(o)){const i=dM(o),s=uM(a,o.props);return o.type!==c.Fragment&&(s.ref=r?Be(r,i):i),c.cloneElement(o,s)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lM=Symbol("radix.slottable");function cM(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lM}function uM(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function dM(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Gp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Up=Vt,qt=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Up(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],p=a==null?void 0:a[u];if(f===null)return null;const m=Gp(f)||Gp(p);return o[u][m]}),s=n&&Object.entries(n).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:m,...v}=f;return Object.entries(v).every(g=>{let[h,b]=g;return Array.isArray(b)?b.includes({...a,...s}[h]):{...a,...s}[h]===b})?[...u,p,m]:u},[]);return Up(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},Tn=qt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{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"}},defaultVariants:{variant:"default",size:"default"}}),Zr=c.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?sn:"button";return d.jsx(i,{className:M(Tn({variant:t,size:n,className:e})),ref:a,...o})});Zr.displayName="Button";const fM=nM,pM=rM,Kp=oM,zs=c.forwardRef(({className:e,...t},n)=>d.jsx(Lp,{className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));zs.displayName=Lp.displayName;const Yp=c.forwardRef(({className:e,...t},n)=>d.jsxs(Kp,{children:[d.jsx(zs,{}),d.jsx(Fp,{ref:n,className:M("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));Yp.displayName=Fp.displayName;const qp=({className:e,...t})=>d.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});qp.displayName="AlertDialogHeader";const Xp=({className:e,...t})=>d.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Xp.displayName="AlertDialogFooter";const Zp=c.forwardRef(({className:e,...t},n)=>d.jsx(Wp,{ref:n,className:M("text-lg font-semibold",e),...t}));Zp.displayName=Wp.displayName;const Qp=c.forwardRef(({className:e,...t},n)=>d.jsx(Hp,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));Qp.displayName=Hp.displayName;const Jp=c.forwardRef(({className:e,...t},n)=>d.jsx(Bp,{ref:n,className:M(Tn(),e),...t}));Jp.displayName=Bp.displayName;const em=c.forwardRef(({className:e,...t},n)=>d.jsx(zp,{ref:n,className:M(Tn({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));em.displayName=zp.displayName;const mM=qt("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),tm=c.forwardRef(({className:e,variant:t,...n},r)=>d.jsx("div",{ref:r,role:"alert",className:M(mM({variant:t}),e),...n}));tm.displayName="Alert";const nm=c.forwardRef(({className:e,...t},n)=>d.jsx("h5",{ref:n,className:M("mb-1 font-medium leading-none tracking-tight",e),...t}));nm.displayName="AlertTitle";const rm=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:M("text-sm [&_p]:leading-relaxed",e),...t}));rm.displayName="AlertDescription";var hM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vM=hM.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),gM="AspectRatio",om=c.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return d.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:d.jsx(vM.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});om.displayName=gM;var bM=om;const yM=bM;function wM(e,t=[]){let n=[];function r(a,i){const s=c.createContext(i);s.displayName=a+"Context";const l=n.length;n=[...n,i];const u=p=>{var y;const{scope:m,children:v,...g}=p,h=((y=m==null?void 0:m[e])==null?void 0:y[l])||s,b=c.useMemo(()=>g,Object.values(g));return d.jsx(h.Provider,{value:b,children:v})};u.displayName=a+"Provider";function f(p,m){var h;const v=((h=m==null?void 0:m[e])==null?void 0:h[l])||s,g=c.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,xM(o,...t)]}function xM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:u})=>{const p=l(a)[`__scope${u}`];return{...s,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var SM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ws=SM.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Hs={exports:{}},Vs={};/**
|
|
153
|
+
* @license React
|
|
154
|
+
* use-sync-external-store-shim.production.js
|
|
155
|
+
*
|
|
156
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the MIT license found in the
|
|
159
|
+
* LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/var am;function CM(){if(am)return Vs;am=1;var e=_;function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(p,m){var v=m(),g=r({inst:{value:v,getSnapshot:m}}),h=g[0].inst,b=g[1];return a(function(){h.value=v,h.getSnapshot=m,l(h)&&b({inst:h})},[p,v,m]),o(function(){return l(h)&&b({inst:h}),p(function(){l(h)&&b({inst:h})})},[p]),i(v),v}function l(p){var m=p.getSnapshot;p=p.value;try{var v=m();return!n(p,v)}catch{return!0}}function u(p,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return Vs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Vs}var Gs={};/**
|
|
161
|
+
* @license React
|
|
162
|
+
* use-sync-external-store-shim.development.js
|
|
163
|
+
*
|
|
164
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the MIT license found in the
|
|
167
|
+
* LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/var im;function _M(){return im||(im=1,process.env.NODE_ENV!=="production"&&function(){function e(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function t(v,g){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=g();if(!p){var b=g();a(h,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}b=i({inst:{value:h,getSnapshot:g}});var y=b[0].inst,w=b[1];return l(function(){y.value=h,y.getSnapshot=g,n(y)&&w({inst:y})},[v,h,g]),s(function(){return n(y)&&w({inst:y}),v(function(){n(y)&&w({inst:y})})},[v]),u(h),h}function n(v){var g=v.getSnapshot;v=v.value;try{var h=g();return!a(v,h)}catch{return!0}}function r(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=_,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,f=!1,p=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Gs.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Gs}process.env.NODE_ENV==="production"?Hs.exports=CM():Hs.exports=_M();var EM=Hs.exports;function PM(){return EM.useSyncExternalStore(NM,()=>!0,()=>!1)}function NM(){return()=>{}}var Us="Avatar",[TM]=wM(Us),[MM,sm]=TM(Us),lm=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=c.useState("idle");return d.jsx(MM,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(Ws.span,{...r,ref:t})})});lm.displayName=Us;var cm="AvatarImage",um=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=sm(cm,n),s=RM(r,a),l=he(u=>{o(u),i.onImageLoadingStatusChange(u)});return Me(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?d.jsx(Ws.img,{...a,ref:t,src:r}):null});um.displayName=cm;var dm="AvatarFallback",fm=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=sm(dm,n),[i,s]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&a.imageLoadingStatus!=="loaded"?d.jsx(Ws.span,{...o,ref:t}):null});fm.displayName=dm;function pm(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function RM(e,{referrerPolicy:t,crossOrigin:n}){const r=PM(),o=c.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[i,s]=c.useState(()=>pm(a,e));return Me(()=>{s(pm(a,e))},[a,e]),Me(()=>{const l=p=>()=>{s(p)};if(!a)return;const u=l("loaded"),f=l("error");return a.addEventListener("load",u),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",f)}},[a,n,t]),i}var mm=lm,hm=um,vm=fm;const gm=c.forwardRef(({className:e,...t},n)=>d.jsx(mm,{ref:n,className:M("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));gm.displayName=mm.displayName;const bm=c.forwardRef(({className:e,...t},n)=>d.jsx(hm,{ref:n,className:M("aspect-square h-full w-full",e),...t}));bm.displayName=hm.displayName;const ym=c.forwardRef(({className:e,...t},n)=>d.jsx(vm,{ref:n,className:M("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ym.displayName=vm.displayName;const wm=qt("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function OM({className:e,variant:t,...n}){return d.jsx("div",{className:M(wm({variant:t}),e),...n})}const xm=c.forwardRef(({...e},t)=>d.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));xm.displayName="Breadcrumb";const Sm=c.forwardRef(({className:e,...t},n)=>d.jsx("ol",{ref:n,className:M("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Sm.displayName="BreadcrumbList";const Cm=c.forwardRef(({className:e,...t},n)=>d.jsx("li",{ref:n,className:M("inline-flex items-center gap-1.5",e),...t}));Cm.displayName="BreadcrumbItem";const _m=c.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?sn:"a";return d.jsx(o,{ref:r,className:M("transition-colors hover:text-foreground",t),...n})});_m.displayName="BreadcrumbLink";const Em=c.forwardRef(({className:e,...t},n)=>d.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:M("font-normal text-foreground",e),...t}));Em.displayName="BreadcrumbPage";const Pm=({children:e,className:t,...n})=>d.jsx("li",{role:"presentation","aria-hidden":"true",className:M("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...n,children:e??d.jsx(Jn,{})});Pm.displayName="BreadcrumbSeparator";const Nm=({className:e,...t})=>d.jsxs("span",{role:"presentation","aria-hidden":"true",className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[d.jsx(If,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"More"})]});Nm.displayName="BreadcrumbElipssis";function me(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function rt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Ge(e,t){const n=me(e);return isNaN(t)?rt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function bt(e,t){const n=me(e);if(isNaN(t))return rt(e,NaN);if(!t)return n;const r=n.getDate(),o=rt(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);const a=o.getDate();return r>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}const Ks=6048e5,AM=864e5;let DM={};function Qr(){return DM}function At(e,t){var s,l,u,f;const n=Qr(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,o=me(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Mn(e){return At(e,{weekStartsOn:1})}function Tm(e){const t=me(e),n=t.getFullYear(),r=rt(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=Mn(r),a=rt(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=Mn(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function lr(e){const t=me(e);return t.setHours(0,0,0,0),t}function Pa(e){const t=me(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Dt(e,t){const n=lr(e),r=lr(t),o=+n-Pa(n),a=+r-Pa(r);return Math.round((o-a)/AM)}function IM(e){const t=Tm(e),n=rt(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Mn(n)}function Ys(e,t){const n=t*7;return Ge(e,n)}function jM(e,t){return bt(e,t*12)}function $M(e){let t;return e.forEach(function(n){const r=me(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function kM(e){let t;return e.forEach(n=>{const r=me(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function Ze(e,t){const n=lr(e),r=lr(t);return+n==+r}function qs(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function LM(e){if(!qs(e)&&typeof e!="number")return!1;const t=me(e);return!isNaN(Number(t))}function Jr(e,t){const n=me(e),r=me(t),o=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return o*12+a}function FM(e,t,n){const r=At(e,n),o=At(t,n),a=+r-Pa(r),i=+o-Pa(o);return Math.round((a-i)/Ks)}function Xs(e){const t=me(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Qe(e){const t=me(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Mm(e){const t=me(e),n=rt(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Zs(e,t){var s,l,u,f;const n=Qr(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,o=me(e),a=o.getDay(),i=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function Rm(e){return Zs(e,{weekStartsOn:1})}const BM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},zM=(e,t,n)=>{let r;const o=BM[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Qs(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const WM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},HM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},VM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},GM={date:Qs({formats:WM,defaultWidth:"full"}),time:Qs({formats:HM,defaultWidth:"full"}),dateTime:Qs({formats:VM,defaultWidth:"full"})},UM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},KM=(e,t,n,r)=>UM[e];function eo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const YM={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qM={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},XM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ZM={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},QM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},JM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},eR={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:eo({values:YM,defaultWidth:"wide"}),quarter:eo({values:qM,defaultWidth:"wide",argumentCallback:e=>e-1}),month:eo({values:XM,defaultWidth:"wide"}),day:eo({values:ZM,defaultWidth:"wide"}),dayPeriod:eo({values:QM,defaultWidth:"wide",formattingValues:JM,defaultFormattingWidth:"wide"})};function to(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?nR(s,p=>p.test(i)):tR(s,p=>p.test(i));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}function tR(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function nR(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function rR(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const oR=/^(\d+)(th|st|nd|rd)?/i,aR=/\d+/i,iR={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},sR={any:[/^b/i,/^(a|c)/i]},lR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cR={any:[/1/i,/2/i,/3/i,/4/i]},uR={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},dR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},fR={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pR={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},mR={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hR={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},vR={ordinalNumber:rR({matchPattern:oR,parsePattern:aR,valueCallback:e=>parseInt(e,10)}),era:to({matchPatterns:iR,defaultMatchWidth:"wide",parsePatterns:sR,defaultParseWidth:"any"}),quarter:to({matchPatterns:lR,defaultMatchWidth:"wide",parsePatterns:cR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:to({matchPatterns:uR,defaultMatchWidth:"wide",parsePatterns:dR,defaultParseWidth:"any"}),day:to({matchPatterns:fR,defaultMatchWidth:"wide",parsePatterns:pR,defaultParseWidth:"any"}),dayPeriod:to({matchPatterns:mR,defaultMatchWidth:"any",parsePatterns:hR,defaultParseWidth:"any"})},Om={code:"en-US",formatDistance:zM,formatLong:GM,formatRelative:KM,localize:eR,match:vR,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gR(e){const t=me(e);return Dt(t,Mm(t))+1}function Am(e){const t=me(e),n=+Mn(t)-+IM(t);return Math.round(n/Ks)+1}function Dm(e,t){var f,p,m,v;const n=me(e),r=n.getFullYear(),o=Qr(),a=(t==null?void 0:t.firstWeekContainsDate)??((p=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(m=o.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??1,i=rt(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=At(i,t),l=rt(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=At(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function bR(e,t){var s,l,u,f;const n=Qr(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,o=Dm(e,t),a=rt(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),At(a,t)}function Im(e,t){const n=me(e),r=+At(n,t)-+bR(n,t);return Math.round(r/Ks)+1}function we(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ln={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return we(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):we(n+1,2)},d(e,t){return we(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return we(e.getHours()%12||12,t.length)},H(e,t){return we(e.getHours(),t.length)},m(e,t){return we(e.getMinutes(),t.length)},s(e,t){return we(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return we(o,t.length)}},cr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jm={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return ln.y(e,t)},Y:function(e,t,n,r){const o=Dm(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return we(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):we(a,t.length)},R:function(e,t){const n=Tm(e);return we(n,t.length)},u:function(e,t){const n=e.getFullYear();return we(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return we(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return we(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ln.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return we(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Im(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):we(o,t.length)},I:function(e,t,n){const r=Am(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):we(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ln.d(e,t)},D:function(e,t,n){const r=gR(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):we(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return we(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return we(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return we(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=cr.noon:r===0?o=cr.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=cr.evening:r>=12?o=cr.afternoon:r>=4?o=cr.morning:o=cr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ln.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ln.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):we(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):we(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ln.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ln.s(e,t)},S:function(e,t){return ln.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return km(r);case"XXXX":case"XX":return Rn(r);case"XXXXX":case"XXX":default:return Rn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return km(r);case"xxxx":case"xx":return Rn(r);case"xxxxx":case"xxx":default:return Rn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+$m(r,":");case"OOOO":default:return"GMT"+Rn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+$m(r,":");case"zzzz":default:return"GMT"+Rn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return we(r,t.length)},T:function(e,t,n){const r=e.getTime();return we(r,t.length)}};function $m(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+we(a,2)}function km(e,t){return e%60===0?(e>0?"-":"+")+we(Math.abs(e)/60,2):Rn(e,t)}function Rn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=we(Math.trunc(r/60),2),a=we(r%60,2);return n+o+t+a}const Lm=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Fm=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},yR={p:Fm,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Lm(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Lm(r,t)).replace("{{time}}",Fm(o,t))}},wR=/^D+$/,xR=/^Y+$/,SR=["D","DD","YY","YYYY"];function CR(e){return wR.test(e)}function _R(e){return xR.test(e)}function ER(e,t,n){const r=PR(e,t,n);if(console.warn(r),SR.includes(e))throw new RangeError(r)}function PR(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const NR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,MR=/^'([^]*?)'?$/,RR=/''/g,OR=/[a-zA-Z]/;function On(e,t,n){var f,p,m,v,g,h,b,y;const r=Qr(),o=(n==null?void 0:n.locale)??r.locale??Om,a=(n==null?void 0:n.firstWeekContainsDate)??((p=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((v=(m=r.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((h=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((y=(b=r.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,s=me(e);if(!LM(s))throw new RangeError("Invalid time value");let l=t.match(TR).map(w=>{const x=w[0];if(x==="p"||x==="P"){const S=yR[x];return S(w,o.formatLong)}return w}).join("").match(NR).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const x=w[0];if(x==="'")return{isToken:!1,value:AR(w)};if(jm[x])return{isToken:!0,value:w};if(x.match(OR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:w}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map(w=>{if(!w.isToken)return w.value;const x=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&_R(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&CR(x))&&ER(x,t,String(e));const S=jm[x[0]];return S(s,x,o.localize,u)}).join("")}function AR(e){const t=e.match(MR);return t?t[1].replace(RR,"'"):e}function DR(e){const t=me(e),n=t.getFullYear(),r=t.getMonth(),o=rt(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function IR(e){return Math.trunc(+me(e)/1e3)}function jR(e){const t=me(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function $R(e,t){return FM(jR(e),Qe(e),t)+1}function Js(e,t){const n=me(e),r=me(t);return n.getTime()>r.getTime()}function Bm(e,t){const n=me(e),r=me(t);return+n<+r}function el(e,t){const n=me(e),r=me(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function kR(e,t){const n=me(e),r=me(t);return n.getFullYear()===r.getFullYear()}function tl(e,t){return Ge(e,-t)}function nl(e,t){const n=me(e),r=n.getFullYear(),o=n.getDate(),a=rt(e,0);a.setFullYear(r,t,15),a.setHours(0,0,0,0);const i=DR(a);return n.setMonth(t,Math.min(o,i)),n}function zm(e,t){const n=me(e);return isNaN(+n)?rt(e,NaN):(n.setFullYear(t),n)}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ie.apply(this,arguments)};function LR(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Wm(e,t,n){for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function no(e){return e.mode==="multiple"}function ro(e){return e.mode==="range"}function Na(e){return e.mode==="single"}var FR={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function BR(e,t){return On(e,"LLLL y",t)}function zR(e,t){return On(e,"d",t)}function WR(e,t){return On(e,"LLLL",t)}function HR(e){return"".concat(e)}function VR(e,t){return On(e,"cccccc",t)}function GR(e,t){return On(e,"yyyy",t)}var UR=Object.freeze({__proto__:null,formatCaption:BR,formatDay:zR,formatMonthCaption:WR,formatWeekNumber:HR,formatWeekdayName:VR,formatYearCaption:GR}),KR=function(e,t,n){return On(e,"do MMMM (EEEE)",n)},YR=function(){return"Month: "},qR=function(){return"Go to next month"},XR=function(){return"Go to previous month"},ZR=function(e,t){return On(e,"cccc",t)},QR=function(e){return"Week n. ".concat(e)},JR=function(){return"Year: "},eO=Object.freeze({__proto__:null,labelDay:KR,labelMonthDropdown:YR,labelNext:qR,labelPrevious:XR,labelWeekNumber:QR,labelWeekday:ZR,labelYearDropdown:JR});function tO(){var e="buttons",t=FR,n=Om,r={},o={},a=1,i={},s=new Date;return{captionLayout:e,classNames:t,formatters:UR,labels:eO,locale:n,modifiersClassNames:r,modifiers:o,numberOfMonths:a,styles:i,today:s,mode:"default"}}function nO(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,i=e.toDate;return r?a=Qe(r):t&&(a=new Date(t,0,1)),o?i=Xs(o):n&&(i=new Date(n,11,31)),{fromDate:a?lr(a):void 0,toDate:i?lr(i):void 0}}var Hm=_.createContext(void 0);function rO(e){var t,n=e.initialProps,r=tO(),o=nO(n),a=o.fromDate,i=o.toDate,s=(t=n.captionLayout)!==null&&t!==void 0?t:r.captionLayout;s!=="buttons"&&(!a||!i)&&(s="buttons");var l;(Na(n)||no(n)||ro(n))&&(l=n.onSelect);var u=ie(ie(ie({},r),n),{captionLayout:s,classNames:ie(ie({},r.classNames),n.classNames),components:ie({},n.components),formatters:ie(ie({},r.formatters),n.formatters),fromDate:a,labels:ie(ie({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:ie(ie({},r.modifiers),n.modifiers),modifiersClassNames:ie(ie({},r.modifiersClassNames),n.modifiersClassNames),onSelect:l,styles:ie(ie({},r.styles),n.styles),toDate:i});return d.jsx(Hm.Provider,{value:u,children:e.children})}function Ee(){var e=_.useContext(Hm);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Vm(e){var t=Ee(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return d.jsx("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function oO(e){return d.jsx("svg",ie({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:d.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Gm(e){var t,n,r=e.onChange,o=e.value,a=e.children,i=e.caption,s=e.className,l=e.style,u=Ee(),f=(n=(t=u.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&n!==void 0?n:oO;return d.jsxs("div",{className:s,style:l,children:[d.jsx("span",{className:u.classNames.vhidden,children:e["aria-label"]}),d.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:o,onChange:r,children:a}),d.jsxs("div",{className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true",children:[i,d.jsx(f,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]})]})}function aO(e){var t,n=Ee(),r=n.fromDate,o=n.toDate,a=n.styles,i=n.locale,s=n.formatters.formatMonthCaption,l=n.classNames,u=n.components,f=n.labels.labelMonthDropdown;if(!r)return d.jsx(d.Fragment,{});if(!o)return d.jsx(d.Fragment,{});var p=[];if(kR(r,o))for(var m=Qe(r),v=r.getMonth();v<=o.getMonth();v++)p.push(nl(m,v));else for(var m=Qe(new Date),v=0;v<=11;v++)p.push(nl(m,v));var g=function(b){var y=Number(b.target.value),w=nl(Qe(e.displayMonth),y);e.onChange(w)},h=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:Gm;return d.jsx(h,{name:"months","aria-label":f(),className:l.dropdown_month,style:a.dropdown_month,onChange:g,value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:i}),children:p.map(function(b){return d.jsx("option",{value:b.getMonth(),children:s(b,{locale:i})},b.getMonth())})})}function iO(e){var t,n=e.displayMonth,r=Ee(),o=r.fromDate,a=r.toDate,i=r.locale,s=r.styles,l=r.classNames,u=r.components,f=r.formatters.formatYearCaption,p=r.labels.labelYearDropdown,m=[];if(!o)return d.jsx(d.Fragment,{});if(!a)return d.jsx(d.Fragment,{});for(var v=o.getFullYear(),g=a.getFullYear(),h=v;h<=g;h++)m.push(zm(Mm(new Date),h));var b=function(w){var x=zm(Qe(n),Number(w.target.value));e.onChange(x)},y=(t=u==null?void 0:u.Dropdown)!==null&&t!==void 0?t:Gm;return d.jsx(y,{name:"years","aria-label":p(),className:l.dropdown_year,style:s.dropdown_year,onChange:b,value:n.getFullYear(),caption:f(n,{locale:i}),children:m.map(function(w){return d.jsx("option",{value:w.getFullYear(),children:f(w,{locale:i})},w.getFullYear())})})}function sO(e,t){var n=_.useState(e),r=n[0],o=n[1],a=t===void 0?r:t;return[a,o]}function lO(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,i=e.fromDate,s=e.numberOfMonths,l=s===void 0?1:s;if(a&&Jr(a,o)<0){var u=-1*(l-1);o=bt(a,u)}return i&&Jr(o,i)<0&&(o=i),Qe(o)}function cO(){var e=Ee(),t=lO(e),n=sO(t,e.month),r=n[0],o=n[1],a=function(i){var s;if(!e.disableNavigation){var l=Qe(i);o(l),(s=e.onMonthChange)===null||s===void 0||s.call(e,l)}};return[r,a]}function uO(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=Qe(e),a=Qe(bt(o,r)),i=Jr(a,o),s=[],l=0;l<i;l++){var u=bt(o,l);s.push(u)}return n&&(s=s.reverse()),s}function dO(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,i=r?a:1,s=Qe(e);if(!n)return bt(s,i);var l=Jr(n,e);if(!(l<a))return bt(s,i)}}function fO(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,i=r?a:1,s=Qe(e);if(!n)return bt(s,-i);var l=Jr(s,n);if(!(l<=0))return bt(s,-i)}}var Um=_.createContext(void 0);function pO(e){var t=Ee(),n=cO(),r=n[0],o=n[1],a=uO(r,t),i=dO(r,t),s=fO(r,t),l=function(p){return a.some(function(m){return el(p,m)})},u=function(p,m){l(p)||(m&&Bm(p,m)?o(bt(p,1+t.numberOfMonths*-1)):o(p))},f={currentMonth:r,displayMonths:a,goToMonth:o,goToDate:u,previousMonth:s,nextMonth:i,isDateDisplayed:l};return d.jsx(Um.Provider,{value:f,children:e.children})}function oo(){var e=_.useContext(Um);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Km(e){var t,n=Ee(),r=n.classNames,o=n.styles,a=n.components,i=oo().goToMonth,s=function(f){i(bt(f,e.displayIndex?-e.displayIndex:0))},l=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:Vm,u=d.jsx(l,{id:e.id,displayMonth:e.displayMonth});return d.jsxs("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[d.jsx("div",{className:r.vhidden,children:u}),d.jsx(aO,{onChange:s,displayMonth:e.displayMonth}),d.jsx(iO,{onChange:s,displayMonth:e.displayMonth})]})}function mO(e){return d.jsx("svg",ie({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:d.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function hO(e){return d.jsx("svg",ie({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:d.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Ta=_.forwardRef(function(e,t){var n=Ee(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var i=a.join(" "),s=ie(ie({},o.button_reset),o.button);return e.style&&Object.assign(s,e.style),d.jsx("button",ie({},e,{ref:t,type:"button",className:i,style:s}))});function vO(e){var t,n,r=Ee(),o=r.dir,a=r.locale,i=r.classNames,s=r.styles,l=r.labels,u=l.labelPrevious,f=l.labelNext,p=r.components;if(!e.nextMonth&&!e.previousMonth)return d.jsx(d.Fragment,{});var m=u(e.previousMonth,{locale:a}),v=[i.nav_button,i.nav_button_previous].join(" "),g=f(e.nextMonth,{locale:a}),h=[i.nav_button,i.nav_button_next].join(" "),b=(t=p==null?void 0:p.IconRight)!==null&&t!==void 0?t:hO,y=(n=p==null?void 0:p.IconLeft)!==null&&n!==void 0?n:mO;return d.jsxs("div",{className:i.nav,style:s.nav,children:[!e.hidePrevious&&d.jsx(Ta,{name:"previous-month","aria-label":m,className:v,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?d.jsx(b,{className:i.nav_icon,style:s.nav_icon}):d.jsx(y,{className:i.nav_icon,style:s.nav_icon})}),!e.hideNext&&d.jsx(Ta,{name:"next-month","aria-label":g,className:h,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?d.jsx(y,{className:i.nav_icon,style:s.nav_icon}):d.jsx(b,{className:i.nav_icon,style:s.nav_icon})})]})}function Ym(e){var t=Ee().numberOfMonths,n=oo(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,i=n.displayMonths,s=i.findIndex(function(g){return el(e.displayMonth,g)}),l=s===0,u=s===i.length-1,f=t>1&&(l||!u),p=t>1&&(u||!l),m=function(){r&&a(r)},v=function(){o&&a(o)};return d.jsx(vO,{displayMonth:e.displayMonth,hideNext:f,hidePrevious:p,nextMonth:o,previousMonth:r,onPreviousClick:m,onNextClick:v})}function gO(e){var t,n=Ee(),r=n.classNames,o=n.disableNavigation,a=n.styles,i=n.captionLayout,s=n.components,l=(t=s==null?void 0:s.CaptionLabel)!==null&&t!==void 0?t:Vm,u;return o?u=d.jsx(l,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?u=d.jsx(Km,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?u=d.jsxs(d.Fragment,{children:[d.jsx(Km,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),d.jsx(Ym,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=d.jsxs(d.Fragment,{children:[d.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),d.jsx(Ym,{displayMonth:e.displayMonth,id:e.id})]}),d.jsx("div",{className:r.caption,style:a.caption,children:u})}function bO(e){var t=Ee(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?d.jsx("tfoot",{className:o,style:r.tfoot,children:d.jsx("tr",{children:d.jsx("td",{colSpan:8,children:n})})}):d.jsx(d.Fragment,{})}function yO(e,t,n){for(var r=n?Mn(new Date):At(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=Ge(r,a);o.push(i)}return o}function wO(){var e=Ee(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,u=yO(o,a,i);return d.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&d.jsx("td",{style:n.head_cell,className:t.head_cell}),u.map(function(f,p){return d.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(f,{locale:o}),children:s(f,{locale:o})},p)})]})}function xO(){var e,t=Ee(),n=t.classNames,r=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:wO;return d.jsx("thead",{style:r.head,className:n.head,children:d.jsx(a,{})})}function SO(e){var t=Ee(),n=t.locale,r=t.formatters.formatDay;return d.jsx(d.Fragment,{children:r(e.date,{locale:n})})}var rl=_.createContext(void 0);function CO(e){if(!no(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return d.jsx(rl.Provider,{value:t,children:e.children})}return d.jsx(_O,{initialProps:e.initialProps,children:e.children})}function _O(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,i=function(u,f,p){var m,v;(m=t.onDayClick)===null||m===void 0||m.call(t,u,f,p);var g=!!(f.selected&&o&&(r==null?void 0:r.length)===o);if(!g){var h=!!(!f.selected&&a&&(r==null?void 0:r.length)===a);if(!h){var b=r?Wm([],r):[];if(f.selected){var y=b.findIndex(function(w){return Ze(u,w)});b.splice(y,1)}else b.push(u);(v=t.onSelect)===null||v===void 0||v.call(t,b,u,f,p)}}},s={disabled:[]};r&&s.disabled.push(function(u){var f=a&&r.length>a-1,p=r.some(function(m){return Ze(m,u)});return!!(f&&!p)});var l={selected:r,onDayClick:i,modifiers:s};return d.jsx(rl.Provider,{value:l,children:n})}function ol(){var e=_.useContext(rl);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function EO(e,t){var n=t||{},r=n.from,o=n.to;return r&&o?Ze(o,e)&&Ze(r,e)?void 0:Ze(o,e)?{from:o,to:void 0}:Ze(r,e)?void 0:Js(r,e)?{from:e,to:o}:{from:r,to:e}:o?Js(e,o)?{from:o,to:e}:{from:e,to:o}:r?Bm(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var al=_.createContext(void 0);function PO(e){if(!ro(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return d.jsx(al.Provider,{value:t,children:e.children})}return d.jsx(NO,{initialProps:e.initialProps,children:e.children})}function NO(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,i=o.to,s=t.min,l=t.max,u=function(v,g,h){var b,y;(b=t.onDayClick)===null||b===void 0||b.call(t,v,g,h);var w=EO(v,r);(y=t.onSelect)===null||y===void 0||y.call(t,w,v,g,h)},f={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(f.range_start=[a],i?(f.range_end=[i],Ze(a,i)||(f.range_middle=[{after:a,before:i}])):f.range_end=[a]):i&&(f.range_start=[i],f.range_end=[i]),s&&(a&&!i&&f.disabled.push({after:tl(a,s-1),before:Ge(a,s-1)}),a&&i&&f.disabled.push({after:a,before:Ge(a,s-1)}),!a&&i&&f.disabled.push({after:tl(i,s-1),before:Ge(i,s-1)})),l){if(a&&!i&&(f.disabled.push({before:Ge(a,-l+1)}),f.disabled.push({after:Ge(a,l-1)})),a&&i){var p=Dt(i,a)+1,m=l-p;f.disabled.push({before:tl(a,m)}),f.disabled.push({after:Ge(i,m)})}!a&&i&&(f.disabled.push({before:Ge(i,-l+1)}),f.disabled.push({after:Ge(i,l-1)}))}return d.jsx(al.Provider,{value:{selected:r,onDayClick:u,modifiers:f},children:n})}function il(){var e=_.useContext(al);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Ma(e){return Array.isArray(e)?Wm([],e):e!==void 0?[e]:[]}function TO(e){var t={};return Object.entries(e).forEach(function(n){var r=n[0],o=n[1];t[r]=Ma(o)}),t}var yt;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(yt||(yt={}));var MO=yt.Selected,Xt=yt.Disabled,RO=yt.Hidden,OO=yt.Today,sl=yt.RangeEnd,ll=yt.RangeMiddle,cl=yt.RangeStart,AO=yt.Outside;function DO(e,t,n){var r,o=(r={},r[MO]=Ma(e.selected),r[Xt]=Ma(e.disabled),r[RO]=Ma(e.hidden),r[OO]=[e.today],r[sl]=[],r[ll]=[],r[cl]=[],r[AO]=[],r);return e.fromDate&&o[Xt].push({before:e.fromDate}),e.toDate&&o[Xt].push({after:e.toDate}),no(e)?o[Xt]=o[Xt].concat(t.modifiers[Xt]):ro(e)&&(o[Xt]=o[Xt].concat(n.modifiers[Xt]),o[cl]=n.modifiers[cl],o[ll]=n.modifiers[ll],o[sl]=n.modifiers[sl]),o}var qm=_.createContext(void 0);function IO(e){var t=Ee(),n=ol(),r=il(),o=DO(t,n,r),a=TO(t.modifiers),i=ie(ie({},o),a);return d.jsx(qm.Provider,{value:i,children:e.children})}function Xm(){var e=_.useContext(qm);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function jO(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function $O(e){return!!(e&&typeof e=="object"&&"from"in e)}function kO(e){return!!(e&&typeof e=="object"&&"after"in e)}function LO(e){return!!(e&&typeof e=="object"&&"before"in e)}function FO(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function BO(e,t){var n,r=t.from,o=t.to;if(r&&o){var a=Dt(o,r)<0;a&&(n=[o,r],r=n[0],o=n[1]);var i=Dt(e,r)>=0&&Dt(o,e)>=0;return i}return o?Ze(o,e):r?Ze(r,e):!1}function zO(e){return qs(e)}function WO(e){return Array.isArray(e)&&e.every(qs)}function HO(e,t){return t.some(function(n){if(typeof n=="boolean")return n;if(zO(n))return Ze(e,n);if(WO(n))return n.includes(e);if($O(n))return BO(e,n);if(FO(n))return n.dayOfWeek.includes(e.getDay());if(jO(n)){var r=Dt(n.before,e),o=Dt(n.after,e),a=r>0,i=o<0,s=Js(n.before,n.after);return s?i&&a:a||i}return kO(n)?Dt(e,n.after)>0:LO(n)?Dt(n.before,e)>0:typeof n=="function"?n(e):!1})}function ul(e,t,n){var r=Object.keys(t).reduce(function(a,i){var s=t[i];return HO(e,s)&&a.push(i),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),n&&!el(e,n)&&(o.outside=!0),o}function VO(e,t){for(var n=Qe(e[0]),r=Xs(e[e.length-1]),o,a,i=n;i<=r;){var s=ul(i,t),l=!s.disabled&&!s.hidden;if(!l){i=Ge(i,1);continue}if(s.selected)return i;s.today&&!a&&(a=i),o||(o=i),i=Ge(i,1)}return a||o}var GO=365;function Zm(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,i=t.retry,s=i===void 0?{count:0,lastFocused:e}:i,l=o.weekStartsOn,u=o.fromDate,f=o.toDate,p=o.locale,m={day:Ge,week:Ys,month:bt,year:jM,startOfWeek:function(b){return o.ISOWeek?Mn(b):At(b,{locale:p,weekStartsOn:l})},endOfWeek:function(b){return o.ISOWeek?Rm(b):Zs(b,{locale:p,weekStartsOn:l})}},v=m[n](e,r==="after"?1:-1);r==="before"&&u?v=$M([u,v]):r==="after"&&f&&(v=kM([f,v]));var g=!0;if(a){var h=ul(v,a);g=!h.disabled&&!h.hidden}return g?v:s.count>GO?s.lastFocused:Zm(v,{moveBy:n,direction:r,context:o,modifiers:a,retry:ie(ie({},s),{count:s.count+1})})}var Qm=_.createContext(void 0);function UO(e){var t=oo(),n=Xm(),r=_.useState(),o=r[0],a=r[1],i=_.useState(),s=i[0],l=i[1],u=VO(t.displayMonths,n),f=o??(s&&t.isDateDisplayed(s))?s:u,p=function(){l(o),a(void 0)},m=function(b){a(b)},v=Ee(),g=function(b,y){if(o){var w=Zm(o,{moveBy:b,direction:y,context:v,modifiers:n});Ze(o,w)||(t.goToDate(w,o),m(w))}},h={focusedDay:o,focusTarget:f,blur:p,focus:m,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return d.jsx(Qm.Provider,{value:h,children:e.children})}function dl(){var e=_.useContext(Qm);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function KO(e,t){var n=Xm(),r=ul(e,n,t);return r}var fl=_.createContext(void 0);function YO(e){if(!Na(e.initialProps)){var t={selected:void 0};return d.jsx(fl.Provider,{value:t,children:e.children})}return d.jsx(qO,{initialProps:e.initialProps,children:e.children})}function qO(e){var t=e.initialProps,n=e.children,r=function(a,i,s){var l,u,f;if((l=t.onDayClick)===null||l===void 0||l.call(t,a,i,s),i.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,a,i,s);return}(f=t.onSelect)===null||f===void 0||f.call(t,a,a,i,s)},o={selected:t.selected,onDayClick:r};return d.jsx(fl.Provider,{value:o,children:n})}function Jm(){var e=_.useContext(fl);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function XO(e,t){var n=Ee(),r=Jm(),o=ol(),a=il(),i=dl(),s=i.focusDayAfter,l=i.focusDayBefore,u=i.focusWeekAfter,f=i.focusWeekBefore,p=i.blur,m=i.focus,v=i.focusMonthBefore,g=i.focusMonthAfter,h=i.focusYearBefore,b=i.focusYearAfter,y=i.focusStartOfWeek,w=i.focusEndOfWeek,x=function(B){var $,K,oe,O;Na(n)?($=r.onDayClick)===null||$===void 0||$.call(r,e,t,B):no(n)?(K=o.onDayClick)===null||K===void 0||K.call(o,e,t,B):ro(n)?(oe=a.onDayClick)===null||oe===void 0||oe.call(a,e,t,B):(O=n.onDayClick)===null||O===void 0||O.call(n,e,t,B)},S=function(B){var $;m(e),($=n.onDayFocus)===null||$===void 0||$.call(n,e,t,B)},C=function(B){var $;p(),($=n.onDayBlur)===null||$===void 0||$.call(n,e,t,B)},N=function(B){var $;($=n.onDayMouseEnter)===null||$===void 0||$.call(n,e,t,B)},E=function(B){var $;($=n.onDayMouseLeave)===null||$===void 0||$.call(n,e,t,B)},A=function(B){var $;($=n.onDayPointerEnter)===null||$===void 0||$.call(n,e,t,B)},T=function(B){var $;($=n.onDayPointerLeave)===null||$===void 0||$.call(n,e,t,B)},F=function(B){var $;($=n.onDayTouchCancel)===null||$===void 0||$.call(n,e,t,B)},R=function(B){var $;($=n.onDayTouchEnd)===null||$===void 0||$.call(n,e,t,B)},k=function(B){var $;($=n.onDayTouchMove)===null||$===void 0||$.call(n,e,t,B)},U=function(B){var $;($=n.onDayTouchStart)===null||$===void 0||$.call(n,e,t,B)},L=function(B){var $;($=n.onDayKeyUp)===null||$===void 0||$.call(n,e,t,B)},G=function(B){var $;switch(B.key){case"ArrowLeft":B.preventDefault(),B.stopPropagation(),n.dir==="rtl"?s():l();break;case"ArrowRight":B.preventDefault(),B.stopPropagation(),n.dir==="rtl"?l():s();break;case"ArrowDown":B.preventDefault(),B.stopPropagation(),u();break;case"ArrowUp":B.preventDefault(),B.stopPropagation(),f();break;case"PageUp":B.preventDefault(),B.stopPropagation(),B.shiftKey?h():v();break;case"PageDown":B.preventDefault(),B.stopPropagation(),B.shiftKey?b():g();break;case"Home":B.preventDefault(),B.stopPropagation(),y();break;case"End":B.preventDefault(),B.stopPropagation(),w();break}($=n.onDayKeyDown)===null||$===void 0||$.call(n,e,t,B)},V={onClick:x,onFocus:S,onBlur:C,onKeyDown:G,onKeyUp:L,onMouseEnter:N,onMouseLeave:E,onPointerEnter:A,onPointerLeave:T,onTouchCancel:F,onTouchEnd:R,onTouchMove:k,onTouchStart:U};return V}function ZO(){var e=Ee(),t=Jm(),n=ol(),r=il(),o=Na(e)?t.selected:no(e)?n.selected:ro(e)?r.selected:void 0;return o}function QO(e){return Object.values(yt).includes(e)}function JO(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(r){var o=e.modifiersClassNames[r];if(o)n.push(o);else if(QO(r)){var a=e.classNames["day_".concat(r)];a&&n.push(a)}}),n}function eA(e,t){var n=ie({},e.styles.day);return Object.keys(t).forEach(function(r){var o;n=ie(ie({},n),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),n}function tA(e,t,n){var r,o,a,i=Ee(),s=dl(),l=KO(e,t),u=XO(e,l),f=ZO(),p=!!(i.onDayClick||i.mode!=="default");_.useEffect(function(){var N;l.outside||s.focusedDay&&p&&Ze(s.focusedDay,e)&&((N=n.current)===null||N===void 0||N.focus())},[s.focusedDay,e,n,p,l.outside]);var m=JO(i,l).join(" "),v=eA(i,l),g=!!(l.outside&&!i.showOutsideDays||l.hidden),h=(a=(o=i.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:SO,b=d.jsx(h,{date:e,displayMonth:t,activeModifiers:l}),y={style:v,className:m,children:b,role:"gridcell"},w=s.focusTarget&&Ze(s.focusTarget,e)&&!l.outside,x=s.focusedDay&&Ze(s.focusedDay,e),S=ie(ie(ie({},y),(r={disabled:l.disabled,role:"gridcell"},r["aria-selected"]=l.selected,r.tabIndex=x||w?0:-1,r)),u),C={isButton:p,isHidden:g,activeModifiers:l,selectedDays:f,buttonProps:S,divProps:y};return C}function nA(e){var t=_.useRef(null),n=tA(e.date,e.displayMonth,t);return n.isHidden?d.jsx("div",{role:"gridcell"}):n.isButton?d.jsx(Ta,ie({name:"day",ref:t},n.buttonProps)):d.jsx("div",ie({},n.divProps))}function rA(e){var t=e.number,n=e.dates,r=Ee(),o=r.onWeekNumberClick,a=r.styles,i=r.classNames,s=r.locale,l=r.labels.labelWeekNumber,u=r.formatters.formatWeekNumber,f=u(Number(t),{locale:s});if(!o)return d.jsx("span",{className:i.weeknumber,style:a.weeknumber,children:f});var p=l(Number(t),{locale:s}),m=function(v){o(t,n,v)};return d.jsx(Ta,{name:"week-number","aria-label":p,className:i.weeknumber,style:a.weeknumber,onClick:m,children:f})}function oA(e){var t,n,r=Ee(),o=r.styles,a=r.classNames,i=r.showWeekNumber,s=r.components,l=(t=s==null?void 0:s.Day)!==null&&t!==void 0?t:nA,u=(n=s==null?void 0:s.WeekNumber)!==null&&n!==void 0?n:rA,f;return i&&(f=d.jsx("td",{className:a.cell,style:o.cell,children:d.jsx(u,{number:e.weekNumber,dates:e.dates})})),d.jsxs("tr",{className:a.row,style:o.row,children:[f,e.dates.map(function(p){return d.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:d.jsx(l,{displayMonth:e.displayMonth,date:p})},IR(p))})]})}function eh(e,t,n){for(var r=n!=null&&n.ISOWeek?Rm(t):Zs(t,n),o=n!=null&&n.ISOWeek?Mn(e):At(e,n),a=Dt(r,o),i=[],s=0;s<=a;s++)i.push(Ge(o,s));var l=i.reduce(function(u,f){var p=n!=null&&n.ISOWeek?Am(f):Im(f,n),m=u.find(function(v){return v.weekNumber===p});return m?(m.dates.push(f),u):(u.push({weekNumber:p,dates:[f]}),u)},[]);return l}function aA(e,t){var n=eh(Qe(e),Xs(e),t);if(t!=null&&t.useFixedWeeks){var r=$R(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],i=Ys(a,6-r),s=eh(Ys(a,1),i,t);n.push.apply(n,s)}}return n}function iA(e){var t,n,r,o=Ee(),a=o.locale,i=o.classNames,s=o.styles,l=o.hideHead,u=o.fixedWeeks,f=o.components,p=o.weekStartsOn,m=o.firstWeekContainsDate,v=o.ISOWeek,g=aA(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:v,locale:a,weekStartsOn:p,firstWeekContainsDate:m}),h=(t=f==null?void 0:f.Head)!==null&&t!==void 0?t:xO,b=(n=f==null?void 0:f.Row)!==null&&n!==void 0?n:oA,y=(r=f==null?void 0:f.Footer)!==null&&r!==void 0?r:bO;return d.jsxs("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&d.jsx(h,{}),d.jsx("tbody",{className:i.tbody,style:s.tbody,children:g.map(function(w){return d.jsx(b,{displayMonth:e.displayMonth,dates:w.dates,weekNumber:w.weekNumber},w.weekNumber)})}),d.jsx(y,{displayMonth:e.displayMonth})]})}function sA(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var lA=sA()?_.useLayoutEffect:_.useEffect,pl=!1,cA=0;function th(){return"react-day-picker-".concat(++cA)}function uA(e){var t,n=e??(pl?th():null),r=_.useState(n),o=r[0],a=r[1];return lA(function(){o===null&&a(th())},[]),_.useEffect(function(){pl===!1&&(pl=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function dA(e){var t,n,r=Ee(),o=r.dir,a=r.classNames,i=r.styles,s=r.components,l=oo().displayMonths,u=uA(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),f=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,p=[a.month],m=i.month,v=e.displayIndex===0,g=e.displayIndex===l.length-1,h=!v&&!g;o==="rtl"&&(t=[v,g],g=t[0],v=t[1]),v&&(p.push(a.caption_start),m=ie(ie({},m),i.caption_start)),g&&(p.push(a.caption_end),m=ie(ie({},m),i.caption_end)),h&&(p.push(a.caption_between),m=ie(ie({},m),i.caption_between));var b=(n=s==null?void 0:s.Caption)!==null&&n!==void 0?n:gO;return d.jsxs("div",{className:p.join(" "),style:m,children:[d.jsx(b,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),d.jsx(iA,{id:f,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function fA(e){var t=Ee(),n=t.classNames,r=t.styles;return d.jsx("div",{className:n.months,style:r.months,children:e.children})}function pA(e){var t,n,r=e.initialProps,o=Ee(),a=dl(),i=oo(),s=_.useState(!1),l=s[0],u=s[1];_.useEffect(function(){o.initialFocus&&a.focusTarget&&(l||(a.focus(a.focusTarget),u(!0)))},[o.initialFocus,l,a.focus,a.focusTarget,a]);var f=[o.classNames.root,o.className];o.numberOfMonths>1&&f.push(o.classNames.multiple_months),o.showWeekNumber&&f.push(o.classNames.with_weeknumber);var p=ie(ie({},o.styles.root),o.style),m=Object.keys(r).filter(function(g){return g.startsWith("data-")}).reduce(function(g,h){var b;return ie(ie({},g),(b={},b[h]=r[h],b))},{}),v=(n=(t=r.components)===null||t===void 0?void 0:t.Months)!==null&&n!==void 0?n:fA;return d.jsx("div",ie({className:f.join(" "),style:p,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},m,{children:d.jsx(v,{children:i.displayMonths.map(function(g,h){return d.jsx(dA,{displayIndex:h,displayMonth:g},h)})})}))}function mA(e){var t=e.children,n=LR(e,["children"]);return d.jsx(rO,{initialProps:n,children:d.jsx(pO,{children:d.jsx(YO,{initialProps:n,children:d.jsx(CO,{initialProps:n,children:d.jsx(PO,{initialProps:n,children:d.jsx(IO,{children:d.jsx(UO,{children:t})})})})})})})}function hA(e){return d.jsx(mA,ie({},e,{children:d.jsx(pA,{initialProps:e})}))}function nh({className:e,classNames:t,showOutsideDays:n=!0,...r}){return d.jsx(hA,{showOutsideDays:n,className:M("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:M(Tn({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:M(Tn({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({className:o,...a})=>d.jsx(Df,{className:M("h-4 w-4",o),...a}),IconRight:({className:o,...a})=>d.jsx(Jn,{className:M("h-4 w-4",o),...a})},...r})}nh.displayName="Calendar";const rh=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:M("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));rh.displayName="Card";const oh=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:M("flex flex-col space-y-1.5 p-6",e),...t}));oh.displayName="CardHeader";const ah=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:M("text-2xl font-semibold leading-none tracking-tight",e),...t}));ah.displayName="CardTitle";const ih=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:M("text-sm text-muted-foreground",e),...t}));ih.displayName="CardDescription";const sh=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:M("p-6 pt-0",e),...t}));sh.displayName="CardContent";const lh=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:M("flex items-center p-6 pt-0",e),...t}));lh.displayName="CardFooter";function vA(e){return Object.prototype.toString.call(e)==="[object Object]"}function ch(e){return vA(e)||Array.isArray(e)}function gA(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ml(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(i=>{const s=e[i],l=t[i];return typeof s=="function"?`${s}`==`${l}`:!ch(s)||!ch(l)?s===l:ml(s,l)})}function uh(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function bA(e,t){if(e.length!==t.length)return!1;const n=uh(e),r=uh(t);return n.every((o,a)=>{const i=r[a];return ml(o,i)})}function hl(e){return typeof e=="number"}function vl(e){return typeof e=="string"}function Ra(e){return typeof e=="boolean"}function dh(e){return Object.prototype.toString.call(e)==="[object Object]"}function De(e){return Math.abs(e)}function gl(e){return Math.sign(e)}function ao(e,t){return De(e-t)}function yA(e,t){if(e===0||t===0||De(e)<=De(t))return 0;const n=ao(De(e),De(t));return De(n/e)}function wA(e){return Math.round(e*100)/100}function io(e){return lo(e).map(Number)}function wt(e){return e[so(e)]}function so(e){return Math.max(0,e.length-1)}function bl(e,t){return t===so(e)}function fh(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function lo(e){return Object.keys(e)}function ph(e,t){return[e,t].reduce((n,r)=>(lo(r).forEach(o=>{const a=n[o],i=r[o],s=dh(a)&&dh(i);n[o]=s?ph(a,i):i}),n),{})}function yl(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function xA(e,t){const n={start:r,center:o,end:a};function r(){return 0}function o(l){return a(l)/2}function a(l){return t-l}function i(l,u){return vl(e)?n[e](l):e(t,l,u)}return{measure:i}}function co(){let e=[];function t(o,a,i,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(a,i,s),l=()=>o.removeEventListener(a,i,s);else{const u=o;u.addListener(i),l=()=>u.removeListener(i)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function SA(e,t,n,r){const o=co(),a=1e3/60;let i=null,s=0,l=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&g()})}function f(){v(),o.clear()}function p(b){if(!l)return;i||(i=b,n(),n());const y=b-i;for(i=b,s+=y;s>=a;)n(),s-=a;const w=s/a;r(w),l&&(l=t.requestAnimationFrame(p))}function m(){l||(l=t.requestAnimationFrame(p))}function v(){t.cancelAnimationFrame(l),i=null,s=0,l=0}function g(){i=null,s=0}return{init:u,destroy:f,start:m,stop:v,update:n,render:r}}function CA(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",a=r?"x":"y",i=!r&&n?-1:1,s=f(),l=p();function u(g){const{height:h,width:b}=g;return r?h:b}function f(){return r?"top":n?"right":"left"}function p(){return r?"bottom":n?"left":"right"}function m(g){return g*i}return{scroll:o,cross:a,startEdge:s,endEdge:l,measureSize:u,direction:m}}function An(e=0,t=0){const n=De(e-t);function r(u){return u<e}function o(u){return u>t}function a(u){return r(u)||o(u)}function i(u){return a(u)?r(u)?e:t:u}function s(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:i,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:s}}function mh(e,t,n){const{constrain:r}=An(0,e),o=e+1;let a=i(t);function i(m){return n?De((o+m)%o):r(m)}function s(){return a}function l(m){return a=i(m),p}function u(m){return f().set(s()+m)}function f(){return mh(e,s(),n)}const p={get:s,set:l,add:u,clone:f};return p}function _A(e,t,n,r,o,a,i,s,l,u,f,p,m,v,g,h,b,y,w){const{cross:x,direction:S}=e,C=["INPUT","SELECT","TEXTAREA"],N={passive:!1},E=co(),A=co(),T=An(50,225).constrain(v.measure(20)),F={mouse:300,touch:400},R={mouse:500,touch:600},k=g?43:25;let U=!1,L=0,G=0,V=!1,B=!1,$=!1,K=!1;function oe(Q){if(!w)return;function X(re){(Ra(w)||w(Q,re))&&Z(re)}const W=t;E.add(W,"dragstart",re=>re.preventDefault(),N).add(W,"touchmove",()=>{},N).add(W,"touchend",()=>{}).add(W,"touchstart",X).add(W,"mousedown",X).add(W,"touchcancel",q).add(W,"contextmenu",q).add(W,"click",J,!0)}function O(){E.clear(),A.clear()}function D(){const Q=K?n:t;A.add(Q,"touchmove",I,N).add(Q,"touchend",q).add(Q,"mousemove",I,N).add(Q,"mouseup",q)}function j(Q){const X=Q.nodeName||"";return C.includes(X)}function H(){return(g?R:F)[K?"mouse":"touch"]}function Y(Q,X){const W=p.add(gl(Q)*-1),re=f.byDistance(Q,!g).distance;return g||De(Q)<T?re:b&&X?re*.5:f.byIndex(W.get(),0).distance}function Z(Q){const X=yl(Q,r);K=X,$=g&&X&&!Q.buttons&&U,U=ao(o.get(),i.get())>=2,!(X&&Q.button!==0)&&(j(Q.target)||(V=!0,a.pointerDown(Q),u.useFriction(0).useDuration(0),o.set(i),D(),L=a.readPoint(Q),G=a.readPoint(Q,x),m.emit("pointerDown")))}function I(Q){if(!yl(Q,r)&&Q.touches.length>=2)return q(Q);const W=a.readPoint(Q),re=a.readPoint(Q,x),le=ao(W,L),pe=ao(re,G);if(!B&&!K&&(!Q.cancelable||(B=le>pe,!B)))return q(Q);const fe=a.pointerMove(Q);le>h&&($=!0),u.useFriction(.3).useDuration(.75),s.start(),o.add(S(fe)),Q.preventDefault()}function q(Q){const W=f.byDistance(0,!1).index!==p.get(),re=a.pointerUp(Q)*H(),le=Y(S(re),W),pe=yA(re,le),fe=k-10*pe,ce=y+pe/50;B=!1,V=!1,A.clear(),u.useDuration(fe).useFriction(ce),l.distance(le,!g),K=!1,m.emit("pointerUp")}function J(Q){$&&(Q.stopPropagation(),Q.preventDefault(),$=!1)}function te(){return V}return{init:oe,destroy:O,pointerDown:te}}function EA(e,t){let r,o;function a(p){return p.timeStamp}function i(p,m){const g=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(yl(p,t)?p:p.touches[0])[g]}function s(p){return r=p,o=p,i(p)}function l(p){const m=i(p)-i(o),v=a(p)-a(r)>170;return o=p,v&&(r=p),m}function u(p){if(!r||!o)return 0;const m=i(o)-i(r),v=a(p)-a(r),g=a(p)-a(o)>170,h=m/v;return v&&!g&&De(h)>.1?h:0}return{pointerDown:s,pointerMove:l,pointerUp:u,readPoint:i}}function PA(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:i}=n;return{top:r,right:o+a,bottom:r+i,left:o,width:a,height:i}}return{measure:e}}function NA(e){function t(r){return e*(r/100)}return{measure:t}}function TA(e,t,n,r,o,a,i){const s=[e].concat(r);let l,u,f=[],p=!1;function m(b){return o.measureSize(i.measure(b))}function v(b){if(!a)return;u=m(e),f=r.map(m);function y(w){for(const x of w){if(p)return;const S=x.target===e,C=r.indexOf(x.target),N=S?u:f[C],E=m(S?e:r[C]);if(De(E-N)>=.5){b.reInit(),t.emit("resize");break}}}l=new ResizeObserver(w=>{(Ra(a)||a(b,w))&&y(w)}),n.requestAnimationFrame(()=>{s.forEach(w=>l.observe(w))})}function g(){p=!0,l&&l.disconnect()}return{init:v,destroy:g}}function MA(e,t,n,r,o,a){let i=0,s=0,l=o,u=a,f=e.get(),p=0;function m(){const N=r.get()-e.get(),E=!l;let A=0;return E?(i=0,n.set(r),e.set(r),A=N):(n.set(e),i+=N/l,i*=u,f+=i,e.add(i),A=f-p),s=gl(A),p=f,C}function v(){const N=r.get()-t.get();return De(N)<.001}function g(){return l}function h(){return s}function b(){return i}function y(){return x(o)}function w(){return S(a)}function x(N){return l=N,C}function S(N){return u=N,C}const C={direction:h,duration:g,velocity:b,seek:m,settled:v,useBaseFriction:w,useBaseDuration:y,useFriction:S,useDuration:x};return C}function RA(e,t,n,r,o){const a=o.measure(10),i=o.measure(50),s=An(.1,.99);let l=!1;function u(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function f(v){if(!u())return;const g=e.reachedMin(t.get())?"min":"max",h=De(e[g]-t.get()),b=n.get()-t.get(),y=s.constrain(h/i);n.subtract(b*y),!v&&De(b)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function p(v){l=!v}return{shouldConstrain:u,constrain:f,toggleActive:p}}function OA(e,t,n,r,o){const a=An(-t+e,0),i=p(),s=f(),l=m();function u(g,h){return ao(g,h)<=1}function f(){const g=i[0],h=wt(i),b=i.lastIndexOf(g),y=i.indexOf(h)+1;return An(b,y)}function p(){return n.map((g,h)=>{const{min:b,max:y}=a,w=a.constrain(g),x=!h,S=bl(n,h);return x?y:S||u(b,w)?b:u(y,w)?y:w}).map(g=>parseFloat(g.toFixed(3)))}function m(){if(t<=e+o)return[a.max];if(r==="keepSnaps")return i;const{min:g,max:h}=s;return i.slice(g,h)}return{snapsContained:l,scrollContainLimit:s}}function AA(e,t,n){const r=t[0],o=n?r-e:wt(t);return{limit:An(o,r)}}function DA(e,t,n,r){const a=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:l}=An(a,i);function u(m){return m===1?l(n.get()):m===-1?s(n.get()):!1}function f(m){if(!u(m))return;const v=e*(m*-1);r.forEach(g=>g.add(v))}return{loop:f}}function IA(e){const{max:t,length:n}=e;function r(a){const i=a-t;return n?i/-n:0}return{get:r}}function jA(e,t,n,r,o){const{startEdge:a,endEdge:i}=e,{groupSlides:s}=o,l=p().map(t.measure),u=m(),f=v();function p(){return s(r).map(h=>wt(h)[i]-h[0][a]).map(De)}function m(){return r.map(h=>n[a]-h[a]).map(h=>-De(h))}function v(){return s(u).map(h=>h[0]).map((h,b)=>h+l[b])}return{snaps:u,snapsAligned:f}}function $A(e,t,n,r,o,a){const{groupSlides:i}=o,{min:s,max:l}=r,u=f();function f(){const m=i(a),v=!e||t==="keepSnaps";return n.length===1?[a]:v?m:m.slice(s,l).map((g,h,b)=>{const y=!h,w=bl(b,h);if(y){const x=wt(b[0])+1;return fh(x)}if(w){const x=so(a)-wt(b)[0]+1;return fh(x,wt(b)[0])}return g})}return{slideRegistry:u}}function kA(e,t,n,r,o){const{reachedAny:a,removeOffset:i,constrain:s}=r;function l(g){return g.concat().sort((h,b)=>De(h)-De(b))[0]}function u(g){const h=e?i(g):s(g),b=t.map((w,x)=>({diff:f(w-h,0),index:x})).sort((w,x)=>De(w.diff)-De(x.diff)),{index:y}=b[0];return{index:y,distance:h}}function f(g,h){const b=[g,g+n,g-n];if(!e)return g;if(!h)return l(b);const y=b.filter(w=>gl(w)===h);return y.length?l(y):wt(b)-n}function p(g,h){const b=t[g]-o.get(),y=f(b,h);return{index:g,distance:y}}function m(g,h){const b=o.get()+g,{index:y,distance:w}=u(b),x=!e&&a(b);if(!h||x)return{index:y,distance:g};const S=t[y]-w,C=g+f(S,0);return{index:y,distance:C}}return{byDistance:m,byIndex:p,shortcut:f}}function LA(e,t,n,r,o,a,i){function s(p){const m=p.distance,v=p.index!==t.get();a.add(m),m&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),v&&(n.set(t.get()),t.set(p.index),i.emit("select"))}function l(p,m){const v=o.byDistance(p,m);s(v)}function u(p,m){const v=t.clone().set(p),g=o.byIndex(v.get(),m);s(g)}return{distance:l,index:u}}function FA(e,t,n,r,o,a,i,s){const l={passive:!0,capture:!0};let u=0;function f(v){if(!s)return;function g(h){if(new Date().getTime()-u>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const w=n.findIndex(x=>x.includes(h));hl(w)&&(o.useDuration(0),r.index(w,0),i.emit("slideFocus"))}a.add(document,"keydown",p,!1),t.forEach((h,b)=>{a.add(h,"focus",y=>{(Ra(s)||s(v,y))&&g(b)},l)})}function p(v){v.code==="Tab"&&(u=new Date().getTime())}return{init:f}}function uo(e){let t=e;function n(){return t}function r(l){t=i(l)}function o(l){t+=i(l)}function a(l){t-=i(l)}function i(l){return hl(l)?l:l.get()}return{get:n,set:r,add:o,subtract:a}}function hh(e,t){const n=e.scroll==="x"?i:s,r=t.style;let o=null,a=!1;function i(m){return`translate3d(${m}px,0px,0px)`}function s(m){return`translate3d(0px,${m}px,0px)`}function l(m){if(a)return;const v=wA(e.direction(m));v!==o&&(r.transform=n(v),o=v)}function u(m){a=!m}function f(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:f,to:l,toggleActive:u}}function BA(e,t,n,r,o,a,i,s,l){const f=io(o),p=io(o).reverse(),m=y().concat(w());function v(E,A){return E.reduce((T,F)=>T-o[F],A)}function g(E,A){return E.reduce((T,F)=>v(T,A)>0?T.concat([F]):T,[])}function h(E){return a.map((A,T)=>({start:A-r[T]+.5+E,end:A+t-.5+E}))}function b(E,A,T){const F=h(A);return E.map(R=>{const k=T?0:-n,U=T?n:0,L=T?"end":"start",G=F[R][L];return{index:R,loopPoint:G,slideLocation:uo(-1),translate:hh(e,l[R]),target:()=>s.get()>G?k:U}})}function y(){const E=i[0],A=g(p,E);return b(A,n,!1)}function w(){const E=t-i[0]-1,A=g(f,E);return b(A,-n,!0)}function x(){return m.every(({index:E})=>{const A=f.filter(T=>T!==E);return v(A,t)<=.1})}function S(){m.forEach(E=>{const{target:A,translate:T,slideLocation:F}=E,R=A();R!==F.get()&&(T.to(R),F.set(R))})}function C(){m.forEach(E=>E.translate.clear())}return{canLoop:x,clear:C,loop:S,loopPoints:m}}function zA(e,t,n){let r,o=!1;function a(l){if(!n)return;function u(f){for(const p of f)if(p.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(f=>{o||(Ra(n)||n(l,f))&&u(f)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:a,destroy:i}}function WA(e,t,n,r){const o={};let a=null,i=null,s,l=!1;function u(){s=new IntersectionObserver(g=>{l||(g.forEach(h=>{const b=t.indexOf(h.target);o[b]=h}),a=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>s.observe(g))}function f(){s&&s.disconnect(),l=!0}function p(g){return lo(o).reduce((h,b)=>{const y=parseInt(b),{isIntersecting:w}=o[y];return(g&&w||!g&&!w)&&h.push(y),h},[])}function m(g=!0){if(g&&a)return a;if(!g&&i)return i;const h=p(g);return g&&(a=h),g||(i=h),h}return{init:u,destroy:f,get:m}}function HA(e,t,n,r,o,a){const{measureSize:i,startEdge:s,endEdge:l}=e,u=n[0]&&o,f=g(),p=h(),m=n.map(i),v=b();function g(){if(!u)return 0;const w=n[0];return De(t[s]-w[s])}function h(){if(!u)return 0;const w=a.getComputedStyle(wt(r));return parseFloat(w.getPropertyValue(`margin-${l}`))}function b(){return n.map((w,x,S)=>{const C=!x,N=bl(S,x);return C?m[x]+f:N?m[x]+p:S[x+1][s]-w[s]}).map(De)}return{slideSizes:m,slideSizesWithGaps:v,startGap:f,endGap:p}}function VA(e,t,n,r,o,a,i,s,l){const{startEdge:u,endEdge:f,direction:p}=e,m=hl(n);function v(y,w){return io(y).filter(x=>x%w===0).map(x=>y.slice(x,x+w))}function g(y){return y.length?io(y).reduce((w,x,S)=>{const C=wt(w)||0,N=C===0,E=x===so(y),A=o[u]-a[C][u],T=o[u]-a[x][f],F=!r&&N?p(i):0,R=!r&&E?p(s):0,k=De(T-R-(A+F));return S&&k>t+l&&w.push(x),E&&w.push(y.length),w},[]).map((w,x,S)=>{const C=Math.max(S[x-1]||0);return y.slice(C,w)}):[]}function h(y){return m?v(y,n):g(y)}return{groupSlides:h}}function GA(e,t,n,r,o,a,i){const{align:s,axis:l,direction:u,startIndex:f,loop:p,duration:m,dragFree:v,dragThreshold:g,inViewThreshold:h,slidesToScroll:b,skipSnaps:y,containScroll:w,watchResize:x,watchSlides:S,watchDrag:C,watchFocus:N}=a,E=2,A=PA(),T=A.measure(t),F=n.map(A.measure),R=CA(l,u),k=R.measureSize(T),U=NA(k),L=xA(s,k),G=!p&&!!w,V=p||!!w,{slideSizes:B,slideSizesWithGaps:$,startGap:K,endGap:oe}=HA(R,T,F,n,V,o),O=VA(R,k,b,p,T,F,K,oe,E),{snaps:D,snapsAligned:j}=jA(R,L,T,F,O),H=-wt(D)+wt($),{snapsContained:Y,scrollContainLimit:Z}=OA(k,H,j,w,E),I=G?Y:j,{limit:q}=AA(H,I,p),J=mh(so(I),f,p),te=J.clone(),ne=io(n),Q=({dragHandler:Wt,scrollBody:Mt,scrollBounds:xn,options:{loop:tt}})=>{tt||xn.constrain(Wt.pointerDown()),Mt.seek()},X=({scrollBody:Wt,translate:Mt,location:xn,offsetLocation:tt,previousLocation:Xn,scrollLooper:na,slideLooper:qd,dragHandler:Xd,animation:se,eventHandler:ve,scrollBounds:Se,options:{loop:Ce}},ge)=>{const qe=Wt.settled(),Fe=!Se.shouldConstrain(),Ve=Ce?qe:qe&&Fe,nt=Ve&&!Xd.pointerDown();nt&&se.stop();const nn=xn.get()*ge+Xn.get()*(1-ge);tt.set(nn),Ce&&(na.loop(Wt.direction()),qd.loop()),Mt.to(tt.get()),nt&&ve.emit("settle"),Ve||ve.emit("scroll")},W=SA(r,o,()=>Q(tn),Wt=>X(tn,Wt)),re=.68,le=I[J.get()],pe=uo(le),fe=uo(le),ce=uo(le),Pe=uo(le),Le=MA(pe,ce,fe,Pe,m,re),Ae=kA(p,I,H,q,Pe),Ue=LA(W,J,te,Le,Ae,Pe,i),Ke=IA(q),st=co(),mt=WA(t,n,i,h),{slideRegistry:Ye}=$A(G,w,I,Z,O,ne),Lr=FA(e,n,Ye,Ue,Le,st,i,N),tn={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:T,slideRects:F,animation:W,axis:R,dragHandler:_A(R,e,r,o,Pe,EA(R,o),pe,W,Ue,Le,Ae,J,i,U,v,g,y,re,C),eventStore:st,percentOfView:U,index:J,indexPrevious:te,limit:q,location:pe,offsetLocation:ce,previousLocation:fe,options:a,resizeHandler:TA(t,i,o,n,R,x,A),scrollBody:Le,scrollBounds:RA(q,ce,Pe,Le,U),scrollLooper:DA(H,q,ce,[pe,ce,fe,Pe]),scrollProgress:Ke,scrollSnapList:I.map(Ke.get),scrollSnaps:I,scrollTarget:Ae,scrollTo:Ue,slideLooper:BA(R,k,H,B,$,D,I,ce,n),slideFocus:Lr,slidesHandler:zA(t,i,S),slidesInView:mt,slideIndexes:ne,slideRegistry:Ye,slidesToScroll:O,target:Pe,translate:hh(R,t)};return tn}function UA(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function o(u){return r(u).forEach(f=>f(t,u)),l}function a(u,f){return e[u]=r(u).concat([f]),l}function i(u,f){return e[u]=r(u).filter(p=>p!==f),l}function s(){e={}}const l={init:n,emit:o,off:i,on:a,clear:s};return l}const KA={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function YA(e){function t(a,i){return ph(a,i||{})}function n(a){const i=a.breakpoints||{},s=lo(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,u)=>t(l,u),{});return t(a,s)}function r(a){return a.map(i=>lo(i.breakpoints||{})).reduce((i,s)=>i.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function qA(e){let t=[];function n(a,i){return t=i.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),i.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function Oa(e,t,n){const r=e.ownerDocument,o=r.defaultView,a=YA(o),i=qA(a),s=co(),l=UA(),{mergeOptions:u,optionsAtMedia:f,optionsMediaQueries:p}=a,{on:m,off:v,emit:g}=l,h=R;let b=!1,y,w=u(KA,Oa.globalOptions),x=u(w),S=[],C,N,E;function A(){const{container:ne,slides:Q}=x;N=(vl(ne)?e.querySelector(ne):ne)||e.children[0];const W=vl(Q)?N.querySelectorAll(Q):Q;E=[].slice.call(W||N.children)}function T(ne){const Q=GA(e,N,E,r,o,ne,l);if(ne.loop&&!Q.slideLooper.canLoop()){const X=Object.assign({},ne,{loop:!1});return T(X)}return Q}function F(ne,Q){b||(w=u(w,ne),x=f(w),S=Q||S,A(),y=T(x),p([w,...S.map(({options:X})=>X)]).forEach(X=>s.add(X,"change",R)),x.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(te),y.eventHandler.init(te),y.resizeHandler.init(te),y.slidesHandler.init(te),y.options.loop&&y.slideLooper.loop(),N.offsetParent&&E.length&&y.dragHandler.init(te),C=i.init(te,S)))}function R(ne,Q){const X=O();k(),F(u({startIndex:X},ne),Q),l.emit("reInit")}function k(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),i.destroy(),s.clear()}function U(){b||(b=!0,s.clear(),k(),l.emit("destroy"),l.clear())}function L(ne,Q,X){!x.active||b||(y.scrollBody.useBaseFriction().useDuration(Q===!0?0:x.duration),y.scrollTo.index(ne,X||0))}function G(ne){const Q=y.index.add(1).get();L(Q,ne,-1)}function V(ne){const Q=y.index.add(-1).get();L(Q,ne,1)}function B(){return y.index.add(1).get()!==O()}function $(){return y.index.add(-1).get()!==O()}function K(){return y.scrollSnapList}function oe(){return y.scrollProgress.get(y.offsetLocation.get())}function O(){return y.index.get()}function D(){return y.indexPrevious.get()}function j(){return y.slidesInView.get()}function H(){return y.slidesInView.get(!1)}function Y(){return C}function Z(){return y}function I(){return e}function q(){return N}function J(){return E}const te={canScrollNext:B,canScrollPrev:$,containerNode:q,internalEngine:Z,destroy:U,off:v,on:m,emit:g,plugins:Y,previousScrollSnap:D,reInit:h,rootNode:I,scrollNext:G,scrollPrev:V,scrollProgress:oe,scrollSnapList:K,scrollTo:L,selectedScrollSnap:O,slideNodes:J,slidesInView:j,slidesNotInView:H};return F(t,n),setTimeout(()=>l.emit("init"),0),te}Oa.globalOptions=void 0;function wl(e={},t=[]){const n=_.useRef(e),r=_.useRef(t),[o,a]=_.useState(),[i,s]=_.useState(),l=_.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return _.useEffect(()=>{ml(n.current,e)||(n.current=e,l())},[e,l]),_.useEffect(()=>{bA(r.current,t)||(r.current=t,l())},[t,l]),_.useEffect(()=>{if(gA()&&i){Oa.globalOptions=wl.globalOptions;const u=Oa(i,n.current,r.current);return a(u),()=>u.destroy()}else a(void 0)},[i,a]),[s,o]}wl.globalOptions=void 0;const vh=c.createContext(null);function Aa(){const e=c.useContext(vh);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const gh=c.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:a,...i},s)=>{const[l,u]=wl({...t,axis:e==="horizontal"?"x":"y"},r),[f,p]=c.useState(!1),[m,v]=c.useState(!1),g=c.useCallback(w=>{w&&(p(w.canScrollPrev()),v(w.canScrollNext()))},[]),h=c.useCallback(()=>{u==null||u.scrollPrev()},[u]),b=c.useCallback(()=>{u==null||u.scrollNext()},[u]),y=c.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),h()):w.key==="ArrowRight"&&(w.preventDefault(),b())},[h,b]);return c.useEffect(()=>{!u||!n||n(u)},[u,n]),c.useEffect(()=>{if(u)return g(u),u.on("reInit",g),u.on("select",g),()=>{u==null||u.off("select",g)}},[u,g]),d.jsx(vh.Provider,{value:{carouselRef:l,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:h,scrollNext:b,canScrollPrev:f,canScrollNext:m},children:d.jsx("div",{ref:s,onKeyDownCapture:y,className:M("relative",o),role:"region","aria-roledescription":"carousel",...i,children:a})})});gh.displayName="Carousel";const bh=c.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=Aa();return d.jsx("div",{ref:r,className:"overflow-hidden",children:d.jsx("div",{ref:n,className:M("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});bh.displayName="CarouselContent";const yh=c.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Aa();return d.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:M("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});yh.displayName="CarouselItem";const wh=c.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:a,scrollPrev:i,canScrollPrev:s}=Aa();return d.jsxs(Zr,{ref:o,variant:t,size:n,className:M("absolute h-8 w-8 rounded-full",a==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:i,...r,children:[d.jsx(yT,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Previous slide"})]})});wh.displayName="CarouselPrevious";const xh=c.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:a,scrollNext:i,canScrollNext:s}=Aa();return d.jsxs(Zr,{ref:o,variant:t,size:n,className:M("absolute h-8 w-8 rounded-full",a==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:i,...r,children:[d.jsx(wT,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Next slide"})]})});xh.displayName="CarouselNext";var XA=Array.isArray,xt=XA,ZA=typeof aa=="object"&&aa&&aa.Object===Object&&aa,Sh=ZA,QA=Sh,JA=typeof self=="object"&&self&&self.Object===Object&&self,eD=QA||JA||Function("return this")(),It=eD,tD=It,nD=tD.Symbol,fo=nD,Ch=fo,_h=Object.prototype,rD=_h.hasOwnProperty,oD=_h.toString,po=Ch?Ch.toStringTag:void 0;function aD(e){var t=rD.call(e,po),n=e[po];try{e[po]=void 0;var r=!0}catch{}var o=oD.call(e);return r&&(t?e[po]=n:delete e[po]),o}var iD=aD,sD=Object.prototype,lD=sD.toString;function cD(e){return lD.call(e)}var uD=cD,Eh=fo,dD=iD,fD=uD,pD="[object Null]",mD="[object Undefined]",Ph=Eh?Eh.toStringTag:void 0;function hD(e){return e==null?e===void 0?mD:pD:Ph&&Ph in Object(e)?dD(e):fD(e)}var Dn=hD;function vD(e){return e!=null&&typeof e=="object"}var In=vD,gD=Dn,bD=In,yD="[object Symbol]";function wD(e){return typeof e=="symbol"||bD(e)&&gD(e)==yD}var mo=wD,xD=xt,SD=mo,CD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_D=/^\w*$/;function ED(e,t){if(xD(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||SD(e)?!0:_D.test(e)||!CD.test(e)||t!=null&&e in Object(t)}var xl=ED;function PD(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cn=PD;const Nh=Rt(cn);var ND=Dn,TD=cn,MD="[object AsyncFunction]",RD="[object Function]",OD="[object GeneratorFunction]",AD="[object Proxy]";function DD(e){if(!TD(e))return!1;var t=ND(e);return t==RD||t==OD||t==MD||t==AD}var Sl=DD;const Da=Rt(Sl);var ID=It,jD=ID["__core-js_shared__"],$D=jD,Cl=$D,Th=function(){var e=/[^.]+$/.exec(Cl&&Cl.keys&&Cl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kD(e){return!!Th&&Th in e}var LD=kD,FD=Function.prototype,BD=FD.toString;function zD(e){if(e!=null){try{return BD.call(e)}catch{}try{return e+""}catch{}}return""}var Mh=zD,WD=Sl,HD=LD,VD=cn,GD=Mh,UD=/[\\^$.*+?()[\]{}|]/g,KD=/^\[object .+?Constructor\]$/,YD=Function.prototype,qD=Object.prototype,XD=YD.toString,ZD=qD.hasOwnProperty,QD=RegExp("^"+XD.call(ZD).replace(UD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function JD(e){if(!VD(e)||HD(e))return!1;var t=WD(e)?QD:KD;return t.test(GD(e))}var eI=JD;function tI(e,t){return e==null?void 0:e[t]}var nI=tI,rI=eI,oI=nI;function aI(e,t){var n=oI(e,t);return rI(n)?n:void 0}var jn=aI,iI=jn,sI=iI(Object,"create"),Ia=sI,Rh=Ia;function lI(){this.__data__=Rh?Rh(null):{},this.size=0}var cI=lI;function uI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dI=uI,fI=Ia,pI="__lodash_hash_undefined__",mI=Object.prototype,hI=mI.hasOwnProperty;function vI(e){var t=this.__data__;if(fI){var n=t[e];return n===pI?void 0:n}return hI.call(t,e)?t[e]:void 0}var gI=vI,bI=Ia,yI=Object.prototype,wI=yI.hasOwnProperty;function xI(e){var t=this.__data__;return bI?t[e]!==void 0:wI.call(t,e)}var SI=xI,CI=Ia,_I="__lodash_hash_undefined__";function EI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=CI&&t===void 0?_I:t,this}var PI=EI,NI=cI,TI=dI,MI=gI,RI=SI,OI=PI;function ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ur.prototype.clear=NI,ur.prototype.delete=TI,ur.prototype.get=MI,ur.prototype.has=RI,ur.prototype.set=OI;var AI=ur;function DI(){this.__data__=[],this.size=0}var II=DI;function jI(e,t){return e===t||e!==e&&t!==t}var _l=jI,$I=_l;function kI(e,t){for(var n=e.length;n--;)if($I(e[n][0],t))return n;return-1}var ja=kI,LI=ja,FI=Array.prototype,BI=FI.splice;function zI(e){var t=this.__data__,n=LI(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():BI.call(t,n,1),--this.size,!0}var WI=zI,HI=ja;function VI(e){var t=this.__data__,n=HI(t,e);return n<0?void 0:t[n][1]}var GI=VI,UI=ja;function KI(e){return UI(this.__data__,e)>-1}var YI=KI,qI=ja;function XI(e,t){var n=this.__data__,r=qI(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var ZI=XI,QI=II,JI=WI,ej=GI,tj=YI,nj=ZI;function dr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}dr.prototype.clear=QI,dr.prototype.delete=JI,dr.prototype.get=ej,dr.prototype.has=tj,dr.prototype.set=nj;var $a=dr,rj=jn,oj=It,aj=rj(oj,"Map"),El=aj,Oh=AI,ij=$a,sj=El;function lj(){this.size=0,this.__data__={hash:new Oh,map:new(sj||ij),string:new Oh}}var cj=lj;function uj(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var dj=uj,fj=dj;function pj(e,t){var n=e.__data__;return fj(t)?n[typeof t=="string"?"string":"hash"]:n.map}var ka=pj,mj=ka;function hj(e){var t=mj(this,e).delete(e);return this.size-=t?1:0,t}var vj=hj,gj=ka;function bj(e){return gj(this,e).get(e)}var yj=bj,wj=ka;function xj(e){return wj(this,e).has(e)}var Sj=xj,Cj=ka;function _j(e,t){var n=Cj(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Ej=_j,Pj=cj,Nj=vj,Tj=yj,Mj=Sj,Rj=Ej;function fr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fr.prototype.clear=Pj,fr.prototype.delete=Nj,fr.prototype.get=Tj,fr.prototype.has=Mj,fr.prototype.set=Rj;var Pl=fr,Ah=Pl,Oj="Expected a function";function Nl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Oj);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Nl.Cache||Ah),n}Nl.Cache=Ah;var Aj=Nl,Dj=Aj,Ij=500;function jj(e){var t=Dj(e,function(r){return n.size===Ij&&n.clear(),r}),n=t.cache;return t}var $j=jj,kj=$j,Lj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fj=/\\(\\)?/g,Bj=kj(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Lj,function(n,r,o,a){t.push(o?a.replace(Fj,"$1"):r||n)}),t}),zj=Bj;function Wj(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Dh=Wj,Ih=fo,Hj=Dh,Vj=xt,Gj=mo,jh=Ih?Ih.prototype:void 0,$h=jh?jh.toString:void 0;function kh(e){if(typeof e=="string")return e;if(Vj(e))return Hj(e,kh)+"";if(Gj(e))return $h?$h.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Uj=kh,Kj=Uj;function Yj(e){return e==null?"":Kj(e)}var Lh=Yj,qj=xt,Xj=xl,Zj=zj,Qj=Lh;function Jj(e,t){return qj(e)?e:Xj(e,t)?[e]:Zj(Qj(e))}var Fh=Jj,e$=mo;function t$(e){if(typeof e=="string"||e$(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var La=t$,n$=Fh,r$=La;function o$(e,t){t=n$(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[r$(t[n++])];return n&&n==r?e:void 0}var Tl=o$,a$=Tl;function i$(e,t,n){var r=e==null?void 0:a$(e,t);return r===void 0?n:r}var s$=i$;function l$(e){return e==null}var c$=l$;const u$=Rt(c$);var d$=Dn,f$=xt,p$=In,m$="[object String]";function h$(e){return typeof e=="string"||!f$(e)&&p$(e)&&d$(e)==m$}var v$=h$;const Bh=Rt(v$);var be={};/**
|
|
169
|
+
* @license React
|
|
170
|
+
* react-is.production.min.js
|
|
171
|
+
*
|
|
172
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the MIT license found in the
|
|
175
|
+
* LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/var zh;function g$(){if(zh)return be;zh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function h(b){if(typeof b=="object"&&b!==null){var y=b.$$typeof;switch(y){case e:switch(b=b.type,b){case n:case o:case r:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case s:case i:case l:case m:case p:case a:return b;default:return y}}case t:return y}}}return be.ContextConsumer=i,be.ContextProvider=a,be.Element=e,be.ForwardRef=l,be.Fragment=n,be.Lazy=m,be.Memo=p,be.Portal=t,be.Profiler=o,be.StrictMode=r,be.Suspense=u,be.SuspenseList=f,be.isAsyncMode=function(){return!1},be.isConcurrentMode=function(){return!1},be.isContextConsumer=function(b){return h(b)===i},be.isContextProvider=function(b){return h(b)===a},be.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},be.isForwardRef=function(b){return h(b)===l},be.isFragment=function(b){return h(b)===n},be.isLazy=function(b){return h(b)===m},be.isMemo=function(b){return h(b)===p},be.isPortal=function(b){return h(b)===t},be.isProfiler=function(b){return h(b)===o},be.isStrictMode=function(b){return h(b)===r},be.isSuspense=function(b){return h(b)===u},be.isSuspenseList=function(b){return h(b)===f},be.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===u||b===f||b===v||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===p||b.$$typeof===a||b.$$typeof===i||b.$$typeof===l||b.$$typeof===g||b.getModuleId!==void 0)},be.typeOf=h,be}var ye={};/**
|
|
177
|
+
* @license React
|
|
178
|
+
* react-is.development.js
|
|
179
|
+
*
|
|
180
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the MIT license found in the
|
|
183
|
+
* LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/var Wh;function b$(){return Wh||(Wh=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),g=!1,h=!1,b=!1,y=!1,w=!1,x;x=Symbol.for("react.module.reference");function S(W){return!!(typeof W=="string"||typeof W=="function"||W===n||W===o||w||W===r||W===u||W===f||y||W===v||g||h||b||typeof W=="object"&&W!==null&&(W.$$typeof===m||W.$$typeof===p||W.$$typeof===a||W.$$typeof===i||W.$$typeof===l||W.$$typeof===x||W.getModuleId!==void 0))}function C(W){if(typeof W=="object"&&W!==null){var re=W.$$typeof;switch(re){case e:var le=W.type;switch(le){case n:case o:case r:case u:case f:return le;default:var pe=le&&le.$$typeof;switch(pe){case s:case i:case l:case m:case p:case a:return pe;default:return re}}case t:return re}}}var N=i,E=a,A=e,T=l,F=n,R=m,k=p,U=t,L=o,G=r,V=u,B=f,$=!1,K=!1;function oe(W){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function O(W){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(W){return C(W)===i}function j(W){return C(W)===a}function H(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function Y(W){return C(W)===l}function Z(W){return C(W)===n}function I(W){return C(W)===m}function q(W){return C(W)===p}function J(W){return C(W)===t}function te(W){return C(W)===o}function ne(W){return C(W)===r}function Q(W){return C(W)===u}function X(W){return C(W)===f}ye.ContextConsumer=N,ye.ContextProvider=E,ye.Element=A,ye.ForwardRef=T,ye.Fragment=F,ye.Lazy=R,ye.Memo=k,ye.Portal=U,ye.Profiler=L,ye.StrictMode=G,ye.Suspense=V,ye.SuspenseList=B,ye.isAsyncMode=oe,ye.isConcurrentMode=O,ye.isContextConsumer=D,ye.isContextProvider=j,ye.isElement=H,ye.isForwardRef=Y,ye.isFragment=Z,ye.isLazy=I,ye.isMemo=q,ye.isPortal=J,ye.isProfiler=te,ye.isStrictMode=ne,ye.isSuspense=Q,ye.isSuspenseList=X,ye.isValidElementType=S,ye.typeOf=C}()),ye}process.env.NODE_ENV==="production"?g$():b$();var y$=Dn,w$=In,x$="[object Number]";function S$(e){return typeof e=="number"||w$(e)&&y$(e)==x$}var Hh=S$;const C$=Rt(Hh);var _$=Hh;function E$(e){return _$(e)&&e!=+e}var P$=E$;const N$=Rt(P$);var Fa=function(t){return Bh(t)&&t.indexOf("%")===t.length-1},St=function(t){return C$(t)&&!N$(t)},Ba=function(t){return St(t)||Bh(t)};function Ml(e){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ml(e)}var T$=["viewBox","children"],M$=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Vh=["points","pathLength"],Rl={svg:T$,polygon:Vh,polyline:Vh},Gh=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],R$=function(t,n,r){return function(o){return t(n,r,o),null}},O$=function(t,n,r){if(!Nh(t)||Ml(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(a){var i=t[a];Gh.includes(a)&&typeof i=="function"&&(o||(o={}),o[a]=R$(i,n,r))}),o},A$=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},D$=function(t,n,r,o){var a,i=(a=Rl==null?void 0:Rl[o])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!Da(t)&&(o&&i.includes(n)||M$.includes(n))||Gh.includes(n)},Uh=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(_.isValidElement(t)&&(o=t.props),!Nh(o))return null;var a={};return Object.keys(o).forEach(function(i){var s;D$((s=o)===null||s===void 0?void 0:s[i],i,n,r)&&(a[i]=o[i])}),a},I$=["children","width","height","viewBox","className","style","title","desc"];function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ol.apply(this,arguments)}function j$(e,t){if(e==null)return{};var n=$$(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $$(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function k$(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,i=e.style,s=e.title,l=e.desc,u=j$(e,I$),f=o||{width:n,height:r,x:0,y:0},p=Vt("recharts-surface",a);return _.createElement("svg",Ol({},Uh(u,!0,"svg"),{className:p,width:n,height:r,style:i,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),_.createElement("title",null,s),_.createElement("desc",null,l),t)}var L$=process.env.NODE_ENV!=="production",za=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];if(L$&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(n.replace(/%s/g,function(){return o[i++]}))}};function F$(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}var B$=F$,z$=B$;function W$(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:z$(e,t,n)}var H$=W$,V$="\\ud800-\\udfff",G$="\\u0300-\\u036f",U$="\\ufe20-\\ufe2f",K$="\\u20d0-\\u20ff",Y$=G$+U$+K$,q$="\\ufe0e\\ufe0f",X$="\\u200d",Z$=RegExp("["+X$+V$+Y$+q$+"]");function Q$(e){return Z$.test(e)}var Kh=Q$;function J$(e){return e.split("")}var ek=J$,Yh="\\ud800-\\udfff",tk="\\u0300-\\u036f",nk="\\ufe20-\\ufe2f",rk="\\u20d0-\\u20ff",ok=tk+nk+rk,ak="\\ufe0e\\ufe0f",ik="["+Yh+"]",Al="["+ok+"]",Dl="\\ud83c[\\udffb-\\udfff]",sk="(?:"+Al+"|"+Dl+")",qh="[^"+Yh+"]",Xh="(?:\\ud83c[\\udde6-\\uddff]){2}",Zh="[\\ud800-\\udbff][\\udc00-\\udfff]",lk="\\u200d",Qh=sk+"?",Jh="["+ak+"]?",ck="(?:"+lk+"(?:"+[qh,Xh,Zh].join("|")+")"+Jh+Qh+")*",uk=Jh+Qh+ck,dk="(?:"+[qh+Al+"?",Al,Xh,Zh,ik].join("|")+")",fk=RegExp(Dl+"(?="+Dl+")|"+dk+uk,"g");function pk(e){return e.match(fk)||[]}var mk=pk,hk=ek,vk=Kh,gk=mk;function bk(e){return vk(e)?gk(e):hk(e)}var yk=bk,wk=H$,xk=Kh,Sk=yk,Ck=Lh;function _k(e){return function(t){t=Ck(t);var n=xk(t)?Sk(t):void 0,r=n?n[0]:t.charAt(0),o=n?wk(n,1).join(""):t.slice(1);return r[e]()+o}}var Ek=_k,Pk=Ek,Nk=Pk("toUpperCase"),Tk=Nk;const ev=Rt(Tk);function Wa(e){return function(){return e}}const tv=Math.cos,Ha=Math.sin,Ct=Math.sqrt,Va=Math.PI,Ga=2*Va,Il=Math.PI,jl=2*Il,$n=1e-6,Mk=jl-$n;function nv(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Rk(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return nv;const n=10**t;return function(r){this._+=r[0];for(let o=1,a=r.length;o<a;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class Ok{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?nv:Rk(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,a,i){this._append`C${+t},${+n},${+r},${+o},${this._x1=+a},${this._y1=+i}`}arcTo(t,n,r,o,a){if(t=+t,n=+n,r=+r,o=+o,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,s=this._y1,l=r-t,u=o-n,f=i-t,p=s-n,m=f*f+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>$n)if(!(Math.abs(p*l-u*f)>$n)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-i,g=o-s,h=l*l+u*u,b=v*v+g*g,y=Math.sqrt(h),w=Math.sqrt(m),x=a*Math.tan((Il-Math.acos((h+m-b)/(2*y*w)))/2),S=x/w,C=x/y;Math.abs(S-1)>$n&&this._append`L${t+S*f},${n+S*p}`,this._append`A${a},${a},0,0,${+(p*v>f*g)},${this._x1=t+C*l},${this._y1=n+C*u}`}}arc(t,n,r,o,a,i){if(t=+t,n=+n,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),u=t+s,f=n+l,p=1^i,m=i?o-a:a-o;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>$n||Math.abs(this._y1-f)>$n)&&this._append`L${u},${f}`,r&&(m<0&&(m=m%jl+jl),m>Mk?this._append`A${r},${r},0,1,${p},${t-s},${n-l}A${r},${r},0,1,${p},${this._x1=u},${this._y1=f}`:m>$n&&this._append`A${r},${r},0,${+(m>=Il)},${p},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function Ak(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Ok(t)}const $l={draw(e,t){const n=Ct(t/Va);e.moveTo(n,0),e.arc(0,0,n,0,Ga)}},Dk={draw(e,t){const n=Ct(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},rv=Ct(1/3),Ik=rv*2,jk={draw(e,t){const n=Ct(t/Ik),r=n*rv;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},$k={draw(e,t){const n=Ct(t),r=-n/2;e.rect(r,r,n,n)}},kk=.8908130915292852,ov=Ha(Va/10)/Ha(7*Va/10),Lk=Ha(Ga/10)*ov,Fk=-tv(Ga/10)*ov,Bk={draw(e,t){const n=Ct(t*kk),r=Lk*n,o=Fk*n;e.moveTo(0,-n),e.lineTo(r,o);for(let a=1;a<5;++a){const i=Ga*a/5,s=tv(i),l=Ha(i);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},kl=Ct(3),zk={draw(e,t){const n=-Ct(t/(kl*3));e.moveTo(0,n*2),e.lineTo(-kl*n,-n),e.lineTo(kl*n,-n),e.closePath()}},lt=-.5,ct=Ct(3)/2,Ll=1/Ct(12),Wk=(Ll/2+1)*3,Hk={draw(e,t){const n=Ct(t/Wk),r=n/2,o=n*Ll,a=r,i=n*Ll+n,s=-a,l=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(lt*r-ct*o,ct*r+lt*o),e.lineTo(lt*a-ct*i,ct*a+lt*i),e.lineTo(lt*s-ct*l,ct*s+lt*l),e.lineTo(lt*r+ct*o,lt*o-ct*r),e.lineTo(lt*a+ct*i,lt*i-ct*a),e.lineTo(lt*s+ct*l,lt*l-ct*s),e.closePath()}};function Vk(e,t){let n=null,r=Ak(o);e=typeof e=="function"?e:Wa(e||$l),t=typeof t=="function"?t:Wa(t===void 0?64:+t);function o(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return o.type=function(a){return arguments.length?(e=typeof a=="function"?a:Wa(a),o):e},o.size=function(a){return arguments.length?(t=typeof a=="function"?a:Wa(+a),o):t},o.context=function(a){return arguments.length?(n=a??null,o):n},o}function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}var Gk=["type","size","sizeType"];function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fl.apply(this,arguments)}function av(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function iv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?av(Object(n),!0).forEach(function(r){Uk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uk(e,t,n){return t=Kk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kk(e){var t=Yk(e,"string");return ho(t)=="symbol"?t:t+""}function Yk(e,t){if(ho(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ho(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qk(e,t){if(e==null)return{};var n=Xk(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xk(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var sv={symbolCircle:$l,symbolCross:Dk,symbolDiamond:jk,symbolSquare:$k,symbolStar:Bk,symbolTriangle:zk,symbolWye:Hk},Zk=Math.PI/180,Qk=function(t){var n="symbol".concat(ev(t));return sv[n]||$l},Jk=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*Zk;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},eL=function(t,n){sv["symbol".concat(ev(t))]=n},lv=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,a=o===void 0?64:o,i=t.sizeType,s=i===void 0?"area":i,l=qk(t,Gk),u=iv(iv({},l),{},{type:r,size:a,sizeType:s}),f=function(){var b=Qk(r),y=Vk().type(b).size(Jk(a,s,r));return y()},p=u.className,m=u.cx,v=u.cy,g=Uh(u,!0);return m===+m&&v===+v&&a===+a?_.createElement("path",Fl({},g,{className:Vt("recharts-symbols",p),transform:"translate(".concat(m,", ").concat(v,")"),d:f()})):null};lv.registerSymbol=eL;function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bl.apply(this,arguments)}function cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cv(Object(n),!0).forEach(function(r){vo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dv(r.key),r)}}function oL(e,t,n){return t&&rL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aL(e,t,n){return t=Ua(t),iL(e,uv()?Reflect.construct(t,n||[],Ua(e).constructor):t.apply(e,n))}function iL(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sL(e)}function sL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uv=function(){return!!e})()}function Ua(e){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ua(e)}function lL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zl(e,t)}function zl(e,t){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},zl(e,t)}function vo(e,t,n){return t=dv(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dv(e){var t=cL(e,"string");return pr(t)=="symbol"?t:t+""}function cL(e,t){if(pr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ut=32,Wl=function(e){function t(){return nL(this,t),aL(this,t,arguments)}return lL(t,e),oL(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,a=ut/2,i=ut/6,s=ut/3,l=r.inactive?o:r.color;if(r.type==="plainline")return _.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:ut,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return _.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
|
|
185
|
+
A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(a,`
|
|
186
|
+
H`).concat(ut,"M").concat(2*s,",").concat(a,`
|
|
187
|
+
A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return _.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(ut/8,"h").concat(ut,"v").concat(ut*3/4,"h").concat(-ut,"z"),className:"recharts-legend-icon"});if(_.isValidElement(r.legendIcon)){var u=tL({},r);return delete u.legendIcon,_.cloneElement(r.legendIcon,u)}return _.createElement(lv,{fill:l,cx:a,cy:a,size:ut,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,a=o.payload,i=o.iconSize,s=o.layout,l=o.formatter,u=o.inactiveColor,f={x:0,y:0,width:ut,height:ut},p={display:s==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(v,g){var h=v.formatter||l,b=Vt(vo(vo({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",v.inactive));if(v.type==="none")return null;var y=Da(v.value)?null:v.value;za(!Da(v.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=v.inactive?u:v.color;return _.createElement("li",Bl({className:b,style:p,key:"legend-item-".concat(g)},O$(r.props,v,g)),_.createElement(k$,{width:i,height:i,viewBox:f,style:m},r.renderIcon(v)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},h?h(y,v,g):y))})}},{key:"render",value:function(){var r=this.props,o=r.payload,a=r.layout,i=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?i:"left"};return _.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(_.PureComponent);vo(Wl,"displayName","Legend"),vo(Wl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var uL=$a;function dL(){this.__data__=new uL,this.size=0}var fL=dL;function pL(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var mL=pL;function hL(e){return this.__data__.get(e)}var vL=hL;function gL(e){return this.__data__.has(e)}var bL=gL,yL=$a,wL=El,xL=Pl,SL=200;function CL(e,t){var n=this.__data__;if(n instanceof yL){var r=n.__data__;if(!wL||r.length<SL-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xL(r)}return n.set(e,t),this.size=n.size,this}var _L=CL,EL=$a,PL=fL,NL=mL,TL=vL,ML=bL,RL=_L;function mr(e){var t=this.__data__=new EL(e);this.size=t.size}mr.prototype.clear=PL,mr.prototype.delete=NL,mr.prototype.get=TL,mr.prototype.has=ML,mr.prototype.set=RL;var fv=mr,OL="__lodash_hash_undefined__";function AL(e){return this.__data__.set(e,OL),this}var DL=AL;function IL(e){return this.__data__.has(e)}var jL=IL,$L=Pl,kL=DL,LL=jL;function Ka(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new $L;++t<n;)this.add(e[t])}Ka.prototype.add=Ka.prototype.push=kL,Ka.prototype.has=LL;var pv=Ka;function FL(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var BL=FL;function zL(e,t){return e.has(t)}var mv=zL,WL=pv,HL=BL,VL=mv,GL=1,UL=2;function KL(e,t,n,r,o,a){var i=n&GL,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var p=-1,m=!0,v=n&UL?new WL:void 0;for(a.set(e,t),a.set(t,e);++p<s;){var g=e[p],h=t[p];if(r)var b=i?r(h,g,p,t,e,a):r(g,h,p,e,t,a);if(b!==void 0){if(b)continue;m=!1;break}if(v){if(!HL(t,function(y,w){if(!VL(v,w)&&(g===y||o(g,y,n,r,a)))return v.push(w)})){m=!1;break}}else if(!(g===h||o(g,h,n,r,a))){m=!1;break}}return a.delete(e),a.delete(t),m}var hv=KL,YL=It,qL=YL.Uint8Array,XL=qL;function ZL(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var QL=ZL;function JL(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Hl=JL,vv=fo,gv=XL,e2=_l,t2=hv,n2=QL,r2=Hl,o2=1,a2=2,i2="[object Boolean]",s2="[object Date]",l2="[object Error]",c2="[object Map]",u2="[object Number]",d2="[object RegExp]",f2="[object Set]",p2="[object String]",m2="[object Symbol]",h2="[object ArrayBuffer]",v2="[object DataView]",bv=vv?vv.prototype:void 0,Vl=bv?bv.valueOf:void 0;function g2(e,t,n,r,o,a,i){switch(n){case v2:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case h2:return!(e.byteLength!=t.byteLength||!a(new gv(e),new gv(t)));case i2:case s2:case u2:return e2(+e,+t);case l2:return e.name==t.name&&e.message==t.message;case d2:case p2:return e==t+"";case c2:var s=n2;case f2:var l=r&o2;if(s||(s=r2),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;r|=a2,i.set(e,t);var f=t2(s(e),s(t),r,o,a,i);return i.delete(e),f;case m2:if(Vl)return Vl.call(e)==Vl.call(t)}return!1}var b2=g2;function y2(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var yv=y2,w2=yv,x2=xt;function S2(e,t,n){var r=t(e);return x2(e)?r:w2(r,n(e))}var C2=S2;function _2(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}var E2=_2;function P2(){return[]}var N2=P2,T2=E2,M2=N2,R2=Object.prototype,O2=R2.propertyIsEnumerable,wv=Object.getOwnPropertySymbols,A2=wv?function(e){return e==null?[]:(e=Object(e),T2(wv(e),function(t){return O2.call(e,t)}))}:M2,D2=A2;function I2(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var j2=I2,$2=Dn,k2=In,L2="[object Arguments]";function F2(e){return k2(e)&&$2(e)==L2}var B2=F2,xv=B2,z2=In,Sv=Object.prototype,W2=Sv.hasOwnProperty,H2=Sv.propertyIsEnumerable,V2=xv(function(){return arguments}())?xv:function(e){return z2(e)&&W2.call(e,"callee")&&!H2.call(e,"callee")},Gl=V2,Ya={exports:{}};function G2(){return!1}var U2=G2;Ya.exports,function(e,t){var n=It,r=U2,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u}(Ya,Ya.exports);var Cv=Ya.exports,K2=9007199254740991,Y2=/^(?:0|[1-9]\d*)$/;function q2(e,t){var n=typeof e;return t=t??K2,!!t&&(n=="number"||n!="symbol"&&Y2.test(e))&&e>-1&&e%1==0&&e<t}var Ul=q2,X2=9007199254740991;function Z2(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=X2}var Kl=Z2,Q2=Dn,J2=Kl,eF=In,tF="[object Arguments]",nF="[object Array]",rF="[object Boolean]",oF="[object Date]",aF="[object Error]",iF="[object Function]",sF="[object Map]",lF="[object Number]",cF="[object Object]",uF="[object RegExp]",dF="[object Set]",fF="[object String]",pF="[object WeakMap]",mF="[object ArrayBuffer]",hF="[object DataView]",vF="[object Float32Array]",gF="[object Float64Array]",bF="[object Int8Array]",yF="[object Int16Array]",wF="[object Int32Array]",xF="[object Uint8Array]",SF="[object Uint8ClampedArray]",CF="[object Uint16Array]",_F="[object Uint32Array]",Oe={};Oe[vF]=Oe[gF]=Oe[bF]=Oe[yF]=Oe[wF]=Oe[xF]=Oe[SF]=Oe[CF]=Oe[_F]=!0,Oe[tF]=Oe[nF]=Oe[mF]=Oe[rF]=Oe[hF]=Oe[oF]=Oe[aF]=Oe[iF]=Oe[sF]=Oe[lF]=Oe[cF]=Oe[uF]=Oe[dF]=Oe[fF]=Oe[pF]=!1;function EF(e){return eF(e)&&J2(e.length)&&!!Oe[Q2(e)]}var PF=EF;function NF(e){return function(t){return e(t)}}var _v=NF,qa={exports:{}};qa.exports,function(e,t){var n=Sh,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s}(qa,qa.exports);var TF=qa.exports,MF=PF,RF=_v,Ev=TF,Pv=Ev&&Ev.isTypedArray,OF=Pv?RF(Pv):MF,Nv=OF,AF=j2,DF=Gl,IF=xt,jF=Cv,$F=Ul,kF=Nv,LF=Object.prototype,FF=LF.hasOwnProperty;function BF(e,t){var n=IF(e),r=!n&&DF(e),o=!n&&!r&&jF(e),a=!n&&!r&&!o&&kF(e),i=n||r||o||a,s=i?AF(e.length,String):[],l=s.length;for(var u in e)(t||FF.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||$F(u,l)))&&s.push(u);return s}var zF=BF,WF=Object.prototype;function HF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||WF;return e===n}var VF=HF;function GF(e,t){return function(n){return e(t(n))}}var UF=GF,KF=UF,YF=KF(Object.keys,Object),qF=YF,XF=VF,ZF=qF,QF=Object.prototype,JF=QF.hasOwnProperty;function eB(e){if(!XF(e))return ZF(e);var t=[];for(var n in Object(e))JF.call(e,n)&&n!="constructor"&&t.push(n);return t}var tB=eB,nB=Sl,rB=Kl;function oB(e){return e!=null&&rB(e.length)&&!nB(e)}var Xa=oB,aB=zF,iB=tB,sB=Xa;function lB(e){return sB(e)?aB(e):iB(e)}var Yl=lB,cB=C2,uB=D2,dB=Yl;function fB(e){return cB(e,dB,uB)}var pB=fB,Tv=pB,mB=1,hB=Object.prototype,vB=hB.hasOwnProperty;function gB(e,t,n,r,o,a){var i=n&mB,s=Tv(e),l=s.length,u=Tv(t),f=u.length;if(l!=f&&!i)return!1;for(var p=l;p--;){var m=s[p];if(!(i?m in t:vB.call(t,m)))return!1}var v=a.get(e),g=a.get(t);if(v&&g)return v==t&&g==e;var h=!0;a.set(e,t),a.set(t,e);for(var b=i;++p<l;){m=s[p];var y=e[m],w=t[m];if(r)var x=i?r(w,y,m,t,e,a):r(y,w,m,e,t,a);if(!(x===void 0?y===w||o(y,w,n,r,a):x)){h=!1;break}b||(b=m=="constructor")}if(h&&!b){var S=e.constructor,C=t.constructor;S!=C&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof C=="function"&&C instanceof C)&&(h=!1)}return a.delete(e),a.delete(t),h}var bB=gB,yB=jn,wB=It,xB=yB(wB,"DataView"),SB=xB,CB=jn,_B=It,EB=CB(_B,"Promise"),PB=EB,NB=jn,TB=It,MB=NB(TB,"Set"),Mv=MB,RB=jn,OB=It,AB=RB(OB,"WeakMap"),DB=AB,ql=SB,Xl=El,Zl=PB,Ql=Mv,Jl=DB,Rv=Dn,hr=Mh,Ov="[object Map]",IB="[object Object]",Av="[object Promise]",Dv="[object Set]",Iv="[object WeakMap]",jv="[object DataView]",jB=hr(ql),$B=hr(Xl),kB=hr(Zl),LB=hr(Ql),FB=hr(Jl),kn=Rv;(ql&&kn(new ql(new ArrayBuffer(1)))!=jv||Xl&&kn(new Xl)!=Ov||Zl&&kn(Zl.resolve())!=Av||Ql&&kn(new Ql)!=Dv||Jl&&kn(new Jl)!=Iv)&&(kn=function(e){var t=Rv(e),n=t==IB?e.constructor:void 0,r=n?hr(n):"";if(r)switch(r){case jB:return jv;case $B:return Ov;case kB:return Av;case LB:return Dv;case FB:return Iv}return t});var BB=kn,ec=fv,zB=hv,WB=b2,HB=bB,$v=BB,kv=xt,Lv=Cv,VB=Nv,GB=1,Fv="[object Arguments]",Bv="[object Array]",Za="[object Object]",UB=Object.prototype,zv=UB.hasOwnProperty;function KB(e,t,n,r,o,a){var i=kv(e),s=kv(t),l=i?Bv:$v(e),u=s?Bv:$v(t);l=l==Fv?Za:l,u=u==Fv?Za:u;var f=l==Za,p=u==Za,m=l==u;if(m&&Lv(e)){if(!Lv(t))return!1;i=!0,f=!1}if(m&&!f)return a||(a=new ec),i||VB(e)?zB(e,t,n,r,o,a):WB(e,t,l,n,r,o,a);if(!(n&GB)){var v=f&&zv.call(e,"__wrapped__"),g=p&&zv.call(t,"__wrapped__");if(v||g){var h=v?e.value():e,b=g?t.value():t;return a||(a=new ec),o(h,b,n,r,a)}}return m?(a||(a=new ec),HB(e,t,n,r,o,a)):!1}var YB=KB,qB=YB,Wv=In;function Hv(e,t,n,r,o){return e===t?!0:e==null||t==null||!Wv(e)&&!Wv(t)?e!==e&&t!==t:qB(e,t,n,r,Hv,o)}var Vv=Hv,XB=fv,ZB=Vv,QB=1,JB=2;function ez(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return!a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){s=n[o];var l=s[0],u=e[l],f=s[1];if(i&&s[2]){if(u===void 0&&!(l in e))return!1}else{var p=new XB;if(r)var m=r(u,f,l,e,t,p);if(!(m===void 0?ZB(f,u,QB|JB,r,p):m))return!1}}return!0}var tz=ez,nz=cn;function rz(e){return e===e&&!nz(e)}var Gv=rz,oz=Gv,az=Yl;function iz(e){for(var t=az(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,oz(o)]}return t}var sz=iz;function lz(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Uv=lz,cz=tz,uz=sz,dz=Uv;function fz(e){var t=uz(e);return t.length==1&&t[0][2]?dz(t[0][0],t[0][1]):function(n){return n===e||cz(n,e,t)}}var pz=fz;function mz(e,t){return e!=null&&t in Object(e)}var hz=mz,vz=Fh,gz=Gl,bz=xt,yz=Ul,wz=Kl,xz=La;function Sz(e,t,n){t=vz(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=xz(t[r]);if(!(a=e!=null&&n(e,i)))break;e=e[i]}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&wz(o)&&yz(i,o)&&(bz(e)||gz(e)))}var Cz=Sz,_z=hz,Ez=Cz;function Pz(e,t){return e!=null&&Ez(e,t,_z)}var Nz=Pz,Tz=Vv,Mz=s$,Rz=Nz,Oz=xl,Az=Gv,Dz=Uv,Iz=La,jz=1,$z=2;function kz(e,t){return Oz(e)&&Az(t)?Dz(Iz(e),t):function(n){var r=Mz(n,e);return r===void 0&&r===t?Rz(n,e):Tz(t,r,jz|$z)}}var Lz=kz;function Fz(e){return e}var Qa=Fz;function Bz(e){return function(t){return t==null?void 0:t[e]}}var zz=Bz,Wz=Tl;function Hz(e){return function(t){return Wz(t,e)}}var Vz=Hz,Gz=zz,Uz=Vz,Kz=xl,Yz=La;function qz(e){return Kz(e)?Gz(Yz(e)):Uz(e)}var Xz=qz,Zz=pz,Qz=Lz,Jz=Qa,eW=xt,tW=Xz;function nW(e){return typeof e=="function"?e:e==null?Jz:typeof e=="object"?eW(e)?Qz(e[0],e[1]):Zz(e):tW(e)}var Kv=nW;function rW(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}var oW=rW;function aW(e){return e!==e}var iW=aW;function sW(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var lW=sW,cW=oW,uW=iW,dW=lW;function fW(e,t,n){return t===t?dW(e,t,n):cW(e,uW,n)}var pW=fW,mW=pW;function hW(e,t){var n=e==null?0:e.length;return!!n&&mW(e,t,0)>-1}var vW=hW;function gW(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var bW=gW;function yW(){}var wW=yW,tc=Mv,xW=wW,SW=Hl,CW=1/0,_W=tc&&1/SW(new tc([,-0]))[1]==CW?function(e){return new tc(e)}:xW,EW=_W,PW=pv,NW=vW,TW=bW,MW=mv,RW=EW,OW=Hl,AW=200;function DW(e,t,n){var r=-1,o=NW,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=TW;else if(a>=AW){var u=t?null:RW(e);if(u)return OW(u);i=!1,o=MW,l=new PW}else l=t?[]:s;e:for(;++r<a;){var f=e[r],p=t?t(f):f;if(f=n||f!==0?f:0,i&&p===p){for(var m=l.length;m--;)if(l[m]===p)continue e;t&&l.push(p),s.push(f)}else o(l,p,n)||(l!==s&&l.push(p),s.push(f))}return s}var IW=DW,jW=Kv,$W=IW;function kW(e,t){return e&&e.length?$W(e,jW(t)):[]}var LW=kW;const Yv=Rt(LW);function qv(e,t,n){return t===!0?Yv(e,n):Da(t)?Yv(e,t):e}function vr(e){"@babel/helpers - typeof";return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(e)}var FW=["ref"];function Xv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xv(Object(n),!0).forEach(function(r){ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jv(r.key),r)}}function zW(e,t,n){return t&&Zv(e.prototype,t),n&&Zv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function WW(e,t,n){return t=Ja(t),HW(e,Qv()?Reflect.construct(t,n||[],Ja(e).constructor):t.apply(e,n))}function HW(e,t){if(t&&(vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VW(e)}function VW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qv=function(){return!!e})()}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ja(e)}function GW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nc(e,t)}function nc(e,t){return nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},nc(e,t)}function ei(e,t,n){return t=Jv(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jv(e){var t=UW(e,"string");return vr(t)=="symbol"?t:t+""}function UW(e,t){if(vr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KW(e,t){if(e==null)return{};var n=YW(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YW(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qW(e){return e.value}function XW(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var n=KW(t,FW);return _.createElement(Wl,n)}var eg=1,rc=function(e){function t(){var n;BW(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=WW(this,t,[].concat(o)),ei(n,"lastBoundingBox",{width:-1,height:-1}),n}return GW(t,e),zW(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>eg||Math.abs(o.height-this.lastBoundingBox.height)>eg)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Zt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,a=o.layout,i=o.align,s=o.verticalAlign,l=o.margin,u=o.chartWidth,f=o.chartHeight,p,m;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(i==="center"&&a==="vertical"){var v=this.getBBoxSnapshot();p={left:((u||0)-v.width)/2}}else p=i==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();m={top:((f||0)-g.height)/2}}else m=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Zt(Zt({},p),m)}},{key:"render",value:function(){var r=this,o=this.props,a=o.content,i=o.width,s=o.height,l=o.wrapperStyle,u=o.payloadUniqBy,f=o.payload,p=Zt(Zt({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return _.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(v){r.wrapperNode=v}},XW(a,Zt(Zt({},this.props),{},{payload:qv(f,u,qW)})))}}],[{key:"getWithHeight",value:function(r,o){var a=Zt(Zt({},this.defaultProps),r.props),i=a.layout;return i==="vertical"&&St(r.props.height)?{height:r.props.height}:i==="horizontal"?{width:r.props.width||o}:null}}])}(_.PureComponent);ei(rc,"displayName","Legend"),ei(rc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var tg=fo,ZW=Gl,QW=xt,ng=tg?tg.isConcatSpreadable:void 0;function JW(e){return QW(e)||ZW(e)||!!(ng&&e&&e[ng])}var eH=JW,tH=yv,nH=eH;function rg(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=nH),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?rg(s,t-1,n,r,o):tH(o,s):r||(o[o.length]=s)}return o}var rH=rg;function oH(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var aH=oH,iH=aH,sH=iH(),lH=sH,cH=lH,uH=Yl;function dH(e,t){return e&&cH(e,t,uH)}var fH=dH,pH=Xa;function mH(e,t){return function(n,r){if(n==null)return n;if(!pH(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Object(n);(t?a--:++a<o)&&r(i[a],a,i)!==!1;);return n}}var hH=mH,vH=fH,gH=hH,bH=gH(vH),yH=bH,wH=yH,xH=Xa;function SH(e,t){var n=-1,r=xH(e)?Array(e.length):[];return wH(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var CH=SH;function _H(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var EH=_H,og=mo;function PH(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e===e,a=og(e),i=t!==void 0,s=t===null,l=t===t,u=og(t);if(!s&&!u&&!a&&e>t||a&&i&&l&&!s&&!u||r&&i&&l||!n&&l||!o)return 1;if(!r&&!a&&!u&&e<t||u&&n&&o&&!r&&!a||s&&n&&o||!i&&o||!l)return-1}return 0}var NH=PH,TH=NH;function MH(e,t,n){for(var r=-1,o=e.criteria,a=t.criteria,i=o.length,s=n.length;++r<i;){var l=TH(o[r],a[r]);if(l){if(r>=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var RH=MH,oc=Dh,OH=Tl,AH=Kv,DH=CH,IH=EH,jH=_v,$H=RH,kH=Qa,LH=xt;function FH(e,t,n){t.length?t=oc(t,function(a){return LH(a)?function(i){return OH(i,a.length===1?a[0]:a)}:a}):t=[kH];var r=-1;t=oc(t,jH(AH));var o=DH(e,function(a,i,s){var l=oc(t,function(u){return u(a)});return{criteria:l,index:++r,value:a}});return IH(o,function(a,i){return $H(a,i,n)})}var BH=FH;function zH(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var WH=zH,HH=WH,ag=Math.max;function VH(e,t,n){return t=ag(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=ag(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),HH(e,this,s)}}var GH=VH;function UH(e){return function(){return e}}var KH=UH,YH=jn,qH=function(){try{var e=YH(Object,"defineProperty");return e({},"",{}),e}catch{}}(),XH=qH,ZH=KH,ig=XH,QH=Qa,JH=ig?function(e,t){return ig(e,"toString",{configurable:!0,enumerable:!1,value:ZH(t),writable:!0})}:QH,eV=JH,tV=800,nV=16,rV=Date.now;function oV(e){var t=0,n=0;return function(){var r=rV(),o=nV-(r-n);if(n=r,o>0){if(++t>=tV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var aV=oV,iV=eV,sV=aV,lV=sV(iV),cV=lV,uV=Qa,dV=GH,fV=cV;function pV(e,t){return fV(dV(e,t,uV),e+"")}var mV=pV,hV=_l,vV=Xa,gV=Ul,bV=cn;function yV(e,t,n){if(!bV(n))return!1;var r=typeof t;return(r=="number"?vV(n)&&gV(t,n.length):r=="string"&&t in n)?hV(n[t],e):!1}var wV=yV,xV=rH,SV=BH,CV=mV,sg=wV,_V=CV(function(e,t){if(e==null)return[];var n=t.length;return n>1&&sg(e,t[0],t[1])?t=[]:n>2&&sg(t[0],t[1],t[2])&&(t=[t[0]]),SV(e,xV(t,1),[])}),EV=_V;const PV=Rt(EV);function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ac.apply(this,arguments)}function NV(e,t){return OV(e)||RV(e,t)||MV(e,t)||TV()}function TV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
188
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MV(e,t){if(e){if(typeof e=="string")return lg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lg(e,t)}}function lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,o=f}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}function OV(e){if(Array.isArray(e))return e}function cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cg(Object(n),!0).forEach(function(r){AV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AV(e,t,n){return t=DV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DV(e){var t=IV(e,"string");return go(t)=="symbol"?t:t+""}function IV(e,t){if(go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jV(e){return Array.isArray(e)&&Ba(e[0])&&Ba(e[1])?e.join(" ~ "):e}var $V=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,a=o===void 0?{}:o,i=t.itemStyle,s=i===void 0?{}:i,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,p=t.formatter,m=t.itemSorter,v=t.wrapperClassName,g=t.labelClassName,h=t.label,b=t.labelFormatter,y=t.accessibilityLayer,w=y===void 0?!1:y,x=function(){if(f&&f.length){var k={padding:0,margin:0},U=(m?PV(f,m):f).map(function(L,G){if(L.type==="none")return null;var V=ic({display:"block",paddingTop:4,paddingBottom:4,color:L.color||"#000"},s),B=L.formatter||p||jV,$=L.value,K=L.name,oe=$,O=K;if(B&&oe!=null&&O!=null){var D=B($,K,L,G,f);if(Array.isArray(D)){var j=NV(D,2);oe=j[0],O=j[1]}else oe=D}return _.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(G),style:V},Ba(O)?_.createElement("span",{className:"recharts-tooltip-item-name"},O):null,Ba(O)?_.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,_.createElement("span",{className:"recharts-tooltip-item-value"},oe),_.createElement("span",{className:"recharts-tooltip-item-unit"},L.unit||""))});return _.createElement("ul",{className:"recharts-tooltip-item-list",style:k},U)}return null},S=ic({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),C=ic({margin:0},u),N=!u$(h),E=N?h:"",A=Vt("recharts-default-tooltip",v),T=Vt("recharts-tooltip-label",g);N&&b&&f!==void 0&&f!==null&&(E=b(h,f));var F=w?{role:"status","aria-live":"assertive"}:{};return _.createElement("div",ac({className:A,style:S},F),_.createElement("p",{className:T,style:C},_.isValidElement(E)?E:"".concat(E)),x())};function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function ti(e,t,n){return t=kV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kV(e){var t=LV(e,"string");return bo(t)=="symbol"?t:t+""}function LV(e,t){if(bo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yo="recharts-tooltip-wrapper",FV={visibility:"hidden"};function BV(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Vt(yo,ti(ti(ti(ti({},"".concat(yo,"-right"),St(n)&&t&&St(t.x)&&n>=t.x),"".concat(yo,"-left"),St(n)&&t&&St(t.x)&&n<t.x),"".concat(yo,"-bottom"),St(r)&&t&&St(t.y)&&r>=t.y),"".concat(yo,"-top"),St(r)&&t&&St(t.y)&&r<t.y))}function ug(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&St(a[r]))return a[r];var f=n[r]-s-o,p=n[r]+o;if(t[r])return i[r]?f:p;if(i[r]){var m=f,v=l[r];return m<v?Math.max(p,l[r]):Math.max(f,l[r])}var g=p+s,h=l[r]+u;return g>h?Math.max(f,l[r]):Math.max(p,l[r])}function zV(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function WV(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,a=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,p;return i.height>0&&i.width>0&&n?(f=ug({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.width,viewBox:l,viewBoxDimension:l.width}),p=ug({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:a,tooltipDimension:i.height,viewBox:l,viewBoxDimension:l.height}),u=zV({translateX:f,translateY:p,useTranslate3d:s})):u=FV,{cssProperties:u,cssClasses:BV({translateX:f,translateY:p,coordinate:n})}}function gr(e){"@babel/helpers - typeof";return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gr(e)}function dg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dg(Object(n),!0).forEach(function(r){lc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mg(r.key),r)}}function GV(e,t,n){return t&&VV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UV(e,t,n){return t=ni(t),KV(e,pg()?Reflect.construct(t,n||[],ni(e).constructor):t.apply(e,n))}function KV(e,t){if(t&&(gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YV(e)}function YV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pg=function(){return!!e})()}function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ni(e)}function qV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sc(e,t)}function sc(e,t){return sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},sc(e,t)}function lc(e,t,n){return t=mg(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mg(e){var t=XV(e,"string");return gr(t)=="symbol"?t:t+""}function XV(e,t){if(gr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hg=1,ZV=function(e){function t(){var n;HV(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=UV(this,t,[].concat(o)),lc(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),lc(n,"handleKeyDown",function(i){if(i.key==="Escape"){var s,l,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return qV(t,e),GV(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>hg||Math.abs(r.height-this.state.lastBoundingBox.height)>hg)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,u=o.children,f=o.coordinate,p=o.hasPayload,m=o.isAnimationActive,v=o.offset,g=o.position,h=o.reverseDirection,b=o.useTranslate3d,y=o.viewBox,w=o.wrapperStyle,x=WV({allowEscapeViewBox:i,coordinate:f,offsetTopLeft:v,position:g,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:y}),S=x.cssClasses,C=x.cssProperties,N=fg(fg({transition:m&&a?"transform ".concat(s,"ms ").concat(l):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&p?"visible":"hidden",position:"absolute",top:0,left:0},w);return _.createElement("div",{tabIndex:-1,className:S,style:N,ref:function(A){r.wrapperNode=A}},u)}}])}(_.PureComponent),QV=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},JV={isSsr:QV()};function br(e){"@babel/helpers - typeof";return br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},br(e)}function vg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vg(Object(n),!0).forEach(function(r){uc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yg(r.key),r)}}function n5(e,t,n){return t&&t5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r5(e,t,n){return t=ri(t),o5(e,bg()?Reflect.construct(t,n||[],ri(e).constructor):t.apply(e,n))}function o5(e,t){if(t&&(br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a5(e)}function a5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bg=function(){return!!e})()}function ri(e){return ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ri(e)}function i5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cc(e,t)}function cc(e,t){return cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},cc(e,t)}function uc(e,t,n){return t=yg(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yg(e){var t=s5(e,"string");return br(t)=="symbol"?t:t+""}function s5(e,t){if(br(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(br(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function l5(e){return e.dataKey}function c5(e,t){return _.isValidElement(e)?_.cloneElement(e,t):typeof e=="function"?_.createElement(e,t):_.createElement($V,t)}var dc=function(e){function t(){return e5(this,t),r5(this,t,arguments)}return i5(t,e),n5(t,[{key:"render",value:function(){var r=this,o=this.props,a=o.active,i=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,u=o.content,f=o.coordinate,p=o.filterNull,m=o.isAnimationActive,v=o.offset,g=o.payload,h=o.payloadUniqBy,b=o.position,y=o.reverseDirection,w=o.useTranslate3d,x=o.viewBox,S=o.wrapperStyle,C=g??[];p&&C.length&&(C=qv(g.filter(function(E){return E.value!=null&&(E.hide!==!0||r.props.includeHidden)}),h,l5));var N=C.length>0;return _.createElement(ZV,{allowEscapeViewBox:i,animationDuration:s,animationEasing:l,isAnimationActive:m,active:a,coordinate:f,hasPayload:N,offset:v,position:b,reverseDirection:y,useTranslate3d:w,viewBox:x,wrapperStyle:S},c5(u,gg(gg({},this.props),{},{payload:C})))}}])}(_.PureComponent);uc(dc,"displayName","Tooltip"),uc(dc,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!JV.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var u5=It,d5=function(){return u5.Date.now()},f5=d5,p5=/\s/;function m5(e){for(var t=e.length;t--&&p5.test(e.charAt(t)););return t}var h5=m5,v5=h5,g5=/^\s+/;function b5(e){return e&&e.slice(0,v5(e)+1).replace(g5,"")}var y5=b5,w5=y5,wg=cn,x5=mo,xg=NaN,S5=/^[-+]0x[0-9a-f]+$/i,C5=/^0b[01]+$/i,_5=/^0o[0-7]+$/i,E5=parseInt;function P5(e){if(typeof e=="number")return e;if(x5(e))return xg;if(wg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=w5(e);var n=C5.test(e);return n||_5.test(e)?E5(e.slice(2),n?2:8):S5.test(e)?xg:+e}var N5=P5,T5=cn,fc=f5,Sg=N5,M5="Expected a function",R5=Math.max,O5=Math.min;function A5(e,t,n){var r,o,a,i,s,l,u=0,f=!1,p=!1,m=!0;if(typeof e!="function")throw new TypeError(M5);t=Sg(t)||0,T5(n)&&(f=!!n.leading,p="maxWait"in n,a=p?R5(Sg(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function v(N){var E=r,A=o;return r=o=void 0,u=N,i=e.apply(A,E),i}function g(N){return u=N,s=setTimeout(y,t),f?v(N):i}function h(N){var E=N-l,A=N-u,T=t-E;return p?O5(T,a-A):T}function b(N){var E=N-l,A=N-u;return l===void 0||E>=t||E<0||p&&A>=a}function y(){var N=fc();if(b(N))return w(N);s=setTimeout(y,h(N))}function w(N){return s=void 0,m&&r?v(N):(r=o=void 0,i)}function x(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0}function S(){return s===void 0?i:w(fc())}function C(){var N=fc(),E=b(N);if(r=arguments,o=this,l=N,E){if(s===void 0)return g(l);if(p)return clearTimeout(s),s=setTimeout(y,t),v(l)}return s===void 0&&(s=setTimeout(y,t)),i}return C.cancel=x,C.flush=S,C}var D5=A5,I5=D5,j5=cn,$5="Expected a function";function k5(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError($5);return j5(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),I5(e,t,{leading:r,maxWait:t,trailing:o})}var L5=k5;const F5=Rt(L5);function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function Cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(n),!0).forEach(function(r){B5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B5(e,t,n){return t=z5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z5(e){var t=W5(e,"string");return wo(t)=="symbol"?t:t+""}function W5(e,t){if(wo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H5(e,t){return K5(e)||U5(e,t)||G5(e,t)||V5()}function V5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
189
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G5(e,t){if(e){if(typeof e=="string")return _g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _g(e,t)}}function _g(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,o=f}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}function K5(e){if(Array.isArray(e))return e}var Y5=_.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,a=e.width,i=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,p=e.minHeight,m=e.maxHeight,v=e.children,g=e.debounce,h=g===void 0?0:g,b=e.id,y=e.className,w=e.onResize,x=e.style,S=x===void 0?{}:x,C=_.useRef(null),N=_.useRef();N.current=w,_.useImperativeHandle(t,function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})});var E=_.useState({containerWidth:o.width,containerHeight:o.height}),A=H5(E,2),T=A[0],F=A[1],R=_.useCallback(function(U,L){F(function(G){var V=Math.round(U),B=Math.round(L);return G.containerWidth===V&&G.containerHeight===B?G:{containerWidth:V,containerHeight:B}})},[]);_.useEffect(function(){var U=function(K){var oe,O=K[0].contentRect,D=O.width,j=O.height;R(D,j),(oe=N.current)===null||oe===void 0||oe.call(N,D,j)};h>0&&(U=F5(U,h,{trailing:!0,leading:!1}));var L=new ResizeObserver(U),G=C.current.getBoundingClientRect(),V=G.width,B=G.height;return R(V,B),L.observe(C.current),function(){L.disconnect()}},[R,h]);var k=_.useMemo(function(){var U=T.containerWidth,L=T.containerHeight;if(U<0||L<0)return null;za(Fa(i)||Fa(l),`The width(%s) and height(%s) are both fixed numbers,
|
|
190
|
+
maybe you don't need to use a ResponsiveContainer.`,i,l),za(!n||n>0,"The aspect(%s) must be greater than zero.",n);var G=Fa(i)?U:i,V=Fa(l)?L:l;n&&n>0&&(G?V=G/n:V&&(G=V*n),m&&V>m&&(V=m)),za(G>0||V>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
191
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
192
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
193
|
+
height and width.`,G,V,i,l,f,p,n);var B=!Array.isArray(v)&&A$(v.type).endsWith("Chart");return _.Children.map(v,function($){return _.isValidElement($)?_.cloneElement($,oi({width:G,height:V},B?{style:oi({height:"100%",width:"100%",maxHeight:V,maxWidth:G},$.props.style)}:{})):$})},[n,v,l,m,p,f,T,i]);return _.createElement("div",{id:b?"".concat(b):void 0,className:Vt("recharts-responsive-container",y),style:oi(oi({},S),{},{width:i,height:l,minWidth:f,minHeight:p,maxHeight:m}),ref:C},k)});const q5={light:"",dark:".dark"},Eg=c.createContext(null);function Pg(){const e=c.useContext(Eg);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Ng=c.forwardRef(({id:e,className:t,children:n,config:r,...o},a)=>{const i=c.useId(),s=`chart-${e??i.replace(/:/g,"")}`;return d.jsx(Eg.Provider,{value:{config:r},children:d.jsxs("div",{"data-chart":s,ref:a,className:M("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[d.jsx(Tg,{id:s,config:r}),d.jsx(Y5,{children:n})]})})});Ng.displayName="Chart";const Tg=({id:e,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme??r.color);return n.length?d.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(q5).map(([r,o])=>`
|
|
194
|
+
${o} [data-chart=${e}] {
|
|
195
|
+
${n.map(([a,i])=>{var l;const s=((l=i.theme)==null?void 0:l[r])??i.color;return s?` --color-${a}: ${s};`:null}).join(`
|
|
196
|
+
`)}
|
|
197
|
+
}
|
|
198
|
+
`).join(`
|
|
199
|
+
`)}}):null},X5=dc,Mg=c.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:a=!1,label:i,labelFormatter:s,labelClassName:l,formatter:u,color:f,nameKey:p,labelKey:m},v)=>{const{config:g}=Pg(),h=c.useMemo(()=>{var C;if(o||!(t!=null&&t.length))return null;const[y]=t,w=`${m||(y==null?void 0:y.dataKey)||(y==null?void 0:y.name)||"value"}`,x=pc(g,y,w),S=!m&&typeof i=="string"?((C=g[i])==null?void 0:C.label)??i:x==null?void 0:x.label;return s?d.jsx("div",{className:M("font-medium",l),children:s(S,t)}):S?d.jsx("div",{className:M("font-medium",l),children:S}):null},[i,s,t,o,l,g,m]);if(!e||!(t!=null&&t.length))return null;const b=t.length===1&&r!=="dot";return d.jsxs("div",{ref:v,className:M("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[b?null:h,d.jsx("div",{className:"grid gap-1.5",children:t.map((y,w)=>{const x=`${p||y.name||y.dataKey||"value"}`,S=pc(g,y,x),C=f||y.payload.fill||y.color;return d.jsx("div",{className:M("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:u&&(y==null?void 0:y.value)!==void 0&&y.name?u(y.value,y.name,y,w,y.payload):d.jsxs(d.Fragment,{children:[S!=null&&S.icon?d.jsx(S.icon,{}):!a&&d.jsx("div",{className:M("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":b&&r==="dashed"}),style:{"--color-bg":C,"--color-border":C}}),d.jsxs("div",{className:M("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[d.jsxs("div",{className:"grid gap-1.5",children:[b?h:null,d.jsx("span",{className:"text-muted-foreground",children:(S==null?void 0:S.label)??y.name})]}),y.value&&d.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});Mg.displayName="ChartTooltip";const Z5=rc,Rg=c.forwardRef(({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:o},a)=>{const{config:i}=Pg();return n!=null&&n.length?d.jsx("div",{ref:a,className:M("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.map(s=>{const l=`${(o??s.dataKey)||"value"}`,u=pc(i,s,l);return d.jsxs("div",{className:M("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[u!=null&&u.icon&&!t?d.jsx(u.icon,{}):d.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),u==null?void 0:u.label]},s.value)})}):null});Rg.displayName="ChartLegend";function pc(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=n;return n in t&&typeof t[n]=="string"?o=t[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in e?e[o]:e[n]}function yr(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])}function xo(e){const[t,n]=c.useState(void 0);return Me(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,s=u.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ai="Checkbox",[Q5]=Te(ai),[J5,mc]=Q5(ai);function e3(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:l,required:u,value:f="on",internal_do_not_use_render:p}=e,[m,v]=_e({prop:n,defaultProp:o??!1,onChange:l,caller:ai}),[g,h]=c.useState(null),[b,y]=c.useState(null),w=c.useRef(!1),x=g?!!i||!!g.closest("form"):!0,S={checked:m,disabled:a,setChecked:v,control:g,setControl:h,name:s,form:i,value:f,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:un(o)?!1:o,isFormControl:x,bubbleInput:b,setBubbleInput:y};return d.jsx(J5,{scope:t,...S,children:t3(p)?p(S):r})}var Og="CheckboxTrigger",Ag=c.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:i,disabled:s,checked:l,required:u,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:v,bubbleInput:g}=mc(Og,e),h=ae(o,f),b=c.useRef(l);return c.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const w=()=>p(b.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[a,p]),d.jsx(ee.button,{type:"button",role:"checkbox","aria-checked":un(l)?"mixed":l,"aria-required":u,"data-state":kg(l),"data-disabled":s?"":void 0,disabled:s,value:i,...r,ref:h,onKeyDown:z(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:z(n,y=>{p(w=>un(w)?!0:!w),g&&v&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})})});Ag.displayName=Og;var hc=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l,onCheckedChange:u,form:f,...p}=e;return d.jsx(e3,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:u,name:r,form:f,value:l,internal_do_not_use_render:({isFormControl:m})=>d.jsxs(d.Fragment,{children:[d.jsx(Ag,{...p,ref:t,__scopeCheckbox:n}),m&&d.jsx($g,{__scopeCheckbox:n})]})})});hc.displayName=ai;var Dg="CheckboxIndicator",Ig=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=mc(Dg,n);return d.jsx(Re,{present:r||un(a.checked)||a.checked===!0,children:d.jsx(ee.span,{"data-state":kg(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Ig.displayName=Dg;var jg="CheckboxBubbleInput",$g=c.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:l,name:u,value:f,form:p,bubbleInput:m,setBubbleInput:v}=mc(jg,e),g=ae(n,v),h=yr(a),b=xo(r);c.useEffect(()=>{const w=m;if(!w)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set,N=!o.current;if(h!==a&&C){const E=new Event("click",{bubbles:N});w.indeterminate=un(a),C.call(w,un(a)?!1:a),w.dispatchEvent(E)}},[m,h,a,o]);const y=c.useRef(un(a)?!1:a);return d.jsx(ee.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??y.current,required:s,disabled:l,name:u,value:f,form:p,...t,tabIndex:-1,ref:g,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});$g.displayName=jg;function t3(e){return typeof e=="function"}function un(e){return e==="indeterminate"}function kg(e){return un(e)?"indeterminate":e?"checked":"unchecked"}const Lg=c.forwardRef(({className:e,...t},n)=>d.jsx(hc,{ref:n,className:M("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),...t,children:d.jsx(Ig,{className:M("flex items-center justify-center text-current"),children:d.jsx(Ur,{className:"h-4 w-4"})})}));Lg.displayName=hc.displayName;const n3=yf,r3=ws,o3=Ss;var Fg=1,a3=.9,i3=.8,s3=.17,vc=.1,gc=.999,l3=.9999,c3=.99,u3=/[\\\/_+.#"@\[\(\{&]/,d3=/[\\\/_+.#"@\[\(\{&]/g,f3=/[\s-]/,Bg=/[\s-]/g;function bc(e,t,n,r,o,a,i){if(a===t.length)return o===e.length?Fg:c3;var s=`${o},${a}`;if(i[s]!==void 0)return i[s];for(var l=r.charAt(a),u=n.indexOf(l,o),f=0,p,m,v,g;u>=0;)p=bc(e,t,n,r,u+1,a+1,i),p>f&&(u===o?p*=Fg:u3.test(e.charAt(u-1))?(p*=i3,v=e.slice(o,u-1).match(d3),v&&o>0&&(p*=Math.pow(gc,v.length))):f3.test(e.charAt(u-1))?(p*=a3,g=e.slice(o,u-1).match(Bg),g&&o>0&&(p*=Math.pow(gc,g.length))):(p*=s3,o>0&&(p*=Math.pow(gc,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=l3)),(p<vc&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(m=bc(e,t,n,r,u+1,a+2,i),m*vc>p&&(p=m*vc)),p>f&&(f=p),u=n.indexOf(l,u+1);return i[s]=f,f}function zg(e){return e.toLowerCase().replace(Bg," ")}function p3(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,bc(e,t,zg(e),zg(t),0,0,{})}var m3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dn=m3.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),So='[cmdk-group=""]',yc='[cmdk-group-items=""]',h3='[cmdk-group-heading=""]',Wg='[cmdk-item=""]',Hg=`${Wg}:not([aria-disabled="true"])`,wc="cmdk-item-select",wr="data-value",v3=(e,t,n)=>p3(e,t,n),Vg=c.createContext(void 0),Co=()=>c.useContext(Vg),Gg=c.createContext(void 0),xc=()=>c.useContext(Gg),Ug=c.createContext(void 0),Kg=c.forwardRef((e,t)=>{let n=xr(()=>{var D,j;return{search:"",value:(j=(D=e.value)!=null?D:e.defaultValue)!=null?j:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=xr(()=>new Set),o=xr(()=>new Map),a=xr(()=>new Map),i=xr(()=>new Set),s=Yg(e),{label:l,children:u,value:f,onValueChange:p,filter:m,shouldFilter:v,loop:g,disablePointerSelection:h=!1,vimBindings:b=!0,...y}=e,w=xe(),x=xe(),S=xe(),C=c.useRef(null),N=N3();Ln(()=>{if(f!==void 0){let D=f.trim();n.current.value=D,E.emit()}},[f]),Ln(()=>{N(6,U)},[]);let E=c.useMemo(()=>({subscribe:D=>(i.current.add(D),()=>i.current.delete(D)),snapshot:()=>n.current,setState:(D,j,H)=>{var Y,Z,I,q;if(!Object.is(n.current[D],j)){if(n.current[D]=j,D==="search")k(),F(),N(1,R);else if(D==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let J=document.getElementById(S);J?J.focus():(Y=document.getElementById(w))==null||Y.focus()}if(N(7,()=>{var J;n.current.selectedItemId=(J=L())==null?void 0:J.id,E.emit()}),H||N(5,U),((Z=s.current)==null?void 0:Z.value)!==void 0){let J=j??"";(q=(I=s.current).onValueChange)==null||q.call(I,J);return}}E.emit()}},emit:()=>{i.current.forEach(D=>D())}}),[]),A=c.useMemo(()=>({value:(D,j,H)=>{var Y;j!==((Y=a.current.get(D))==null?void 0:Y.value)&&(a.current.set(D,{value:j,keywords:H}),n.current.filtered.items.set(D,T(j,H)),N(2,()=>{F(),E.emit()}))},item:(D,j)=>(r.current.add(D),j&&(o.current.has(j)?o.current.get(j).add(D):o.current.set(j,new Set([D]))),N(3,()=>{k(),F(),n.current.value||R(),E.emit()}),()=>{a.current.delete(D),r.current.delete(D),n.current.filtered.items.delete(D);let H=L();N(4,()=>{k(),(H==null?void 0:H.getAttribute("id"))===D&&R(),E.emit()})}),group:D=>(o.current.has(D)||o.current.set(D,new Set),()=>{a.current.delete(D),o.current.delete(D)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:w,inputId:S,labelId:x,listInnerRef:C}),[]);function T(D,j){var H,Y;let Z=(Y=(H=s.current)==null?void 0:H.filter)!=null?Y:v3;return D?Z(D,n.current.search,j):0}function F(){if(!n.current.search||s.current.shouldFilter===!1)return;let D=n.current.filtered.items,j=[];n.current.filtered.groups.forEach(Y=>{let Z=o.current.get(Y),I=0;Z.forEach(q=>{let J=D.get(q);I=Math.max(J,I)}),j.push([Y,I])});let H=C.current;G().sort((Y,Z)=>{var I,q;let J=Y.getAttribute("id"),te=Z.getAttribute("id");return((I=D.get(te))!=null?I:0)-((q=D.get(J))!=null?q:0)}).forEach(Y=>{let Z=Y.closest(yc);Z?Z.appendChild(Y.parentElement===Z?Y:Y.closest(`${yc} > *`)):H.appendChild(Y.parentElement===H?Y:Y.closest(`${yc} > *`))}),j.sort((Y,Z)=>Z[1]-Y[1]).forEach(Y=>{var Z;let I=(Z=C.current)==null?void 0:Z.querySelector(`${So}[${wr}="${encodeURIComponent(Y[0])}"]`);I==null||I.parentElement.appendChild(I)})}function R(){let D=G().find(H=>H.getAttribute("aria-disabled")!=="true"),j=D==null?void 0:D.getAttribute(wr);E.setState("value",j||void 0)}function k(){var D,j,H,Y;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Z=0;for(let I of r.current){let q=(j=(D=a.current.get(I))==null?void 0:D.value)!=null?j:"",J=(Y=(H=a.current.get(I))==null?void 0:H.keywords)!=null?Y:[],te=T(q,J);n.current.filtered.items.set(I,te),te>0&&Z++}for(let[I,q]of o.current)for(let J of q)if(n.current.filtered.items.get(J)>0){n.current.filtered.groups.add(I);break}n.current.filtered.count=Z}function U(){var D,j,H;let Y=L();Y&&(((D=Y.parentElement)==null?void 0:D.firstChild)===Y&&((H=(j=Y.closest(So))==null?void 0:j.querySelector(h3))==null||H.scrollIntoView({block:"nearest"})),Y.scrollIntoView({block:"nearest"}))}function L(){var D;return(D=C.current)==null?void 0:D.querySelector(`${Wg}[aria-selected="true"]`)}function G(){var D;return Array.from(((D=C.current)==null?void 0:D.querySelectorAll(Hg))||[])}function V(D){let j=G()[D];j&&E.setState("value",j.getAttribute(wr))}function B(D){var j;let H=L(),Y=G(),Z=Y.findIndex(q=>q===H),I=Y[Z+D];(j=s.current)!=null&&j.loop&&(I=Z+D<0?Y[Y.length-1]:Z+D===Y.length?Y[0]:Y[Z+D]),I&&E.setState("value",I.getAttribute(wr))}function $(D){let j=L(),H=j==null?void 0:j.closest(So),Y;for(;H&&!Y;)H=D>0?E3(H,So):P3(H,So),Y=H==null?void 0:H.querySelector(Hg);Y?E.setState("value",Y.getAttribute(wr)):B(D)}let K=()=>V(G().length-1),oe=D=>{D.preventDefault(),D.metaKey?K():D.altKey?$(1):B(1)},O=D=>{D.preventDefault(),D.metaKey?V(0):D.altKey?$(-1):B(-1)};return c.createElement(dn.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:D=>{var j;(j=y.onKeyDown)==null||j.call(y,D);let H=D.nativeEvent.isComposing||D.keyCode===229;if(!(D.defaultPrevented||H))switch(D.key){case"n":case"j":{b&&D.ctrlKey&&oe(D);break}case"ArrowDown":{oe(D);break}case"p":case"k":{b&&D.ctrlKey&&O(D);break}case"ArrowUp":{O(D);break}case"Home":{D.preventDefault(),V(0);break}case"End":{D.preventDefault(),K();break}case"Enter":{D.preventDefault();let Y=L();if(Y){let Z=new Event(wc);Y.dispatchEvent(Z)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:A.inputId,id:A.labelId,style:M3},l),ii(e,D=>c.createElement(Gg.Provider,{value:E},c.createElement(Vg.Provider,{value:A},D))))}),g3=c.forwardRef((e,t)=>{var n,r;let o=xe(),a=c.useRef(null),i=c.useContext(Ug),s=Co(),l=Yg(e),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:i==null?void 0:i.forceMount;Ln(()=>{if(!u)return s.item(o,i==null?void 0:i.id)},[u]);let f=qg(o,a,[e.value,e.children,a],e.keywords),p=xc(),m=fn(N=>N.value&&N.value===f.current),v=fn(N=>u||s.filter()===!1?!0:N.search?N.filtered.items.get(o)>0:!0);c.useEffect(()=>{let N=a.current;if(!(!N||e.disabled))return N.addEventListener(wc,g),()=>N.removeEventListener(wc,g)},[v,e.onSelect,e.disabled]);function g(){var N,E;h(),(E=(N=l.current).onSelect)==null||E.call(N,f.current)}function h(){p.setState("value",f.current,!0)}if(!v)return null;let{disabled:b,value:y,onSelect:w,forceMount:x,keywords:S,...C}=e;return c.createElement(dn.div,{ref:Be(a,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!m,"data-disabled":!!b,"data-selected":!!m,onPointerMove:b||s.getDisablePointerSelection()?void 0:h,onClick:b?void 0:g},e.children)}),b3=c.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=xe(),s=c.useRef(null),l=c.useRef(null),u=xe(),f=Co(),p=fn(v=>o||f.filter()===!1?!0:v.search?v.filtered.groups.has(i):!0);Ln(()=>f.group(i),[]),qg(i,s,[e.value,e.heading,l]);let m=c.useMemo(()=>({id:i,forceMount:o}),[o]);return c.createElement(dn.div,{ref:Be(s,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},n&&c.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ii(e,v=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},c.createElement(Ug.Provider,{value:m},v))))}),y3=c.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=c.useRef(null),a=fn(i=>!i.search);return!n&&!a?null:c.createElement(dn.div,{ref:Be(o,t),...r,"cmdk-separator":"",role:"separator"})}),w3=c.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=xc(),i=fn(u=>u.search),s=fn(u=>u.selectedItemId),l=Co();return c.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),c.createElement(dn.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:i,onChange:u=>{o||a.setState("search",u.target.value),n==null||n(u.target.value)}})}),x3=c.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=c.useRef(null),i=c.useRef(null),s=fn(u=>u.selectedItemId),l=Co();return c.useEffect(()=>{if(i.current&&a.current){let u=i.current,f=a.current,p,m=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let v=u.offsetHeight;f.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return m.observe(u),()=>{cancelAnimationFrame(p),m.unobserve(u)}}},[]),c.createElement(dn.div,{ref:Be(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},ii(e,u=>c.createElement("div",{ref:Be(i,l.listInnerRef),"cmdk-list-sizer":""},u)))}),S3=c.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...s}=e;return c.createElement(qr,{open:n,onOpenChange:r},c.createElement(Xr,{container:i},c.createElement(_n,{"cmdk-overlay":"",className:o}),c.createElement(En,{"aria-label":e.label,"cmdk-dialog":"",className:a},c.createElement(Kg,{ref:t,...s}))))}),C3=c.forwardRef((e,t)=>fn(n=>n.filtered.count===0)?c.createElement(dn.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),_3=c.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return c.createElement(dn.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ii(e,i=>c.createElement("div",{"aria-hidden":!0},i)))}),Je=Object.assign(Kg,{List:x3,Item:g3,Input:w3,Group:b3,Separator:y3,Dialog:S3,Empty:C3,Loading:_3});function E3(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function P3(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Yg(e){let t=c.useRef(e);return Ln(()=>{t.current=e}),t}var Ln=typeof window>"u"?c.useEffect:c.useLayoutEffect;function xr(e){let t=c.useRef();return t.current===void 0&&(t.current=e()),t}function fn(e){let t=xc(),n=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,n,n)}function qg(e,t,n,r=[]){let o=c.useRef(),a=Co();return Ln(()=>{var i;let s=(()=>{var u;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),l=r.map(u=>u.trim());a.value(e,s,l),(i=t.current)==null||i.setAttribute(wr,s),o.current=s}),o}var N3=()=>{let[e,t]=c.useState(),n=xr(()=>new Map);return Ln(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function T3(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ii({asChild:e,children:t},n){return e&&c.isValidElement(t)?c.cloneElement(T3(t),{ref:t.ref},n(t.props.children)):n(t)}var M3={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Xg=qr,R3=_a,Zg=Xr,O3=Pn,Sc=c.forwardRef(({className:e,...t},n)=>d.jsx(_n,{ref:n,className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Sc.displayName=_n.displayName;const Cc=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Zg,{children:[d.jsx(Sc,{}),d.jsxs(En,{ref:r,className:M("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,d.jsxs(Pn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(Ts,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Cc.displayName=En.displayName;const Qg=({className:e,...t})=>d.jsx("div",{className:M("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Qg.displayName="DialogHeader";const Jg=({className:e,...t})=>d.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Jg.displayName="DialogFooter";const eb=c.forwardRef(({className:e,...t},n)=>d.jsx(ar,{ref:n,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));eb.displayName=ar.displayName;const tb=c.forwardRef(({className:e,...t},n)=>d.jsx(ir,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));tb.displayName=ir.displayName;const _c=c.forwardRef(({className:e,...t},n)=>d.jsx(Je,{ref:n,className:M("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));_c.displayName=Je.displayName;const A3=({children:e,...t})=>d.jsx(Xg,{...t,children:d.jsx(Cc,{className:"overflow-hidden p-0 shadow-lg",children:d.jsx(_c,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),nb=c.forwardRef(({className:e,...t},n)=>d.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[d.jsx(ET,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),d.jsx(Je.Input,{ref:n,className:M("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));nb.displayName=Je.Input.displayName;const rb=c.forwardRef(({className:e,...t},n)=>d.jsx(Je.List,{ref:n,className:M("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));rb.displayName=Je.List.displayName;const ob=c.forwardRef((e,t)=>d.jsx(Je.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ob.displayName=Je.Empty.displayName;const ab=c.forwardRef(({className:e,...t},n)=>d.jsx(Je.Group,{ref:n,className:M("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));ab.displayName=Je.Group.displayName;const ib=c.forwardRef(({className:e,...t},n)=>d.jsx(Je.Separator,{ref:n,className:M("-mx-1 h-px bg-border",e),...t}));ib.displayName=Je.Separator.displayName;const sb=c.forwardRef(({className:e,...t},n)=>d.jsx(Je.Item,{ref:n,className:M("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));sb.displayName=Je.Item.displayName;const lb=({className:e,...t})=>d.jsx("span",{className:M("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});lb.displayName="CommandShortcut";const D3=["top","right","bottom","left"],pn=Math.min,ot=Math.max,si=Math.round,li=Math.floor,jt=e=>({x:e,y:e}),I3={left:"right",right:"left",bottom:"top",top:"bottom"},j3={start:"end",end:"start"};function Ec(e,t,n){return ot(e,pn(t,n))}function Qt(e,t){return typeof e=="function"?e(t):e}function Jt(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function Pc(e){return e==="x"?"y":"x"}function Nc(e){return e==="y"?"height":"width"}const $3=new Set(["top","bottom"]);function $t(e){return $3.has(Jt(e))?"y":"x"}function Tc(e){return Pc($t(e))}function k3(e,t,n){n===void 0&&(n=!1);const r=Sr(e),o=Tc(e),a=Nc(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=ci(i)),[i,ci(i)]}function L3(e){const t=ci(e);return[Mc(e),t,Mc(t)]}function Mc(e){return e.replace(/start|end/g,t=>j3[t])}const cb=["left","right"],ub=["right","left"],F3=["top","bottom"],B3=["bottom","top"];function z3(e,t,n){switch(e){case"top":case"bottom":return n?t?ub:cb:t?cb:ub;case"left":case"right":return t?F3:B3;default:return[]}}function W3(e,t,n,r){const o=Sr(e);let a=z3(Jt(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Mc)))),a}function ci(e){return e.replace(/left|right|bottom|top/g,t=>I3[t])}function H3(e){return{top:0,right:0,bottom:0,left:0,...e}}function db(e){return typeof e!="number"?H3(e):{top:e,right:e,bottom:e,left:e}}function ui(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function fb(e,t,n){let{reference:r,floating:o}=e;const a=$t(t),i=Tc(t),s=Nc(i),l=Jt(t),u=a==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let v;switch(l){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:p};break;case"left":v={x:r.x-o.width,y:p};break;default:v={x:r.x,y:r.y}}switch(Sr(t)){case"start":v[i]-=m*(n&&u?-1:1);break;case"end":v[i]+=m*(n&&u?-1:1);break}return v}const V3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=fb(u,r,l),m=r,v={},g=0;for(let h=0;h<s.length;h++){const{name:b,fn:y}=s[h],{x:w,y:x,data:S,reset:C}=await y({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:u,platform:i,elements:{reference:e,floating:t}});f=w??f,p=x??p,v={...v,[b]:{...v[b],...S}},C&&g<=50&&(g++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:p}=fb(u,m,l)),h=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:v}};async function _o(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:v=0}=Qt(t,e),g=db(v),b=s[m?p==="floating"?"reference":"floating":p],y=ui(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:l})),w=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},C=ui(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-C.top+g.top)/S.y,bottom:(C.bottom-y.bottom+g.bottom)/S.y,left:(y.left-C.left+g.left)/S.x,right:(C.right-y.right+g.right)/S.x}}const G3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:f=0}=Qt(e,t)||{};if(u==null)return{};const p=db(f),m={x:n,y:r},v=Tc(o),g=Nc(v),h=await i.getDimensions(u),b=v==="y",y=b?"top":"left",w=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=a.reference[g]+a.reference[v]-m[v]-a.floating[g],C=m[v]-a.reference[v],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=N?N[x]:0;(!E||!await(i.isElement==null?void 0:i.isElement(N)))&&(E=s.floating[x]||a.floating[g]);const A=S/2-C/2,T=E/2-h[g]/2-1,F=pn(p[y],T),R=pn(p[w],T),k=F,U=E-h[g]-R,L=E/2-h[g]/2+A,G=Ec(k,L,U),V=!l.arrow&&Sr(o)!=null&&L!==G&&a.reference[g]/2-(L<k?F:R)-h[g]/2<0,B=V?L<k?L-k:L-U:0;return{[v]:m[v]+B,data:{[v]:G,centerOffset:L-G-B,...V&&{alignmentOffset:B}},reset:V}}}),U3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...b}=Qt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Jt(o),w=$t(s),x=Jt(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=m||(x||!h?[ci(s)]:L3(s)),N=g!=="none";!m&&N&&C.push(...W3(s,h,g,S));const E=[s,...C],A=await _o(t,b),T=[];let F=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&T.push(A[y]),p){const L=k3(o,i,S);T.push(A[L[0]],A[L[1]])}if(F=[...F,{placement:o,overflows:T}],!T.every(L=>L<=0)){var R,k;const L=(((R=a.flip)==null?void 0:R.index)||0)+1,G=E[L];if(G&&(!(p==="alignment"?w!==$t(G):!1)||F.every($=>$t($.placement)===w?$.overflows[0]>0:!0)))return{data:{index:L,overflows:F},reset:{placement:G}};let V=(k=F.filter(B=>B.overflows[0]<=0).sort((B,$)=>B.overflows[1]-$.overflows[1])[0])==null?void 0:k.placement;if(!V)switch(v){case"bestFit":{var U;const B=(U=F.filter($=>{if(N){const K=$t($.placement);return K===w||K==="y"}return!0}).map($=>[$.placement,$.overflows.filter(K=>K>0).reduce((K,oe)=>K+oe,0)]).sort(($,K)=>$[1]-K[1])[0])==null?void 0:U[0];B&&(V=B);break}case"initialPlacement":V=s;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function pb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mb(e){return D3.some(t=>e[t]>=0)}const K3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Qt(e,t);switch(r){case"referenceHidden":{const a=await _o(t,{...o,elementContext:"reference"}),i=pb(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:mb(i)}}}case"escaped":{const a=await _o(t,{...o,altBoundary:!0}),i=pb(a,n.floating);return{data:{escapedOffsets:i,escaped:mb(i)}}}default:return{}}}}},hb=new Set(["left","top"]);async function Y3(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Jt(n),s=Sr(n),l=$t(n)==="y",u=hb.has(i)?-1:1,f=a&&l?-1:1,p=Qt(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof g=="number"&&(v=s==="end"?g*-1:g),l?{x:v*f,y:m*u}:{x:m*u,y:v*f}}const q3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await Y3(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},X3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:y,y:w}=b;return{x:y,y:w}}},...l}=Qt(e,t),u={x:n,y:r},f=await _o(t,l),p=$t(Jt(o)),m=Pc(p);let v=u[m],g=u[p];if(a){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=v+f[b],x=v-f[y];v=Ec(w,v,x)}if(i){const b=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=g+f[b],x=g-f[y];g=Ec(w,g,x)}const h=s.fn({...t,[m]:v,[p]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:a,[p]:i}}}}}},Z3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Qt(e,t),f={x:n,y:r},p=$t(o),m=Pc(p);let v=f[m],g=f[p];const h=Qt(s,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const x=m==="y"?"height":"width",S=a.reference[m]-a.floating[x]+b.mainAxis,C=a.reference[m]+a.reference[x]-b.mainAxis;v<S?v=S:v>C&&(v=C)}if(u){var y,w;const x=m==="y"?"width":"height",S=hb.has(Jt(o)),C=a.reference[p]-a.floating[x]+(S&&((y=i.offset)==null?void 0:y[p])||0)+(S?0:b.crossAxis),N=a.reference[p]+a.reference[x]+(S?0:((w=i.offset)==null?void 0:w[p])||0)-(S?b.crossAxis:0);g<C?g=C:g>N&&(g=N)}return{[m]:v,[p]:g}}}},Q3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...u}=Qt(e,t),f=await _o(t,u),p=Jt(o),m=Sr(o),v=$t(o)==="y",{width:g,height:h}=a.floating;let b,y;p==="top"||p==="bottom"?(b=p,y=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,b=m==="end"?"top":"bottom");const w=h-f.top-f.bottom,x=g-f.left-f.right,S=pn(h-f[b],w),C=pn(g-f[y],x),N=!t.middlewareData.shift;let E=S,A=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=w),N&&!m){const F=ot(f.left,0),R=ot(f.right,0),k=ot(f.top,0),U=ot(f.bottom,0);v?A=g-2*(F!==0||R!==0?F+R:ot(f.left,f.right)):E=h-2*(k!==0||U!==0?k+U:ot(f.top,f.bottom))}await l({...t,availableWidth:A,availableHeight:E});const T=await i.getDimensions(s.floating);return g!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function di(){return typeof window<"u"}function Cr(e){return vb(e)?(e.nodeName||"").toLowerCase():"#document"}function at(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kt(e){var t;return(t=(vb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vb(e){return di()?e instanceof Node||e instanceof at(e).Node:!1}function _t(e){return di()?e instanceof Element||e instanceof at(e).Element:!1}function Lt(e){return di()?e instanceof HTMLElement||e instanceof at(e).HTMLElement:!1}function gb(e){return!di()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof at(e).ShadowRoot}const J3=new Set(["inline","contents"]);function Eo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!J3.has(o)}const e4=new Set(["table","td","th"]);function t4(e){return e4.has(Cr(e))}const n4=[":popover-open",":modal"];function fi(e){return n4.some(t=>{try{return e.matches(t)}catch{return!1}})}const r4=["transform","translate","scale","rotate","perspective"],o4=["transform","translate","scale","rotate","perspective","filter"],a4=["paint","layout","strict","content"];function Rc(e){const t=Oc(),n=_t(e)?Et(e):e;return r4.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||o4.some(r=>(n.willChange||"").includes(r))||a4.some(r=>(n.contain||"").includes(r))}function i4(e){let t=mn(e);for(;Lt(t)&&!_r(t);){if(Rc(t))return t;if(fi(t))return null;t=mn(t)}return null}function Oc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const s4=new Set(["html","body","#document"]);function _r(e){return s4.has(Cr(e))}function Et(e){return at(e).getComputedStyle(e)}function pi(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mn(e){if(Cr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gb(e)&&e.host||kt(e);return gb(t)?t.host:t}function bb(e){const t=mn(e);return _r(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lt(t)&&Eo(t)?t:bb(t)}function Po(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=bb(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=at(o);if(a){const s=Ac(i);return t.concat(i,i.visualViewport||[],Eo(o)?o:[],s&&n?Po(s):[])}return t.concat(o,Po(o,[],n))}function Ac(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yb(e){const t=Et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Lt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=si(n)!==a||si(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Dc(e){return _t(e)?e:e.contextElement}function Er(e){const t=Dc(e);if(!Lt(t))return jt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=yb(t);let i=(a?si(n.width):n.width)/r,s=(a?si(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const l4=jt(0);function wb(e){const t=at(e);return!Oc()||!t.visualViewport?l4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function c4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==at(e)?!1:t}function Fn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Dc(e);let i=jt(1);t&&(r?_t(r)&&(i=Er(r)):i=Er(e));const s=c4(a,n,r)?wb(a):jt(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const m=at(a),v=r&&_t(r)?at(r):r;let g=m,h=Ac(g);for(;h&&r&&v!==g;){const b=Er(h),y=h.getBoundingClientRect(),w=Et(h),x=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*b.x,S=y.top+(h.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,p*=b.y,l+=x,u+=S,g=at(h),h=Ac(g)}}return ui({width:f,height:p,x:l,y:u})}function mi(e,t){const n=pi(e).scrollLeft;return t?t.left+n:Fn(kt(e)).left+n}function xb(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-mi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function u4(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=kt(r),s=t?fi(t.floating):!1;if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=jt(1);const f=jt(0),p=Lt(r);if((p||!p&&!a)&&((Cr(r)!=="body"||Eo(i))&&(l=pi(r)),Lt(r))){const v=Fn(r);u=Er(r),f.x=v.x+r.clientLeft,f.y=v.y+r.clientTop}const m=i&&!p&&!a?xb(i,l):jt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-l.scrollTop*u.y+f.y+m.y}}function d4(e){return Array.from(e.getClientRects())}function f4(e){const t=kt(e),n=pi(e),r=e.ownerDocument.body,o=ot(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ot(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+mi(e);const s=-n.scrollTop;return Et(r).direction==="rtl"&&(i+=ot(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Sb=25;function p4(e,t){const n=at(e),r=kt(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const f=Oc();(!f||f&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const u=mi(r);if(u<=0){const f=r.ownerDocument,p=f.body,m=getComputedStyle(p),v=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-p.clientWidth-v);g<=Sb&&(a-=g)}else u<=Sb&&(a+=u);return{width:a,height:i,x:s,y:l}}const m4=new Set(["absolute","fixed"]);function h4(e,t){const n=Fn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Lt(e)?Er(e):jt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:i,height:s,x:l,y:u}}function Cb(e,t,n){let r;if(t==="viewport")r=p4(e,n);else if(t==="document")r=f4(kt(e));else if(_t(t))r=h4(t,n);else{const o=wb(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ui(r)}function _b(e,t){const n=mn(e);return n===t||!_t(n)||_r(n)?!1:Et(n).position==="fixed"||_b(n,t)}function v4(e,t){const n=t.get(e);if(n)return n;let r=Po(e,[],!1).filter(s=>_t(s)&&Cr(s)!=="body"),o=null;const a=Et(e).position==="fixed";let i=a?mn(e):e;for(;_t(i)&&!_r(i);){const s=Et(i),l=Rc(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&m4.has(o.position)||Eo(i)&&!l&&_b(e,i))?r=r.filter(f=>f!==i):o=s,i=mn(i)}return t.set(e,r),r}function g4(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?fi(t)?[]:v4(t,this._c):[].concat(n),r],s=i[0],l=i.reduce((u,f)=>{const p=Cb(t,f,o);return u.top=ot(p.top,u.top),u.right=pn(p.right,u.right),u.bottom=pn(p.bottom,u.bottom),u.left=ot(p.left,u.left),u},Cb(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function b4(e){const{width:t,height:n}=yb(e);return{width:t,height:n}}function y4(e,t,n){const r=Lt(t),o=kt(t),a=n==="fixed",i=Fn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=jt(0);function u(){l.x=mi(o)}if(r||!r&&!a)if((Cr(t)!=="body"||Eo(o))&&(s=pi(t)),r){const v=Fn(t,!0,a,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&u();a&&!r&&o&&u();const f=o&&!r&&!a?xb(o,s):jt(0),p=i.left+s.scrollLeft-l.x-f.x,m=i.top+s.scrollTop-l.y-f.y;return{x:p,y:m,width:i.width,height:i.height}}function Ic(e){return Et(e).position==="static"}function Eb(e,t){if(!Lt(e)||Et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kt(e)===n&&(n=n.ownerDocument.body),n}function Pb(e,t){const n=at(e);if(fi(e))return n;if(!Lt(e)){let o=mn(e);for(;o&&!_r(o);){if(_t(o)&&!Ic(o))return o;o=mn(o)}return n}let r=Eb(e,t);for(;r&&t4(r)&&Ic(r);)r=Eb(r,t);return r&&_r(r)&&Ic(r)&&!Rc(r)?n:r||i4(e)||n}const w4=async function(e){const t=this.getOffsetParent||Pb,n=this.getDimensions,r=await n(e.floating);return{reference:y4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function x4(e){return Et(e).direction==="rtl"}const S4={convertOffsetParentRelativeRectToViewportRelativeRect:u4,getDocumentElement:kt,getClippingRect:g4,getOffsetParent:Pb,getElementRects:w4,getClientRects:d4,getDimensions:b4,getScale:Er,isElement:_t,isRTL:x4};function Nb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function C4(e,t){let n=null,r;const o=kt(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:f,top:p,width:m,height:v}=u;if(s||t(),!m||!v)return;const g=li(p),h=li(o.clientWidth-(f+m)),b=li(o.clientHeight-(p+v)),y=li(f),x={rootMargin:-g+"px "+-h+"px "+-b+"px "+-y+"px",threshold:ot(0,pn(1,l))||1};let S=!0;function C(N){const E=N[0].intersectionRatio;if(E!==l){if(!S)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Nb(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),a}function _4(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Dc(e),f=o||a?[...u?Po(u):[],...Po(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const p=u&&s?C4(u,n):null;let m=-1,v=null;i&&(v=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),n()}),u&&!l&&v.observe(u),v.observe(t));let g,h=l?Fn(e):null;l&&b();function b(){const y=Fn(e);h&&!Nb(h,y)&&n(),h=y,g=requestAnimationFrame(b)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),p==null||p(),(y=v)==null||y.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const E4=q3,P4=X3,N4=U3,T4=Q3,M4=K3,Tb=G3,R4=Z3,O4=(e,t,n)=>{const r=new Map,o={platform:S4,...n},a={...o.platform,_c:r};return V3(e,t,{...o,platform:a})};var A4=typeof document<"u",D4=function(){},hi=A4?_.useLayoutEffect:D4;function vi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!vi(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!vi(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Mb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rb(e,t){const n=Mb(e);return Math.round(t*n)/n}function jc(e){const t=c.useRef(e);return hi(()=>{t.current=e}),t}function I4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=c.useState(r);vi(m,r)||v(r);const[g,h]=c.useState(null),[b,y]=c.useState(null),w=c.useCallback($=>{$!==N.current&&(N.current=$,h($))},[]),x=c.useCallback($=>{$!==E.current&&(E.current=$,y($))},[]),S=a||g,C=i||b,N=c.useRef(null),E=c.useRef(null),A=c.useRef(f),T=l!=null,F=jc(l),R=jc(o),k=jc(u),U=c.useCallback(()=>{if(!N.current||!E.current)return;const $={placement:t,strategy:n,middleware:m};R.current&&($.platform=R.current),O4(N.current,E.current,$).then(K=>{const oe={...K,isPositioned:k.current!==!1};L.current&&!vi(A.current,oe)&&(A.current=oe,Fr.flushSync(()=>{p(oe)}))})},[m,t,n,R,k]);hi(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,p($=>({...$,isPositioned:!1})))},[u]);const L=c.useRef(!1);hi(()=>(L.current=!0,()=>{L.current=!1}),[]),hi(()=>{if(S&&(N.current=S),C&&(E.current=C),S&&C){if(F.current)return F.current(S,C,U);U()}},[S,C,U,F,T]);const G=c.useMemo(()=>({reference:N,floating:E,setReference:w,setFloating:x}),[w,x]),V=c.useMemo(()=>({reference:S,floating:C}),[S,C]),B=c.useMemo(()=>{const $={position:n,left:0,top:0};if(!V.floating)return $;const K=Rb(V.floating,f.x),oe=Rb(V.floating,f.y);return s?{...$,transform:"translate("+K+"px, "+oe+"px)",...Mb(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:oe}},[n,s,V.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:U,refs:G,elements:V,floatingStyles:B}),[f,U,G,V,B])}const j4=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Tb({element:r.current,padding:o}).fn(n):{}:r?Tb({element:r,padding:o}).fn(n):{}}}},$4=(e,t)=>({...E4(e),options:[e,t]}),k4=(e,t)=>({...P4(e),options:[e,t]}),L4=(e,t)=>({...R4(e),options:[e,t]}),F4=(e,t)=>({...N4(e),options:[e,t]}),B4=(e,t)=>({...T4(e),options:[e,t]}),z4=(e,t)=>({...M4(e),options:[e,t]}),W4=(e,t)=>({...j4(e),options:[e,t]});var H4="Arrow",Ob=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(ee.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ob.displayName=H4;var V4=Ob,$c="Popper",[Ab,Ft]=Te($c),[G4,Db]=Ab($c),Ib=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return d.jsx(G4,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ib.displayName=$c;var jb="PopperAnchor",$b=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Db(jb,n),i=c.useRef(null),s=ae(t,i),l=c.useRef(null);return c.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||i.current,u!==l.current&&a.onAnchorChange(l.current)}),r?null:d.jsx(ee.div,{...o,ref:s})});$b.displayName=jb;var kc="PopperContent",[U4,K4]=Ab(kc),kb=c.forwardRef((e,t)=>{var I,q,J,te,ne,Q;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:g,...h}=e,b=Db(kc,n),[y,w]=c.useState(null),x=ae(t,X=>w(X)),[S,C]=c.useState(null),N=xo(S),E=(N==null?void 0:N.width)??0,A=(N==null?void 0:N.height)??0,T=r+(a!=="center"?"-"+a:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},R=Array.isArray(u)?u:[u],k=R.length>0,U={padding:F,boundary:R.filter(q4),altBoundary:k},{refs:L,floatingStyles:G,placement:V,isPositioned:B,middlewareData:$}=I4({strategy:"fixed",placement:T,whileElementsMounted:(...X)=>_4(...X,{animationFrame:v==="always"}),elements:{reference:b.anchor},middleware:[$4({mainAxis:o+A,alignmentAxis:i}),l&&k4({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?L4():void 0,...U}),l&&F4({...U}),B4({...U,apply:({elements:X,rects:W,availableWidth:re,availableHeight:le})=>{const{width:pe,height:fe}=W.reference,ce=X.floating.style;ce.setProperty("--radix-popper-available-width",`${re}px`),ce.setProperty("--radix-popper-available-height",`${le}px`),ce.setProperty("--radix-popper-anchor-width",`${pe}px`),ce.setProperty("--radix-popper-anchor-height",`${fe}px`)}}),S&&W4({element:S,padding:s}),X4({arrowWidth:E,arrowHeight:A}),m&&z4({strategy:"referenceHidden",...U})]}),[K,oe]=Bb(V),O=he(g);Me(()=>{B&&(O==null||O())},[B,O]);const D=(I=$.arrow)==null?void 0:I.x,j=(q=$.arrow)==null?void 0:q.y,H=((J=$.arrow)==null?void 0:J.centerOffset)!==0,[Y,Z]=c.useState();return Me(()=>{y&&Z(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:B?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(te=$.transformOrigin)==null?void 0:te.x,(ne=$.transformOrigin)==null?void 0:ne.y].join(" "),...((Q=$.hide)==null?void 0:Q.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(U4,{scope:n,placedSide:K,onArrowChange:C,arrowX:D,arrowY:j,shouldHideArrow:H,children:d.jsx(ee.div,{"data-side":K,"data-align":oe,...h,ref:x,style:{...h.style,animation:B?void 0:"none"}})})})});kb.displayName=kc;var Lb="PopperArrow",Y4={top:"bottom",right:"left",bottom:"top",left:"right"},Fb=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=K4(Lb,r),i=Y4[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:d.jsx(V4,{...o,ref:n,style:{...o.style,display:"block"}})})});Fb.displayName=Lb;function q4(e){return e!==null}var X4=e=>({name:"transformOrigin",options:e,fn(t){var b,y,w;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,s=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,f]=Bb(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,v=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let g="",h="";return u==="bottom"?(g=i?p:`${m}px`,h=`${-l}px`):u==="top"?(g=i?p:`${m}px`,h=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,h=i?p:`${v}px`):u==="left"&&(g=`${r.floating.width+l}px`,h=i?p:`${v}px`),{data:{x:g,y:h}}}});function Bb(e){const[t,n="center"]=e.split("-");return[t,n]}var Pr=Ib,Nr=$b,No=kb,To=Fb,Lc="rovingFocusGroup.onEntryFocus",Z4={bubbles:!1,cancelable:!0},Mo="RovingFocusGroup",[Fc,zb,Q4]=Ut(Mo),[J4,Bt]=Te(Mo,[Q4]),[eG,tG]=J4(Mo),Wb=c.forwardRef((e,t)=>d.jsx(Fc.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Fc.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(nG,{...e,ref:t})})}));Wb.displayName=Mo;var nG=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,m=c.useRef(null),v=ae(t,m),g=ht(a),[h,b]=_e({prop:i,defaultProp:s??null,onChange:l,caller:Mo}),[y,w]=c.useState(!1),x=he(u),S=zb(n),C=c.useRef(!1),[N,E]=c.useState(0);return c.useEffect(()=>{const A=m.current;if(A)return A.addEventListener(Lc,x),()=>A.removeEventListener(Lc,x)},[x]),d.jsx(eG,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:c.useCallback(A=>b(A),[b]),onItemShiftTab:c.useCallback(()=>w(!0),[]),onFocusableItemAdd:c.useCallback(()=>E(A=>A+1),[]),onFocusableItemRemove:c.useCallback(()=>E(A=>A-1),[]),children:d.jsx(ee.div,{tabIndex:y||N===0?-1:0,"data-orientation":r,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:z(e.onMouseDown,()=>{C.current=!0}),onFocus:z(e.onFocus,A=>{const T=!C.current;if(A.target===A.currentTarget&&T&&!y){const F=new CustomEvent(Lc,Z4);if(A.currentTarget.dispatchEvent(F),!F.defaultPrevented){const R=S().filter(V=>V.focusable),k=R.find(V=>V.active),U=R.find(V=>V.id===h),G=[k,U,...R].filter(Boolean).map(V=>V.ref.current);Gb(G,f)}}C.current=!1}),onBlur:z(e.onBlur,()=>w(!1))})})}),Hb="RovingFocusGroupItem",Vb=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:i,...s}=e,l=xe(),u=a||l,f=tG(Hb,n),p=f.currentTabStopId===u,m=zb(n),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:h}=f;return c.useEffect(()=>{if(r)return v(),()=>g()},[r,v,g]),d.jsx(Fc.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:d.jsx(ee.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:z(e.onMouseDown,b=>{r?f.onItemFocus(u):b.preventDefault()}),onFocus:z(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:z(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=aG(b,f.orientation,f.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let x=m().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const S=x.indexOf(b.currentTarget);x=f.loop?iG(x,S+1):x.slice(S+1)}setTimeout(()=>Gb(x))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:h!=null}):i})})});Vb.displayName=Hb;var rG={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function oG(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function aG(e,t,n){const r=oG(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return rG[r]}function Gb(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function iG(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ro=Wb,Oo=Vb;function sG(e){const t=lG(e),n=c.forwardRef((r,o)=>{const{children:a,...i}=r,s=c.Children.toArray(a),l=s.find(uG);if(l){const u=l.props.children,f=s.map(p=>p===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return d.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function lG(e){const t=c.forwardRef((n,r)=>{const{children:o,...a}=n;if(c.isValidElement(o)){const i=fG(o),s=dG(a,o.props);return o.type!==c.Fragment&&(s.ref=r?Be(r,i):i),c.cloneElement(o,s)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cG=Symbol("radix.slottable");function uG(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cG}function dG(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function fG(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bc=["Enter"," "],pG=["ArrowDown","PageUp","Home"],Ub=["ArrowUp","PageDown","End"],mG=[...pG,...Ub],hG={ltr:[...Bc,"ArrowRight"],rtl:[...Bc,"ArrowLeft"]},vG={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ao="Menu",[Do,gG,bG]=Ut(Ao),[Bn,Io]=Te(Ao,[bG,Ft,Bt]),jo=Ft(),Kb=Bt(),[Yb,hn]=Bn(Ao),[yG,$o]=Bn(Ao),qb=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=jo(t),[l,u]=c.useState(null),f=c.useRef(!1),p=he(a),m=ht(o);return c.useEffect(()=>{const v=()=>{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",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),d.jsx(Pr,{...s,children:d.jsx(Yb,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:u,children:d.jsx(yG,{scope:t,onClose:c.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:i,children:r})})})};qb.displayName=Ao;var wG="MenuAnchor",zc=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=jo(n);return d.jsx(Nr,{...o,...r,ref:t})});zc.displayName=wG;var Wc="MenuPortal",[xG,Xb]=Bn(Wc,{forceMount:void 0}),Zb=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=hn(Wc,t);return d.jsx(xG,{scope:t,forceMount:n,children:d.jsx(Re,{present:n||a.open,children:d.jsx(er,{asChild:!0,container:o,children:r})})})};Zb.displayName=Wc;var dt="MenuContent",[SG,Hc]=Bn(dt),Qb=c.forwardRef((e,t)=>{const n=Xb(dt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=hn(dt,e.__scopeMenu),i=$o(dt,e.__scopeMenu);return d.jsx(Do.Provider,{scope:e.__scopeMenu,children:d.jsx(Re,{present:r||a.open,children:d.jsx(Do.Slot,{scope:e.__scopeMenu,children:i.modal?d.jsx(CG,{...o,ref:t}):d.jsx(_G,{...o,ref:t})})})})}),CG=c.forwardRef((e,t)=>{const n=hn(dt,e.__scopeMenu),r=c.useRef(null),o=ae(t,r);return c.useEffect(()=>{const a=r.current;if(a)return xa(a)},[]),d.jsx(Vc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:z(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),_G=c.forwardRef((e,t)=>{const n=hn(dt,e.__scopeMenu);return d.jsx(Vc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),EG=sG("MenuContent.ScrollLock"),Vc=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,disableOutsideScroll:g,...h}=e,b=hn(dt,n),y=$o(dt,n),w=jo(n),x=Kb(n),S=gG(n),[C,N]=c.useState(null),E=c.useRef(null),A=ae(t,E,b.onContentChange),T=c.useRef(0),F=c.useRef(""),R=c.useRef(0),k=c.useRef(null),U=c.useRef("right"),L=c.useRef(0),G=g?Yr:c.Fragment,V=g?{as:EG,allowPinchZoom:!0}:void 0,B=K=>{var I,q;const oe=F.current+K,O=S().filter(J=>!J.disabled),D=document.activeElement,j=(I=O.find(J=>J.ref.current===D))==null?void 0:I.textValue,H=O.map(J=>J.textValue),Y=kG(H,oe,j),Z=(q=O.find(J=>J.textValue===Y))==null?void 0:q.ref.current;(function J(te){F.current=te,window.clearTimeout(T.current),te!==""&&(T.current=window.setTimeout(()=>J(""),1e3))})(oe),Z&&setTimeout(()=>Z.focus())};c.useEffect(()=>()=>window.clearTimeout(T.current),[]),pa();const $=c.useCallback(K=>{var O,D;return U.current===((O=k.current)==null?void 0:O.side)&&FG(K,(D=k.current)==null?void 0:D.area)},[]);return d.jsx(SG,{scope:n,searchRef:F,onItemEnter:c.useCallback(K=>{$(K)&&K.preventDefault()},[$]),onItemLeave:c.useCallback(K=>{var oe;$(K)||((oe=E.current)==null||oe.focus(),N(null))},[$]),onTriggerLeave:c.useCallback(K=>{$(K)&&K.preventDefault()},[$]),pointerGraceTimerRef:R,onPointerGraceIntentChange:c.useCallback(K=>{k.current=K},[]),children:d.jsx(G,{...V,children:d.jsx(Kr,{asChild:!0,trapped:o,onMountAutoFocus:z(a,K=>{var oe;K.preventDefault(),(oe=E.current)==null||oe.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:d.jsx(Kt,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,children:d.jsx(Ro,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:N,onEntryFocus:z(l,K=>{y.isUsingKeyboardRef.current||K.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(No,{role:"menu","aria-orientation":"vertical","data-state":vy(b.open),"data-radix-menu-content":"",dir:y.dir,...w,...h,ref:A,style:{outline:"none",...h.style},onKeyDown:z(h.onKeyDown,K=>{const O=K.target.closest("[data-radix-menu-content]")===K.currentTarget,D=K.ctrlKey||K.altKey||K.metaKey,j=K.key.length===1;O&&(K.key==="Tab"&&K.preventDefault(),!D&&j&&B(K.key));const H=E.current;if(K.target!==H||!mG.includes(K.key))return;K.preventDefault();const Z=S().filter(I=>!I.disabled).map(I=>I.ref.current);Ub.includes(K.key)&&Z.reverse(),jG(Z)}),onBlur:z(e.onBlur,K=>{K.currentTarget.contains(K.target)||(window.clearTimeout(T.current),F.current="")}),onPointerMove:z(e.onPointerMove,Lo(K=>{const oe=K.target,O=L.current!==K.clientX;if(K.currentTarget.contains(oe)&&O){const D=K.clientX>L.current?"right":"left";U.current=D,L.current=K.clientX}}))})})})})})})});Qb.displayName=dt;var PG="MenuGroup",Gc=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(ee.div,{role:"group",...r,ref:t})});Gc.displayName=PG;var NG="MenuLabel",Jb=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(ee.div,{...r,ref:t})});Jb.displayName=NG;var gi="MenuItem",ey="menu.itemSelect",bi=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=$o(gi,e.__scopeMenu),s=Hc(gi,e.__scopeMenu),l=ae(t,a),u=c.useRef(!1),f=()=>{const p=a.current;if(!n&&p){const m=new CustomEvent(ey,{bubbles:!0,cancelable:!0});p.addEventListener(ey,v=>r==null?void 0:r(v),{once:!0}),Gr(p,m),m.defaultPrevented?u.current=!1:i.onClose()}};return d.jsx(ty,{...o,ref:l,disabled:n,onClick:z(e.onClick,f),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),u.current=!0},onPointerUp:z(e.onPointerUp,p=>{var m;u.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:z(e.onKeyDown,p=>{const m=s.searchRef.current!=="";n||m&&p.key===" "||Bc.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});bi.displayName=gi;var ty=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Hc(gi,n),s=Kb(n),l=c.useRef(null),u=ae(t,l),[f,p]=c.useState(!1),[m,v]=c.useState("");return c.useEffect(()=>{const g=l.current;g&&v((g.textContent??"").trim())},[a.children]),d.jsx(Do.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:d.jsx(Oo,{asChild:!0,...s,focusable:!r,children:d.jsx(ee.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:z(e.onPointerMove,Lo(g=>{r?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:z(e.onPointerLeave,Lo(g=>i.onItemLeave(g))),onFocus:z(e.onFocus,()=>p(!0)),onBlur:z(e.onBlur,()=>p(!1))})})})}),TG="MenuCheckboxItem",ny=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(sy,{scope:e.__scopeMenu,checked:n,children:d.jsx(bi,{role:"menuitemcheckbox","aria-checked":yi(n)?"mixed":n,...o,ref:t,"data-state":Yc(n),onSelect:z(o.onSelect,()=>r==null?void 0:r(yi(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ny.displayName=TG;var ry="MenuRadioGroup",[MG,RG]=Bn(ry,{value:void 0,onValueChange:()=>{}}),oy=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=he(r);return d.jsx(MG,{scope:e.__scopeMenu,value:n,onValueChange:a,children:d.jsx(Gc,{...o,ref:t})})});oy.displayName=ry;var ay="MenuRadioItem",iy=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=RG(ay,e.__scopeMenu),a=n===o.value;return d.jsx(sy,{scope:e.__scopeMenu,checked:a,children:d.jsx(bi,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Yc(a),onSelect:z(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});iy.displayName=ay;var Uc="MenuItemIndicator",[sy,OG]=Bn(Uc,{checked:!1}),ly=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=OG(Uc,n);return d.jsx(Re,{present:r||yi(a.checked)||a.checked===!0,children:d.jsx(ee.span,{...o,ref:t,"data-state":Yc(a.checked)})})});ly.displayName=Uc;var AG="MenuSeparator",cy=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});cy.displayName=AG;var DG="MenuArrow",uy=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=jo(n);return d.jsx(To,{...o,...r,ref:t})});uy.displayName=DG;var Kc="MenuSub",[IG,dy]=Bn(Kc),fy=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=hn(Kc,t),i=jo(t),[s,l]=c.useState(null),[u,f]=c.useState(null),p=he(o);return c.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),d.jsx(Pr,{...i,children:d.jsx(Yb,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:f,children:d.jsx(IG,{scope:t,contentId:xe(),triggerId:xe(),trigger:s,onTriggerChange:l,children:n})})})};fy.displayName=Kc;var ko="MenuSubTrigger",py=c.forwardRef((e,t)=>{const n=hn(ko,e.__scopeMenu),r=$o(ko,e.__scopeMenu),o=dy(ko,e.__scopeMenu),a=Hc(ko,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const p=s.current;return()=>{window.clearTimeout(p),l(null)}},[s,l]),d.jsx(zc,{asChild:!0,...u,children:d.jsx(ty,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":vy(n.open),...e,ref:Be(t,o.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:z(e.onPointerMove,Lo(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:z(e.onPointerLeave,Lo(p=>{var v,g;f();const m=(v=n.content)==null?void 0:v.getBoundingClientRect();if(m){const h=(g=n.content)==null?void 0:g.dataset.side,b=h==="right",y=b?-5:5,w=m[b?"left":"right"],x=m[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x:w,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:w,y:m.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:z(e.onKeyDown,p=>{var v;const m=a.searchRef.current!=="";e.disabled||m&&p.key===" "||hG[r.dir].includes(p.key)&&(n.onOpenChange(!0),(v=n.content)==null||v.focus(),p.preventDefault())})})})});py.displayName=ko;var my="MenuSubContent",hy=c.forwardRef((e,t)=>{const n=Xb(dt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=hn(dt,e.__scopeMenu),i=$o(dt,e.__scopeMenu),s=dy(my,e.__scopeMenu),l=c.useRef(null),u=ae(t,l);return d.jsx(Do.Provider,{scope:e.__scopeMenu,children:d.jsx(Re,{present:r||a.open,children:d.jsx(Do.Slot,{scope:e.__scopeMenu,children:d.jsx(Vc,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;i.isUsingKeyboardRef.current&&((p=l.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:z(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:z(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:z(e.onKeyDown,f=>{var v;const p=f.currentTarget.contains(f.target),m=vG[i.dir].includes(f.key);p&&m&&(a.onOpenChange(!1),(v=s.trigger)==null||v.focus(),f.preventDefault())})})})})})});hy.displayName=my;function vy(e){return e?"open":"closed"}function yi(e){return e==="indeterminate"}function Yc(e){return yi(e)?"indeterminate":e?"checked":"unchecked"}function jG(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $G(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function kG(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=$G(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function LG(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],l=t[i],u=s.x,f=s.y,p=l.x,m=l.y;f>r!=m>r&&n<(p-u)*(r-f)/(m-f)+u&&(o=!o)}return o}function FG(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return LG(n,t)}function Lo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var qc=qb,Xc=zc,Zc=Zb,Qc=Qb,Jc=Gc,eu=Jb,tu=bi,nu=ny,ru=oy,ou=iy,au=ly,iu=cy,su=uy,lu=fy,cu=py,uu=hy,du="ContextMenu",[BG]=Te(du,[Io]),ze=Io(),[zG,gy]=BG(du),by=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:a=!0}=e,[i,s]=c.useState(!1),l=ze(t),u=he(r),f=c.useCallback(p=>{s(p),u(p)},[u]);return d.jsx(zG,{scope:t,open:i,onOpenChange:f,modal:a,children:d.jsx(qc,{...l,dir:o,open:i,onOpenChange:f,modal:a,children:n})})};by.displayName=du;var yy="ContextMenuTrigger",wy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=e,a=gy(yy,n),i=ze(n),s=c.useRef({x:0,y:0}),l=c.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),u=c.useRef(0),f=c.useCallback(()=>window.clearTimeout(u.current),[]),p=m=>{s.current={x:m.clientX,y:m.clientY},a.onOpenChange(!0)};return c.useEffect(()=>f,[f]),c.useEffect(()=>void(r&&f()),[r,f]),d.jsxs(d.Fragment,{children:[d.jsx(Xc,{...i,virtualRef:l}),d.jsx(ee.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:z(e.onContextMenu,m=>{f(),p(m),m.preventDefault()}),onPointerDown:r?e.onPointerDown:z(e.onPointerDown,wi(m=>{f(),u.current=window.setTimeout(()=>p(m),700)})),onPointerMove:r?e.onPointerMove:z(e.onPointerMove,wi(f)),onPointerCancel:r?e.onPointerCancel:z(e.onPointerCancel,wi(f)),onPointerUp:r?e.onPointerUp:z(e.onPointerUp,wi(f))})]})});wy.displayName=yy;var WG="ContextMenuPortal",xy=e=>{const{__scopeContextMenu:t,...n}=e,r=ze(t);return d.jsx(Zc,{...r,...n})};xy.displayName=WG;var Sy="ContextMenuContent",Cy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=gy(Sy,n),a=ze(n),i=c.useRef(!1);return d.jsx(Qc,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{var l;(l=e.onCloseAutoFocus)==null||l.call(e,s),!s.defaultPrevented&&i.current&&s.preventDefault(),i.current=!1},onInteractOutside:s=>{var l;(l=e.onInteractOutside)==null||l.call(e,s),!s.defaultPrevented&&!o.modal&&(i.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Cy.displayName=Sy;var HG="ContextMenuGroup",_y=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(Jc,{...o,...r,ref:t})});_y.displayName=HG;var VG="ContextMenuLabel",Ey=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(eu,{...o,...r,ref:t})});Ey.displayName=VG;var GG="ContextMenuItem",Py=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(tu,{...o,...r,ref:t})});Py.displayName=GG;var UG="ContextMenuCheckboxItem",Ny=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(nu,{...o,...r,ref:t})});Ny.displayName=UG;var KG="ContextMenuRadioGroup",Ty=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(ru,{...o,...r,ref:t})});Ty.displayName=KG;var YG="ContextMenuRadioItem",My=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(ou,{...o,...r,ref:t})});My.displayName=YG;var qG="ContextMenuItemIndicator",Ry=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(au,{...o,...r,ref:t})});Ry.displayName=qG;var XG="ContextMenuSeparator",Oy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(iu,{...o,...r,ref:t})});Oy.displayName=XG;var ZG="ContextMenuArrow",QG=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(su,{...o,...r,ref:t})});QG.displayName=ZG;var Ay="ContextMenuSub",Dy=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:a}=e,i=ze(t),[s,l]=_e({prop:o,defaultProp:a??!1,onChange:r,caller:Ay});return d.jsx(lu,{...i,open:s,onOpenChange:l,children:n})};Dy.displayName=Ay;var JG="ContextMenuSubTrigger",Iy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(cu,{...o,...r,ref:t})});Iy.displayName=JG;var eU="ContextMenuSubContent",jy=c.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=ze(n);return d.jsx(uu,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});jy.displayName=eU;function wi(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var tU=by,nU=wy,$y=xy,ky=Cy,rU=_y,Ly=Ey,Fy=Py,By=Ny,oU=Ty,zy=My,Wy=Ry,Hy=Oy,aU=Dy,Vy=Iy,Gy=jy;const iU=tU,sU=nU,lU=rU,cU=$y,uU=aU,dU=oU,Uy=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(Vy,{ref:o,className:M("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,d.jsx(Jn,{className:"ml-auto h-4 w-4"})]}));Uy.displayName=Vy.displayName;const Ky=c.forwardRef(({className:e,...t},n)=>d.jsx(Gy,{ref:n,className:M("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 origin-[--radix-context-menu-content-transform-origin]",e),...t}));Ky.displayName=Gy.displayName;const Yy=c.forwardRef(({className:e,...t},n)=>d.jsx($y,{children:d.jsx(ky,{ref:n,className:M("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));Yy.displayName=ky.displayName;const qy=c.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(Fy,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));qy.displayName=Fy.displayName;const Xy=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs(By,{ref:o,className:M("relative flex 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),checked:n,...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Wy,{children:d.jsx(Ur,{className:"h-4 w-4"})})}),t]}));Xy.displayName=By.displayName;const Zy=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(zy,{ref:r,className:M("relative flex 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:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Wy,{children:d.jsx(fa,{className:"h-2 w-2 fill-current"})})}),t]}));Zy.displayName=zy.displayName;const Qy=c.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(Ly,{ref:r,className:M("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));Qy.displayName=Ly.displayName;const Jy=c.forwardRef(({className:e,...t},n)=>d.jsx(Hy,{ref:n,className:M("-mx-1 my-1 h-px bg-border",e),...t}));Jy.displayName=Hy.displayName;const ew=({className:e,...t})=>d.jsx("span",{className:M("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ew.displayName="ContextMenuShortcut";function fU(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const tw=_.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Fo=()=>{const e=_.useContext(tw);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};fU(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
200
|
+
[data-state=closed]
|
|
201
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}`);const pU=24,mU=typeof window<"u"?_.useLayoutEffect:_.useEffect;function nw(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function hU(){return fu(/^Mac/)}function vU(){return fu(/^iPhone/)}function rw(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function gU(){return fu(/^iPad/)||hU()&&navigator.maxTouchPoints>1}function ow(){return vU()||gU()}function fu(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const pu=typeof document<"u"&&window.visualViewport;function aw(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function iw(e){for(aw(e)&&(e=e.parentElement);e&&!aw(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const bU=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let xi=0,mu;function yU(e={}){let{isDisabled:t}=e;mU(()=>{if(!t)return xi++,xi===1&&ow()&&(mu=wU()),()=>{xi--,xi===0&&(mu==null||mu())}},[t])}function wU(){let e,t=0,n=p=>{e=iw(p.target),!(e===document.documentElement&&e===document.body)&&(t=p.changedTouches[0].pageY)},r=p=>{if(!e||e===document.documentElement||e===document.body){p.preventDefault();return}let m=p.changedTouches[0].pageY,v=e.scrollTop,g=e.scrollHeight-e.clientHeight;g!==0&&((v<=0&&m>t||v>=g&&m<t)&&p.preventDefault(),t=m)},o=p=>{let m=p.target;hu(m)&&m!==document.activeElement&&(p.preventDefault(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""}))},a=p=>{let m=p.target;hu(m)&&(m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",pu&&(pu.height<window.innerHeight?requestAnimationFrame(()=>{sw(m)}):pu.addEventListener("resize",()=>sw(m),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,u=nw(xU(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let f=nw(Bo(document,"touchstart",n,{passive:!1,capture:!0}),Bo(document,"touchmove",r,{passive:!1,capture:!0}),Bo(document,"touchend",o,{passive:!1,capture:!0}),Bo(document,"focus",a,!0),Bo(window,"scroll",i));return()=>{u(),f(),window.scrollTo(s,l)}}function xU(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Bo(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function sw(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=iw(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const i=n.getBoundingClientRect().bottom+pU;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function hu(e){return e instanceof HTMLInputElement&&!bU.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function SU(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function CU(...e){return t=>e.forEach(n=>SU(n,t))}function lw(...e){return c.useCallback(CU(...e),e)}const cw=new WeakMap;function $e(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&cw.set(e,r)}function _U(e,t){if(!e||!(e instanceof HTMLElement))return;let n=cw.get(e);n&&(e.style[t]=n[t])}const ke=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Si(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[ke(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[ke(t)?5:4]):null)}function EU(e){return 8*(Math.log(e+1)-2)}function vu(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function PU(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const Ie={DURATION:.5,EASE:[.32,.72,0,1]},uw=.4,NU=.25,TU=100,dw=8,zn=16,gu=26,bu="vaul-dragging";function fw(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function MU({defaultProp:e,onChange:t}){const n=_.useState(e),[r]=n,o=_.useRef(r),a=fw(t);return _.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function pw({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=MU({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=fw(n),l=_.useCallback(u=>{if(a){const p=typeof u=="function"?u(e):u;p!==e&&s(p)}else o(u)},[a,e,o,s]);return[i,l]}function RU({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i,direction:s="bottom",container:l,snapToSequentialPoint:u}){const[f,p]=pw({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[m,v]=_.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);_.useEffect(()=>{function E(){v({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[]);const g=_.useMemo(()=>f===(n==null?void 0:n[n.length-1])||null,[n,f]),h=_.useMemo(()=>n==null?void 0:n.findIndex(E=>E===f),[n,f]),b=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===f||!n,y=_.useMemo(()=>{const E=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var A;return(A=n==null?void 0:n.map(T=>{const F=typeof T=="string";let R=0;if(F&&(R=parseInt(T,10)),ke(s)){const U=F?R:m?T*E.height:0;return m?s==="bottom"?E.height-U:-E.height+U:U}const k=F?R:m?T*E.width:0;return m?s==="right"?E.width-k:-E.width+k:k}))!=null?A:[]},[n,m,l]),w=_.useMemo(()=>h!==null?y==null?void 0:y[h]:null,[y,h]),x=_.useCallback(E=>{var A;const T=(A=y==null?void 0:y.findIndex(F=>F===E))!=null?A:null;i(T),$e(r.current,{transition:`transform ${Ie.DURATION}s cubic-bezier(${Ie.EASE.join(",")})`,transform:ke(s)?`translate3d(0, ${E}px, 0)`:`translate3d(${E}px, 0, 0)`}),y&&T!==y.length-1&&T!==a&&T<a?$e(o.current,{transition:`opacity ${Ie.DURATION}s cubic-bezier(${Ie.EASE.join(",")})`,opacity:"0"}):$e(o.current,{transition:`opacity ${Ie.DURATION}s cubic-bezier(${Ie.EASE.join(",")})`,opacity:"1"}),p(n==null?void 0:n[Math.max(T,0)])},[r.current,n,y,a,o,p]);_.useEffect(()=>{if(f||e){var E;const A=(E=n==null?void 0:n.findIndex(T=>T===e||T===f))!=null?E:-1;y&&A!==-1&&typeof y[A]=="number"&&x(y[A])}},[f,e,n,y,x]);function S({draggedDistance:E,closeDrawer:A,velocity:T,dismissible:F}){if(a===void 0)return;const R=s==="bottom"||s==="right"?(w??0)-E:(w??0)+E,k=h===a-1,U=h===0,L=E>0;if(k&&$e(o.current,{transition:`opacity ${Ie.DURATION}s cubic-bezier(${Ie.EASE.join(",")})`}),!u&&T>2&&!L){F?A():x(y[0]);return}if(!u&&T>2&&L&&y&&n){x(y[n.length-1]);return}const G=y==null?void 0:y.reduce((B,$)=>typeof B!="number"||typeof $!="number"?B:Math.abs($-R)<Math.abs(B-R)?$:B),V=ke(s)?window.innerHeight:window.innerWidth;if(T>uw&&Math.abs(E)<V*.4){const B=L?1:-1;if(B>0&&g){x(y[n.length-1]);return}if(U&&B<0&&F&&A(),h===null)return;x(y[h+B]);return}x(G)}function C({draggedDistance:E}){if(w===null)return;const A=s==="bottom"||s==="right"?w-E:w+E;(s==="bottom"||s==="right")&&A<y[y.length-1]||(s==="top"||s==="left")&&A>y[y.length-1]||$e(r.current,{transform:ke(s)?`translate3d(0, ${A}px, 0)`:`translate3d(${A}px, 0, 0)`})}function N(E,A){if(!n||typeof h!="number"||!y||a===void 0)return null;const T=h===a-1;if(h>=a&&A)return 0;if(T&&!A)return 1;if(!b&&!T)return null;const R=T?h+1:h-1,k=T?y[R]-y[R-1]:y[R+1]-y[R],U=E/Math.abs(k);return T?1-U:U}return{isLastSnapPoint:g,activeSnapPoint:f,shouldFade:b,getPercentageDragged:N,setActiveSnapPoint:p,activeSnapPointIndex:h,onRelease:S,onDrag:C,snapPointsOffset:y}}const OU=()=>()=>{};function AU(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=Fo(),a=_.useRef(null),i=_.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-gu)/window.innerWidth}_.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;PU(r&&!o?vu(document.body,{background:"black"}):OU,vu(l,{transformOrigin:ke(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Ie.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ie.EASE.join(",")})`}));const u=vu(l,{borderRadius:`${dw}px`,overflow:"hidden",...ke(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),a.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},Ie.DURATION*1e3)}}},[t,n,i])}let zo=null;function DU({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:a}){const[i,s]=_.useState(()=>typeof window<"u"?window.location.href:""),l=_.useRef(0),u=_.useCallback(()=>{if(rw()&&zo===null&&e&&!a){zo={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:p,innerHeight:m}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-p}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const v=m-window.innerHeight;v&&l.current>=m&&(document.body.style.top=`${-(l.current+v)}px`)}),300)}},[e]),f=_.useCallback(()=>{if(rw()&&zo!==null&&!a){const p=-parseInt(document.body.style.top,10),m=-parseInt(document.body.style.left,10);Object.assign(document.body.style,zo),window.requestAnimationFrame(()=>{if(o&&i!==window.location.href){s(window.location.href);return}window.scrollTo(m,p)}),zo=null}},[i]);return _.useEffect(()=>{function p(){l.current=window.scrollY}return p(),window.addEventListener("scroll",p),()=>{window.removeEventListener("scroll",p)}},[]),_.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{f()},500)):f())},[e,r,i,t,n,u,f]),{restorePositionSetting:f}}function IU({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:a,shouldScaleBackground:i=!1,setBackgroundColorOnScale:s=!0,closeThreshold:l=NU,scrollLockTimeout:u=TU,dismissible:f=!0,handleOnly:p=!1,fadeFromIndex:m=a&&a.length-1,activeSnapPoint:v,setActiveSnapPoint:g,fixed:h,modal:b=!0,onClose:y,nested:w,noBodyStyles:x,direction:S="bottom",defaultOpen:C=!1,disablePreventScroll:N=!0,snapToSequentialPoint:E=!1,preventScrollRestoration:A=!1,repositionInputs:T=!0,onAnimationEnd:F,container:R,autoFocus:k=!1}){var U,L;const[G=!1,V]=pw({defaultProp:C,prop:e,onChange:se=>{t==null||t(se),!se&&!w&&mt(),setTimeout(()=>{F==null||F(se)},Ie.DURATION*1e3),se&&!b&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),se||(document.body.style.pointerEvents="auto")}}),[B,$]=_.useState(!1),[K,oe]=_.useState(!1),[O,D]=_.useState(!1),j=_.useRef(null),H=_.useRef(null),Y=_.useRef(null),Z=_.useRef(null),I=_.useRef(null),q=_.useRef(!1),J=_.useRef(null),te=_.useRef(0),ne=_.useRef(!1),Q=_.useRef(0),X=_.useRef(null),W=_.useRef(((U=X.current)==null?void 0:U.getBoundingClientRect().height)||0),re=_.useRef(((L=X.current)==null?void 0:L.getBoundingClientRect().width)||0),le=_.useRef(0),pe=_.useCallback(se=>{a&&se===Ae.length-1&&(H.current=new Date)},[]),{activeSnapPoint:fe,activeSnapPointIndex:ce,setActiveSnapPoint:Pe,onRelease:Le,snapPointsOffset:Ae,onDrag:Ue,shouldFade:Ke,getPercentageDragged:st}=RU({snapPoints:a,activeSnapPointProp:v,setActiveSnapPointProp:g,drawerRef:X,fadeFromIndex:m,overlayRef:j,onSnapPointChange:pe,direction:S,container:R,snapToSequentialPoint:E});yU({isDisabled:!G||K||!b||O||!B||!T||!N});const{restorePositionSetting:mt}=DU({isOpen:G,modal:b,nested:w,hasBeenOpened:B,preventScrollRestoration:A,noBodyStyles:x});function Ye(){return(window.innerWidth-gu)/window.innerWidth}function Lr(se){var ve,Se;!f&&!a||X.current&&!X.current.contains(se.target)||(W.current=((ve=X.current)==null?void 0:ve.getBoundingClientRect().height)||0,re.current=((Se=X.current)==null?void 0:Se.getBoundingClientRect().width)||0,oe(!0),Y.current=new Date,ow()&&window.addEventListener("touchend",()=>q.current=!1,{once:!0}),se.target.setPointerCapture(se.pointerId),te.current=ke(S)?se.pageY:se.pageX)}function tn(se,ve){var Se,Ce;let ge=se;const qe=(Se=window.getSelection())==null?void 0:Se.toString(),Fe=X.current?Si(X.current,S):null,Ve=new Date;if(ge.hasAttribute("data-vaul-no-drag")||ge.closest("[data-vaul-no-drag]"))return!1;if(S==="right"||S==="left")return!0;if(H.current&&Ve.getTime()-H.current.getTime()<500)return!1;if(Fe!==null&&(S==="bottom"?Fe>0:Fe<0))return!0;if(qe&&qe.length>0)return!1;if(Ve.getTime()-((Ce=I.current)==null?void 0:Ce.getTime())<u&&Fe===0||ve)return I.current=Ve,!1;for(;ge;){if(ge.scrollHeight>ge.clientHeight){if(ge.scrollTop!==0)return I.current=new Date,!1;if(ge.getAttribute("role")==="dialog")return!0}ge=ge.parentNode}return!0}function Wt(se){if(X.current&&K){const ve=S==="bottom"||S==="right"?1:-1,Se=(te.current-(ke(S)?se.pageY:se.pageX))*ve,Ce=Se>0,ge=a&&!f&&!Ce;if(ge&&ce===0)return;const qe=Math.abs(Se),Fe=document.querySelector("[data-vaul-drawer-wrapper]"),Ve=S==="bottom"||S==="top"?W.current:re.current;let nt=qe/Ve;const nn=st(qe,Ce);if(nn!==null&&(nt=nn),ge&&nt>=1||!q.current&&!tn(se.target,Ce))return;if(X.current.classList.add(bu),q.current=!0,$e(X.current,{transition:"none"}),$e(j.current,{transition:"none"}),a&&Ue({draggedDistance:Se}),Ce&&!a){const Ht=EU(Se),us=Math.min(Ht*-1,0)*ve;$e(X.current,{transform:ke(S)?`translate3d(0, ${us}px, 0)`:`translate3d(${us}px, 0, 0)`});return}const Sn=1-nt;if((Ke||m&&ce===m-1)&&(r==null||r(se,nt),$e(j.current,{opacity:`${Sn}`,transition:"none"},!0)),Fe&&j.current&&i){const Ht=Math.min(Ye()+nt*(1-Ye()),1),us=8-nt*8,YP=Math.max(0,14-nt*14);$e(Fe,{borderRadius:`${us}px`,transform:ke(S)?`scale(${Ht}) translate3d(0, ${YP}px, 0)`:`scale(${Ht}) translate3d(${YP}px, 0, 0)`,transition:"none"},!0)}if(!a){const Ht=qe*ve;$e(X.current,{transform:ke(S)?`translate3d(0, ${Ht}px, 0)`:`translate3d(${Ht}px, 0, 0)`})}}}_.useEffect(()=>{var se;function ve(){if(!X.current||!T)return;const Se=document.activeElement;if(hu(Se)||ne.current){var Ce;const ge=((Ce=window.visualViewport)==null?void 0:Ce.height)||0,qe=window.innerHeight;let Fe=qe-ge;const Ve=X.current.getBoundingClientRect().height||0,nt=Ve>qe*.8;le.current||(le.current=Ve);const nn=X.current.getBoundingClientRect().top;if(Math.abs(Q.current-Fe)>60&&(ne.current=!ne.current),a&&a.length>0&&Ae&&ce){const Sn=Ae[ce]||0;Fe+=Sn}if(Q.current=Fe,Ve>ge||ne.current){const Sn=X.current.getBoundingClientRect().height;let Ht=Sn;Sn>ge&&(Ht=ge-(nt?nn:gu)),h?X.current.style.height=`${Sn-Math.max(Fe,0)}px`:X.current.style.height=`${Math.max(Ht,ge-nn)}px`}else X.current.style.height=`${le.current}px`;a&&a.length>0&&!ne.current?X.current.style.bottom="0px":X.current.style.bottom=`${Math.max(Fe,0)}px`}}return(se=window.visualViewport)==null||se.addEventListener("resize",ve),()=>{var Se;return(Se=window.visualViewport)==null?void 0:Se.removeEventListener("resize",ve)}},[ce,a,Ae]);function Mt(se){tt(),y==null||y(),se||V(!1),setTimeout(()=>{a&&Pe(a[0])},Ie.DURATION*1e3)}function xn(){if(!X.current)return;const se=document.querySelector("[data-vaul-drawer-wrapper]"),ve=Si(X.current,S);$e(X.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Ie.DURATION}s cubic-bezier(${Ie.EASE.join(",")})`}),$e(j.current,{transition:`opacity ${Ie.DURATION}s cubic-bezier(${Ie.EASE.join(",")})`,opacity:"1"}),i&&ve&&ve>0&&G&&$e(se,{borderRadius:`${dw}px`,overflow:"hidden",...ke(S)?{transform:`scale(${Ye()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Ye()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ie.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ie.EASE.join(",")})`},!0)}function tt(){!K||!X.current||(X.current.classList.remove(bu),q.current=!1,oe(!1),Z.current=new Date)}function Xn(se){if(!K||!X.current)return;X.current.classList.remove(bu),q.current=!1,oe(!1),Z.current=new Date;const ve=Si(X.current,S);if(!tn(se.target,!1)||!ve||Number.isNaN(ve)||Y.current===null)return;const Se=Z.current.getTime()-Y.current.getTime(),Ce=te.current-(ke(S)?se.pageY:se.pageX),ge=Math.abs(Ce)/Se;if(ge>.05&&(D(!0),setTimeout(()=>{D(!1)},200)),a){Le({draggedDistance:Ce*(S==="bottom"||S==="right"?1:-1),closeDrawer:Mt,velocity:ge,dismissible:f}),o==null||o(se,!0);return}if(S==="bottom"||S==="right"?Ce>0:Ce<0){xn(),o==null||o(se,!0);return}if(ge>uw){Mt(),o==null||o(se,!1);return}var qe;const Fe=Math.min((qe=X.current.getBoundingClientRect().height)!=null?qe:0,window.innerHeight);var Ve;const nt=Math.min((Ve=X.current.getBoundingClientRect().width)!=null?Ve:0,window.innerWidth),nn=S==="left"||S==="right";if(Math.abs(ve)>=(nn?nt:Fe)*l){Mt(),o==null||o(se,!1);return}o==null||o(se,!0),xn()}_.useEffect(()=>(G&&($e(document.documentElement,{scrollBehavior:"auto"}),H.current=new Date),()=>{_U(document.documentElement,"scrollBehavior")}),[G]);function na(se){const ve=se?(window.innerWidth-zn)/window.innerWidth:1,Se=se?-zn:0;J.current&&window.clearTimeout(J.current),$e(X.current,{transition:`transform ${Ie.DURATION}s cubic-bezier(${Ie.EASE.join(",")})`,transform:`scale(${ve}) translate3d(0, ${Se}px, 0)`}),!se&&X.current&&(J.current=setTimeout(()=>{const Ce=Si(X.current,S);$e(X.current,{transition:"none",transform:ke(S)?`translate3d(0, ${Ce}px, 0)`:`translate3d(${Ce}px, 0, 0)`})},500))}function qd(se,ve){if(ve<0)return;const Se=(window.innerWidth-zn)/window.innerWidth,Ce=Se+ve*(1-Se),ge=-zn+ve*zn;$e(X.current,{transform:ke(S)?`scale(${Ce}) translate3d(0, ${ge}px, 0)`:`scale(${Ce}) translate3d(${ge}px, 0, 0)`,transition:"none"})}function Xd(se,ve){const Se=ke(S)?window.innerHeight:window.innerWidth,Ce=ve?(Se-zn)/Se:1,ge=ve?-zn:0;ve&&$e(X.current,{transition:`transform ${Ie.DURATION}s cubic-bezier(${Ie.EASE.join(",")})`,transform:ke(S)?`scale(${Ce}) translate3d(0, ${ge}px, 0)`:`scale(${Ce}) translate3d(${ge}px, 0, 0)`})}return _.createElement(qr,{defaultOpen:C,onOpenChange:se=>{!f&&!se||(se?$(!0):Mt(!0),V(se))},open:G},_.createElement(tw.Provider,{value:{activeSnapPoint:fe,snapPoints:a,setActiveSnapPoint:Pe,drawerRef:X,overlayRef:j,onOpenChange:t,onPress:Lr,onRelease:Xn,onDrag:Wt,dismissible:f,handleOnly:p,isOpen:G,isDragging:K,shouldFade:Ke,closeDrawer:Mt,onNestedDrag:qd,onNestedOpenChange:na,onNestedRelease:Xd,keyboardIsOpen:ne,modal:b,snapPointsOffset:Ae,direction:S,shouldScaleBackground:i,setBackgroundColorOnScale:s,noBodyStyles:x,container:R,autoFocus:k}},n))}const mw=_.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:a,isOpen:i,modal:s}=Fo(),l=lw(t,n),u=r&&r.length>0;return s?_.createElement(_n,{onMouseUp:o,ref:l,"data-vaul-overlay":"","data-vaul-snap-points":i&&u?"true":"false","data-vaul-snap-points-overlay":i&&a?"true":"false",...e}):(typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),null)});mw.displayName="Drawer.Overlay";const hw=_.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:a,onPress:i,onRelease:s,onDrag:l,keyboardIsOpen:u,snapPointsOffset:f,modal:p,isOpen:m,direction:v,snapPoints:g,container:h,handleOnly:b,autoFocus:y}=Fo(),[w,x]=_.useState(!1),S=lw(o,a),C=_.useRef(null),N=_.useRef(null),E=_.useRef(!1),A=g&&g.length>0;AU();const T=(R,k,U=0)=>{if(E.current)return!0;const L=Math.abs(R.y),G=Math.abs(R.x),V=G>L,B=["bottom","right"].includes(k)?1:-1;if(k==="left"||k==="right"){if(!(R.x*B<0)&&G>=0&&G<=U)return V}else if(!(R.y*B<0)&&L>=0&&L<=U)return!V;return E.current=!0,!0};_.useEffect(()=>{A&&window.requestAnimationFrame(()=>{x(!0)})},[]);function F(R){C.current=null,E.current=!1,s(R)}return _.createElement(En,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":w?"true":"false","data-vaul-snap-points":m&&A?"true":"false","data-vaul-custom-container":h?"true":"false",...r,ref:S,style:f&&f.length>0?{"--snap-point-height":`${f[0]}px`,...t}:t,onPointerDown:R=>{b||(r.onPointerDown==null||r.onPointerDown.call(r,R),C.current={x:R.pageX,y:R.pageY},i(R))},onOpenAutoFocus:R=>{n==null||n(R),y||R.preventDefault()},onPointerDownOutside:R=>{if(e==null||e(R),!p||R.defaultPrevented){R.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:R=>{if(!p){R.preventDefault();return}},onPointerMove:R=>{if(N.current=R,b||(r.onPointerMove==null||r.onPointerMove.call(r,R),!C.current))return;const k=R.pageY-C.current.y,U=R.pageX-C.current.x,L=R.pointerType==="touch"?10:2;T({x:U,y:k},v,L)?l(R):(Math.abs(U)>L||Math.abs(k)>L)&&(C.current=null)},onPointerUp:R=>{r.onPointerUp==null||r.onPointerUp.call(r,R),C.current=null,E.current=!1,s(R)},onPointerOut:R=>{r.onPointerOut==null||r.onPointerOut.call(r,R),F(N.current)},onContextMenu:R=>{r.onContextMenu==null||r.onContextMenu.call(r,R),F(N.current)}})});hw.displayName="Drawer.Content";const jU=250,$U=120,kU=_.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:a,snapPoints:i,activeSnapPoint:s,setActiveSnapPoint:l,dismissible:u,handleOnly:f,isOpen:p,onPress:m,onDrag:v}=Fo(),g=_.useRef(null),h=_.useRef(!1);function b(){if(h.current){x();return}window.setTimeout(()=>{y()},$U)}function y(){if(a||e||h.current){x();return}if(x(),(!i||i.length===0)&&u){o();return}if(s===i[i.length-1]&&u){o();return}const C=i.findIndex(E=>E===s);if(C===-1)return;const N=i[C+1];l(N)}function w(){g.current=window.setTimeout(()=>{h.current=!0},jU)}function x(){window.clearTimeout(g.current),h.current=!1}return _.createElement("div",{onClick:b,onPointerCancel:x,onPointerDown:S=>{f&&m(S),w()},onPointerMove:S=>{f&&v(S)},ref:r,"data-vaul-drawer-visible":p?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},_.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});kU.displayName="Drawer.Handle";function LU(e){const t=Fo(),{container:n=t.container,...r}=e;return _.createElement(Xr,{container:n,...r})}const Pt={Root:IU,Content:hw,Overlay:mw,Trigger:_a,Portal:LU,Close:Pn,Title:ar,Description:ir},vw=({shouldScaleBackground:e=!0,...t})=>d.jsx(Pt.Root,{shouldScaleBackground:e,...t});vw.displayName="Drawer";const FU=Pt.Trigger,gw=Pt.Portal,BU=Pt.Close,yu=c.forwardRef(({className:e,...t},n)=>d.jsx(Pt.Overlay,{ref:n,className:M("fixed inset-0 z-50 bg-black/80",e),...t}));yu.displayName=Pt.Overlay.displayName;const bw=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(gw,{children:[d.jsx(yu,{}),d.jsxs(Pt.Content,{ref:r,className:M("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[d.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));bw.displayName="DrawerContent";const yw=({className:e,...t})=>d.jsx("div",{className:M("grid gap-1.5 p-4 text-center sm:text-left",e),...t});yw.displayName="DrawerHeader";const ww=({className:e,...t})=>d.jsx("div",{className:M("mt-auto flex flex-col gap-2 p-4",e),...t});ww.displayName="DrawerFooter";const xw=c.forwardRef(({className:e,...t},n)=>d.jsx(Pt.Title,{ref:n,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));xw.displayName=Pt.Title.displayName;const Sw=c.forwardRef(({className:e,...t},n)=>d.jsx(Pt.Description,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));Sw.displayName=Pt.Description.displayName;var Ci="DropdownMenu",[zU]=Te(Ci,[Io]),We=Io(),[WU,Cw]=zU(Ci),_w=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=We(t),u=c.useRef(null),[f,p]=_e({prop:o,defaultProp:a??!1,onChange:i,caller:Ci});return d.jsx(WU,{scope:t,triggerId:xe(),triggerRef:u,contentId:xe(),open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(m=>!m),[p]),modal:s,children:d.jsx(qc,{...l,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};_w.displayName=Ci;var Ew="DropdownMenuTrigger",Pw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Cw(Ew,n),i=We(n);return d.jsx(Xc,{asChild:!0,...i,children:d.jsx(ee.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Be(t,a.triggerRef),onPointerDown:z(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:z(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Pw.displayName=Ew;var HU="DropdownMenuPortal",Nw=e=>{const{__scopeDropdownMenu:t,...n}=e,r=We(t);return d.jsx(Zc,{...r,...n})};Nw.displayName=HU;var Tw="DropdownMenuContent",Mw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Cw(Tw,n),a=We(n),i=c.useRef(!1);return d.jsx(Qc,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:z(e.onCloseAutoFocus,s=>{var l;i.current||(l=o.triggerRef.current)==null||l.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:z(e.onInteractOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!o.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)"}})});Mw.displayName=Tw;var VU="DropdownMenuGroup",Rw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(Jc,{...o,...r,ref:t})});Rw.displayName=VU;var GU="DropdownMenuLabel",Ow=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(eu,{...o,...r,ref:t})});Ow.displayName=GU;var UU="DropdownMenuItem",Aw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(tu,{...o,...r,ref:t})});Aw.displayName=UU;var KU="DropdownMenuCheckboxItem",Dw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(nu,{...o,...r,ref:t})});Dw.displayName=KU;var YU="DropdownMenuRadioGroup",Iw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(ru,{...o,...r,ref:t})});Iw.displayName=YU;var qU="DropdownMenuRadioItem",jw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(ou,{...o,...r,ref:t})});jw.displayName=qU;var XU="DropdownMenuItemIndicator",$w=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(au,{...o,...r,ref:t})});$w.displayName=XU;var ZU="DropdownMenuSeparator",kw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(iu,{...o,...r,ref:t})});kw.displayName=ZU;var QU="DropdownMenuArrow",JU=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(su,{...o,...r,ref:t})});JU.displayName=QU;var eK=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=We(t),[s,l]=_e({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return d.jsx(lu,{...i,open:s,onOpenChange:l,children:n})},tK="DropdownMenuSubTrigger",Lw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(cu,{...o,...r,ref:t})});Lw.displayName=tK;var nK="DropdownMenuSubContent",Fw=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=We(n);return d.jsx(uu,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Fw.displayName=nK;var rK=_w,oK=Pw,Bw=Nw,zw=Mw,aK=Rw,Ww=Ow,Hw=Aw,Vw=Dw,iK=Iw,Gw=jw,Uw=$w,Kw=kw,sK=eK,Yw=Lw,qw=Fw;const lK=rK,cK=oK,uK=aK,dK=Bw,fK=sK,pK=iK,Xw=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(Yw,{ref:o,className:M("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,d.jsx(Jn,{className:"ml-auto"})]}));Xw.displayName=Yw.displayName;const Zw=c.forwardRef(({className:e,...t},n)=>d.jsx(qw,{ref:n,className:M("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 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));Zw.displayName=qw.displayName;const Qw=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(Bw,{children:d.jsx(zw,{ref:r,sideOffset:t,className:M("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));Qw.displayName=zw.displayName;const Jw=c.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(Hw,{ref:r,className:M("relative flex cursor-default select-none items-center gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n}));Jw.displayName=Hw.displayName;const ex=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs(Vw,{ref:o,className:M("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,...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Uw,{children:d.jsx(Ur,{className:"h-4 w-4"})})}),t]}));ex.displayName=Vw.displayName;const tx=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Gw,{ref:r,className:M("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:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Uw,{children:d.jsx(fa,{className:"h-2 w-2 fill-current"})})}),t]}));tx.displayName=Gw.displayName;const nx=c.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(Ww,{ref:r,className:M("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));nx.displayName=Ww.displayName;const rx=c.forwardRef(({className:e,...t},n)=>d.jsx(Kw,{ref:n,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));rx.displayName=Kw.displayName;const ox=({className:e,...t})=>d.jsx("span",{className:M("ml-auto text-xs tracking-widest opacity-60",e),...t});ox.displayName="DropdownMenuShortcut";var mK=e=>e.type==="checkbox",Wo=e=>e instanceof Date,wu=e=>e==null;const ax=e=>typeof e=="object";var Wn=e=>!wu(e)&&!Array.isArray(e)&&ax(e)&&!Wo(e),hK=e=>Wn(e)&&e.target?mK(e.target)?e.target.checked:e.target.value:e,vK=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,gK=(e,t)=>e.has(vK(t)),bK=e=>{const t=e.constructor&&e.constructor.prototype;return Wn(t)&&t.hasOwnProperty("isPrototypeOf")},yK=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ix(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(yK&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Wn(e)&&bK(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=ix(e[o]));return r}var sx=e=>/^\w*$/.test(e),xu=e=>e===void 0,wK=e=>Array.isArray(e)?e.filter(Boolean):[],lx=e=>wK(e.replace(/["|']|\]/g,"").split(/\.|\[/)),et=(e,t,n)=>{if(!t||!Wn(e))return n;const r=(sx(t)?[t]:lx(t)).reduce((o,a)=>wu(o)?o:o[a],e);return xu(r)||r===e?xu(e[t])?n:e[t]:r},Su=e=>typeof e=="boolean",_i=e=>typeof e=="function",cx=(e,t,n)=>{let r=-1;const o=sx(t)?[t]:lx(t),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let l=n;if(r!==i){const u=e[s];l=Wn(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const ux={BLUR:"blur",CHANGE:"change"},dx={all:"all"},Cu=_.createContext(null);Cu.displayName="HookFormContext";const Ei=()=>_.useContext(Cu),xK=e=>{const{children:t,...n}=e;return _.createElement(Cu.Provider,{value:n},t)};var SK=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==dx.all&&(t._proxyFormState[i]=!r||dx.all),n&&(n[i]=!0),e[i]}});return o};const fx=typeof window<"u"?_.useLayoutEffect:_.useEffect;function CK(e){const t=Ei(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[i,s]=_.useState(n._formState),l=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return fx(()=>n._subscribe({name:o,formState:l.current,exact:a,callback:u=>{!r&&s({...n._formState,...u})}}),[o,r,a]),_.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),_.useMemo(()=>SK(i,n,l.current,!1),[i,n])}var _K=e=>typeof e=="string",px=(e,t,n,r,o)=>_K(e)?et(n,e,o):Array.isArray(e)?e.map(a=>et(n,a)):n,mx=e=>wu(e)||!ax(e);function Pi(e,t,n=new WeakSet){if(mx(e)||mx(t))return Object.is(e,t);if(Wo(e)&&Wo(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=t[a];if(Wo(i)&&Wo(s)||Wn(i)&&Wn(s)||Array.isArray(i)&&Array.isArray(s)?!Pi(i,s,n):!Object.is(i,s))return!1}}return!0}function EK(e){const t=Ei(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},l=_.useRef(o),u=_.useRef(s),f=_.useRef(void 0),p=_.useRef(n),m=_.useRef(r);u.current=s;const[v,g]=_.useState(()=>{const S=n._getWatch(r,l.current);return u.current?u.current(S):S}),h=_.useCallback(S=>{const C=px(r,n._names,S||n._formValues,!1,l.current);return u.current?u.current(C):C},[n._formValues,n._names,r]),b=_.useCallback(S=>{if(!a){const C=px(r,n._names,S||n._formValues,!1,l.current);if(u.current){const N=u.current(C);Pi(N,f.current)||(g(N),f.current=N)}else g(C)}},[n._formValues,n._names,a,r]);fx(()=>((p.current!==n||!Pi(m.current,r))&&(p.current=n,m.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:i,callback:S=>{b(S.values)}})),[n,i,r,b]),_.useEffect(()=>n._removeUnmounted());const y=p.current!==n,w=m.current,x=_.useMemo(()=>{if(a)return null;const S=!y&&!Pi(w,r);return y||S?h():null},[a,y,r,w,h]);return x!==null?x:v}function PK(e){const t=Ei(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a,defaultValue:i,exact:s=!0}=e,l=gK(o._names.array,n),u=_.useMemo(()=>et(o._formValues,n,et(o._defaultValues,n,i)),[o,n,i]),f=EK({control:o,name:n,defaultValue:u,exact:s}),p=CK({control:o,name:n,exact:s}),m=_.useRef(e),v=_.useRef(void 0),g=_.useRef(o.register(n,{...e.rules,value:f,...Su(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const h=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!et(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!et(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!et(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!et(p.validatingFields,n)},error:{enumerable:!0,get:()=>et(p.errors,n)}}),[p,n]),b=_.useCallback(S=>g.current.onChange({target:{value:hK(S),name:n},type:ux.CHANGE}),[n]),y=_.useCallback(()=>g.current.onBlur({target:{value:et(o._formValues,n),name:n},type:ux.BLUR}),[n,o._formValues]),w=_.useCallback(S=>{const C=et(o._fields,n);C&&C._f&&S&&(C._f.ref={focus:()=>_i(S.focus)&&S.focus(),select:()=>_i(S.select)&&S.select(),setCustomValidity:N=>_i(S.setCustomValidity)&&S.setCustomValidity(N),reportValidity:()=>_i(S.reportValidity)&&S.reportValidity()})},[o._fields,n]),x=_.useMemo(()=>({name:n,value:f,...Su(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:b,onBlur:y,ref:w}),[n,r,p.disabled,b,y,w,f]);return _.useEffect(()=>{const S=o._options.shouldUnregister||a,C=v.current;C&&C!==n&&!l&&o.unregister(C),o.register(n,{...m.current.rules,...Su(m.current.disabled)?{disabled:m.current.disabled}:{}});const N=(E,A)=>{const T=et(o._fields,E);T&&T._f&&(T._f.mount=A)};if(N(n,!0),S){const E=ix(et(o._options.defaultValues,n,m.current.defaultValue));cx(o._defaultValues,n,E),xu(et(o._formValues,n))&&cx(o._formValues,n,E)}return!l&&o.register(n),v.current=n,()=>{(l?S&&!o._state.action:S)?o.unregister(n):N(n,!1)}},[n,o,l,a]),_.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),_.useMemo(()=>({field:x,formState:p,fieldState:h}),[x,p,h])}const NK=e=>e.render(PK(e));var TK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],MK=TK.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),RK="Label",hx=c.forwardRef((e,t)=>d.jsx(MK.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));hx.displayName=RK;var vx=hx;const OK=qt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),_u=c.forwardRef(({className:e,...t},n)=>d.jsx(vx,{ref:n,className:M(OK(),e),...t}));_u.displayName=vx.displayName;const AK=xK,gx=c.createContext({}),DK=({...e})=>d.jsx(gx.Provider,{value:{name:e.name},children:d.jsx(NK,{...e})}),Ho=()=>{const e=c.useContext(gx),t=c.useContext(bx),{getFieldState:n,formState:r}=Ei(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},bx=c.createContext({}),yx=c.forwardRef(({className:e,...t},n)=>{const r=c.useId();return d.jsx(bx.Provider,{value:{id:r},children:d.jsx("div",{ref:n,className:M("space-y-2",e),...t})})});yx.displayName="FormItem";const wx=c.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=Ho();return d.jsx(_u,{ref:n,className:M(r&&"text-destructive",e),htmlFor:o,...t})});wx.displayName="FormLabel";const xx=c.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=Ho();return d.jsx(sn,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})});xx.displayName="FormControl";const Sx=c.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=Ho();return d.jsx("p",{ref:n,id:r,className:M("text-sm text-muted-foreground",e),...t})});Sx.displayName="FormDescription";const Cx=c.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=Ho(),i=o?String((o==null?void 0:o.message)??""):t;return i?d.jsx("p",{ref:r,id:a,className:M("text-sm font-medium text-destructive",e),...n,children:i}):null});Cx.displayName="FormMessage";var Eu,Ni="HoverCard",[_x]=Te(Ni,[Ft]),Ti=Ft(),[IK,Pu]=_x(Ni),Ex=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:s=300}=e,l=Ti(t),u=c.useRef(0),f=c.useRef(0),p=c.useRef(!1),m=c.useRef(!1),[v,g]=_e({prop:r,defaultProp:o??!1,onChange:a,caller:Ni}),h=c.useCallback(()=>{clearTimeout(f.current),u.current=window.setTimeout(()=>g(!0),i)},[i,g]),b=c.useCallback(()=>{clearTimeout(u.current),!p.current&&!m.current&&(f.current=window.setTimeout(()=>g(!1),s))},[s,g]),y=c.useCallback(()=>g(!1),[g]);return c.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(f.current)},[]),d.jsx(IK,{scope:t,open:v,onOpenChange:g,onOpen:h,onClose:b,onDismiss:y,hasSelectionRef:p,isPointerDownOnContentRef:m,children:d.jsx(Pr,{...l,children:n})})};Ex.displayName=Ni;var Px="HoverCardTrigger",Nx=c.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Pu(Px,n),a=Ti(n);return d.jsx(Nr,{asChild:!0,...a,children:d.jsx(ee.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:z(e.onPointerEnter,Ri(o.onOpen)),onPointerLeave:z(e.onPointerLeave,Ri(o.onClose)),onFocus:z(e.onFocus,o.onOpen),onBlur:z(e.onBlur,o.onClose),onTouchStart:z(e.onTouchStart,i=>i.preventDefault())})})});Nx.displayName=Px;var jK="HoverCardPortal",[Uq,$K]=_x(jK,{forceMount:void 0}),Mi="HoverCardContent",Tx=c.forwardRef((e,t)=>{const n=$K(Mi,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=Pu(Mi,e.__scopeHoverCard);return d.jsx(Re,{present:r||a.open,children:d.jsx(kK,{"data-state":a.open?"open":"closed",...o,onPointerEnter:z(e.onPointerEnter,Ri(a.onOpen)),onPointerLeave:z(e.onPointerLeave,Ri(a.onClose)),ref:t})})});Tx.displayName=Mi;var kK=c.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...s}=e,l=Pu(Mi,n),u=Ti(n),f=c.useRef(null),p=ae(t,f),[m,v]=c.useState(!1);return c.useEffect(()=>{if(m){const g=document.body;return Eu=g.style.userSelect||g.style.webkitUserSelect,g.style.userSelect="none",g.style.webkitUserSelect="none",()=>{g.style.userSelect=Eu,g.style.webkitUserSelect=Eu}}},[m]),c.useEffect(()=>{if(f.current){const g=()=>{v(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var b;((b=document.getSelection())==null?void 0:b.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",g),()=>{document.removeEventListener("pointerup",g),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),c.useEffect(()=>{f.current&&BK(f.current).forEach(h=>h.setAttribute("tabindex","-1"))}),d.jsx(Kt,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:z(a,g=>{g.preventDefault()}),onDismiss:l.onDismiss,children:d.jsx(No,{...u,...s,onPointerDown:z(s.onPointerDown,g=>{g.currentTarget.contains(g.target)&&v(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:p,style:{...s.style,userSelect:m?"text":void 0,WebkitUserSelect:m?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),LK="HoverCardArrow",FK=c.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Ti(n);return d.jsx(To,{...o,...r,ref:t})});FK.displayName=LK;function Ri(e){return t=>t.pointerType==="touch"?void 0:e()}function BK(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var zK=Ex,WK=Nx,Mx=Tx;const HK=zK,VK=WK,Rx=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>d.jsx(Mx,{ref:o,align:t,sideOffset:n,className:M("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-hover-card-content-transform-origin]",e),...r}));Rx.displayName=Mx.displayName;var GK=Object.defineProperty,UK=Object.defineProperties,KK=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,Ox=Object.prototype.hasOwnProperty,Ax=Object.prototype.propertyIsEnumerable,Dx=(e,t,n)=>t in e?GK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YK=(e,t)=>{for(var n in t||(t={}))Ox.call(t,n)&&Dx(e,n,t[n]);if(Oi)for(var n of Oi(t))Ax.call(t,n)&&Dx(e,n,t[n]);return e},qK=(e,t)=>UK(e,KK(t)),XK=(e,t)=>{var n={};for(var r in e)Ox.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Oi)for(var r of Oi(e))t.indexOf(r)<0&&Ax.call(e,r)&&(n[r]=e[r]);return n};function ZK(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function QK(e){let t=c.useRef();return c.useEffect(()=>{t.current=e}),t.current}var JK=18,Ix=40,eY=`${Ix}px`,tY=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function nY({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,a]=c.useState(!1),[i,s]=c.useState(!1),[l,u]=c.useState(!1),f=c.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&i,[o,i,n]),p=c.useCallback(()=>{let m=e.current,v=t.current;if(!m||!v||l||n==="none")return;let g=m,h=g.getBoundingClientRect().left+g.offsetWidth,b=g.getBoundingClientRect().top+g.offsetHeight/2,y=h-JK,w=b;document.querySelectorAll(tY).length===0&&document.elementFromPoint(y,w)===m||(a(!0),u(!0))},[e,t,l,n]);return c.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function v(){let h=window.innerWidth-m.getBoundingClientRect().right;s(h>=Ix)}v();let g=setInterval(v,1e3);return()=>{clearInterval(g)}},[e,n]),c.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let v=setTimeout(p,0),g=setTimeout(p,2e3),h=setTimeout(p,5e3),b=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(v),clearTimeout(g),clearTimeout(h),clearTimeout(b)}},[t,r,n,p]),{hasPWMBadge:o,willPushPWMBadge:f,PWM_BADGE_SPACE_WIDTH:eY}}var jx=c.createContext({}),$x=c.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:a,textAlign:i="left",pattern:s,placeholder:l,inputMode:u="numeric",onComplete:f,pushPasswordManagerStrategy:p="increase-width",pasteTransformer:m,containerClassName:v,noScriptCSSFallback:g=rY,render:h,children:b}=n,y=XK(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,x,S,C,N;let[E,A]=c.useState(typeof y.defaultValue=="string"?y.defaultValue:""),T=r??E,F=QK(T),R=c.useCallback(W=>{o==null||o(W),A(W)},[o]),k=c.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),U=c.useRef(null),L=c.useRef(null),G=c.useRef({value:T,onChange:R,isIOS:typeof window<"u"&&((x=(w=window==null?void 0:window.CSS)==null?void 0:w.supports)==null?void 0:x.call(w,"-webkit-touch-callout","none"))}),V=c.useRef({prev:[(S=U.current)==null?void 0:S.selectionStart,(C=U.current)==null?void 0:C.selectionEnd,(N=U.current)==null?void 0:N.selectionDirection]});c.useImperativeHandle(t,()=>U.current,[]),c.useEffect(()=>{let W=U.current,re=L.current;if(!W||!re)return;G.current.value!==W.value&&G.current.onChange(W.value),V.current.prev=[W.selectionStart,W.selectionEnd,W.selectionDirection];function le(){if(document.activeElement!==W){D(null),H(null);return}let ce=W.selectionStart,Pe=W.selectionEnd,Le=W.selectionDirection,Ae=W.maxLength,Ue=W.value,Ke=V.current.prev,st=-1,mt=-1,Ye;if(Ue.length!==0&&ce!==null&&Pe!==null){let Mt=ce===Pe,xn=ce===Ue.length&&Ue.length<Ae;if(Mt&&!xn){let tt=ce;if(tt===0)st=0,mt=1,Ye="forward";else if(tt===Ae)st=tt-1,mt=tt,Ye="backward";else if(Ae>1&&Ue.length>1){let Xn=0;if(Ke[0]!==null&&Ke[1]!==null){Ye=tt<Ke[1]?"backward":"forward";let na=Ke[0]===Ke[1]&&Ke[0]<Ae;Ye==="backward"&&!na&&(Xn=-1)}st=Xn+tt,mt=Xn+tt+1}}st!==-1&&mt!==-1&&st!==mt&&U.current.setSelectionRange(st,mt,Ye)}let Lr=st!==-1?st:ce,tn=mt!==-1?mt:Pe,Wt=Ye??Le;D(Lr),H(tn),V.current.prev=[Lr,tn,Wt]}if(document.addEventListener("selectionchange",le,{capture:!0}),le(),document.activeElement===W&&oe(!0),!document.getElementById("input-otp-style")){let ce=document.createElement("style");if(ce.id="input-otp-style",document.head.appendChild(ce),ce.sheet){let Pe="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Vo(ce.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Vo(ce.sheet,`[data-input-otp]:autofill { ${Pe} }`),Vo(ce.sheet,`[data-input-otp]:-webkit-autofill { ${Pe} }`),Vo(ce.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Vo(ce.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let pe=()=>{re&&re.style.setProperty("--root-height",`${W.clientHeight}px`)};pe();let fe=new ResizeObserver(pe);return fe.observe(W),()=>{document.removeEventListener("selectionchange",le,{capture:!0}),fe.disconnect()}},[]);let[B,$]=c.useState(!1),[K,oe]=c.useState(!1),[O,D]=c.useState(null),[j,H]=c.useState(null);c.useEffect(()=>{ZK(()=>{var W,re,le,pe;(W=U.current)==null||W.dispatchEvent(new Event("input"));let fe=(re=U.current)==null?void 0:re.selectionStart,ce=(le=U.current)==null?void 0:le.selectionEnd,Pe=(pe=U.current)==null?void 0:pe.selectionDirection;fe!==null&&ce!==null&&(D(fe),H(ce),V.current.prev=[fe,ce,Pe])})},[T,K]),c.useEffect(()=>{F!==void 0&&T!==F&&F.length<a&&T.length===a&&(f==null||f(T))},[a,f,F,T]);let Y=nY({containerRef:L,inputRef:U,pushPasswordManagerStrategy:p,isFocused:K}),Z=c.useCallback(W=>{let re=W.currentTarget.value.slice(0,a);if(re.length>0&&k&&!k.test(re)){W.preventDefault();return}typeof F=="string"&&re.length<F.length&&document.dispatchEvent(new Event("selectionchange")),R(re)},[a,R,F,k]),I=c.useCallback(()=>{var W;if(U.current){let re=Math.min(U.current.value.length,a-1),le=U.current.value.length;(W=U.current)==null||W.setSelectionRange(re,le),D(re),H(le)}oe(!0)},[a]),q=c.useCallback(W=>{var re,le;let pe=U.current;if(!m&&(!G.current.isIOS||!W.clipboardData||!pe))return;let fe=W.clipboardData.getData("text/plain"),ce=m?m(fe):fe;W.preventDefault();let Pe=(re=U.current)==null?void 0:re.selectionStart,Le=(le=U.current)==null?void 0:le.selectionEnd,Ae=(Pe!==Le?T.slice(0,Pe)+ce+T.slice(Le):T.slice(0,Pe)+ce+T.slice(Pe)).slice(0,a);if(Ae.length>0&&k&&!k.test(Ae))return;pe.value=Ae,R(Ae);let Ue=Math.min(Ae.length,a-1),Ke=Ae.length;pe.setSelectionRange(Ue,Ke),D(Ue),H(Ke)},[a,R,k,T]),J=c.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),te=c.useMemo(()=>({position:"absolute",inset:0,width:Y.willPushPWMBadge?`calc(100% + ${Y.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Y.willPushPWMBadge?`inset(0 ${Y.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:i,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Y.PWM_BADGE_SPACE_WIDTH,Y.willPushPWMBadge,i]),ne=c.useMemo(()=>c.createElement("input",qK(YK({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":T.length===0||void 0,"data-input-otp-mss":O,"data-input-otp-mse":j,inputMode:u,pattern:k==null?void 0:k.source,"aria-placeholder":l,style:te,maxLength:a,value:T,ref:U,onPaste:W=>{var re;q(W),(re=y.onPaste)==null||re.call(y,W)},onChange:Z,onMouseOver:W=>{var re;$(!0),(re=y.onMouseOver)==null||re.call(y,W)},onMouseLeave:W=>{var re;$(!1),(re=y.onMouseLeave)==null||re.call(y,W)},onFocus:W=>{var re;I(),(re=y.onFocus)==null||re.call(y,W)},onBlur:W=>{var re;oe(!1),(re=y.onBlur)==null||re.call(y,W)}})),[Z,I,q,u,te,a,j,O,y,k==null?void 0:k.source,T]),Q=c.useMemo(()=>({slots:Array.from({length:a}).map((W,re)=>{var le;let pe=K&&O!==null&&j!==null&&(O===j&&re===O||re>=O&&re<j),fe=T[re]!==void 0?T[re]:null,ce=T[0]!==void 0?null:(le=l==null?void 0:l[re])!=null?le:null;return{char:fe,placeholderChar:ce,isActive:pe,hasFakeCaret:pe&&fe===null}}),isFocused:K,isHovering:!y.disabled&&B}),[K,B,a,j,O,y.disabled,T]),X=c.useMemo(()=>h?h(Q):c.createElement(jx.Provider,{value:Q},b),[b,Q,h]);return c.createElement(c.Fragment,null,g!==null&&c.createElement("noscript",null,c.createElement("style",null,g)),c.createElement("div",{ref:L,"data-input-otp-container":!0,style:J,className:v},X,c.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ne)))});$x.displayName="Input";function Vo(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var rY=`
|
|
202
|
+
[data-input-otp] {
|
|
203
|
+
--nojs-bg: white !important;
|
|
204
|
+
--nojs-fg: black !important;
|
|
205
|
+
|
|
206
|
+
background-color: var(--nojs-bg) !important;
|
|
207
|
+
color: var(--nojs-fg) !important;
|
|
208
|
+
caret-color: var(--nojs-fg) !important;
|
|
209
|
+
letter-spacing: .25em !important;
|
|
210
|
+
text-align: center !important;
|
|
211
|
+
border: 1px solid var(--nojs-fg) !important;
|
|
212
|
+
border-radius: 4px !important;
|
|
213
|
+
width: 100% !important;
|
|
214
|
+
}
|
|
215
|
+
@media (prefers-color-scheme: dark) {
|
|
216
|
+
[data-input-otp] {
|
|
217
|
+
--nojs-bg: black !important;
|
|
218
|
+
--nojs-fg: white !important;
|
|
219
|
+
}
|
|
220
|
+
}`;const kx=c.forwardRef(({className:e,containerClassName:t,...n},r)=>d.jsx($x,{ref:r,containerClassName:M("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:M("disabled:cursor-not-allowed",e),...n}));kx.displayName="InputOTP";const Lx=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:M("flex items-center",e),...t}));Lx.displayName="InputOTPGroup";const Fx=c.forwardRef(({index:e,className:t,...n},r)=>{const o=c.useContext(jx),{char:a,hasFakeCaret:i,isActive:s}=o.slots[e];return d.jsxs("div",{ref:r,className:M("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",s&&"z-10 ring-2 ring-ring ring-offset-background",t),...n,children:[a,i&&d.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:d.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Fx.displayName="InputOTPSlot";const Bx=c.forwardRef(({...e},t)=>d.jsx("div",{ref:t,role:"separator",...e,children:d.jsx(ST,{})}));Bx.displayName="InputOTPSeparator";const Nu=c.forwardRef(({className:e,type:t,...n},r)=>d.jsx("input",{type:t,className:M("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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 md:text-sm",e),ref:r,...n}));Nu.displayName="Input";var Go="Menubar",[Tu,oY,aY]=Ut(Go),[zx]=Te(Go,[aY,Bt]),He=Io(),Wx=Bt(),[iY,Mu]=zx(Go),Hx=c.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:a,loop:i=!0,dir:s,...l}=e,u=ht(s),f=Wx(n),[p,m]=_e({prop:r,onChange:o,defaultProp:a??"",caller:Go}),[v,g]=c.useState(null);return d.jsx(iY,{scope:n,value:p,onMenuOpen:c.useCallback(h=>{m(h),g(h)},[m]),onMenuClose:c.useCallback(()=>m(""),[m]),onMenuToggle:c.useCallback(h=>{m(b=>b?"":h),g(h)},[m]),dir:u,loop:i,children:d.jsx(Tu.Provider,{scope:n,children:d.jsx(Tu.Slot,{scope:n,children:d.jsx(Ro,{asChild:!0,...f,orientation:"horizontal",loop:i,dir:u,currentTabStopId:v,onCurrentTabStopIdChange:g,children:d.jsx(ee.div,{role:"menubar",...l,ref:t})})})})})});Hx.displayName=Go;var Ru="MenubarMenu",[sY,Vx]=zx(Ru),Gx=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=xe(),a=n||o||"LEGACY_REACT_AUTO_VALUE",i=Mu(Ru,t),s=He(t),l=c.useRef(null),u=c.useRef(!1),f=i.value===a;return c.useEffect(()=>{f||(u.current=!1)},[f]),d.jsx(sY,{scope:t,value:a,triggerId:xe(),triggerRef:l,contentId:xe(),wasKeyboardTriggerOpenRef:u,children:d.jsx(qc,{...s,open:f,onOpenChange:p=>{p||i.onMenuClose()},modal:!1,dir:i.dir,...r})})};Gx.displayName=Ru;var Ou="MenubarTrigger",Ux=c.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,a=Wx(n),i=He(n),s=Mu(Ou,n),l=Vx(Ou,n),u=c.useRef(null),f=ae(t,u,l.triggerRef),[p,m]=c.useState(!1),v=s.value===l.value;return d.jsx(Tu.ItemSlot,{scope:n,value:l.value,disabled:r,children:d.jsx(Oo,{asChild:!0,...a,focusable:!r,tabStopId:l.value,children:d.jsx(Xc,{asChild:!0,...i,children:d.jsx(ee.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":v?l.contentId:void 0,"data-highlighted":p?"":void 0,"data-state":v?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:f,onPointerDown:z(e.onPointerDown,g=>{!r&&g.button===0&&g.ctrlKey===!1&&(s.onMenuOpen(l.value),v||g.preventDefault())}),onPointerEnter:z(e.onPointerEnter,()=>{var h;!!s.value&&!v&&(s.onMenuOpen(l.value),(h=u.current)==null||h.focus())}),onKeyDown:z(e.onKeyDown,g=>{r||(["Enter"," "].includes(g.key)&&s.onMenuToggle(l.value),g.key==="ArrowDown"&&s.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(g.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,g.preventDefault()))}),onFocus:z(e.onFocus,()=>m(!0)),onBlur:z(e.onBlur,()=>m(!1))})})})})});Ux.displayName=Ou;var lY="MenubarPortal",Kx=e=>{const{__scopeMenubar:t,...n}=e,r=He(t);return d.jsx(Zc,{...r,...n})};Kx.displayName=lY;var Au="MenubarContent",Yx=c.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,a=He(n),i=Mu(Au,n),s=Vx(Au,n),l=oY(n),u=c.useRef(!1);return d.jsx(Qc,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":"",...a,...o,ref:t,align:r,onCloseAutoFocus:z(e.onCloseAutoFocus,f=>{var m;!!!i.value&&!u.current&&((m=s.triggerRef.current)==null||m.focus()),u.current=!1,f.preventDefault()}),onFocusOutside:z(e.onFocusOutside,f=>{const p=f.target;l().some(v=>{var g;return(g=v.ref.current)==null?void 0:g.contains(p)})&&f.preventDefault()}),onInteractOutside:z(e.onInteractOutside,()=>{u.current=!0}),onEntryFocus:f=>{s.wasKeyboardTriggerOpenRef.current||f.preventDefault()},onKeyDown:z(e.onKeyDown,f=>{if(["ArrowRight","ArrowLeft"].includes(f.key)){const p=f.target,m=p.hasAttribute("data-radix-menubar-subtrigger"),v=p.closest("[data-radix-menubar-content]")!==f.currentTarget,h=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===f.key;if(!h&&m||v&&h)return;let w=l().filter(C=>!C.disabled).map(C=>C.value);h&&w.reverse();const x=w.indexOf(s.value);w=i.loop?xY(w,x+1):w.slice(x+1);const[S]=w;S&&i.onMenuOpen(S)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});Yx.displayName=Au;var cY="MenubarGroup",qx=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(Jc,{...o,...r,ref:t})});qx.displayName=cY;var uY="MenubarLabel",Xx=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(eu,{...o,...r,ref:t})});Xx.displayName=uY;var dY="MenubarItem",Zx=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(tu,{...o,...r,ref:t})});Zx.displayName=dY;var fY="MenubarCheckboxItem",Qx=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(nu,{...o,...r,ref:t})});Qx.displayName=fY;var pY="MenubarRadioGroup",Jx=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(ru,{...o,...r,ref:t})});Jx.displayName=pY;var mY="MenubarRadioItem",eS=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(ou,{...o,...r,ref:t})});eS.displayName=mY;var hY="MenubarItemIndicator",tS=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(au,{...o,...r,ref:t})});tS.displayName=hY;var vY="MenubarSeparator",nS=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(iu,{...o,...r,ref:t})});nS.displayName=vY;var gY="MenubarArrow",bY=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(su,{...o,...r,ref:t})});bY.displayName=gY;var rS="MenubarSub",oS=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=He(t),[s,l]=_e({prop:r,defaultProp:a??!1,onChange:o,caller:rS});return d.jsx(lu,{...i,open:s,onOpenChange:l,children:n})};oS.displayName=rS;var yY="MenubarSubTrigger",aS=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(cu,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});aS.displayName=yY;var wY="MenubarSubContent",iS=c.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=He(n);return d.jsx(uu,{...o,"data-radix-menubar-content":"",...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});iS.displayName=wY;function xY(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var sS=Hx,SY=Gx,lS=Ux,cS=Kx,uS=Yx,CY=qx,dS=Xx,fS=Zx,pS=Qx,_Y=Jx,mS=eS,hS=tS,vS=nS,EY=oS,gS=aS,bS=iS;function PY({...e}){return d.jsx(SY,{...e})}function NY({...e}){return d.jsx(CY,{...e})}function TY({...e}){return d.jsx(cS,{...e})}function MY({...e}){return d.jsx(_Y,{...e})}function RY({...e}){return d.jsx(EY,{"data-slot":"menubar-sub",...e})}const yS=c.forwardRef(({className:e,...t},n)=>d.jsx(sS,{ref:n,className:M("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));yS.displayName=sS.displayName;const wS=c.forwardRef(({className:e,...t},n)=>d.jsx(lS,{ref:n,className:M("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));wS.displayName=lS.displayName;const xS=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(gS,{ref:o,className:M("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,d.jsx(Jn,{className:"ml-auto h-4 w-4"})]}));xS.displayName=gS.displayName;const SS=c.forwardRef(({className:e,...t},n)=>d.jsx(bS,{ref:n,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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 origin-[--radix-menubar-content-transform-origin]",e),...t}));SS.displayName=bS.displayName;const CS=c.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},a)=>d.jsx(cS,{children:d.jsx(uS,{ref:a,align:t,alignOffset:n,sideOffset:r,className:M("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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 origin-[--radix-menubar-content-transform-origin]",e),...o})}));CS.displayName=uS.displayName;const _S=c.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(fS,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));_S.displayName=fS.displayName;const ES=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs(pS,{ref:o,className:M("relative flex 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),checked:n,...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(hS,{children:d.jsx(Ur,{className:"h-4 w-4"})})}),t]}));ES.displayName=pS.displayName;const PS=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(mS,{ref:r,className:M("relative flex 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:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(hS,{children:d.jsx(fa,{className:"h-2 w-2 fill-current"})})}),t]}));PS.displayName=mS.displayName;const NS=c.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(dS,{ref:r,className:M("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));NS.displayName=dS.displayName;const TS=c.forwardRef(({className:e,...t},n)=>d.jsx(vS,{ref:n,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));TS.displayName=vS.displayName;const MS=({className:e,...t})=>d.jsx("span",{className:M("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});MS.displayname="MenubarShortcut";var RS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),OY="VisuallyHidden",Ai=c.forwardRef((e,t)=>d.jsx(ee.span,{...e,ref:t,style:{...RS,...e.style}}));Ai.displayName=OY;var OS=Ai,Hn="NavigationMenu",[Du,AS,AY]=Ut(Hn),[Iu,DY,IY]=Ut(Hn),[ju]=Te(Hn,[AY,IY]),[jY,ft]=ju(Hn),[$Y,kY]=ju(Hn),DS=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...f}=e,[p,m]=c.useState(null),v=ae(t,T=>m(T)),g=ht(u),h=c.useRef(0),b=c.useRef(0),y=c.useRef(0),[w,x]=c.useState(!0),[S,C]=_e({prop:r,onChange:T=>{const F=T!=="",R=s>0;F?(window.clearTimeout(y.current),R&&x(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>x(!0),s)),o==null||o(T)},defaultProp:a??"",caller:Hn}),N=c.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>C(""),150)},[C]),E=c.useCallback(T=>{window.clearTimeout(b.current),C(T)},[C]),A=c.useCallback(T=>{S===T?window.clearTimeout(b.current):h.current=window.setTimeout(()=>{window.clearTimeout(b.current),C(T)},i)},[S,C,i]);return c.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(b.current),window.clearTimeout(y.current)},[]),d.jsx(IS,{scope:n,isRootMenu:!0,value:S,dir:g,orientation:l,rootNavigationMenu:p,onTriggerEnter:T=>{window.clearTimeout(h.current),w?A(T):E(T)},onTriggerLeave:()=>{window.clearTimeout(h.current),N()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:N,onItemSelect:T=>{C(F=>F===T?"":T)},onItemDismiss:()=>C(""),children:d.jsx(ee.nav,{"aria-label":"Main","data-orientation":l,dir:g,...f,ref:v})})});DS.displayName=Hn;var $u="NavigationMenuSub",LY=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,l=ft($u,n),[u,f]=_e({prop:r,onChange:o,defaultProp:a??"",caller:$u});return d.jsx(IS,{scope:n,isRootMenu:!1,value:u,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:p=>f(p),onItemSelect:p=>f(p),onItemDismiss:()=>f(""),children:d.jsx(ee.div,{"data-orientation":i,...s,ref:t})})});LY.displayName=$u;var IS=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:i,value:s,onItemSelect:l,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:p,onContentEnter:m,onContentLeave:v}=e,[g,h]=c.useState(null),[b,y]=c.useState(new Map),[w,x]=c.useState(null);return d.jsx(jY,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:yr(s),baseId:xe(),dir:o,orientation:a,viewport:g,onViewportChange:h,indicatorTrack:w,onIndicatorTrackChange:x,onTriggerEnter:he(f),onTriggerLeave:he(p),onContentEnter:he(m),onContentLeave:he(v),onItemSelect:he(l),onItemDismiss:he(u),onViewportContentChange:c.useCallback((S,C)=>{y(N=>(N.set(S,C),new Map(N)))},[]),onViewportContentRemove:c.useCallback(S=>{y(C=>C.has(S)?(C.delete(S),new Map(C)):C)},[]),children:d.jsx(Du.Provider,{scope:t,children:d.jsx($Y,{scope:t,items:b,children:i})})})},jS="NavigationMenuList",$S=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=ft(jS,n),a=d.jsx(ee.ul,{"data-orientation":o.orientation,...r,ref:t});return d.jsx(ee.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:d.jsx(Du.Slot,{scope:n,children:o.isRootMenu?d.jsx(KS,{asChild:!0,children:a}):a})})});$S.displayName=jS;var kS="NavigationMenuItem",[FY,LS]=ju(kS),FS=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=xe(),i=r||a||"LEGACY_REACT_AUTO_VALUE",s=c.useRef(null),l=c.useRef(null),u=c.useRef(null),f=c.useRef(()=>{}),p=c.useRef(!1),m=c.useCallback((g="start")=>{if(s.current){f.current();const h=Bu(s.current);h.length&&zu(g==="start"?h:h.reverse())}},[]),v=c.useCallback(()=>{if(s.current){const g=Bu(s.current);g.length&&(f.current=UY(g))}},[]);return d.jsx(FY,{scope:n,value:i,triggerRef:l,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:v,onContentFocusOutside:v,children:d.jsx(ee.li,{...o,ref:t})})});FS.displayName=kS;var ku="NavigationMenuTrigger",BS=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=ft(ku,e.__scopeNavigationMenu),i=LS(ku,e.__scopeNavigationMenu),s=c.useRef(null),l=ae(s,i.triggerRef,t),u=XS(a.baseId,i.value),f=ZS(a.baseId,i.value),p=c.useRef(!1),m=c.useRef(!1),v=i.value===a.value;return d.jsxs(d.Fragment,{children:[d.jsx(Du.ItemSlot,{scope:n,value:i.value,children:d.jsx(qS,{asChild:!0,children:d.jsx(ee.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":Hu(v),"aria-expanded":v,"aria-controls":f,...o,ref:l,onPointerEnter:z(e.onPointerEnter,()=>{m.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:z(e.onPointerMove,Ii(()=>{r||m.current||i.wasEscapeCloseRef.current||p.current||(a.onTriggerEnter(i.value),p.current=!0)})),onPointerLeave:z(e.onPointerLeave,Ii(()=>{r||(a.onTriggerLeave(),p.current=!1)})),onClick:z(e.onClick,()=>{a.onItemSelect(i.value),m.current=v}),onKeyDown:z(e.onKeyDown,g=>{const b={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];v&&g.key===b&&(i.onEntryKeyDown(),g.preventDefault())})})})}),v&&d.jsxs(d.Fragment,{children:[d.jsx(OS,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const h=i.contentRef.current,b=g.relatedTarget,y=b===s.current,w=h==null?void 0:h.contains(b);(y||!w)&&i.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&d.jsx("span",{"aria-owns":f})]})]})});BS.displayName=ku;var BY="NavigationMenuLink",zS="navigationMenu.linkSelect",WS=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return d.jsx(qS,{asChild:!0,children:d.jsx(ee.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:z(e.onClick,i=>{const s=i.target,l=new CustomEvent(zS,{bubbles:!0,cancelable:!0});if(s.addEventListener(zS,u=>o==null?void 0:o(u),{once:!0}),Gr(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Di,{bubbles:!0,cancelable:!0});Gr(s,u)}},{checkForDefaultPrevented:!1})})})});WS.displayName=BY;var Lu="NavigationMenuIndicator",HS=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ft(Lu,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?ds.createPortal(d.jsx(Re,{present:n||a,children:d.jsx(zY,{...r,ref:t})}),o.indicatorTrack):null});HS.displayName=Lu;var zY=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=ft(Lu,n),a=AS(n),[i,s]=c.useState(null),[l,u]=c.useState(null),f=o.orientation==="horizontal",p=!!o.value;c.useEffect(()=>{var h;const g=(h=a().find(b=>b.value===o.value))==null?void 0:h.ref.current;g&&s(g)},[a,o.value]);const m=()=>{i&&u({size:f?i.offsetWidth:i.offsetHeight,offset:f?i.offsetLeft:i.offsetTop})};return Wu(i,m),Wu(o.indicatorTrack,m),l?d.jsx(ee.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),Tr="NavigationMenuContent",VS=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ft(Tr,e.__scopeNavigationMenu),a=LS(Tr,e.__scopeNavigationMenu),i=ae(a.contentRef,t),s=a.value===o.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?d.jsx(WY,{forceMount:n,...l,ref:i}):d.jsx(Re,{present:n||s,children:d.jsx(GS,{"data-state":Hu(s),...l,ref:i,onPointerEnter:z(e.onPointerEnter,o.onContentEnter),onPointerLeave:z(e.onPointerLeave,Ii(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});VS.displayName=Tr;var WY=c.forwardRef((e,t)=>{const n=ft(Tr,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return Me(()=>{r(e.value,{ref:t,...e})},[e,t,r]),Me(()=>()=>o(e.value),[e.value,o]),null}),Di="navigationMenu.rootContentDismiss",GS=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=ft(Tr,n),p=c.useRef(null),m=ae(p,t),v=XS(f.baseId,r),g=ZS(f.baseId,r),h=AS(n),b=c.useRef(null),{onItemDismiss:y}=f;c.useEffect(()=>{const x=p.current;if(f.isRootMenu&&x){const S=()=>{var C;y(),s(),x.contains(document.activeElement)&&((C=o.current)==null||C.focus())};return x.addEventListener(Di,S),()=>x.removeEventListener(Di,S)}},[f.isRootMenu,e.value,o,y,s]);const w=c.useMemo(()=>{const S=h().map(F=>F.value);f.dir==="rtl"&&S.reverse();const C=S.indexOf(f.value),N=S.indexOf(f.previousValue),E=r===f.value,A=N===S.indexOf(r);if(!E&&!A)return b.current;const T=(()=>{if(C!==N){if(E&&N!==-1)return C>N?"from-end":"from-start";if(A&&C!==-1)return C>N?"to-start":"to-end"}return null})();return b.current=T,T},[f.previousValue,f.value,f.dir,h,r]);return d.jsx(KS,{asChild:!0,children:d.jsx(Kt,{id:g,"aria-labelledby":v,"data-motion":w,"data-orientation":f.orientation,...u,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const x=new Event(Di,{bubbles:!0,cancelable:!0});(S=p.current)==null||S.dispatchEvent(x)},onFocusOutside:z(e.onFocusOutside,x=>{var C;l();const S=x.target;(C=f.rootNavigationMenu)!=null&&C.contains(S)&&x.preventDefault()}),onPointerDownOutside:z(e.onPointerDownOutside,x=>{var E;const S=x.target,C=h().some(A=>{var T;return(T=A.ref.current)==null?void 0:T.contains(S)}),N=f.isRootMenu&&((E=f.viewport)==null?void 0:E.contains(S));(C||N||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:z(e.onKeyDown,x=>{var N;const S=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!S){const E=Bu(x.currentTarget),A=document.activeElement,T=E.findIndex(k=>k===A),R=x.shiftKey?E.slice(0,T).reverse():E.slice(T+1,E.length);zu(R)?x.preventDefault():(N=a.current)==null||N.focus()}}),onEscapeKeyDown:z(e.onEscapeKeyDown,x=>{i.current=!0})})})}),Fu="NavigationMenuViewport",US=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=!!ft(Fu,e.__scopeNavigationMenu).value;return d.jsx(Re,{present:n||a,children:d.jsx(HY,{...r,ref:t})})});US.displayName=Fu;var HY=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,a=ft(Fu,n),i=ae(t,a.onViewportChange),s=kY(Tr,e.__scopeNavigationMenu),[l,u]=c.useState(null),[f,p]=c.useState(null),m=l?(l==null?void 0:l.width)+"px":void 0,v=l?(l==null?void 0:l.height)+"px":void 0,g=!!a.value,h=g?a.value:a.previousValue;return Wu(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),d.jsx(ee.div,{"data-state":Hu(g),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!g&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":v,...o.style},onPointerEnter:z(e.onPointerEnter,a.onContentEnter),onPointerLeave:z(e.onPointerLeave,Ii(a.onContentLeave)),children:Array.from(s.items).map(([y,{ref:w,forceMount:x,...S}])=>{const C=h===y;return d.jsx(Re,{present:x||C,children:d.jsx(GS,{...S,ref:Be(w,N=>{C&&N&&p(N)})})},y)})})}),VY="FocusGroup",KS=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=ft(VY,n);return d.jsx(Iu.Provider,{scope:n,children:d.jsx(Iu.Slot,{scope:n,children:d.jsx(ee.div,{dir:o.dir,...r,ref:t})})})}),YS=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],GY="FocusGroupItem",qS=c.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=DY(n),a=ft(GY,n);return d.jsx(Iu.ItemSlot,{scope:n,children:d.jsx(ee.button,{...r,ref:t,onKeyDown:z(e.onKeyDown,i=>{if(["Home","End",...YS].includes(i.key)){let l=o().map(p=>p.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),YS.includes(i.key)){const p=l.indexOf(i.currentTarget);l=l.slice(p+1)}setTimeout(()=>zu(l)),i.preventDefault()}})})})});function Bu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function UY(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Wu(e,t){const n=he(t);Me(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Hu(e){return e?"open":"closed"}function XS(e,t){return`${e}-trigger-${t}`}function ZS(e,t){return`${e}-content-${t}`}function Ii(e){return t=>t.pointerType==="mouse"?e(t):void 0}var QS=DS,JS=$S,KY=FS,eC=BS,YY=WS,tC=HS,nC=VS,rC=US;const oC=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(QS,{ref:r,className:M("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,d.jsx(Vu,{})]}));oC.displayName=QS.displayName;const aC=c.forwardRef(({className:e,...t},n)=>d.jsx(JS,{ref:n,className:M("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));aC.displayName=JS.displayName;const qY=KY,iC=qt("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),sC=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(eC,{ref:r,className:M(iC(),"group",e),...n,children:[t," ",d.jsx(da,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));sC.displayName=eC.displayName;const lC=c.forwardRef(({className:e,...t},n)=>d.jsx(nC,{ref:n,className:M("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));lC.displayName=nC.displayName;const XY=YY,Vu=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{className:M("absolute left-0 top-full flex justify-center"),children:d.jsx(rC,{className:M("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Vu.displayName=rC.displayName;const cC=c.forwardRef(({className:e,...t},n)=>d.jsx(tC,{ref:n,className:M("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:d.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));cC.displayName=tC.displayName;const uC=({className:e,...t})=>d.jsx("nav",{role:"navigation","aria-label":"pagination",className:M("mx-auto flex w-full justify-center",e),...t});uC.displayName="Pagination";const dC=c.forwardRef(({className:e,...t},n)=>d.jsx("ul",{ref:n,className:M("flex flex-row items-center gap-1",e),...t}));dC.displayName="PaginationContent";const fC=c.forwardRef(({className:e,...t},n)=>d.jsx("li",{ref:n,className:M("",e),...t}));fC.displayName="PaginationItem";const ji=({className:e,isActive:t,size:n="icon",...r})=>d.jsx("a",{"aria-current":t?"page":void 0,className:M(Tn({variant:t?"outline":"ghost",size:n}),e),...r});ji.displayName="PaginationLink";const pC=({className:e,...t})=>d.jsxs(ji,{"aria-label":"Go to previous page",size:"default",className:M("gap-1 pl-2.5",e),...t,children:[d.jsx(Df,{className:"h-4 w-4"}),d.jsx("span",{children:"Previous"})]});pC.displayName="PaginationPrevious";const mC=({className:e,...t})=>d.jsxs(ji,{"aria-label":"Go to next page",size:"default",className:M("gap-1 pr-2.5",e),...t,children:[d.jsx("span",{children:"Next"}),d.jsx(Jn,{className:"h-4 w-4"})]});mC.displayName="PaginationNext";const hC=({className:e,...t})=>d.jsxs("span",{"aria-hidden":!0,className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[d.jsx(If,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"More pages"})]});hC.displayName="PaginationEllipsis";function ZY(e){const t=QY(e),n=c.forwardRef((r,o)=>{const{children:a,...i}=r,s=c.Children.toArray(a),l=s.find(e8);if(l){const u=l.props.children,f=s.map(p=>p===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return d.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function QY(e){const t=c.forwardRef((n,r)=>{const{children:o,...a}=n;if(c.isValidElement(o)){const i=n8(o),s=t8(a,o.props);return o.type!==c.Fragment&&(s.ref=r?Be(r,i):i),c.cloneElement(o,s)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var JY=Symbol("radix.slottable");function e8(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===JY}function t8(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function n8(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $i="Popover",[vC]=Te($i,[Ft]),Uo=Ft(),[r8,vn]=vC($i),gC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=Uo(t),l=c.useRef(null),[u,f]=c.useState(!1),[p,m]=_e({prop:r,defaultProp:o??!1,onChange:a,caller:$i});return d.jsx(Pr,{...s,children:d.jsx(r8,{scope:t,contentId:xe(),triggerRef:l,open:p,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(v=>!v),[m]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:i,children:n})})};gC.displayName=$i;var bC="PopoverAnchor",o8=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=vn(bC,n),a=Uo(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return c.useEffect(()=>(i(),()=>s()),[i,s]),d.jsx(Nr,{...a,...r,ref:t})});o8.displayName=bC;var yC="PopoverTrigger",wC=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=vn(yC,n),a=Uo(n),i=ae(t,o.triggerRef),s=d.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":EC(o.open),...r,ref:i,onClick:z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:d.jsx(Nr,{asChild:!0,...a,children:s})});wC.displayName=yC;var Gu="PopoverPortal",[a8,i8]=vC(Gu,{forceMount:void 0}),xC=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=vn(Gu,t);return d.jsx(a8,{scope:t,forceMount:n,children:d.jsx(Re,{present:n||a.open,children:d.jsx(er,{asChild:!0,container:o,children:r})})})};xC.displayName=Gu;var Mr="PopoverContent",SC=c.forwardRef((e,t)=>{const n=i8(Mr,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=vn(Mr,e.__scopePopover);return d.jsx(Re,{present:r||a.open,children:a.modal?d.jsx(l8,{...o,ref:t}):d.jsx(c8,{...o,ref:t})})});SC.displayName=Mr;var s8=ZY("PopoverContent.RemoveScroll"),l8=c.forwardRef((e,t)=>{const n=vn(Mr,e.__scopePopover),r=c.useRef(null),o=ae(t,r),a=c.useRef(!1);return c.useEffect(()=>{const i=r.current;if(i)return xa(i)},[]),d.jsx(Yr,{as:s8,allowPinchZoom:!0,children:d.jsx(CC,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,u=s.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:z(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),c8=c.forwardRef((e,t)=>{const n=vn(Mr,e.__scopePopover),r=c.useRef(!1),o=c.useRef(!1);return d.jsx(CC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),CC=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...p}=e,m=vn(Mr,n),v=Uo(n);return pa(),d.jsx(Kr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(Kt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:d.jsx(No,{"data-state":EC(m.open),role:"dialog",id:m.contentId,...v,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),_C="PopoverClose",u8=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=vn(_C,n);return d.jsx(ee.button,{type:"button",...r,ref:t,onClick:z(e.onClick,()=>o.onOpenChange(!1))})});u8.displayName=_C;var d8="PopoverArrow",f8=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Uo(n);return d.jsx(To,{...o,...r,ref:t})});f8.displayName=d8;function EC(e){return e?"open":"closed"}var p8=gC,m8=wC,h8=xC,PC=SC;const v8=p8,g8=m8,NC=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>d.jsx(h8,{children:d.jsx(PC,{ref:o,align:t,sideOffset:n,className:M("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 origin-[--radix-popover-content-transform-origin]",e),...r})}));NC.displayName=PC.displayName;function b8(e,t=[]){let n=[];function r(a,i){const s=c.createContext(i);s.displayName=a+"Context";const l=n.length;n=[...n,i];const u=p=>{var y;const{scope:m,children:v,...g}=p,h=((y=m==null?void 0:m[e])==null?void 0:y[l])||s,b=c.useMemo(()=>g,Object.values(g));return d.jsx(h.Provider,{value:b,children:v})};u.displayName=a+"Provider";function f(p,m){var h;const v=((h=m==null?void 0:m[e])==null?void 0:h[l])||s,g=c.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,y8(o,...t)]}function y8(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:u})=>{const p=l(a)[`__scope${u}`];return{...s,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var w8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],TC=w8.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Uu="Progress",Ku=100,[x8]=b8(Uu),[S8,C8]=x8(Uu),MC=c.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=_8,...i}=e;(o||o===0)&&!DC(o)&&console.error(E8(`${o}`,"Progress"));const s=DC(o)?o:Ku;r!==null&&!IC(r,s)&&console.error(P8(`${r}`,"Progress"));const l=IC(r,s)?r:null,u=ki(l)?a(l,s):void 0;return d.jsx(S8,{scope:n,value:l,max:s,children:d.jsx(TC.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":ki(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":AC(l,s),"data-value":l??void 0,"data-max":s,...i,ref:t})})});MC.displayName=Uu;var RC="ProgressIndicator",OC=c.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=C8(RC,n);return d.jsx(TC.div,{"data-state":AC(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});OC.displayName=RC;function _8(e,t){return`${Math.round(e/t*100)}%`}function AC(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function ki(e){return typeof e=="number"}function DC(e){return ki(e)&&!isNaN(e)&&e>0}function IC(e,t){return ki(e)&&!isNaN(e)&&e<=t&&e>=0}function E8(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ku}\`.`}function P8(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
221
|
+
- a positive number
|
|
222
|
+
- less than the value passed to \`max\` (or ${Ku} if no \`max\` prop is set)
|
|
223
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
224
|
+
|
|
225
|
+
Defaulting to \`null\`.`}var jC=MC,N8=OC;const $C=c.forwardRef(({className:e,value:t,...n},r)=>d.jsx(jC,{ref:r,className:M("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:d.jsx(N8,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));$C.displayName=jC.displayName;var Yu="Radio",[T8,kC]=Te(Yu),[M8,R8]=T8(Yu),LC=c.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:l,form:u,...f}=e,[p,m]=c.useState(null),v=ae(t,b=>m(b)),g=c.useRef(!1),h=p?u||!!p.closest("form"):!0;return d.jsxs(M8,{scope:n,checked:o,disabled:i,children:[d.jsx(ee.button,{type:"button",role:"radio","aria-checked":o,"data-state":WC(o),"data-disabled":i?"":void 0,disabled:i,value:s,...f,ref:v,onClick:z(e.onClick,b=>{o||l==null||l(),h&&(g.current=b.isPropagationStopped(),g.current||b.stopPropagation())})}),h&&d.jsx(zC,{control:p,bubbles:!g.current,name:r,value:s,checked:o,required:a,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});LC.displayName=Yu;var FC="RadioIndicator",BC=c.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=R8(FC,n);return d.jsx(Re,{present:r||a.checked,children:d.jsx(ee.span,{"data-state":WC(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});BC.displayName=FC;var O8="RadioBubbleInput",zC=c.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const i=c.useRef(null),s=ae(i,a),l=yr(n),u=xo(t);return c.useEffect(()=>{const f=i.current;if(!f)return;const p=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==n&&v){const g=new Event("click",{bubbles:r});v.call(f,n),f.dispatchEvent(g)}},[l,n,r]),d.jsx(ee.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});zC.displayName=O8;function WC(e){return e?"checked":"unchecked"}var A8=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Li="RadioGroup",[D8]=Te(Li,[Bt,kC]),HC=Bt(),VC=kC(),[I8,j8]=D8(Li),GC=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:l,dir:u,loop:f=!0,onValueChange:p,...m}=e,v=HC(n),g=ht(u),[h,b]=_e({prop:a,defaultProp:o??null,onChange:p,caller:Li});return d.jsx(I8,{scope:n,name:r,required:i,disabled:s,value:h,onValueChange:b,children:d.jsx(Ro,{asChild:!0,...v,orientation:l,dir:g,loop:f,children:d.jsx(ee.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":s?"":void 0,dir:g,...m,ref:t})})})});GC.displayName=Li;var UC="RadioGroupItem",KC=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=j8(UC,n),i=a.disabled||r,s=HC(n),l=VC(n),u=c.useRef(null),f=ae(t,u),p=a.value===o.value,m=c.useRef(!1);return c.useEffect(()=>{const v=h=>{A8.includes(h.key)&&(m.current=!0)},g=()=>m.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),d.jsx(Oo,{asChild:!0,...s,focusable:!i,active:p,children:d.jsx(LC,{disabled:i,required:a.required,checked:p,...l,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:z(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:z(o.onFocus,()=>{var v;m.current&&((v=u.current)==null||v.click())})})})});KC.displayName=UC;var $8="RadioGroupIndicator",YC=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=VC(n);return d.jsx(BC,{...o,...r,ref:t})});YC.displayName=$8;var qC=GC,XC=KC,k8=YC;const ZC=c.forwardRef(({className:e,...t},n)=>d.jsx(qC,{className:M("grid gap-2",e),...t,ref:n}));ZC.displayName=qC.displayName;const QC=c.forwardRef(({className:e,...t},n)=>d.jsx(XC,{ref:n,className:M("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),...t,children:d.jsx(k8,{className:"flex items-center justify-center",children:d.jsx(fa,{className:"h-2.5 w-2.5 fill-current text-current"})})}));QC.displayName=XC.displayName;const Fi=_.createContext(null);Fi.displayName="PanelGroupContext";const je={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},qu=10,Vn=_.useLayoutEffect,JC=c.useId,L8=typeof JC=="function"?JC:()=>null;let F8=0;function Xu(e=null){const t=L8(),n=_.useRef(e||t||null);return n.current===null&&(n.current=""+F8++),e??n.current}function e0({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:a,id:i,maxSize:s,minSize:l,onCollapse:u,onExpand:f,onResize:p,order:m,style:v,tagName:g="div",...h}){const b=_.useContext(Fi);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:w,getPanelSize:x,getPanelStyle:S,groupId:C,isPanelCollapsed:N,reevaluatePanelConstraints:E,registerPanel:A,resizePanel:T,unregisterPanel:F}=b,R=Xu(i),k=_.useRef({callbacks:{onCollapse:u,onExpand:f,onResize:p},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:s,minSize:l},id:R,idIsFromProps:i!==void 0,order:m});_.useRef({didLogMissingDefaultSizeWarning:!1}),Vn(()=>{const{callbacks:L,constraints:G}=k.current,V={...G};k.current.id=R,k.current.idIsFromProps=i!==void 0,k.current.order=m,L.onCollapse=u,L.onExpand=f,L.onResize=p,G.collapsedSize=n,G.collapsible=r,G.defaultSize=o,G.maxSize=s,G.minSize=l,(V.collapsedSize!==G.collapsedSize||V.collapsible!==G.collapsible||V.maxSize!==G.maxSize||V.minSize!==G.minSize)&&E(k.current,V)}),Vn(()=>{const L=k.current;return A(L),()=>{F(L)}},[m,R,A,F]),_.useImperativeHandle(a,()=>({collapse:()=>{y(k.current)},expand:L=>{w(k.current,L)},getId(){return R},getSize(){return x(k.current)},isCollapsed(){return N(k.current)},isExpanded(){return!N(k.current)},resize:L=>{T(k.current,L)}}),[y,w,x,N,R,T]);const U=S(k.current,o);return _.createElement(g,{...h,children:e,className:t,id:R,style:{...U,...v},[je.groupId]:C,[je.panel]:"",[je.panelCollapsible]:r||void 0,[je.panelId]:R,[je.panelSize]:parseFloat(""+U.flexGrow).toFixed(1)})}const t0=_.forwardRef((e,t)=>_.createElement(e0,{...e,forwardedRef:t}));e0.displayName="Panel",t0.displayName="forwardRef(Panel)";let Zu=null,Bi=-1,gn=null;function B8(e,t){if(t){const n=(t&c0)!==0,r=(t&u0)!==0,o=(t&d0)!==0,a=(t&f0)!==0;if(n)return o?"se-resize":a?"ne-resize":"e-resize";if(r)return o?"sw-resize":a?"nw-resize":"w-resize";if(o)return"s-resize";if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function z8(){gn!==null&&(document.head.removeChild(gn),Zu=null,gn=null,Bi=-1)}function Qu(e,t){var n,r;const o=B8(e,t);if(Zu!==o){if(Zu=o,gn===null&&(gn=document.createElement("style"),document.head.appendChild(gn)),Bi>=0){var a;(a=gn.sheet)===null||a===void 0||a.removeRule(Bi)}Bi=(n=(r=gn.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${o} !important;}`))!==null&&n!==void 0?n:-1}}function n0(e){return e.type==="keydown"}function r0(e){return e.type.startsWith("pointer")}function o0(e){return e.type.startsWith("mouse")}function zi(e){if(r0(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(o0(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function W8(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function H8(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function V8(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:s0(e),b:s0(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;de(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:i0(a0(n.a)),b:i0(a0(n.b))};if(o.a===o.b){const a=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const l=a[s];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(o.a-o.b)}const G8=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function U8(e){var t;const n=getComputedStyle((t=l0(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function K8(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||U8(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||G8.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function a0(e){let t=e.length;for(;t--;){const n=e[t];if(de(n,"Missing node"),K8(n))return n}return null}function i0(e){return e&&Number(getComputedStyle(e).zIndex)||0}function s0(e){const t=[];for(;e;)t.push(e),e=l0(e);return t}function l0(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const c0=1,u0=2,d0=4,f0=8,Y8=W8()==="coarse";let Nt=[],Rr=!1,Gn=new Map,Wi=new Map;const Ko=new Set;function q8(e,t,n,r,o){var a;const{ownerDocument:i}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=(a=Gn.get(i))!==null&&a!==void 0?a:0;return Gn.set(i,l+1),Ko.add(s),Hi(),function(){var f;Wi.delete(e),Ko.delete(s);const p=(f=Gn.get(i))!==null&&f!==void 0?f:1;if(Gn.set(i,p-1),Hi(),p===1&&Gn.delete(i),Nt.includes(s)){const m=Nt.indexOf(s);m>=0&&Nt.splice(m,1),rd(),o("up",!0,null)}}}function X8(e){const{target:t}=e,{x:n,y:r}=zi(e);Rr=!0,td({target:t,x:n,y:r}),Hi(),Nt.length>0&&(Vi("down",e),e.preventDefault(),p0(t)||e.stopImmediatePropagation())}function Ju(e){const{x:t,y:n}=zi(e);if(Rr&&e.buttons===0&&(Rr=!1,Vi("up",e)),!Rr){const{target:r}=e;td({target:r,x:t,y:n})}Vi("move",e),rd(),Nt.length>0&&e.preventDefault()}function ed(e){const{target:t}=e,{x:n,y:r}=zi(e);Wi.clear(),Rr=!1,Nt.length>0&&(e.preventDefault(),p0(t)||e.stopImmediatePropagation()),Vi("up",e),td({target:t,x:n,y:r}),rd(),Hi()}function p0(e){let t=e;for(;t;){if(t.hasAttribute(je.resizeHandle))return!0;t=t.parentElement}return!1}function td({target:e,x:t,y:n}){Nt.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),Ko.forEach(o=>{const{element:a,hitAreaMargins:i}=o,s=a.getBoundingClientRect(),{bottom:l,left:u,right:f,top:p}=s,m=Y8?i.coarse:i.fine;if(t>=u-m&&t<=f+m&&n>=p-m&&n<=l+m){if(r!==null&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&V8(r,a)>0){let g=r,h=!1;for(;g&&!g.contains(a);){if(H8(g.getBoundingClientRect(),s)){h=!0;break}g=g.parentElement}if(h)return}Nt.push(o)}})}function nd(e,t){Wi.set(e,t)}function rd(){let e=!1,t=!1;Nt.forEach(r=>{const{direction:o}=r;o==="horizontal"?e=!0:t=!0});let n=0;Wi.forEach(r=>{n|=r}),e&&t?Qu("intersection",n):e?Qu("horizontal",n):t?Qu("vertical",n):z8()}let od=new AbortController;function Hi(){od.abort(),od=new AbortController;const e={capture:!0,signal:od.signal};Ko.size&&(Rr?(Nt.length>0&&Gn.forEach((t,n)=>{const{body:r}=n;t>0&&(r.addEventListener("contextmenu",ed,e),r.addEventListener("pointerleave",Ju,e),r.addEventListener("pointermove",Ju,e))}),window.addEventListener("pointerup",ed,e),window.addEventListener("pointercancel",ed,e)):Gn.forEach((t,n)=>{const{body:r}=n;t>0&&(r.addEventListener("pointerdown",X8,e),r.addEventListener("pointermove",Ju,e))}))}function Vi(e,t){Ko.forEach(n=>{const{setResizeHandlerState:r}=n,o=Nt.includes(n);r(e,o,t)})}function Z8(){const[e,t]=_.useState(0);return _.useCallback(()=>t(n=>n+1),[])}function de(e,t){if(!e)throw console.error(t),Error(t)}function Un(e,t,n=qu){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function en(e,t,n=qu){return Un(e,t,n)===0}function it(e,t,n){return Un(e,t,n)===0}function Q8(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],a=t[r];if(!it(o,a,n))return!1}return!0}function Or({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];de(r!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:a,maxSize:i=100,minSize:s=0}=r;if(Un(n,s)<0)if(a){const l=(o+s)/2;Un(n,l)<0?n=o:n=s}else n=s;return n=Math.min(i,n),n=parseFloat(n.toFixed(qu)),n}function Yo({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:a}){if(it(e,0))return t;const i=[...t],[s,l]=r;de(s!=null,"Invalid first pivot index"),de(l!=null,"Invalid second pivot index");let u=0;if(a==="keyboard"){{const p=e<0?l:s,m=n[p];de(m,`Panel constraints not found for index ${p}`);const{collapsedSize:v=0,collapsible:g,minSize:h=0}=m;if(g){const b=t[p];if(de(b!=null,`Previous layout not found for panel index ${p}`),it(b,v)){const y=h-b;Un(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}{const p=e<0?s:l,m=n[p];de(m,`No panel constraints found for index ${p}`);const{collapsedSize:v=0,collapsible:g,minSize:h=0}=m;if(g){const b=t[p];if(de(b!=null,`Previous layout not found for panel index ${p}`),it(b,h)){const y=b-v;Un(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}}{const p=e<0?1:-1;let m=e<0?l:s,v=0;for(;;){const h=t[m];de(h!=null,`Previous layout not found for panel index ${m}`);const y=Or({panelConstraints:n,panelIndex:m,size:100})-h;if(v+=y,m+=p,m<0||m>=n.length)break}const g=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-g:g}{let m=e<0?s:l;for(;m>=0&&m<n.length;){const v=Math.abs(e)-Math.abs(u),g=t[m];de(g!=null,`Previous layout not found for panel index ${m}`);const h=g-v,b=Or({panelConstraints:n,panelIndex:m,size:h});if(!it(g,b)&&(u+=g-b,i[m]=b,u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?m--:m++}}if(Q8(o,i))return o;{const p=e<0?l:s,m=t[p];de(m!=null,`Previous layout not found for panel index ${p}`);const v=m+u,g=Or({panelConstraints:n,panelIndex:p,size:v});if(i[p]=g,!it(g,v)){let h=v-g,y=e<0?l:s;for(;y>=0&&y<n.length;){const w=i[y];de(w!=null,`Previous layout not found for panel index ${y}`);const x=w+h,S=Or({panelConstraints:n,panelIndex:y,size:x});if(it(w,S)||(h-=S-w,i[y]=S),it(h,0))break;e>0?y--:y++}}}const f=i.reduce((p,m)=>m+p,0);return it(f,100)?i:o}function J8({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,a=0,i=0;const s=n[0];de(s!=null,"No pivot index found"),t.forEach((p,m)=>{const{constraints:v}=p,{maxSize:g=100,minSize:h=0}=v;m===s?(r=h,o=g):(a+=h,i+=g)});const l=Math.min(o,100-a),u=Math.max(r,100-i),f=e[s];return{valueMax:l,valueMin:u,valueNow:f}}function qo(e,t=document){return Array.from(t.querySelectorAll(`[${je.resizeHandleId}][data-panel-group-id="${e}"]`))}function m0(e,t,n=document){const o=qo(e,n).findIndex(a=>a.getAttribute(je.resizeHandleId)===t);return o??null}function h0(e,t,n){const r=m0(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function v0(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function Gi(e,t=document){const n=t.querySelector(`[${je.resizeHandleId}="${e}"]`);return n||null}function e6(e,t,n,r=document){var o,a,i,s;const l=Gi(t,r),u=qo(e,r),f=l?u.indexOf(l):-1,p=(o=(a=n[f])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null,m=(i=(s=n[f+1])===null||s===void 0?void 0:s.id)!==null&&i!==void 0?i:null;return[p,m]}function t6({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:a,setLayout:i}){_.useRef({didWarnAboutMissingResizeHandle:!1}),Vn(()=>{if(!a)return;const s=qo(n,a);for(let l=0;l<o.length-1;l++){const{valueMax:u,valueMin:f,valueNow:p}=J8({layout:r,panelsArray:o,pivotIndices:[l,l+1]}),m=s[l];if(m!=null){const v=o[l];de(v,`No panel data found for index "${l}"`),m.setAttribute("aria-controls",v.id),m.setAttribute("aria-valuemax",""+Math.round(u)),m.setAttribute("aria-valuemin",""+Math.round(f)),m.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{s.forEach((l,u)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,r,o,a]),_.useEffect(()=>{if(!a)return;const s=t.current;de(s,"Eager values not found");const{panelDataArray:l}=s,u=v0(n,a);de(u!=null,`No group found for id "${n}"`);const f=qo(n,a);de(f,`No resize handles found for group id "${n}"`);const p=f.map(m=>{const v=m.getAttribute(je.resizeHandleId);de(v,"Resize handle element has no handle id attribute");const[g,h]=e6(n,v,l,a);if(g==null||h==null)return()=>{};const b=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const w=l.findIndex(x=>x.id===g);if(w>=0){const x=l[w];de(x,`No panel data found for index ${w}`);const S=r[w],{collapsedSize:C=0,collapsible:N,minSize:E=0}=x.constraints;if(S!=null&&N){const A=Yo({delta:it(S,C)?E-C:C-S,initialLayout:r,panelConstraints:l.map(T=>T.constraints),pivotIndices:h0(n,v,a),prevLayout:r,trigger:"keyboard"});r!==A&&i(A)}}break}}};return m.addEventListener("keydown",b),()=>{m.removeEventListener("keydown",b)}});return()=>{p.forEach(m=>m())}},[a,e,t,n,r,o,i])}function g0(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function b0(e,t){const n=e==="horizontal",{x:r,y:o}=zi(t);return n?r:o}function n6(e,t,n,r,o){const a=n==="horizontal",i=Gi(t,o);de(i,`No resize handle element found for id "${t}"`);const s=i.getAttribute(je.groupId);de(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const u=b0(n,e),f=v0(s,o);de(f,`No group element found for id "${s}"`);const p=f.getBoundingClientRect(),m=a?p.width:p.height;return(u-l)/m*100}function r6(e,t,n,r,o,a){if(n0(e)){const i=n==="horizontal";let s=0;e.shiftKey?s=100:o!=null?s=o:s=10;let l=0;switch(e.key){case"ArrowDown":l=i?0:s;break;case"ArrowLeft":l=i?-s:0;break;case"ArrowRight":l=i?s:0;break;case"ArrowUp":l=i?0:-s;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return r==null?0:n6(e,t,n,r,a)}function o6({panelDataArray:e}){const t=Array(e.length),n=e.map(a=>a.constraints);let r=0,o=100;for(let a=0;a<e.length;a++){const i=n[a];de(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;s!=null&&(r++,t[a]=s,o-=s)}for(let a=0;a<e.length;a++){const i=n[a];de(i,`Panel constraints not found for index ${a}`);const{defaultSize:s}=i;if(s!=null)continue;const l=e.length-r,u=o/l;r++,t[a]=u,o-=u}return t}function Ar(e,t,n){t.forEach((r,o)=>{const a=e[o];de(a,`Panel data not found for index ${o}`);const{callbacks:i,constraints:s,id:l}=a,{collapsedSize:u=0,collapsible:f}=s,p=n[l];if(p==null||r!==p){n[l]=r;const{onCollapse:m,onExpand:v,onResize:g}=i;g&&g(r,p),f&&(m||v)&&(v&&(p==null||en(p,u))&&!en(r,u)&&v(),m&&(p==null||!en(p,u))&&en(r,u)&&m())}})}function Ui(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function a6({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:a=3}){const i=n[o];let s;return i==null?s=e!=null?e.toPrecision(a):"1":r.length===1?s="1":s=i.toPrecision(a),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function i6(e,t=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function y0(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function w0(e){return`react-resizable-panels:${e}`}function x0(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:o,order:a}=t;return o?r:a?`${a}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function S0(e,t){try{const n=w0(e),r=t.getItem(n);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function s6(e,t,n){var r,o;const a=(r=S0(e,n))!==null&&r!==void 0?r:{},i=x0(t);return(o=a[i])!==null&&o!==void 0?o:null}function l6(e,t,n,r,o){var a;const i=w0(e),s=x0(t),l=(a=S0(e,o))!==null&&a!==void 0?a:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(i,JSON.stringify(l))}catch(u){console.error(u)}}function C0({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((a,i)=>a+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!it(r,100)&&n.length>0)for(let a=0;a<t.length;a++){const i=n[a];de(i!=null,`No layout data found for index ${a}`);const s=100/r*i;n[a]=s}let o=0;for(let a=0;a<t.length;a++){const i=n[a];de(i!=null,`No layout data found for index ${a}`);const s=Or({panelConstraints:t,panelIndex:a,size:i});i!=s&&(o+=i-s,n[a]=s)}if(!it(o,0))for(let a=0;a<t.length;a++){const i=n[a];de(i!=null,`No layout data found for index ${a}`);const s=i+o,l=Or({panelConstraints:t,panelIndex:a,size:s});if(i!==l&&(o-=l-i,n[a]=l,it(o,0)))break}return n}const c6=100,Xo={getItem:e=>(y0(Xo),Xo.getItem(e)),setItem:(e,t)=>{y0(Xo),Xo.setItem(e,t)}},_0={};function E0({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:a=null,onLayout:i=null,keyboardResizeBy:s=null,storage:l=Xo,style:u,tagName:f="div",...p}){const m=Xu(a),v=_.useRef(null),[g,h]=_.useState(null),[b,y]=_.useState([]),w=Z8(),x=_.useRef({}),S=_.useRef(new Map),C=_.useRef(0),N=_.useRef({autoSaveId:e,direction:r,dragState:g,id:m,keyboardResizeBy:s,onLayout:i,storage:l}),E=_.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});_.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_.useImperativeHandle(o,()=>({getId:()=>N.current.id,getLayout:()=>{const{layout:j}=E.current;return j},setLayout:j=>{const{onLayout:H}=N.current,{layout:Y,panelDataArray:Z}=E.current,I=C0({layout:j,panelConstraints:Z.map(q=>q.constraints)});g0(Y,I)||(y(I),E.current.layout=I,H&&H(I),Ar(Z,I,x.current))}}),[]),Vn(()=>{N.current.autoSaveId=e,N.current.direction=r,N.current.dragState=g,N.current.id=m,N.current.onLayout=i,N.current.storage=l}),t6({committedValuesRef:N,eagerValuesRef:E,groupId:m,layout:b,panelDataArray:E.current.panelDataArray,setLayout:y,panelGroupElement:v.current}),_.useEffect(()=>{const{panelDataArray:j}=E.current;if(e){if(b.length===0||b.length!==j.length)return;let H=_0[e];H==null&&(H=i6(l6,c6),_0[e]=H);const Y=[...j],Z=new Map(S.current);H(e,Y,Z,b,l)}},[e,b,l]),_.useEffect(()=>{});const A=_.useCallback(j=>{const{onLayout:H}=N.current,{layout:Y,panelDataArray:Z}=E.current;if(j.constraints.collapsible){const I=Z.map(ne=>ne.constraints),{collapsedSize:q=0,panelSize:J,pivotIndices:te}=Kn(Z,j,Y);if(de(J!=null,`Panel size not found for panel "${j.id}"`),!en(J,q)){S.current.set(j.id,J);const Q=Dr(Z,j)===Z.length-1?J-q:q-J,X=Yo({delta:Q,initialLayout:Y,panelConstraints:I,pivotIndices:te,prevLayout:Y,trigger:"imperative-api"});Ui(Y,X)||(y(X),E.current.layout=X,H&&H(X),Ar(Z,X,x.current))}}},[]),T=_.useCallback((j,H)=>{const{onLayout:Y}=N.current,{layout:Z,panelDataArray:I}=E.current;if(j.constraints.collapsible){const q=I.map(W=>W.constraints),{collapsedSize:J=0,panelSize:te=0,minSize:ne=0,pivotIndices:Q}=Kn(I,j,Z),X=H??ne;if(en(te,J)){const W=S.current.get(j.id),re=W!=null&&W>=X?W:X,pe=Dr(I,j)===I.length-1?te-re:re-te,fe=Yo({delta:pe,initialLayout:Z,panelConstraints:q,pivotIndices:Q,prevLayout:Z,trigger:"imperative-api"});Ui(Z,fe)||(y(fe),E.current.layout=fe,Y&&Y(fe),Ar(I,fe,x.current))}}},[]),F=_.useCallback(j=>{const{layout:H,panelDataArray:Y}=E.current,{panelSize:Z}=Kn(Y,j,H);return de(Z!=null,`Panel size not found for panel "${j.id}"`),Z},[]),R=_.useCallback((j,H)=>{const{panelDataArray:Y}=E.current,Z=Dr(Y,j);return a6({defaultSize:H,dragState:g,layout:b,panelData:Y,panelIndex:Z})},[g,b]),k=_.useCallback(j=>{const{layout:H,panelDataArray:Y}=E.current,{collapsedSize:Z=0,collapsible:I,panelSize:q}=Kn(Y,j,H);return de(q!=null,`Panel size not found for panel "${j.id}"`),I===!0&&en(q,Z)},[]),U=_.useCallback(j=>{const{layout:H,panelDataArray:Y}=E.current,{collapsedSize:Z=0,collapsible:I,panelSize:q}=Kn(Y,j,H);return de(q!=null,`Panel size not found for panel "${j.id}"`),!I||Un(q,Z)>0},[]),L=_.useCallback(j=>{const{panelDataArray:H}=E.current;H.push(j),H.sort((Y,Z)=>{const I=Y.order,q=Z.order;return I==null&&q==null?0:I==null?-1:q==null?1:I-q}),E.current.panelDataArrayChanged=!0,w()},[w]);Vn(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:j,onLayout:H,storage:Y}=N.current,{layout:Z,panelDataArray:I}=E.current;let q=null;if(j){const te=s6(j,I,Y);te&&(S.current=new Map(Object.entries(te.expandToSizes)),q=te.layout)}q==null&&(q=o6({panelDataArray:I}));const J=C0({layout:q,panelConstraints:I.map(te=>te.constraints)});g0(Z,J)||(y(J),E.current.layout=J,H&&H(J),Ar(I,J,x.current))}}),Vn(()=>{const j=E.current;return()=>{j.layout=[]}},[]);const G=_.useCallback(j=>{let H=!1;const Y=v.current;return Y&&window.getComputedStyle(Y,null).getPropertyValue("direction")==="rtl"&&(H=!0),function(I){I.preventDefault();const q=v.current;if(!q)return()=>null;const{direction:J,dragState:te,id:ne,keyboardResizeBy:Q,onLayout:X}=N.current,{layout:W,panelDataArray:re}=E.current,{initialLayout:le}=te??{},pe=h0(ne,j,q);let fe=r6(I,j,J,te,Q,q);const ce=J==="horizontal";ce&&H&&(fe=-fe);const Pe=re.map(Ue=>Ue.constraints),Le=Yo({delta:fe,initialLayout:le??W,panelConstraints:Pe,pivotIndices:pe,prevLayout:W,trigger:n0(I)?"keyboard":"mouse-or-touch"}),Ae=!Ui(W,Le);(r0(I)||o0(I))&&C.current!=fe&&(C.current=fe,!Ae&&fe!==0?ce?nd(j,fe<0?c0:u0):nd(j,fe<0?d0:f0):nd(j,0)),Ae&&(y(Le),E.current.layout=Le,X&&X(Le),Ar(re,Le,x.current))}},[]),V=_.useCallback((j,H)=>{const{onLayout:Y}=N.current,{layout:Z,panelDataArray:I}=E.current,q=I.map(W=>W.constraints),{panelSize:J,pivotIndices:te}=Kn(I,j,Z);de(J!=null,`Panel size not found for panel "${j.id}"`);const Q=Dr(I,j)===I.length-1?J-H:H-J,X=Yo({delta:Q,initialLayout:Z,panelConstraints:q,pivotIndices:te,prevLayout:Z,trigger:"imperative-api"});Ui(Z,X)||(y(X),E.current.layout=X,Y&&Y(X),Ar(I,X,x.current))},[]),B=_.useCallback((j,H)=>{const{layout:Y,panelDataArray:Z}=E.current,{collapsedSize:I=0,collapsible:q}=H,{collapsedSize:J=0,collapsible:te,maxSize:ne=100,minSize:Q=0}=j.constraints,{panelSize:X}=Kn(Z,j,Y);X!=null&&(q&&te&&en(X,I)?en(I,J)||V(j,J):X<Q?V(j,Q):X>ne&&V(j,ne))},[V]),$=_.useCallback((j,H)=>{const{direction:Y}=N.current,{layout:Z}=E.current;if(!v.current)return;const I=Gi(j,v.current);de(I,`Drag handle element not found for id "${j}"`);const q=b0(Y,H);h({dragHandleId:j,dragHandleRect:I.getBoundingClientRect(),initialCursorPosition:q,initialLayout:Z})},[]),K=_.useCallback(()=>{h(null)},[]),oe=_.useCallback(j=>{const{panelDataArray:H}=E.current,Y=Dr(H,j);Y>=0&&(H.splice(Y,1),delete x.current[j.id],E.current.panelDataArrayChanged=!0,w())},[w]),O=_.useMemo(()=>({collapsePanel:A,direction:r,dragState:g,expandPanel:T,getPanelSize:F,getPanelStyle:R,groupId:m,isPanelCollapsed:k,isPanelExpanded:U,reevaluatePanelConstraints:B,registerPanel:L,registerResizeHandle:G,resizePanel:V,startDragging:$,stopDragging:K,unregisterPanel:oe,panelGroupElement:v.current}),[A,g,r,T,F,R,m,k,U,B,L,G,V,$,K,oe]),D={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return _.createElement(Fi.Provider,{value:O},_.createElement(f,{...p,children:t,className:n,id:a,ref:v,style:{...D,...u},[je.group]:"",[je.groupDirection]:r,[je.groupId]:m}))}const P0=_.forwardRef((e,t)=>_.createElement(E0,{...e,forwardedRef:t}));E0.displayName="PanelGroup",P0.displayName="forwardRef(PanelGroup)";function Dr(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function Kn(e,t,n){const r=Dr(e,t),a=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:a}}function u6({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){_.useEffect(()=>{if(e||n==null||r==null)return;const o=Gi(t,r);if(o==null)return;const a=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const s=o.getAttribute(je.groupId);de(s,`No group element found for id "${s}"`);const l=qo(s,r),u=m0(s,t,r);de(u!==null,`No resize element found for id "${t}"`);const f=i.shiftKey?u>0?u-1:l.length-1:u+1<l.length?u+1:0;l[f].focus();break}}};return o.addEventListener("keydown",a),()=>{o.removeEventListener("keydown",a)}},[r,e,t,n])}function N0({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:a,onClick:i,onDragging:s,onFocus:l,onPointerDown:u,onPointerUp:f,style:p={},tabIndex:m=0,tagName:v="div",...g}){var h,b;const y=_.useRef(null),w=_.useRef({onClick:i,onDragging:s,onPointerDown:u,onPointerUp:f});_.useEffect(()=>{w.current.onClick=i,w.current.onDragging=s,w.current.onPointerDown=u,w.current.onPointerUp=f});const x=_.useContext(Fi);if(x===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:S,groupId:C,registerResizeHandle:N,startDragging:E,stopDragging:A,panelGroupElement:T}=x,F=Xu(o),[R,k]=_.useState("inactive"),[U,L]=_.useState(!1),[G,V]=_.useState(null),B=_.useRef({state:R});Vn(()=>{B.current.state=R}),_.useEffect(()=>{if(n)V(null);else{const O=N(F);V(()=>O)}},[n,F,N]);const $=(h=r==null?void 0:r.coarse)!==null&&h!==void 0?h:15,K=(b=r==null?void 0:r.fine)!==null&&b!==void 0?b:5;_.useEffect(()=>{if(n||G==null)return;const O=y.current;de(O,"Element ref not attached");let D=!1;return q8(F,O,S,{coarse:$,fine:K},(H,Y,Z)=>{if(!Y){k("inactive");return}switch(H){case"down":{k("drag"),D=!1,de(Z,'Expected event to be defined for "down" action'),E(F,Z);const{onDragging:I,onPointerDown:q}=w.current;I==null||I(!0),q==null||q();break}case"move":{const{state:I}=B.current;D=!0,I!=="drag"&&k("hover"),de(Z,'Expected event to be defined for "move" action'),G(Z);break}case"up":{k("hover"),A();const{onClick:I,onDragging:q,onPointerUp:J}=w.current;q==null||q(!1),J==null||J(),D||I==null||I();break}}})},[$,S,n,K,N,F,G,E,A]),u6({disabled:n,handleId:F,resizeHandler:G,panelGroupElement:T});const oe={touchAction:"none",userSelect:"none"};return _.createElement(v,{...g,children:e,className:t,id:o,onBlur:()=>{L(!1),a==null||a()},onFocus:()=>{L(!0),l==null||l()},ref:y,role:"separator",style:{...oe,...p},tabIndex:m,[je.groupDirection]:S,[je.groupId]:C,[je.resizeHandle]:"",[je.resizeHandleActive]:R==="drag"?"pointer":U?"keyboard":void 0,[je.resizeHandleEnabled]:!n,[je.resizeHandleId]:F,[je.resizeHandleState]:R})}N0.displayName="PanelResizeHandle";const d6=({className:e,...t})=>d.jsx(P0,{className:M("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),f6=t0,p6=({withHandle:e,className:t,...n})=>d.jsx(N0,{className:M("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&d.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:d.jsx(CT,{className:"h-2.5 w-2.5"})})});function Zo(e,[t,n]){return Math.min(n,Math.max(t,e))}function m6(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ad="ScrollArea",[T0]=Te(ad),[h6,pt]=T0(ad),M0=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,l]=c.useState(null),[u,f]=c.useState(null),[p,m]=c.useState(null),[v,g]=c.useState(null),[h,b]=c.useState(null),[y,w]=c.useState(0),[x,S]=c.useState(0),[C,N]=c.useState(!1),[E,A]=c.useState(!1),T=ae(t,R=>l(R)),F=ht(o);return d.jsx(h6,{scope:n,type:r,dir:F,scrollHideDelay:a,scrollArea:s,viewport:u,onViewportChange:f,content:p,onContentChange:m,scrollbarX:v,onScrollbarXChange:g,scrollbarXEnabled:C,onScrollbarXEnabledChange:N,scrollbarY:h,onScrollbarYChange:b,scrollbarYEnabled:E,onScrollbarYEnabledChange:A,onCornerWidthChange:w,onCornerHeightChange:S,children:d.jsx(ee.div,{dir:F,...i,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});M0.displayName=ad;var R0="ScrollAreaViewport",O0=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,i=pt(R0,n),s=c.useRef(null),l=ae(t,s,i.onViewportChange);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(ee.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:d.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});O0.displayName=R0;var zt="ScrollAreaScrollbar",id=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=pt(zt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=e.orientation==="horizontal";return c.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?d.jsx(v6,{...r,ref:t,forceMount:n}):o.type==="scroll"?d.jsx(g6,{...r,ref:t,forceMount:n}):o.type==="auto"?d.jsx(A0,{...r,ref:t,forceMount:n}):o.type==="always"?d.jsx(sd,{...r,ref:t}):null});id.displayName=zt;var v6=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=pt(zt,e.__scopeScrollArea),[a,i]=c.useState(!1);return c.useEffect(()=>{const s=o.scrollArea;let l=0;if(s){const u=()=>{window.clearTimeout(l),i(!0)},f=()=>{l=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",f),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),d.jsx(Re,{present:n||a,children:d.jsx(A0,{"data-state":a?"visible":"hidden",...r,ref:t})})}),g6=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=pt(zt,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Xi(()=>l("SCROLL_END"),100),[s,l]=m6("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return c.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,o.scrollHideDelay,l]),c.useEffect(()=>{const u=o.viewport,f=a?"scrollLeft":"scrollTop";if(u){let p=u[f];const m=()=>{const v=u[f];p!==v&&(l("SCROLL"),i()),p=v};return u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[o.viewport,a,l,i]),d.jsx(Re,{present:n||s!=="hidden",children:d.jsx(sd,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:z(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:z(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),A0=c.forwardRef((e,t)=>{const n=pt(zt,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=c.useState(!1),s=e.orientation==="horizontal",l=Xi(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?u:f)}},10);return Ir(n.viewport,l),Ir(n.content,l),d.jsx(Re,{present:r||a,children:d.jsx(sd,{"data-state":a?"visible":"hidden",...o,ref:t})})}),sd=c.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=pt(zt,e.__scopeScrollArea),a=c.useRef(null),i=c.useRef(0),[s,l]=c.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=k0(s.viewport,s.content),f={...r,sizes:s,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:m=>a.current=m,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:m=>i.current=m};function p(m,v){return C6(m,i.current,s,v)}return n==="horizontal"?d.jsx(b6,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollLeft,v=L0(m,s,o.dir);a.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=p(m,o.dir))}}):n==="vertical"?d.jsx(y6,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const m=o.viewport.scrollTop,v=L0(m,s);a.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=p(m))}}):null}),b6=c.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=pt(zt,e.__scopeScrollArea),[i,s]=c.useState(),l=c.useRef(null),u=ae(t,l,a.onScrollbarXChange);return c.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),d.jsx(I0,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":qi(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,p)=>{if(a.viewport){const m=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),B0(m,p)&&f.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Yi(i.paddingLeft),paddingEnd:Yi(i.paddingRight)}})}})}),y6=c.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=pt(zt,e.__scopeScrollArea),[i,s]=c.useState(),l=c.useRef(null),u=ae(t,l,a.onScrollbarYChange);return c.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),d.jsx(I0,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":qi(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,p)=>{if(a.viewport){const m=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),B0(m,p)&&f.preventDefault()}},onResize:()=>{l.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Yi(i.paddingTop),paddingEnd:Yi(i.paddingBottom)}})}})}),[w6,D0]=T0(zt),I0=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:f,onResize:p,...m}=e,v=pt(zt,n),[g,h]=c.useState(null),b=ae(t,T=>h(T)),y=c.useRef(null),w=c.useRef(""),x=v.viewport,S=r.content-r.viewport,C=he(f),N=he(l),E=Xi(p,10);function A(T){if(y.current){const F=T.clientX-y.current.left,R=T.clientY-y.current.top;u({x:F,y:R})}}return c.useEffect(()=>{const T=F=>{const R=F.target;(g==null?void 0:g.contains(R))&&C(F,S)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[x,g,S,C]),c.useEffect(N,[r,N]),Ir(g,E),Ir(v.content,E),d.jsx(w6,{scope:n,scrollbar:g,hasThumb:o,onThumbChange:he(a),onThumbPointerUp:he(i),onThumbPositionChange:N,onThumbPointerDown:he(s),children:d.jsx(ee.div,{...m,ref:b,style:{position:"absolute",...m.style},onPointerDown:z(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),y.current=g.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),A(T))}),onPointerMove:z(e.onPointerMove,A),onPointerUp:z(e.onPointerUp,T=>{const F=T.target;F.hasPointerCapture(T.pointerId)&&F.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=w.current,v.viewport&&(v.viewport.style.scrollBehavior=""),y.current=null})})})}),Ki="ScrollAreaThumb",j0=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=D0(Ki,e.__scopeScrollArea);return d.jsx(Re,{present:n||o.hasThumb,children:d.jsx(x6,{ref:t,...r})})}),x6=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=pt(Ki,n),i=D0(Ki,n),{onThumbPositionChange:s}=i,l=ae(t,p=>i.onThumbChange(p)),u=c.useRef(void 0),f=Xi(()=>{u.current&&(u.current(),u.current=void 0)},100);return c.useEffect(()=>{const p=a.viewport;if(p){const m=()=>{if(f(),!u.current){const v=_6(p,s);u.current=v,s()}};return s(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[a.viewport,f,s]),d.jsx(ee.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:z(e.onPointerDownCapture,p=>{const v=p.target.getBoundingClientRect(),g=p.clientX-v.left,h=p.clientY-v.top;i.onThumbPointerDown({x:g,y:h})}),onPointerUp:z(e.onPointerUp,i.onThumbPointerUp)})});j0.displayName=Ki;var ld="ScrollAreaCorner",$0=c.forwardRef((e,t)=>{const n=pt(ld,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?d.jsx(S6,{...e,ref:t}):null});$0.displayName=ld;var S6=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=pt(ld,n),[a,i]=c.useState(0),[s,l]=c.useState(0),u=!!(a&&s);return Ir(o.scrollbarX,()=>{var p;const f=((p=o.scrollbarX)==null?void 0:p.offsetHeight)||0;o.onCornerHeightChange(f),l(f)}),Ir(o.scrollbarY,()=>{var p;const f=((p=o.scrollbarY)==null?void 0:p.offsetWidth)||0;o.onCornerWidthChange(f),i(f)}),u?d.jsx(ee.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Yi(e){return e?parseInt(e,10):0}function k0(e,t){const n=e/t;return isNaN(n)?0:n}function qi(e){const t=k0(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function C6(e,t,n,r="ltr"){const o=qi(n),a=o/2,i=t||a,s=o-i,l=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,f=n.content-n.viewport,p=r==="ltr"?[0,f]:[f*-1,0];return F0([l,u],p)(e)}function L0(e,t,n="ltr"){const r=qi(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-r,l=n==="ltr"?[0,i]:[i*-1,0],u=Zo(e,l);return F0([0,i],[0,s])(u)}function F0(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function B0(e,t){return e>0&&e<t}var _6=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,s=n.top!==a.top;(i||s)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Xi(e,t){const n=he(e),r=c.useRef(0);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),c.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Ir(e,t){const n=he(t);Me(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var z0=M0,E6=O0,P6=$0;const W0=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(z0,{ref:r,className:M("relative overflow-hidden",e),...n,children:[d.jsx(E6,{className:"h-full w-full rounded-[inherit]",children:t}),d.jsx(cd,{}),d.jsx(P6,{})]}));W0.displayName=z0.displayName;const cd=c.forwardRef(({className:e,orientation:t="vertical",...n},r)=>d.jsx(id,{ref:r,orientation:t,className:M("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:d.jsx(j0,{className:"relative flex-1 rounded-full bg-border"})}));cd.displayName=id.displayName;function N6(e){const t=T6(e),n=c.forwardRef((r,o)=>{const{children:a,...i}=r,s=c.Children.toArray(a),l=s.find(R6);if(l){const u=l.props.children,f=s.map(p=>p===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return d.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function T6(e){const t=c.forwardRef((n,r)=>{const{children:o,...a}=n;if(c.isValidElement(o)){const i=A6(o),s=O6(a,o.props);return o.type!==c.Fragment&&(s.ref=r?Be(r,i):i),c.cloneElement(o,s)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var M6=Symbol("radix.slottable");function R6(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===M6}function O6(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{const l=a(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function A6(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var D6=[" ","Enter","ArrowUp","ArrowDown"],I6=[" ","Enter"],Yn="Select",[Zi,Qi,j6]=Ut(Yn),[jr]=Te(Yn,[j6,Ft]),Ji=Ft(),[$6,bn]=jr(Yn),[k6,L6]=jr(Yn),H0=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:u,name:f,autoComplete:p,disabled:m,required:v,form:g}=e,h=Ji(t),[b,y]=c.useState(null),[w,x]=c.useState(null),[S,C]=c.useState(!1),N=ht(u),[E,A]=_e({prop:r,defaultProp:o??!1,onChange:a,caller:Yn}),[T,F]=_e({prop:i,defaultProp:s,onChange:l,caller:Yn}),R=c.useRef(null),k=b?g||!!b.closest("form"):!0,[U,L]=c.useState(new Set),G=Array.from(U).map(V=>V.props.value).join(";");return d.jsx(Pr,{...h,children:d.jsxs($6,{required:v,scope:t,trigger:b,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:xe(),value:T,onValueChange:F,open:E,onOpenChange:A,dir:N,triggerPointerDownPosRef:R,disabled:m,children:[d.jsx(Zi.Provider,{scope:t,children:d.jsx(k6,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(V=>{L(B=>new Set(B).add(V))},[]),onNativeOptionRemove:c.useCallback(V=>{L(B=>{const $=new Set(B);return $.delete(V),$})},[]),children:n})}),k?d.jsxs(m_,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:p,value:T,onChange:V=>F(V.target.value),disabled:m,form:g,children:[T===void 0?d.jsx("option",{value:""}):null,Array.from(U)]},G):null]})})};H0.displayName=Yn;var V0="SelectTrigger",G0=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Ji(n),i=bn(V0,n),s=i.disabled||r,l=ae(t,i.onTriggerChange),u=Qi(n),f=c.useRef("touch"),[p,m,v]=v_(h=>{const b=u().filter(x=>!x.disabled),y=b.find(x=>x.value===i.value),w=g_(b,h,y);w!==void 0&&i.onValueChange(w.value)}),g=h=>{s||(i.onOpenChange(!0),v()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return d.jsx(Nr,{asChild:!0,...a,children:d.jsx(ee.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":h_(i.value)?"":void 0,...o,ref:l,onClick:z(o.onClick,h=>{h.currentTarget.focus(),f.current!=="mouse"&&g(h)}),onPointerDown:z(o.onPointerDown,h=>{f.current=h.pointerType;const b=h.target;b.hasPointerCapture(h.pointerId)&&b.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(g(h),h.preventDefault())}),onKeyDown:z(o.onKeyDown,h=>{const b=p.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&m(h.key),!(b&&h.key===" ")&&D6.includes(h.key)&&(g(),h.preventDefault())})})})});G0.displayName=V0;var U0="SelectValue",K0=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,l=bn(U0,n),{onValueNodeHasChildrenChange:u}=l,f=a!==void 0,p=ae(t,l.onValueNodeChange);return Me(()=>{u(f)},[u,f]),d.jsx(ee.span,{...s,ref:p,style:{pointerEvents:"none"},children:h_(l.value)?d.jsx(d.Fragment,{children:i}):a})});K0.displayName=U0;var F6="SelectIcon",Y0=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(ee.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Y0.displayName=F6;var B6="SelectPortal",q0=e=>d.jsx(er,{asChild:!0,...e});q0.displayName=B6;var qn="SelectContent",X0=c.forwardRef((e,t)=>{const n=bn(qn,e.__scopeSelect),[r,o]=c.useState();if(Me(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?Fr.createPortal(d.jsx(Z0,{scope:e.__scopeSelect,children:d.jsx(Zi.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(Q0,{...e,ref:t})});X0.displayName=qn;var Tt=10,[Z0,yn]=jr(qn),z6="SelectContentImpl",W6=N6("SelectContent.RemoveScroll"),Q0=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:h,avoidCollisions:b,...y}=e,w=bn(qn,n),[x,S]=c.useState(null),[C,N]=c.useState(null),E=ae(t,I=>S(I)),[A,T]=c.useState(null),[F,R]=c.useState(null),k=Qi(n),[U,L]=c.useState(!1),G=c.useRef(!1);c.useEffect(()=>{if(x)return xa(x)},[x]),pa();const V=c.useCallback(I=>{const[q,...J]=k().map(Q=>Q.ref.current),[te]=J.slice(-1),ne=document.activeElement;for(const Q of I)if(Q===ne||(Q==null||Q.scrollIntoView({block:"nearest"}),Q===q&&C&&(C.scrollTop=0),Q===te&&C&&(C.scrollTop=C.scrollHeight),Q==null||Q.focus(),document.activeElement!==ne))return},[k,C]),B=c.useCallback(()=>V([A,x]),[V,A,x]);c.useEffect(()=>{U&&B()},[U,B]);const{onOpenChange:$,triggerPointerDownPosRef:K}=w;c.useEffect(()=>{if(x){let I={x:0,y:0};const q=te=>{var ne,Q;I={x:Math.abs(Math.round(te.pageX)-(((ne=K.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(te.pageY)-(((Q=K.current)==null?void 0:Q.y)??0))}},J=te=>{I.x<=10&&I.y<=10?te.preventDefault():x.contains(te.target)||$(!1),document.removeEventListener("pointermove",q),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",J,{capture:!0})}}},[x,$,K]),c.useEffect(()=>{const I=()=>$(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[$]);const[oe,O]=v_(I=>{const q=k().filter(ne=>!ne.disabled),J=q.find(ne=>ne.ref.current===document.activeElement),te=g_(q,I,J);te&&setTimeout(()=>te.ref.current.focus())}),D=c.useCallback((I,q,J)=>{const te=!G.current&&!J;(w.value!==void 0&&w.value===q||te)&&(T(I),te&&(G.current=!0))},[w.value]),j=c.useCallback(()=>x==null?void 0:x.focus(),[x]),H=c.useCallback((I,q,J)=>{const te=!G.current&&!J;(w.value!==void 0&&w.value===q||te)&&R(I)},[w.value]),Y=r==="popper"?ud:J0,Z=Y===ud?{side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:h,avoidCollisions:b}:{};return d.jsx(Z0,{scope:n,content:x,viewport:C,onViewportChange:N,itemRefCallback:D,selectedItem:A,onItemLeave:j,itemTextRefCallback:H,focusSelectedItem:B,selectedItemText:F,position:r,isPositioned:U,searchRef:oe,children:d.jsx(Yr,{as:W6,allowPinchZoom:!0,children:d.jsx(Kr,{asChild:!0,trapped:w.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:z(o,I=>{var q;(q=w.trigger)==null||q.focus({preventScroll:!0}),I.preventDefault()}),children:d.jsx(Kt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:d.jsx(Y,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:I=>I.preventDefault(),...y,...Z,onPlaced:()=>L(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:z(y.onKeyDown,I=>{const q=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!q&&I.key.length===1&&O(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let te=k().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(I.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const ne=I.target,Q=te.indexOf(ne);te=te.slice(Q+1)}setTimeout(()=>V(te)),I.preventDefault()}})})})})})})});Q0.displayName=z6;var H6="SelectItemAlignedPosition",J0=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=bn(qn,n),i=yn(qn,n),[s,l]=c.useState(null),[u,f]=c.useState(null),p=ae(t,E=>f(E)),m=Qi(n),v=c.useRef(!1),g=c.useRef(!0),{viewport:h,selectedItem:b,selectedItemText:y,focusSelectedItem:w}=i,x=c.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&h&&b&&y){const E=a.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),T=a.valueNode.getBoundingClientRect(),F=y.getBoundingClientRect();if(a.dir!=="rtl"){const ne=F.left-A.left,Q=T.left-ne,X=E.left-Q,W=E.width+X,re=Math.max(W,A.width),le=window.innerWidth-Tt,pe=Zo(Q,[Tt,Math.max(Tt,le-re)]);s.style.minWidth=W+"px",s.style.left=pe+"px"}else{const ne=A.right-F.right,Q=window.innerWidth-T.right-ne,X=window.innerWidth-E.right-Q,W=E.width+X,re=Math.max(W,A.width),le=window.innerWidth-Tt,pe=Zo(Q,[Tt,Math.max(Tt,le-re)]);s.style.minWidth=W+"px",s.style.right=pe+"px"}const R=m(),k=window.innerHeight-Tt*2,U=h.scrollHeight,L=window.getComputedStyle(u),G=parseInt(L.borderTopWidth,10),V=parseInt(L.paddingTop,10),B=parseInt(L.borderBottomWidth,10),$=parseInt(L.paddingBottom,10),K=G+V+U+$+B,oe=Math.min(b.offsetHeight*5,K),O=window.getComputedStyle(h),D=parseInt(O.paddingTop,10),j=parseInt(O.paddingBottom,10),H=E.top+E.height/2-Tt,Y=k-H,Z=b.offsetHeight/2,I=b.offsetTop+Z,q=G+V+I,J=K-q;if(q<=H){const ne=R.length>0&&b===R[R.length-1].ref.current;s.style.bottom="0px";const Q=u.clientHeight-h.offsetTop-h.offsetHeight,X=Math.max(Y,Z+(ne?j:0)+Q+B),W=q+X;s.style.height=W+"px"}else{const ne=R.length>0&&b===R[0].ref.current;s.style.top="0px";const X=Math.max(H,G+h.offsetTop+(ne?D:0)+Z)+J;s.style.height=X+"px",h.scrollTop=q-H+h.offsetTop}s.style.margin=`${Tt}px 0`,s.style.minHeight=oe+"px",s.style.maxHeight=k+"px",r==null||r(),requestAnimationFrame(()=>v.current=!0)}},[m,a.trigger,a.valueNode,s,u,h,b,y,a.dir,r]);Me(()=>x(),[x]);const[S,C]=c.useState();Me(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const N=c.useCallback(E=>{E&&g.current===!0&&(x(),w==null||w(),g.current=!1)},[x,w]);return d.jsx(G6,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:N,children:d.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:d.jsx(ee.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});J0.displayName=H6;var V6="SelectPopperPosition",ud=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Tt,...a}=e,i=Ji(n);return d.jsx(No,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ud.displayName=V6;var[G6,dd]=jr(qn,{}),fd="SelectViewport",e_=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=yn(fd,n),i=dd(fd,n),s=ae(t,a.onViewportChange),l=c.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),d.jsx(Zi.Slot,{scope:n,children:d.jsx(ee.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:z(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&p){const v=Math.abs(l.current-f.scrollTop);if(v>0){const g=window.innerHeight-Tt*2,h=parseFloat(p.style.minHeight),b=parseFloat(p.style.height),y=Math.max(h,b);if(y<g){const w=y+v,x=Math.min(g,w),S=w-x;p.style.height=x+"px",p.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});e_.displayName=fd;var t_="SelectGroup",[U6,K6]=jr(t_),n_=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xe();return d.jsx(U6,{scope:n,id:o,children:d.jsx(ee.div,{role:"group","aria-labelledby":o,...r,ref:t})})});n_.displayName=t_;var r_="SelectLabel",o_=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=K6(r_,n);return d.jsx(ee.div,{id:o.id,...r,ref:t})});o_.displayName=r_;var es="SelectItem",[Y6,a_]=jr(es),i_=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=bn(es,n),l=yn(es,n),u=s.value===r,[f,p]=c.useState(a??""),[m,v]=c.useState(!1),g=ae(t,w=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,w,r,o)}),h=xe(),b=c.useRef("touch"),y=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Y6,{scope:n,value:r,disabled:o,textId:h,isSelected:u,onItemTextChange:c.useCallback(w=>{p(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:d.jsx(Zi.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:d.jsx(ee.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:g,onFocus:z(i.onFocus,()=>v(!0)),onBlur:z(i.onBlur,()=>v(!1)),onClick:z(i.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:z(i.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:z(i.onPointerDown,w=>{b.current=w.pointerType}),onPointerMove:z(i.onPointerMove,w=>{var x;b.current=w.pointerType,o?(x=l.onItemLeave)==null||x.call(l):b.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:z(i.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:z(i.onKeyDown,w=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(I6.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});i_.displayName=es;var Qo="SelectItemText",s_=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=bn(Qo,n),s=yn(Qo,n),l=a_(Qo,n),u=L6(Qo,n),[f,p]=c.useState(null),m=ae(t,y=>p(y),l.onItemTextChange,y=>{var w;return(w=s.itemTextRefCallback)==null?void 0:w.call(s,y,l.value,l.disabled)}),v=f==null?void 0:f.textContent,g=c.useMemo(()=>d.jsx("option",{value:l.value,disabled:l.disabled,children:v},l.value),[l.disabled,l.value,v]),{onNativeOptionAdd:h,onNativeOptionRemove:b}=u;return Me(()=>(h(g),()=>b(g)),[h,b,g]),d.jsxs(d.Fragment,{children:[d.jsx(ee.span,{id:l.textId,...a,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Fr.createPortal(a.children,i.valueNode):null]})});s_.displayName=Qo;var l_="SelectItemIndicator",c_=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return a_(l_,n).isSelected?d.jsx(ee.span,{"aria-hidden":!0,...r,ref:t}):null});c_.displayName=l_;var pd="SelectScrollUpButton",u_=c.forwardRef((e,t)=>{const n=yn(pd,e.__scopeSelect),r=dd(pd,e.__scopeSelect),[o,a]=c.useState(!1),i=ae(t,r.onScrollButtonChange);return Me(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollTop>0;a(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.jsx(f_,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});u_.displayName=pd;var md="SelectScrollDownButton",d_=c.forwardRef((e,t)=>{const n=yn(md,e.__scopeSelect),r=dd(md,e.__scopeSelect),[o,a]=c.useState(!1),i=ae(t,r.onScrollButtonChange);return Me(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;a(f)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.jsx(f_,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});d_.displayName=md;var f_=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=yn("SelectScrollButton",n),i=c.useRef(null),s=Qi(n),l=c.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),Me(()=>{var f;const u=s().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[s]),d.jsx(ee.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:z(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:z(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:z(o.onPointerLeave,()=>{l()})})}),q6="SelectSeparator",p_=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(ee.div,{"aria-hidden":!0,...r,ref:t})});p_.displayName=q6;var hd="SelectArrow",X6=c.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ji(n),a=bn(hd,n),i=yn(hd,n);return a.open&&i.position==="popper"?d.jsx(To,{...o,...r,ref:t}):null});X6.displayName=hd;var Z6="SelectBubbleInput",m_=c.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=c.useRef(null),a=ae(r,o),i=yr(t);return c.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const p=new Event("change",{bubbles:!0});f.call(s,t),s.dispatchEvent(p)}},[i,t]),d.jsx(ee.select,{...n,style:{...RS,...n.style},ref:a,defaultValue:t})});m_.displayName=Z6;function h_(e){return e===""||e===void 0}function v_(e){const t=he(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(i=>{const s=n.current+i;t(s),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function g_(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Q6(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Q6(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var J6=H0,b_=G0,e9=K0,t9=Y0,n9=q0,y_=X0,r9=e_,o9=n_,w_=o_,x_=i_,a9=s_,i9=c_,S_=u_,C_=d_,__=p_;const s9=J6,l9=o9,c9=e9,E_=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(b_,{ref:r,className:M("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 data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,d.jsx(t9,{asChild:!0,children:d.jsx(da,{className:"h-4 w-4 opacity-50"})})]}));E_.displayName=b_.displayName;const vd=c.forwardRef(({className:e,...t},n)=>d.jsx(S_,{ref:n,className:M("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(xT,{className:"h-4 w-4"})}));vd.displayName=S_.displayName;const gd=c.forwardRef(({className:e,...t},n)=>d.jsx(C_,{ref:n,className:M("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(da,{className:"h-4 w-4"})}));gd.displayName=C_.displayName;const P_=c.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>d.jsx(n9,{children:d.jsxs(y_,{ref:o,className:M("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-select-content-transform-origin]",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,...r,children:[d.jsx(vd,{}),d.jsx(r9,{className:M("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),d.jsx(gd,{})]})}));P_.displayName=y_.displayName;const N_=c.forwardRef(({className:e,...t},n)=>d.jsx(w_,{ref:n,className:M("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));N_.displayName=w_.displayName;const T_=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(x_,{ref:r,className:M("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:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(i9,{children:d.jsx(Ur,{className:"h-4 w-4"})})}),d.jsx(a9,{children:t})]}));T_.displayName=x_.displayName;const M_=c.forwardRef(({className:e,...t},n)=>d.jsx(__,{ref:n,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));M_.displayName=__.displayName;var u9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],d9=u9.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),r=c.forwardRef((o,a)=>{const{asChild:i,...s}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),f9="Separator",R_="horizontal",p9=["horizontal","vertical"],O_=c.forwardRef((e,t)=>{const{decorative:n,orientation:r=R_,...o}=e,a=m9(r)?r:R_,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return d.jsx(d9.div,{"data-orientation":a,...s,...o,ref:t})});O_.displayName=f9;function m9(e){return p9.includes(e)}var A_=O_;const bd=c.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>d.jsx(A_,{ref:o,decorative:n,orientation:t,className:M("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));bd.displayName=A_.displayName;const D_=qr,h9=_a,v9=Pn,I_=Xr,yd=c.forwardRef(({className:e,...t},n)=>d.jsx(_n,{className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));yd.displayName=_n.displayName;const g9=qt("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),wd=c.forwardRef(({side:e="right",className:t,children:n,...r},o)=>d.jsxs(I_,{children:[d.jsx(yd,{}),d.jsxs(En,{ref:o,className:M(g9({side:e}),t),...r,children:[n,d.jsxs(Pn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[d.jsx(Ts,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));wd.displayName=En.displayName;const xd=({className:e,...t})=>d.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});xd.displayName="SheetHeader";const j_=({className:e,...t})=>d.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});j_.displayName="SheetFooter";const Sd=c.forwardRef(({className:e,...t},n)=>d.jsx(ar,{ref:n,className:M("text-lg font-semibold text-foreground",e),...t}));Sd.displayName=ar.displayName;const Cd=c.forwardRef(({className:e,...t},n)=>d.jsx(ir,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));Cd.displayName=ir.displayName;function _d({className:e,...t}){return d.jsx("div",{className:M("animate-pulse rounded-md bg-muted",e),...t})}var b9=Symbol("radix.slottable");function y9(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=b9,t}var[ts]=Te("Tooltip",[Ft]),ns=Ft(),$_="TooltipProvider",w9=700,Ed="tooltip.open",[x9,Pd]=ts($_),k_=e=>{const{__scopeTooltip:t,delayDuration:n=w9,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,i=c.useRef(!0),s=c.useRef(!1),l=c.useRef(0);return c.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),d.jsx(x9,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:c.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:a})};k_.displayName=$_;var Jo="Tooltip",[S9,rs]=ts(Jo),L_=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,l=Pd(Jo,e.__scopeTooltip),u=ns(t),[f,p]=c.useState(null),m=xe(),v=c.useRef(0),g=i??l.disableHoverableContent,h=s??l.delayDuration,b=c.useRef(!1),[y,w]=_e({prop:r,defaultProp:o??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(Ed))):l.onClose(),a==null||a(E)},caller:Jo}),x=c.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),S=c.useCallback(()=>{window.clearTimeout(v.current),v.current=0,b.current=!1,w(!0)},[w]),C=c.useCallback(()=>{window.clearTimeout(v.current),v.current=0,w(!1)},[w]),N=c.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{b.current=!0,w(!0),v.current=0},h)},[h,w]);return c.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),d.jsx(Pr,{...u,children:d.jsx(S9,{scope:t,contentId:m,open:y,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{l.isOpenDelayedRef.current?N():S()},[l.isOpenDelayedRef,N,S]),onTriggerLeave:c.useCallback(()=>{g?C():(window.clearTimeout(v.current),v.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})};L_.displayName=Jo;var Nd="TooltipTrigger",F_=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=rs(Nd,n),a=Pd(Nd,n),i=ns(n),s=c.useRef(null),l=ae(t,s,o.onTriggerChange),u=c.useRef(!1),f=c.useRef(!1),p=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(Nr,{asChild:!0,...i,children:d.jsx(ee.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:z(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:z(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:z(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:z(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:z(e.onBlur,o.onClose),onClick:z(e.onClick,o.onClose)})})});F_.displayName=Nd;var C9="TooltipPortal",[Kq,_9]=ts(C9,{forceMount:void 0}),$r="TooltipContent",B_=c.forwardRef((e,t)=>{const n=_9($r,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=rs($r,e.__scopeTooltip);return d.jsx(Re,{present:r||i.open,children:i.disableHoverableContent?d.jsx(z_,{side:o,...a,ref:t}):d.jsx(E9,{side:o,...a,ref:t})})}),E9=c.forwardRef((e,t)=>{const n=rs($r,e.__scopeTooltip),r=Pd($r,e.__scopeTooltip),o=c.useRef(null),a=ae(t,o),[i,s]=c.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:p}=r,m=c.useCallback(()=>{s(null),p(!1)},[p]),v=c.useCallback((g,h)=>{const b=g.currentTarget,y={x:g.clientX,y:g.clientY},w=R9(y,b.getBoundingClientRect()),x=O9(y,w),S=A9(h.getBoundingClientRect()),C=I9([...x,...S]);s(C),p(!0)},[p]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(l&&f){const g=b=>v(b,f),h=b=>v(b,l);return l.addEventListener("pointerleave",g),f.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",g),f.removeEventListener("pointerleave",h)}}},[l,f,v,m]),c.useEffect(()=>{if(i){const g=h=>{const b=h.target,y={x:h.clientX,y:h.clientY},w=(l==null?void 0:l.contains(b))||(f==null?void 0:f.contains(b)),x=!D9(y,i);w?m():x&&(m(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,f,i,u,m]),d.jsx(z_,{...e,ref:a})}),[P9,N9]=ts(Jo,{isInside:!1}),T9=y9("TooltipContent"),z_=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,l=rs($r,n),u=ns(n),{onClose:f}=l;return c.useEffect(()=>(document.addEventListener(Ed,f),()=>document.removeEventListener(Ed,f)),[f]),c.useEffect(()=>{if(l.trigger){const p=m=>{const v=m.target;v!=null&&v.contains(l.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,f]),d.jsx(Kt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:d.jsxs(No,{"data-state":l.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(T9,{children:r}),d.jsx(P9,{scope:n,isInside:!0,children:d.jsx(OS,{id:l.contentId,role:"tooltip",children:o||r})})]})})});B_.displayName=$r;var W_="TooltipArrow",M9=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ns(n);return N9(W_,n).isInside?null:d.jsx(To,{...o,...r,ref:t})});M9.displayName=W_;function R9(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function O9(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function A9(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function D9(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],l=t[i],u=s.x,f=s.y,p=l.x,m=l.y;f>r!=m>r&&n<(p-u)*(r-f)/(m-f)+u&&(o=!o)}return o}function I9(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),j9(t)}function j9(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var $9=k_,k9=L_,L9=F_,H_=B_;const V_=$9,G_=k9,U_=L9,Td=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(H_,{ref:r,sideOffset:t,className:M("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n}));Td.displayName=H_.displayName;const F9="sidebar_state",B9=60*60*24*7,z9="16rem",W9="18rem",H9="3rem",V9="b",K_=c.createContext(null);function ea(){const e=c.useContext(K_);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Y_=c.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i},s)=>{const l=sf(),[u,f]=c.useState(!1),[p,m]=c.useState(e),v=t??p,g=c.useCallback(w=>{const x=typeof w=="function"?w(v):w;n?n(x):m(x),document.cookie=`${F9}=${x}; path=/; max-age=${B9}`},[n,v]),h=c.useCallback(()=>l?f(w=>!w):g(w=>!w),[l,g,f]);c.useEffect(()=>{const w=x=>{x.key===V9&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),h())};return window.addEventListener("keydown",w),()=>{window.removeEventListener("keydown",w)}},[h]);const b=v?"expanded":"collapsed",y=c.useMemo(()=>({state:b,open:v,setOpen:g,isMobile:l,openMobile:u,setOpenMobile:f,toggleSidebar:h}),[b,v,g,l,u,f,h]);return d.jsx(K_.Provider,{value:y,children:d.jsx(V_,{delayDuration:0,children:d.jsx("div",{style:{"--sidebar-width":z9,"--sidebar-width-icon":H9,...o},className:M("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:a})})})});Y_.displayName="SidebarProvider";const q_=c.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a},i)=>{const{isMobile:s,state:l,openMobile:u,setOpenMobile:f}=ea();return n==="none"?d.jsx("div",{className:M("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...a,children:o}):s?d.jsx(D_,{open:u,onOpenChange:f,...a,children:d.jsxs(wd,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":W9},side:e,children:[d.jsxs(xd,{className:"sr-only",children:[d.jsx(Sd,{children:"Sidebar"}),d.jsx(Cd,{children:"Displays the mobile sidebar."})]}),d.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):d.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,children:[d.jsx("div",{className:M("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),d.jsx("div",{className:M("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:d.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});q_.displayName="Sidebar";const X_=c.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=ea();return d.jsxs(Zr,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:M("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...n,children:[d.jsx(_T,{}),d.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});X_.displayName="SidebarTrigger";const Z_=c.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=ea();return d.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:M("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Z_.displayName="SidebarRail";const Q_=c.forwardRef(({className:e,...t},n)=>d.jsx("main",{ref:n,className:M("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Q_.displayName="SidebarInset";const J_=c.forwardRef(({className:e,...t},n)=>d.jsx(Nu,{ref:n,"data-sidebar":"input",className:M("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));J_.displayName="SidebarInput";const eE=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,"data-sidebar":"header",className:M("flex flex-col gap-2 p-2",e),...t}));eE.displayName="SidebarHeader";const tE=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,"data-sidebar":"footer",className:M("flex flex-col gap-2 p-2",e),...t}));tE.displayName="SidebarFooter";const nE=c.forwardRef(({className:e,...t},n)=>d.jsx(bd,{ref:n,"data-sidebar":"separator",className:M("mx-2 w-auto bg-sidebar-border",e),...t}));nE.displayName="SidebarSeparator";const rE=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,"data-sidebar":"content",className:M("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));rE.displayName="SidebarContent";const oE=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,"data-sidebar":"group",className:M("relative flex w-full min-w-0 flex-col p-2",e),...t}));oE.displayName="SidebarGroup";const aE=c.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?sn:"div";return d.jsx(o,{ref:r,"data-sidebar":"group-label",className:M("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});aE.displayName="SidebarGroupLabel";const iE=c.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?sn:"button";return d.jsx(o,{ref:r,"data-sidebar":"group-action",className:M("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});iE.displayName="SidebarGroupAction";const sE=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,"data-sidebar":"group-content",className:M("w-full text-sm",e),...t}));sE.displayName="SidebarGroupContent";const lE=c.forwardRef(({className:e,...t},n)=>d.jsx("ul",{ref:n,"data-sidebar":"menu",className:M("flex w-full min-w-0 flex-col gap-1",e),...t}));lE.displayName="SidebarMenu";const cE=c.forwardRef(({className:e,...t},n)=>d.jsx("li",{ref:n,"data-sidebar":"menu-item",className:M("group/menu-item relative",e),...t}));cE.displayName="SidebarMenuItem";const G9=qt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),uE=c.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...i},s)=>{const l=e?sn:"button",{isMobile:u,state:f}=ea(),p=d.jsx(l,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:M(G9({variant:n,size:r}),a),...i});return o?(typeof o=="string"&&(o={children:o}),d.jsxs(G_,{children:[d.jsx(U_,{asChild:!0,children:p}),d.jsx(Td,{side:"right",align:"center",hidden:f!=="collapsed"||u,...o})]})):p});uE.displayName="SidebarMenuButton";const dE=c.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const a=t?sn:"button";return d.jsx(a,{ref:o,"data-sidebar":"menu-action",className:M("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});dE.displayName="SidebarMenuAction";const fE=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:M("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));fE.displayName="SidebarMenuBadge";const pE=c.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=c.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return d.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:M("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&d.jsx(_d,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),d.jsx(_d,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});pE.displayName="SidebarMenuSkeleton";const mE=c.forwardRef(({className:e,...t},n)=>d.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:M("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));mE.displayName="SidebarMenuSub";const hE=c.forwardRef(({...e},t)=>d.jsx("li",{ref:t,...e}));hE.displayName="SidebarMenuSubItem";const vE=c.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},a)=>{const i=e?sn:"a";return d.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:M("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});vE.displayName="SidebarMenuSubButton";var gE=["PageUp","PageDown"],bE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],yE={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},kr="Slider",[Md,U9,K9]=Ut(kr),[wE]=Te(kr,[K9]),[Y9,os]=wE(kr),xE=c.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:f,onValueChange:p=()=>{},onValueCommit:m=()=>{},inverted:v=!1,form:g,...h}=e,b=c.useRef(new Set),y=c.useRef(0),x=i==="horizontal"?q9:X9,[S=[],C]=_e({prop:f,defaultProp:u,onChange:R=>{var U;(U=[...b.current][y.current])==null||U.focus(),p(R)}}),N=c.useRef(S);function E(R){const k=tq(S,R);F(R,k)}function A(R){F(R,y.current)}function T(){const R=N.current[y.current];S[y.current]!==R&&m(S)}function F(R,k,{commit:U}={commit:!1}){const L=aq(a),G=iq(Math.round((R-r)/a)*a+r,L),V=Zo(G,[r,o]);C((B=[])=>{const $=J9(B,V,k);if(oq($,l*a)){y.current=$.indexOf(V);const K=String($)!==String(B);return K&&U&&m($),K?$:B}else return B})}return d.jsx(Y9,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:y,thumbs:b.current,values:S,orientation:i,form:g,children:d.jsx(Md.Provider,{scope:e.__scopeSlider,children:d.jsx(Md.Slot,{scope:e.__scopeSlider,children:d.jsx(x,{"aria-disabled":s,"data-disabled":s?"":void 0,...h,ref:t,onPointerDown:z(h.onPointerDown,()=>{s||(N.current=S)}),min:r,max:o,inverted:v,onSlideStart:s?void 0:E,onSlideMove:s?void 0:A,onSlideEnd:s?void 0:T,onHomeKeyDown:()=>!s&&F(r,0,{commit:!0}),onEndKeyDown:()=>!s&&F(o,S.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:k})=>{if(!s){const G=gE.includes(R.key)||R.shiftKey&&bE.includes(R.key)?10:1,V=y.current,B=S[V],$=a*G*k;F(B+$,V,{commit:!0})}}})})})})});xE.displayName=kr;var[SE,CE]=wE(kr,{startEdge:"left",endEdge:"right",size:"width",direction:1}),q9=c.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...f}=e,[p,m]=c.useState(null),v=ae(t,x=>m(x)),g=c.useRef(void 0),h=ht(o),b=h==="ltr",y=b&&!a||!b&&a;function w(x){const S=g.current||p.getBoundingClientRect(),C=[0,S.width],E=Ad(C,y?[n,r]:[r,n]);return g.current=S,E(x-S.left)}return d.jsx(SE,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:d.jsx(_E,{dir:h,"data-orientation":"horizontal",...f,ref:v,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=w(x.clientX);i==null||i(S)},onSlideMove:x=>{const S=w(x.clientX);s==null||s(S)},onSlideEnd:()=>{g.current=void 0,l==null||l()},onStepKeyDown:x=>{const C=yE[y?"from-left":"from-right"].includes(x.key);u==null||u({event:x,direction:C?-1:1})}})})}),X9=c.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:l,...u}=e,f=c.useRef(null),p=ae(t,f),m=c.useRef(void 0),v=!o;function g(h){const b=m.current||f.current.getBoundingClientRect(),y=[0,b.height],x=Ad(y,v?[r,n]:[n,r]);return m.current=b,x(h-b.top)}return d.jsx(SE,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:d.jsx(_E,{"data-orientation":"vertical",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const b=g(h.clientY);a==null||a(b)},onSlideMove:h=>{const b=g(h.clientY);i==null||i(b)},onSlideEnd:()=>{m.current=void 0,s==null||s()},onStepKeyDown:h=>{const y=yE[v?"from-bottom":"from-top"].includes(h.key);l==null||l({event:h,direction:y?-1:1})}})})}),_E=c.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:l,...u}=e,f=os(kr,n);return d.jsx(ee.span,{...u,ref:t,onKeyDown:z(e.onKeyDown,p=>{p.key==="Home"?(i(p),p.preventDefault()):p.key==="End"?(s(p),p.preventDefault()):gE.concat(bE).includes(p.key)&&(l(p),p.preventDefault())}),onPointerDown:z(e.onPointerDown,p=>{const m=p.target;m.setPointerCapture(p.pointerId),p.preventDefault(),f.thumbs.has(m)?m.focus():r(p)}),onPointerMove:z(e.onPointerMove,p=>{p.target.hasPointerCapture(p.pointerId)&&o(p)}),onPointerUp:z(e.onPointerUp,p=>{const m=p.target;m.hasPointerCapture(p.pointerId)&&(m.releasePointerCapture(p.pointerId),a(p))})})}),EE="SliderTrack",PE=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=os(EE,n);return d.jsx(ee.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});PE.displayName=EE;var Rd="SliderRange",NE=c.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=os(Rd,n),a=CE(Rd,n),i=c.useRef(null),s=ae(t,i),l=o.values.length,u=o.values.map(m=>RE(m,o.min,o.max)),f=l>1?Math.min(...u):0,p=100-Math.max(...u);return d.jsx(ee.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:p+"%"}})});NE.displayName=Rd;var Od="SliderThumb",TE=c.forwardRef((e,t)=>{const n=U9(e.__scopeSlider),[r,o]=c.useState(null),a=ae(t,s=>o(s)),i=c.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return d.jsx(Z9,{...e,ref:a,index:i})}),Z9=c.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,i=os(Od,n),s=CE(Od,n),[l,u]=c.useState(null),f=ae(t,w=>u(w)),p=l?i.form||!!l.closest("form"):!0,m=xo(l),v=i.values[r],g=v===void 0?0:RE(v,i.min,i.max),h=eq(r,i.values.length),b=m==null?void 0:m[s.size],y=b?nq(b,g,s.direction):0;return c.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),d.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${y}px)`},children:[d.jsx(Md.ItemSlot,{scope:e.__scopeSlider,children:d.jsx(ee.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":i.min,"aria-valuenow":v,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:f,style:v===void 0?{display:"none"}:e.style,onFocus:z(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),p&&d.jsx(ME,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:v},r)]})});TE.displayName=Od;var Q9="RadioBubbleInput",ME=c.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=c.useRef(null),a=ae(o,r),i=yr(t);return c.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const p=new Event("input",{bubbles:!0});f.call(s,t),s.dispatchEvent(p)}},[i,t]),d.jsx(ee.input,{style:{display:"none"},...n,ref:a,defaultValue:t})});ME.displayName=Q9;function J9(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function RE(e,t,n){const a=100/(n-t)*(e-t);return Zo(a,[0,100])}function eq(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function tq(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function nq(e,t,n){const r=e/2,a=Ad([0,50],[0,r]);return(r-a(t)*n)*n}function rq(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function oq(e,t){if(t>0){const n=rq(e);return Math.min(...n)>=t}return!0}function Ad(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function aq(e){return(String(e).split(".")[1]||"").length}function iq(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var OE=xE,sq=PE,lq=NE,cq=TE;const AE=c.forwardRef(({className:e,...t},n)=>d.jsxs(OE,{ref:n,className:M("relative flex w-full touch-none select-none items-center",e),...t,children:[d.jsx(sq,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:d.jsx(lq,{className:"absolute h-full bg-primary"})}),d.jsx(cq,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));AE.displayName=OE.displayName;var as="Switch",[uq]=Te(as),[dq,fq]=uq(as),DE=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:l="on",onCheckedChange:u,form:f,...p}=e,[m,v]=c.useState(null),g=ae(t,x=>v(x)),h=c.useRef(!1),b=m?f||!!m.closest("form"):!0,[y,w]=_e({prop:o,defaultProp:a??!1,onChange:u,caller:as});return d.jsxs(dq,{scope:n,checked:y,disabled:s,children:[d.jsx(ee.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":kE(y),"data-disabled":s?"":void 0,disabled:s,value:l,...p,ref:g,onClick:z(e.onClick,x=>{w(S=>!S),b&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),b&&d.jsx($E,{control:m,bubbles:!h.current,name:r,value:l,checked:y,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});DE.displayName=as;var IE="SwitchThumb",jE=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=fq(IE,n);return d.jsx(ee.span,{"data-state":kE(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});jE.displayName=IE;var pq="SwitchBubbleInput",$E=c.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const i=c.useRef(null),s=ae(i,a),l=yr(n),u=xo(t);return c.useEffect(()=>{const f=i.current;if(!f)return;const p=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==n&&v){const g=new Event("click",{bubbles:r});v.call(f,n),f.dispatchEvent(g)}},[l,n,r]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$E.displayName=pq;function kE(e){return e?"checked":"unchecked"}var LE=DE,mq=jE;const FE=c.forwardRef(({className:e,...t},n)=>d.jsx(LE,{className:M("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:d.jsx(mq,{className:M("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));FE.displayName=LE.displayName;const BE=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{className:"relative w-full overflow-auto",children:d.jsx("table",{ref:n,className:M("w-full caption-bottom text-sm",e),...t})}));BE.displayName="Table";const zE=c.forwardRef(({className:e,...t},n)=>d.jsx("thead",{ref:n,className:M("[&_tr]:border-b",e),...t}));zE.displayName="TableHeader";const WE=c.forwardRef(({className:e,...t},n)=>d.jsx("tbody",{ref:n,className:M("[&_tr:last-child]:border-0",e),...t}));WE.displayName="TableBody";const HE=c.forwardRef(({className:e,...t},n)=>d.jsx("tfoot",{ref:n,className:M("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));HE.displayName="TableFooter";const VE=c.forwardRef(({className:e,...t},n)=>d.jsx("tr",{ref:n,className:M("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));VE.displayName="TableRow";const GE=c.forwardRef(({className:e,...t},n)=>d.jsx("th",{ref:n,className:M("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));GE.displayName="TableHead";const UE=c.forwardRef(({className:e,...t},n)=>d.jsx("td",{ref:n,className:M("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));UE.displayName="TableCell";const KE=c.forwardRef(({className:e,...t},n)=>d.jsx("caption",{ref:n,className:M("mt-4 text-sm text-muted-foreground",e),...t}));KE.displayName="TableCaption";var is="Tabs",[hq]=Te(is,[Bt]),YE=Bt(),[vq,Dd]=hq(is),qE=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:l="automatic",...u}=e,f=ht(s),[p,m]=_e({prop:r,onChange:o,defaultProp:a??"",caller:is});return d.jsx(vq,{scope:n,baseId:xe(),value:p,onValueChange:m,orientation:i,dir:f,activationMode:l,children:d.jsx(ee.div,{dir:f,"data-orientation":i,...u,ref:t})})});qE.displayName=is;var XE="TabsList",ZE=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Dd(XE,n),i=YE(n);return d.jsx(Ro,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:d.jsx(ee.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});ZE.displayName=XE;var QE="TabsTrigger",JE=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=Dd(QE,n),s=YE(n),l=nP(i.baseId,r),u=rP(i.baseId,r),f=r===i.value;return d.jsx(Oo,{asChild:!0,...s,focusable:!o,active:f,children:d.jsx(ee.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:z(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?i.onValueChange(r):p.preventDefault()}),onKeyDown:z(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(r)}),onFocus:z(e.onFocus,()=>{const p=i.activationMode!=="manual";!f&&!o&&p&&i.onValueChange(r)})})})});JE.displayName=QE;var eP="TabsContent",tP=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=Dd(eP,n),l=nP(s.baseId,r),u=rP(s.baseId,r),f=r===s.value,p=c.useRef(f);return c.useEffect(()=>{const m=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(m)},[]),d.jsx(Re,{present:o||f,children:({present:m})=>d.jsx(ee.div,{"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:m&&a})})});tP.displayName=eP;function nP(e,t){return`${e}-trigger-${t}`}function rP(e,t){return`${e}-content-${t}`}var gq=qE,oP=ZE,aP=JE,iP=tP;const bq=gq,sP=c.forwardRef(({className:e,...t},n)=>d.jsx(oP,{ref:n,className:M("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));sP.displayName=oP.displayName;const lP=c.forwardRef(({className:e,...t},n)=>d.jsx(aP,{ref:n,className:M("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));lP.displayName=aP.displayName;const cP=c.forwardRef(({className:e,...t},n)=>d.jsx(iP,{ref:n,className:M("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));cP.displayName=iP.displayName;const uP=c.forwardRef(({className:e,...t},n)=>d.jsx("textarea",{className:M("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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 md:text-sm",e),ref:n,...t}));uP.displayName="Textarea";var Id="ToastProvider",[jd,yq,wq]=Ut("Toast"),[dP]=Te("Toast",[wq]),[xq,ss]=dP(Id),fP=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[s,l]=c.useState(null),[u,f]=c.useState(0),p=c.useRef(!1),m=c.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Id}\`. Expected non-empty \`string\`.`),d.jsx(jd.Provider,{scope:t,children:d.jsx(xq,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:u,viewport:s,onViewportChange:l,onToastAdd:c.useCallback(()=>f(v=>v+1),[]),onToastRemove:c.useCallback(()=>f(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:i})})};fP.displayName=Id;var pP="ToastViewport",Sq=["F8"],$d="toast.viewportPause",kd="toast.viewportResume",mP=c.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Sq,label:o="Notifications ({hotkey})",...a}=e,i=ss(pP,n),s=yq(n),l=c.useRef(null),u=c.useRef(null),f=c.useRef(null),p=c.useRef(null),m=ae(t,p,i.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;c.useEffect(()=>{const b=y=>{var x;r.length!==0&&r.every(S=>y[S]||y.code===S)&&((x=p.current)==null||x.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),c.useEffect(()=>{const b=l.current,y=p.current;if(g&&b&&y){const w=()=>{if(!i.isClosePausedRef.current){const N=new CustomEvent($d);y.dispatchEvent(N),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const N=new CustomEvent(kd);y.dispatchEvent(N),i.isClosePausedRef.current=!1}},S=N=>{!b.contains(N.relatedTarget)&&x()},C=()=>{b.contains(document.activeElement)||x()};return b.addEventListener("focusin",w),b.addEventListener("focusout",S),b.addEventListener("pointermove",w),b.addEventListener("pointerleave",C),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{b.removeEventListener("focusin",w),b.removeEventListener("focusout",S),b.removeEventListener("pointermove",w),b.removeEventListener("pointerleave",C),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[g,i.isClosePausedRef]);const h=c.useCallback(({tabbingDirection:b})=>{const w=s().map(x=>{const S=x.ref.current,C=[S,...jq(S)];return b==="forwards"?C:C.reverse()});return(b==="forwards"?w.reverse():w).flat()},[s]);return c.useEffect(()=>{const b=p.current;if(b){const y=w=>{var C,N,E;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const A=document.activeElement,T=w.shiftKey;if(w.target===b&&T){(C=u.current)==null||C.focus();return}const k=h({tabbingDirection:T?"backwards":"forwards"}),U=k.findIndex(L=>L===A);Bd(k.slice(U+1))?w.preventDefault():T?(N=u.current)==null||N.focus():(E=f.current)==null||E.focus()}};return b.addEventListener("keydown",y),()=>b.removeEventListener("keydown",y)}},[s,h]),d.jsxs(jT,{ref:l,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&d.jsx(Ld,{ref:u,onFocusFromOutsideViewport:()=>{const b=h({tabbingDirection:"forwards"});Bd(b)}}),d.jsx(jd.Slot,{scope:n,children:d.jsx(ee.ol,{tabIndex:-1,...a,ref:m})}),g&&d.jsx(Ld,{ref:f,onFocusFromOutsideViewport:()=>{const b=h({tabbingDirection:"backwards"});Bd(b)}})]})});mP.displayName=pP;var hP="ToastFocusProxy",Ld=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=ss(hP,n);return d.jsx(Ai,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const s=i.relatedTarget;!((u=a.viewport)!=null&&u.contains(s))&&r()}})});Ld.displayName=hP;var ta="Toast",Cq="toast.swipeStart",_q="toast.swipeMove",Eq="toast.swipeCancel",Pq="toast.swipeEnd",vP=c.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[s,l]=_e({prop:r,defaultProp:o??!0,onChange:a,caller:ta});return d.jsx(Re,{present:n||s,children:d.jsx(Mq,{open:s,...i,ref:t,onClose:()=>l(!1),onPause:he(e.onPause),onResume:he(e.onResume),onSwipeStart:z(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:z(e.onSwipeMove,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:z(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:z(e.onSwipeEnd,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});vP.displayName=ta;var[Nq,Tq]=dP(ta,{onClose(){}}),Mq=c.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:s,onPause:l,onResume:u,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:v,...g}=e,h=ss(ta,n),[b,y]=c.useState(null),w=ae(t,L=>y(L)),x=c.useRef(null),S=c.useRef(null),C=o||h.duration,N=c.useRef(0),E=c.useRef(C),A=c.useRef(0),{onToastAdd:T,onToastRemove:F}=h,R=he(()=>{var G;(b==null?void 0:b.contains(document.activeElement))&&((G=h.viewport)==null||G.focus()),i()}),k=c.useCallback(L=>{!L||L===1/0||(window.clearTimeout(A.current),N.current=new Date().getTime(),A.current=window.setTimeout(R,L))},[R]);c.useEffect(()=>{const L=h.viewport;if(L){const G=()=>{k(E.current),u==null||u()},V=()=>{const B=new Date().getTime()-N.current;E.current=E.current-B,window.clearTimeout(A.current),l==null||l()};return L.addEventListener($d,V),L.addEventListener(kd,G),()=>{L.removeEventListener($d,V),L.removeEventListener(kd,G)}}},[h.viewport,C,l,u,k]),c.useEffect(()=>{a&&!h.isClosePausedRef.current&&k(C)},[a,C,h.isClosePausedRef,k]),c.useEffect(()=>(T(),()=>F()),[T,F]);const U=c.useMemo(()=>b?CP(b):null,[b]);return h.viewport?d.jsxs(d.Fragment,{children:[U&&d.jsx(Rq,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:U}),d.jsx(Nq,{scope:n,onClose:R,children:Fr.createPortal(d.jsx(jd.ItemSlot,{scope:n,children:d.jsx(IT,{asChild:!0,onEscapeKeyDown:z(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||R(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(ee.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":h.swipeDirection,...g,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:z(e.onKeyDown,L=>{L.key==="Escape"&&(s==null||s(L.nativeEvent),L.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,R()))}),onPointerDown:z(e.onPointerDown,L=>{L.button===0&&(x.current={x:L.clientX,y:L.clientY})}),onPointerMove:z(e.onPointerMove,L=>{if(!x.current)return;const G=L.clientX-x.current.x,V=L.clientY-x.current.y,B=!!S.current,$=["left","right"].includes(h.swipeDirection),K=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,oe=$?K(0,G):0,O=$?0:K(0,V),D=L.pointerType==="touch"?10:2,j={x:oe,y:O},H={originalEvent:L,delta:j};B?(S.current=j,ls(_q,p,H,{discrete:!1})):_P(j,h.swipeDirection,D)?(S.current=j,ls(Cq,f,H,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(G)>D||Math.abs(V)>D)&&(x.current=null)}),onPointerUp:z(e.onPointerUp,L=>{const G=S.current,V=L.target;if(V.hasPointerCapture(L.pointerId)&&V.releasePointerCapture(L.pointerId),S.current=null,x.current=null,G){const B=L.currentTarget,$={originalEvent:L,delta:G};_P(G,h.swipeDirection,h.swipeThreshold)?ls(Pq,v,$,{discrete:!0}):ls(Eq,m,$,{discrete:!0}),B.addEventListener("click",K=>K.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),Rq=e=>{const{__scopeToast:t,children:n,...r}=e,o=ss(ta,t),[a,i]=c.useState(!1),[s,l]=c.useState(!1);return Dq(()=>i(!0)),c.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:d.jsx(er,{asChild:!0,children:d.jsx(Ai,{...r,children:a&&d.jsxs(d.Fragment,{children:[o.label," ",n]})})})},Oq="ToastTitle",gP=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(ee.div,{...r,ref:t})});gP.displayName=Oq;var Aq="ToastDescription",bP=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(ee.div,{...r,ref:t})});bP.displayName=Aq;var yP="ToastAction",wP=c.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?d.jsx(SP,{altText:n,asChild:!0,children:d.jsx(Fd,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${yP}\`. Expected non-empty \`string\`.`),null)});wP.displayName=yP;var xP="ToastClose",Fd=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Tq(xP,n);return d.jsx(SP,{asChild:!0,children:d.jsx(ee.button,{type:"button",...r,ref:t,onClick:z(e.onClick,o.onClose)})})});Fd.displayName=xP;var SP=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return d.jsx(ee.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function CP(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Iq(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...CP(r))}}),t}function ls(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Gr(o,a):o.dispatchEvent(a)}var _P=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function Dq(e=()=>{}){const t=he(e);Me(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Iq(e){return e.nodeType===e.ELEMENT_NODE}function jq(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var $q=fP,EP=mP,PP=vP,NP=gP,TP=bP,MP=wP,RP=Fd;const OP=$q,zd=c.forwardRef(({className:e,...t},n)=>d.jsx(EP,{ref:n,className:M("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));zd.displayName=EP.displayName;const kq=qt("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Wd=c.forwardRef(({className:e,variant:t,...n},r)=>d.jsx(PP,{ref:r,className:M(kq({variant:t}),e),...n}));Wd.displayName=PP.displayName;const AP=c.forwardRef(({className:e,...t},n)=>d.jsx(MP,{ref:n,className:M("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));AP.displayName=MP.displayName;const Hd=c.forwardRef(({className:e,...t},n)=>d.jsx(RP,{ref:n,className:M("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:d.jsx(Ts,{className:"h-4 w-4"})}));Hd.displayName=RP.displayName;const Vd=c.forwardRef(({className:e,...t},n)=>d.jsx(NP,{ref:n,className:M("text-sm font-semibold",e),...t}));Vd.displayName=NP.displayName;const Gd=c.forwardRef(({className:e,...t},n)=>d.jsx(TP,{ref:n,className:M("text-sm opacity-90",e),...t}));Gd.displayName=TP.displayName;function Lq(){const{toasts:e}=df();return d.jsxs(OP,{children:[e.map(function({id:t,title:n,description:r,action:o,...a}){return d.jsxs(Wd,{...a,children:[d.jsxs("div",{className:"grid gap-1",children:[n&&d.jsx(Vd,{children:n}),r&&d.jsx(Gd,{children:r})]}),o,d.jsx(Hd,{})]},t)}),d.jsx(zd,{})]})}var DP="Toggle",Ud=c.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[i,s]=_e({prop:n,onChange:o,defaultProp:r??!1,caller:DP});return d.jsx(ee.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:z(e.onClick,()=>{e.disabled||s(!i)})})});Ud.displayName=DP;var IP=Ud,wn="ToggleGroup",[jP]=Te(wn,[Bt]),$P=Bt(),Kd=_.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return d.jsx(Fq,{...o,ref:t})}if(n==="multiple"){const o=r;return d.jsx(Bq,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${wn}\``)});Kd.displayName=wn;var[kP,LP]=jP(wn),Fq=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=_e({prop:n,defaultProp:r??"",onChange:o,caller:wn});return d.jsx(kP,{scope:e.__scopeToggleGroup,type:"single",value:_.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:_.useCallback(()=>s(""),[s]),children:d.jsx(FP,{...a,ref:t})})}),Bq=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=_e({prop:n,defaultProp:r??[],onChange:o,caller:wn}),l=_.useCallback(f=>s((p=[])=>[...p,f]),[s]),u=_.useCallback(f=>s((p=[])=>p.filter(m=>m!==f)),[s]);return d.jsx(kP,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u,children:d.jsx(FP,{...a,ref:t})})});Kd.displayName=wn;var[zq,Wq]=jP(wn),FP=_.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=$P(n),f=ht(i),p={role:"group",dir:f,...l};return d.jsx(zq,{scope:n,rovingFocus:o,disabled:r,children:o?d.jsx(Ro,{asChild:!0,...u,orientation:a,dir:f,loop:s,children:d.jsx(ee.div,{...p,ref:t})}):d.jsx(ee.div,{...p,ref:t})})}),cs="ToggleGroupItem",BP=_.forwardRef((e,t)=>{const n=LP(cs,e.__scopeToggleGroup),r=Wq(cs,e.__scopeToggleGroup),o=$P(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=_.useRef(null);return r.rovingFocus?d.jsx(Oo,{asChild:!0,...o,focusable:!i,active:a,ref:l,children:d.jsx(zP,{...s,ref:t})}):d.jsx(zP,{...s,ref:t})});BP.displayName=cs;var zP=_.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=LP(cs,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return d.jsx(Ud,{...s,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}})}),WP=Kd,HP=BP;const Yd=qt("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3 min-w-10",sm:"h-9 px-2.5 min-w-9",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"default",size:"default"}}),VP=c.forwardRef(({className:e,variant:t,size:n,...r},o)=>d.jsx(IP,{ref:o,className:M(Yd({variant:t,size:n,className:e})),...r}));VP.displayName=IP.displayName;const GP=c.createContext({size:"default",variant:"default"}),UP=c.forwardRef(({className:e,variant:t,size:n,children:r,...o},a)=>d.jsx(WP,{ref:a,className:M("flex items-center justify-center gap-1",e),...o,children:d.jsx(GP.Provider,{value:{variant:t,size:n},children:r})}));UP.displayName=WP.displayName;const KP=c.forwardRef(({className:e,children:t,variant:n,size:r,...o},a)=>{const i=c.useContext(GP);return d.jsx(HP,{ref:a,className:M(Yd({variant:i.variant||n,size:i.size||r}),e),...o,children:t})});KP.displayName=HP.displayName,P.Accordion=PT,P.AccordionContent=kf,P.AccordionItem=jf,P.AccordionTrigger=$f,P.Alert=tm,P.AlertDescription=rm,P.AlertDialog=fM,P.AlertDialogAction=Jp,P.AlertDialogCancel=em,P.AlertDialogContent=Yp,P.AlertDialogDescription=Qp,P.AlertDialogFooter=Xp,P.AlertDialogHeader=qp,P.AlertDialogOverlay=zs,P.AlertDialogPortal=Kp,P.AlertDialogTitle=Zp,P.AlertDialogTrigger=pM,P.AlertTitle=nm,P.AspectRatio=yM,P.Avatar=gm,P.AvatarFallback=ym,P.AvatarImage=bm,P.Badge=OM,P.Breadcrumb=xm,P.BreadcrumbEllipsis=Nm,P.BreadcrumbItem=Cm,P.BreadcrumbLink=_m,P.BreadcrumbList=Sm,P.BreadcrumbPage=Em,P.BreadcrumbSeparator=Pm,P.Button=Zr,P.Calendar=nh,P.Card=rh,P.CardContent=sh,P.CardDescription=ih,P.CardFooter=lh,P.CardHeader=oh,P.CardTitle=ah,P.Carousel=gh,P.CarouselContent=bh,P.CarouselItem=yh,P.CarouselNext=xh,P.CarouselPrevious=wh,P.ChartContainer=Ng,P.ChartLegend=Z5,P.ChartLegendContent=Rg,P.ChartStyle=Tg,P.ChartTooltip=X5,P.ChartTooltipContent=Mg,P.Checkbox=Lg,P.Collapsible=n3,P.CollapsibleContent=o3,P.CollapsibleTrigger=r3,P.Command=_c,P.CommandDialog=A3,P.CommandEmpty=ob,P.CommandGroup=ab,P.CommandInput=nb,P.CommandItem=sb,P.CommandList=rb,P.CommandSeparator=ib,P.CommandShortcut=lb,P.ContextMenu=iU,P.ContextMenuCheckboxItem=Xy,P.ContextMenuContent=Yy,P.ContextMenuGroup=lU,P.ContextMenuItem=qy,P.ContextMenuLabel=Qy,P.ContextMenuPortal=cU,P.ContextMenuRadioGroup=dU,P.ContextMenuRadioItem=Zy,P.ContextMenuSeparator=Jy,P.ContextMenuShortcut=ew,P.ContextMenuSub=uU,P.ContextMenuSubContent=Ky,P.ContextMenuSubTrigger=Uy,P.ContextMenuTrigger=sU,P.Dialog=Xg,P.DialogClose=O3,P.DialogContent=Cc,P.DialogDescription=tb,P.DialogFooter=Jg,P.DialogHeader=Qg,P.DialogOverlay=Sc,P.DialogPortal=Zg,P.DialogTitle=eb,P.DialogTrigger=R3,P.Drawer=vw,P.DrawerClose=BU,P.DrawerContent=bw,P.DrawerDescription=Sw,P.DrawerFooter=ww,P.DrawerHeader=yw,P.DrawerOverlay=yu,P.DrawerPortal=gw,P.DrawerTitle=xw,P.DrawerTrigger=FU,P.DropdownMenu=lK,P.DropdownMenuCheckboxItem=ex,P.DropdownMenuContent=Qw,P.DropdownMenuGroup=uK,P.DropdownMenuItem=Jw,P.DropdownMenuLabel=nx,P.DropdownMenuPortal=dK,P.DropdownMenuRadioGroup=pK,P.DropdownMenuRadioItem=tx,P.DropdownMenuSeparator=rx,P.DropdownMenuShortcut=ox,P.DropdownMenuSub=fK,P.DropdownMenuSubContent=Zw,P.DropdownMenuSubTrigger=Xw,P.DropdownMenuTrigger=cK,P.Form=AK,P.FormControl=xx,P.FormDescription=Sx,P.FormField=DK,P.FormItem=yx,P.FormLabel=wx,P.FormMessage=Cx,P.HoverCard=HK,P.HoverCardContent=Rx,P.HoverCardTrigger=VK,P.Input=Nu,P.InputOTP=kx,P.InputOTPGroup=Lx,P.InputOTPSeparator=Bx,P.InputOTPSlot=Fx,P.Label=_u,P.Menubar=yS,P.MenubarCheckboxItem=ES,P.MenubarContent=CS,P.MenubarGroup=NY,P.MenubarItem=_S,P.MenubarLabel=NS,P.MenubarMenu=PY,P.MenubarPortal=TY,P.MenubarRadioGroup=MY,P.MenubarRadioItem=PS,P.MenubarSeparator=TS,P.MenubarShortcut=MS,P.MenubarSub=RY,P.MenubarSubContent=SS,P.MenubarSubTrigger=xS,P.MenubarTrigger=wS,P.NavigationMenu=oC,P.NavigationMenuContent=lC,P.NavigationMenuIndicator=cC,P.NavigationMenuItem=qY,P.NavigationMenuLink=XY,P.NavigationMenuList=aC,P.NavigationMenuTrigger=sC,P.NavigationMenuViewport=Vu,P.Pagination=uC,P.PaginationContent=dC,P.PaginationEllipsis=hC,P.PaginationItem=fC,P.PaginationLink=ji,P.PaginationNext=mC,P.PaginationPrevious=pC,P.Popover=v8,P.PopoverContent=NC,P.PopoverTrigger=g8,P.Progress=$C,P.RadioGroup=ZC,P.RadioGroupItem=QC,P.ResizableHandle=p6,P.ResizablePanel=f6,P.ResizablePanelGroup=d6,P.ScrollArea=W0,P.ScrollBar=cd,P.Select=s9,P.SelectContent=P_,P.SelectGroup=l9,P.SelectItem=T_,P.SelectLabel=N_,P.SelectScrollDownButton=gd,P.SelectScrollUpButton=vd,P.SelectSeparator=M_,P.SelectTrigger=E_,P.SelectValue=c9,P.Separator=bd,P.Sheet=D_,P.SheetClose=v9,P.SheetContent=wd,P.SheetDescription=Cd,P.SheetFooter=j_,P.SheetHeader=xd,P.SheetOverlay=yd,P.SheetPortal=I_,P.SheetTitle=Sd,P.SheetTrigger=h9,P.Sidebar=q_,P.SidebarContent=rE,P.SidebarFooter=tE,P.SidebarGroup=oE,P.SidebarGroupAction=iE,P.SidebarGroupContent=sE,P.SidebarGroupLabel=aE,P.SidebarHeader=eE,P.SidebarInput=J_,P.SidebarInset=Q_,P.SidebarMenu=lE,P.SidebarMenuAction=dE,P.SidebarMenuBadge=fE,P.SidebarMenuButton=uE,P.SidebarMenuItem=cE,P.SidebarMenuSkeleton=pE,P.SidebarMenuSub=mE,P.SidebarMenuSubButton=vE,P.SidebarMenuSubItem=hE,P.SidebarProvider=Y_,P.SidebarRail=Z_,P.SidebarSeparator=nE,P.SidebarTrigger=X_,P.Skeleton=_d,P.Slider=AE,P.Switch=FE,P.Table=BE,P.TableBody=WE,P.TableCaption=KE,P.TableCell=UE,P.TableFooter=HE,P.TableHead=GE,P.TableHeader=zE,P.TableRow=VE,P.Tabs=bq,P.TabsContent=cP,P.TabsList=sP,P.TabsTrigger=lP,P.Textarea=uP,P.Toast=Wd,P.ToastAction=AP,P.ToastClose=Hd,P.ToastDescription=Gd,P.ToastProvider=OP,P.ToastTitle=Vd,P.ToastViewport=zd,P.Toaster=Lq,P.Toggle=VP,P.ToggleGroup=UP,P.ToggleGroupItem=KP,P.Tooltip=G_,P.TooltipContent=Td,P.TooltipProvider=V_,P.TooltipTrigger=U_,P.badgeVariants=wm,P.buttonVariants=Tn,P.cn=M,P.navigationMenuTriggerStyle=iC,P.reducer=cf,P.toast=uf,P.toggleVariants=Yd,P.useFormField=Ho,P.useIsMobile=sf,P.useSidebar=ea,P.useToast=df,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
|