@memoreco/ui 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),C=require("react"),Wr=require("react-dom");function Yo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=Yo(C),er=Yo(Wr);function kn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ko(...e){return t=>{let r=!1;const n=e.map(o=>{const i=kn(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():kn(e[o],null)}}}}function ee(...e){return f.useCallback(Ko(...e),e)}function yt(e){const t=Yl(e),r=f.forwardRef((n,o)=>{const{children:i,...s}=n,a=f.Children.toArray(i),c=a.find(Xl);if(c){const l=c.props.children,u=a.map(d=>d===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:d);return g.jsx(t,{...s,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,u):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Ul=yt("Slot");function Yl(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const s=ql(o),a=Zl(i,o.props);return o.type!==f.Fragment&&(a.ref=n?Ko(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xo=Symbol("radix.slottable");function Kl(e){const t=({children:r})=>g.jsx(g.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Xo,t}function Xl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xo}function Zl(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function ql(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Zo(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Hr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zo(e))&&(n&&(n+=" "),n+=t);return n}const Mn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,In=Hr,kt=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return In(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(l=>{const u=r==null?void 0:r[l],d=i==null?void 0:i[l];if(u===null)return null;const h=Mn(u)||Mn(d);return o[l][h]}),a=r&&Object.entries(r).reduce((l,u)=>{let[d,h]=u;return h===void 0||(l[d]=h),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,u)=>{let{class:d,className:h,...m}=u;return Object.entries(m).every(v=>{let[p,y]=v;return Array.isArray(y)?y.includes({...i,...a}[p]):{...i,...a}[p]===y})?[...l,d,h]:l},[]);return In(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},Gr="-",Ql=e=>{const t=ec(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(Gr);return a[0]===""&&a.length!==1&&a.shift(),qo(a,t)||Jl(s)},getConflictingClassGroupIds:(s,a)=>{const c=r[s]||[];return a&&n[s]?[...c,...n[s]]:c}}},qo=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?qo(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Gr);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},On=/^\[(.+)\]$/,Jl=e=>{if(On.test(e)){const t=On.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ec=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return rc(Object.entries(e.classGroups),r).forEach(([i,s])=>{Dr(s,n,i,t)}),n},Dr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:_n(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(tc(o)){Dr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Dr(s,_n(t,i),r,n)})})},_n=(e,t)=>{let r=e;return t.split(Gr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},tc=e=>e.isThemeGetter,rc=(e,t)=>t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[r,o]}):e,nc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},Qo="!",oc=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],i=t.length,s=a=>{const c=[];let l=0,u=0,d;for(let y=0;y<a.length;y++){let b=a[y];if(l===0){if(b===o&&(n||a.slice(y,y+i)===t)){c.push(a.slice(u,y)),u=y+i;continue}if(b==="/"){d=y;continue}}b==="["?l++:b==="]"&&l--}const h=c.length===0?a:a.substring(u),m=h.startsWith(Qo),v=m?h.substring(1):h,p=d&&d>u?d-u:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:p}};return r?a=>r({className:a,parseClassName:s}):s},sc=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},ic=e=>({cache:nc(e.cacheSize),parseClassName:oc(e),...Ql(e)}),ac=/\s+/,lc=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(ac);let a="";for(let c=s.length-1;c>=0;c-=1){const l=s[c],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:m}=r(l);let v=!!m,p=n(v?h.substring(0,m):h);if(!p){if(!v){a=l+(a.length>0?" "+a:a);continue}if(p=n(h),!p){a=l+(a.length>0?" "+a:a);continue}v=!1}const y=sc(u).join(":"),b=d?y+Qo:y,x=b+p;if(i.includes(x))continue;i.push(x);const w=o(p,v);for(let S=0;S<w.length;++S){const E=w[S];i.push(b+E)}a=l+(a.length>0?" "+a:a)}return a};function cc(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Jo(t))&&(n&&(n+=" "),n+=r);return n}const Jo=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Jo(e[n]))&&(r&&(r+=" "),r+=t);return r};function dc(e,...t){let r,n,o,i=s;function s(c){const l=t.reduce((u,d)=>d(u),e());return r=ic(l),n=r.cache.get,o=r.cache.set,i=a,a(c)}function a(c){const l=n(c);if(l)return l;const u=lc(c,r);return o(c,u),u}return function(){return i(cc.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},es=/^\[(?:([a-z-]+):)?(.+)\]$/i,uc=/^\d+\/\d+$/,fc=new Set(["px","full","screen"]),pc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hc=/\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$/,mc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oe=e=>ht(e)||fc.has(e)||uc.test(e),Fe=e=>xt(e,"length",Rc),ht=e=>!!e&&!Number.isNaN(Number(e)),xr=e=>xt(e,"number",ht),At=e=>!!e&&Number.isInteger(Number(e)),yc=e=>e.endsWith("%")&&ht(e.slice(0,-1)),H=e=>es.test(e),Ve=e=>pc.test(e),bc=new Set(["length","size","percentage"]),xc=e=>xt(e,bc,ts),wc=e=>xt(e,"position",ts),Cc=new Set(["image","url"]),Sc=e=>xt(e,Cc,Nc),Ec=e=>xt(e,"",Ac),Nt=()=>!0,xt=(e,t,r)=>{const n=es.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Rc=e=>hc.test(e)&&!mc.test(e),ts=()=>!1,Ac=e=>gc.test(e),Nc=e=>vc.test(e),Pc=()=>{const e=te("colors"),t=te("spacing"),r=te("blur"),n=te("brightness"),o=te("borderColor"),i=te("borderRadius"),s=te("borderSpacing"),a=te("borderWidth"),c=te("contrast"),l=te("grayscale"),u=te("hueRotate"),d=te("invert"),h=te("gap"),m=te("gradientColorStops"),v=te("gradientColorStopPositions"),p=te("inset"),y=te("margin"),b=te("opacity"),x=te("padding"),w=te("saturate"),S=te("scale"),E=te("sepia"),N=te("skew"),R=te("space"),O=te("translate"),B=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",H,t],k=()=>[H,t],I=()=>["",Oe,Fe],M=()=>["auto",ht,H],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["solid","dashed","dotted","double","none"],T=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",H],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[ht,H];return{cacheSize:500,separator:":",theme:{colors:[Nt],spacing:[Oe,Fe],blur:["none","",Ve,H],brightness:V(),borderColor:[e],borderRadius:["none","","full",Ve,H],borderSpacing:k(),borderWidth:I(),contrast:V(),grayscale:j(),hueRotate:V(),invert:j(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[yc,Fe],inset:P(),margin:P(),opacity:V(),padding:k(),saturate:V(),scale:V(),sepia:j(),skew:V(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[Ve]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:[..._(),H]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",At,H]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",At,H]}],"grid-cols":[{"grid-cols":[Nt]}],"col-start-end":[{col:["auto",{span:["full",At,H]},H]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Nt]}],"row-start-end":[{row:["auto",{span:[At,H]},H]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[Ve]},Ve]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ve,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xr]}],"font-family":[{font:[Nt]}],"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",H]}],"line-clamp":[{"line-clamp":["none",ht,xr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Oe,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Oe,Fe]}],"underline-offset":[{"underline-offset":["auto",Oe,H]}],"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",H]}],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",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),wc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xc]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Sc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...A(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:A()}],"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:["",...A()]}],"outline-offset":[{"outline-offset":[Oe,H]}],"outline-w":[{outline:[Oe,Fe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Oe,Fe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ve,Ec]}],"shadow-color":[{shadow:[Nt]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...T(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":T()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Ve,H]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[At,H]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"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",H]}],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",H]}],"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",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Oe,Fe,xr]}],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"]}}},rs=dc(Pc);var Tc=Object.defineProperty,Dc=(e,t,r)=>t in e?Tc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_e=(e,t,r)=>Dc(e,typeof t!="symbol"?t+"":t,r);function st(...e){return rs(Hr(e))}process.env.NEXT_PUBLIC_API_BASE_URL;process.env.NEXT_PUBLIC_SUPABASE_URL;process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY;const kc=class ns{constructor(t){_e(this,"el"),_e(this,"primed",!1),_e(this,"timer",null),_e(this,"resetTimer",null),_e(this,"opts"),_e(this,"inGroup",!1),_e(this,"currentTarget",null),_e(this,"obstacleSelector",null);var r,n;this.opts={initialDelayMs:(t==null?void 0:t.initialDelayMs)??350,resetDelayMs:(t==null?void 0:t.resetDelayMs)??400};const o=globalThis.document;this.el=o?o.createElement("div"):{},this.el.style.cssText=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),C=require("react"),tr=require("react-dom");function Xo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=Xo(C),rr=Xo(tr);function In(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zo(...e){return t=>{let r=!1;const n=e.map(o=>{const i=In(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():In(e[o],null)}}}}function ee(...e){return f.useCallback(Zo(...e),e)}function yt(e){const t=Kl(e),r=f.forwardRef((n,o)=>{const{children:i,...s}=n,a=f.Children.toArray(i),c=a.find(Zl);if(c){const l=c.props.children,u=a.map(d=>d===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:d);return g.jsx(t,{...s,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,u):null})}return g.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Yl=yt("Slot");function Kl(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const s=Ql(o),a=ql(i,o.props);return o.type!==f.Fragment&&(a.ref=n?Zo(n,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qo=Symbol("radix.slottable");function Xl(e){const t=({children:r})=>g.jsx(g.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=qo,t}function Zl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qo}function ql(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ql(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Qo(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Qo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Gr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Qo(e))&&(n&&(n+=" "),n+=t);return n}const On=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_n=Gr,kt=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return _n(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(l=>{const u=r==null?void 0:r[l],d=i==null?void 0:i[l];if(u===null)return null;const h=On(u)||On(d);return o[l][h]}),a=r&&Object.entries(r).reduce((l,u)=>{let[d,h]=u;return h===void 0||(l[d]=h),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,u)=>{let{class:d,className:h,...m}=u;return Object.entries(m).every(v=>{let[p,y]=v;return Array.isArray(y)?y.includes({...i,...a}[p]):{...i,...a}[p]===y})?[...l,d,h]:l},[]);return _n(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},Ur="-",Jl=e=>{const t=tc(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(Ur);return a[0]===""&&a.length!==1&&a.shift(),Jo(a,t)||ec(s)},getConflictingClassGroupIds:(s,a)=>{const c=r[s]||[];return a&&n[s]?[...c,...n[s]]:c}}},Jo=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Jo(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Ur);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},jn=/^\[(.+)\]$/,ec=e=>{if(jn.test(e)){const t=jn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},tc=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return nc(Object.entries(e.classGroups),r).forEach(([i,s])=>{kr(s,n,i,t)}),n},kr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Ln(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(rc(o)){kr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{kr(s,Ln(t,i),r,n)})})},Ln=(e,t)=>{let r=e;return t.split(Ur).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},rc=e=>e.isThemeGetter,nc=(e,t)=>t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[r,o]}):e,oc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},es="!",sc=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],i=t.length,s=a=>{const c=[];let l=0,u=0,d;for(let y=0;y<a.length;y++){let b=a[y];if(l===0){if(b===o&&(n||a.slice(y,y+i)===t)){c.push(a.slice(u,y)),u=y+i;continue}if(b==="/"){d=y;continue}}b==="["?l++:b==="]"&&l--}const h=c.length===0?a:a.substring(u),m=h.startsWith(es),v=m?h.substring(1):h,p=d&&d>u?d-u:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:p}};return r?a=>r({className:a,parseClassName:s}):s},ic=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},ac=e=>({cache:oc(e.cacheSize),parseClassName:sc(e),...Jl(e)}),lc=/\s+/,cc=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(lc);let a="";for(let c=s.length-1;c>=0;c-=1){const l=s[c],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:m}=r(l);let v=!!m,p=n(v?h.substring(0,m):h);if(!p){if(!v){a=l+(a.length>0?" "+a:a);continue}if(p=n(h),!p){a=l+(a.length>0?" "+a:a);continue}v=!1}const y=ic(u).join(":"),b=d?y+es:y,x=b+p;if(i.includes(x))continue;i.push(x);const w=o(p,v);for(let S=0;S<w.length;++S){const E=w[S];i.push(b+E)}a=l+(a.length>0?" "+a:a)}return a};function dc(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ts(t))&&(n&&(n+=" "),n+=r);return n}const ts=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ts(e[n]))&&(r&&(r+=" "),r+=t);return r};function uc(e,...t){let r,n,o,i=s;function s(c){const l=t.reduce((u,d)=>d(u),e());return r=ac(l),n=r.cache.get,o=r.cache.set,i=a,a(c)}function a(c){const l=n(c);if(l)return l;const u=cc(c,r);return o(c,u),u}return function(){return i(dc.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},rs=/^\[(?:([a-z-]+):)?(.+)\]$/i,fc=/^\d+\/\d+$/,pc=new Set(["px","full","screen"]),hc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mc=/\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$/,gc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oe=e=>ht(e)||pc.has(e)||fc.test(e),Fe=e=>xt(e,"length",Ac),ht=e=>!!e&&!Number.isNaN(Number(e)),wr=e=>xt(e,"number",ht),At=e=>!!e&&Number.isInteger(Number(e)),bc=e=>e.endsWith("%")&&ht(e.slice(0,-1)),H=e=>rs.test(e),Ve=e=>hc.test(e),xc=new Set(["length","size","percentage"]),wc=e=>xt(e,xc,ns),Cc=e=>xt(e,"position",ns),Sc=new Set(["image","url"]),Ec=e=>xt(e,Sc,Pc),Rc=e=>xt(e,"",Nc),Nt=()=>!0,xt=(e,t,r)=>{const n=rs.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Ac=e=>mc.test(e)&&!gc.test(e),ns=()=>!1,Nc=e=>vc.test(e),Pc=e=>yc.test(e),Tc=()=>{const e=te("colors"),t=te("spacing"),r=te("blur"),n=te("brightness"),o=te("borderColor"),i=te("borderRadius"),s=te("borderSpacing"),a=te("borderWidth"),c=te("contrast"),l=te("grayscale"),u=te("hueRotate"),d=te("invert"),h=te("gap"),m=te("gradientColorStops"),v=te("gradientColorStopPositions"),p=te("inset"),y=te("margin"),b=te("opacity"),x=te("padding"),w=te("saturate"),S=te("scale"),E=te("sepia"),k=te("skew"),A=te("space"),j=te("translate"),B=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",H,t],P=()=>[H,t],O=()=>["",Oe,Fe],M=()=>["auto",ht,H],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",H],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[ht,H];return{cacheSize:500,separator:":",theme:{colors:[Nt],spacing:[Oe,Fe],blur:["none","",Ve,H],brightness:V(),borderColor:[e],borderRadius:["none","","full",Ve,H],borderSpacing:P(),borderWidth:O(),contrast:V(),grayscale:_(),hueRotate:V(),invert:_(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[bc,Fe],inset:I(),margin:I(),opacity:V(),padding:P(),saturate:V(),scale:V(),sepia:_(),skew:V(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[Ve]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"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:[...T(),H]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",At,H]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",At,H]}],"grid-cols":[{"grid-cols":[Nt]}],"col-start-end":[{col:["auto",{span:["full",At,H]},H]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Nt]}],"row-start-end":[{row:["auto",{span:[At,H]},H]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[Ve]},Ve]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ve,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wr]}],"font-family":[{font:[Nt]}],"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",H]}],"line-clamp":[{"line-clamp":["none",ht,wr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Oe,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Oe,Fe]}],"underline-offset":[{"underline-offset":["auto",Oe,H]}],"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:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],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",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),Cc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wc]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ec]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:R()}],"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:["",...R()]}],"outline-offset":[{"outline-offset":[Oe,H]}],"outline-w":[{outline:[Oe,Fe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Oe,Fe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ve,Rc]}],"shadow-color":[{shadow:[Nt]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Ve,H]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[At,H]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],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",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Oe,Fe,wr]}],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"]}}},os=uc(Tc);var Dc=Object.defineProperty,kc=(e,t,r)=>t in e?Dc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_e=(e,t,r)=>kc(e,typeof t!="symbol"?t+"":t,r);function st(...e){return os(Gr(e))}process.env.NEXT_PUBLIC_API_BASE_URL;process.env.NEXT_PUBLIC_SUPABASE_URL;process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY;const Mc=class ss{constructor(t){_e(this,"el"),_e(this,"primed",!1),_e(this,"timer",null),_e(this,"resetTimer",null),_e(this,"opts"),_e(this,"inGroup",!1),_e(this,"currentTarget",null),_e(this,"obstacleSelector",null);var r,n;this.opts={initialDelayMs:(t==null?void 0:t.initialDelayMs)??350,resetDelayMs:(t==null?void 0:t.resetDelayMs)??400};const o=globalThis.document;this.el=o?o.createElement("div"):{},this.el.style.cssText=`
2
2
  position: fixed; z-index: 9999; background: rgba(17,17,17,0.95);
3
3
  color: #fff; padding: 6px 8px; border-radius: 6px; font-size: 12px;
4
4
  line-height: 1; pointer-events: none; opacity: 0; transition: opacity 60ms ease;
@@ -6,17 +6,17 @@
6
6
  border: 1px solid rgba(255, 0, 0, 0);
7
7
  box-sizing: content-box;
8
8
  background-clip: padding-box;
9
- `,o!=null&&o.body&&o.body.appendChild(this.el);const i=()=>{if(this.currentTarget)try{const s=this.currentTarget.getBoundingClientRect();this.el.style.left=`${Math.round(s.left+s.width/2)}px`;let a=s.top-this.getTopGapPx();if(this.obstacleSelector)try{const c=o==null?void 0:o.querySelector(this.obstacleSelector);if(c){const l=c.getBoundingClientRect();if(l.bottom>0&&l.top<s.top){const u=this.el.getBoundingClientRect().height||28;a=l.top+u-1}}}catch{}this.el.style.top=`${Math.round(a)}px`}catch{}};(r=globalThis.addEventListener)==null||r.call(globalThis,"scroll",i,{passive:!0}),(n=globalThis.addEventListener)==null||n.call(globalThis,"resize",i)}getTopGapPx(){var t;try{const r=((t=globalThis.navigator)==null?void 0:t.userAgent)||"";return/firefox/i.test(r)?9:8}catch{return 8}}setObstacleSelector(t){this.obstacleSelector=t}static getInstance(t){return this.instance||(this.instance=new ns(t)),this.instance}show(t,r){this.timer&&clearTimeout(this.timer),this.resetTimer&&clearTimeout(this.resetTimer);const n=this.primed?0:this.opts.initialDelayMs;this.timer=setTimeout(()=>{this.primed=!0,this.currentTarget=t,this.el.textContent=r;const o=t.getBoundingClientRect();this.el.style.left=`${Math.round(o.left+o.width/2)}px`;let i=o.top-this.getTopGapPx();if(this.obstacleSelector)try{const s=globalThis.document,a=s==null?void 0:s.querySelector(this.obstacleSelector);if(a){const c=a.getBoundingClientRect();if(c.bottom>0&&c.top<o.top){const l=this.el.getBoundingClientRect().height||28;i=c.top+l-1}}}catch{}this.el.style.top=`${Math.round(i)}px`,this.el.style.opacity!=="1"&&(this.el.style.opacity="1")},n)}hide(){if(this.timer&&clearTimeout(this.timer),this.inGroup){this.resetTimer&&clearTimeout(this.resetTimer),this.resetTimer=setTimeout(()=>{this.el.style.opacity="0",this.inGroup||(this.primed=!1),this.currentTarget=null},Math.max(this.opts.resetDelayMs,500));return}this.el.style.opacity="0",this.resetTimer&&clearTimeout(this.resetTimer),this.resetTimer=setTimeout(()=>{this.inGroup||(this.primed=!1),this.currentTarget=null},Math.max(this.opts.resetDelayMs,500))}hideNow(){this.timer&&clearTimeout(this.timer),this.resetTimer&&clearTimeout(this.resetTimer),this.el.style.opacity="0",this.primed=!1,this.currentTarget=null}enterGroup(){this.inGroup=!0,this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=null)}leaveGroup(){this.inGroup=!1,this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=null),this.resetTimer=setTimeout(()=>{this.primed=!1},this.opts.resetDelayMs)}isVisibleFor(t){return this.currentTarget===t&&this.el.style.opacity==="1"}};_e(kc,"instance",null);var oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},os={exports:{}},jn={exports:{}};/*!
9
+ `,o!=null&&o.body&&o.body.appendChild(this.el);const i=()=>{if(this.currentTarget)try{const s=this.currentTarget.getBoundingClientRect();this.el.style.left=`${Math.round(s.left+s.width/2)}px`;let a=s.top-this.getTopGapPx();if(this.obstacleSelector)try{const c=o==null?void 0:o.querySelector(this.obstacleSelector);if(c){const l=c.getBoundingClientRect();if(l.bottom>0&&l.top<s.top){const u=this.el.getBoundingClientRect().height||28;a=l.top+u-1}}}catch{}this.el.style.top=`${Math.round(a)}px`}catch{}};(r=globalThis.addEventListener)==null||r.call(globalThis,"scroll",i,{passive:!0}),(n=globalThis.addEventListener)==null||n.call(globalThis,"resize",i)}getTopGapPx(){var t;try{const r=((t=globalThis.navigator)==null?void 0:t.userAgent)||"";return/firefox/i.test(r)?9:8}catch{return 8}}setObstacleSelector(t){this.obstacleSelector=t}static getInstance(t){return this.instance||(this.instance=new ss(t)),this.instance}show(t,r){this.timer&&clearTimeout(this.timer),this.resetTimer&&clearTimeout(this.resetTimer);const n=this.primed?0:this.opts.initialDelayMs;this.timer=setTimeout(()=>{this.primed=!0,this.currentTarget=t,this.el.textContent=r;const o=t.getBoundingClientRect();this.el.style.left=`${Math.round(o.left+o.width/2)}px`;let i=o.top-this.getTopGapPx();if(this.obstacleSelector)try{const s=globalThis.document,a=s==null?void 0:s.querySelector(this.obstacleSelector);if(a){const c=a.getBoundingClientRect();if(c.bottom>0&&c.top<o.top){const l=this.el.getBoundingClientRect().height||28;i=c.top+l-1}}}catch{}this.el.style.top=`${Math.round(i)}px`,this.el.style.opacity!=="1"&&(this.el.style.opacity="1")},n)}hide(){if(this.timer&&clearTimeout(this.timer),this.inGroup){this.resetTimer&&clearTimeout(this.resetTimer),this.resetTimer=setTimeout(()=>{this.el.style.opacity="0",this.inGroup||(this.primed=!1),this.currentTarget=null},Math.max(this.opts.resetDelayMs,500));return}this.el.style.opacity="0",this.resetTimer&&clearTimeout(this.resetTimer),this.resetTimer=setTimeout(()=>{this.inGroup||(this.primed=!1),this.currentTarget=null},Math.max(this.opts.resetDelayMs,500))}hideNow(){this.timer&&clearTimeout(this.timer),this.resetTimer&&clearTimeout(this.resetTimer),this.el.style.opacity="0",this.primed=!1,this.currentTarget=null}enterGroup(){this.inGroup=!0,this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=null)}leaveGroup(){this.inGroup=!1,this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=null),this.resetTimer=setTimeout(()=>{this.primed=!1},this.opts.resetDelayMs)}isVisibleFor(t){return this.currentTarget===t&&this.el.style.opacity==="1"}};_e(Mc,"instance",null);var oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},is={exports:{}},$n={exports:{}};/*!
10
10
  * Zdog v1.1.3
11
11
  * Round, flat, designer-friendly pseudo-3D engine
12
12
  * Licensed MIT
13
13
  * https://zzz.dog
14
14
  * Copyright 2020 Metafizzy
15
- */var Ln;function Me(){return Ln||(Ln=1,function(e){(function(t,r){e.exports?e.exports=r():t.Zdog=r()})(oe,function(){var t={};t.TAU=Math.PI*2,t.extend=function(n,o){for(var i in o)n[i]=o[i];return n},t.lerp=function(n,o,i){return(o-n)*i+n},t.modulo=function(n,o){return(n%o+o)%o};var r={2:function(n){return n*n},3:function(n){return n*n*n},4:function(n){return n*n*n*n},5:function(n){return n*n*n*n*n}};return t.easeInOut=function(n,o){if(o==1)return n;n=Math.max(0,Math.min(1,n));var i=n<.5,s=i?n:1-n;s/=.5;var a=r[o]||r[2],c=a(s);return c/=2,i?c:1-c},t})}(jn)),jn.exports}var zn={exports:{}},$n;function ss(){return $n||($n=1,function(e){(function(t,r){e.exports?e.exports=r():t.Zdog.CanvasRenderer=r()})(oe,function(){var t={isCanvas:!0};return t.begin=function(r){r.beginPath()},t.move=function(r,n,o){r.moveTo(o.x,o.y)},t.line=function(r,n,o){r.lineTo(o.x,o.y)},t.bezier=function(r,n,o,i,s){r.bezierCurveTo(o.x,o.y,i.x,i.y,s.x,s.y)},t.closePath=function(r){r.closePath()},t.setPath=function(){},t.renderPath=function(r,n,o,i){this.begin(r,n),o.forEach(function(s){s.render(r,n,t)}),i&&this.closePath(r,n)},t.stroke=function(r,n,o,i,s){o&&(r.strokeStyle=i,r.lineWidth=s,r.stroke())},t.fill=function(r,n,o,i){o&&(r.fillStyle=i,r.fill())},t.end=function(){},t})}(zn)),zn.exports}var Bn={exports:{}},Fn;function is(){return Fn||(Fn=1,function(e){(function(t,r){e.exports?e.exports=r():t.Zdog.SvgRenderer=r()})(oe,function(){var t={isSvg:!0},r=t.round=function(o){return Math.round(o*1e3)/1e3};function n(o){return r(o.x)+","+r(o.y)+" "}return t.begin=function(){},t.move=function(o,i,s){return"M"+n(s)},t.line=function(o,i,s){return"L"+n(s)},t.bezier=function(o,i,s,a,c){return"C"+n(s)+n(a)+n(c)},t.closePath=function(){return"Z"},t.setPath=function(o,i,s){i.setAttribute("d",s)},t.renderPath=function(o,i,s,a){var c="";s.forEach(function(l){c+=l.render(o,i,t)}),a&&(c+=this.closePath(o,i)),this.setPath(o,i,c)},t.stroke=function(o,i,s,a,c){s&&(i.setAttribute("stroke",a),i.setAttribute("stroke-width",c))},t.fill=function(o,i,s,a){var c=s?a:"none";i.setAttribute("fill",c)},t.end=function(o,i){o.appendChild(i)},t})}(Bn)),Bn.exports}var Vn={exports:{}},Wn;function wt(){return Wn||(Wn=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me());else{var n=t.Zdog;n.Vector=r(n)}})(oe,function(t){function r(s){this.set(s)}var n=t.TAU;r.prototype.set=function(s){return this.x=s&&s.x||0,this.y=s&&s.y||0,this.z=s&&s.z||0,this},r.prototype.write=function(s){return s?(this.x=s.x!=null?s.x:this.x,this.y=s.y!=null?s.y:this.y,this.z=s.z!=null?s.z:this.z,this):this},r.prototype.rotate=function(s){if(s)return this.rotateZ(s.z),this.rotateY(s.y),this.rotateX(s.x),this},r.prototype.rotateZ=function(s){o(this,s,"x","y")},r.prototype.rotateX=function(s){o(this,s,"y","z")},r.prototype.rotateY=function(s){o(this,s,"x","z")};function o(s,a,c,l){if(!(!a||a%n===0)){var u=Math.cos(a),d=Math.sin(a),h=s[c],m=s[l];s[c]=h*u-m*d,s[l]=m*u+h*d}}r.prototype.isSame=function(s){return s?this.x===s.x&&this.y===s.y&&this.z===s.z:!1},r.prototype.add=function(s){return s?(this.x+=s.x||0,this.y+=s.y||0,this.z+=s.z||0,this):this},r.prototype.subtract=function(s){return s?(this.x-=s.x||0,this.y-=s.y||0,this.z-=s.z||0,this):this},r.prototype.multiply=function(s){return s==null?this:(typeof s=="number"?(this.x*=s,this.y*=s,this.z*=s):(this.x*=s.x!=null?s.x:1,this.y*=s.y!=null?s.y:1,this.z*=s.z!=null?s.z:1),this)},r.prototype.transform=function(s,a,c){return this.multiply(c),this.rotate(a),this.add(s),this},r.prototype.lerp=function(s,a){return this.x=t.lerp(this.x,s.x||0,a),this.y=t.lerp(this.y,s.y||0,a),this.z=t.lerp(this.z,s.z||0,a),this},r.prototype.magnitude=function(){var s=this.x*this.x+this.y*this.y+this.z*this.z;return i(s)};function i(s){return Math.abs(s-1)<1e-8?1:Math.sqrt(s)}return r.prototype.magnitude2d=function(){var s=this.x*this.x+this.y*this.y;return i(s)},r.prototype.copy=function(){return new r(this)},r})}(Vn)),Vn.exports}var Hn={exports:{}},Gn;function it(){return Gn||(Gn=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),wt(),ss(),is());else{var n=t.Zdog;n.Anchor=r(n,n.Vector,n.CanvasRenderer,n.SvgRenderer)}})(oe,function(t,r,n,o){var i=t.TAU,s={x:1,y:1,z:1};function a(l){this.create(l||{})}a.prototype.create=function(l){this.children=[],t.extend(this,this.constructor.defaults),this.setOptions(l),this.translate=new r(l.translate),this.rotate=new r(l.rotate),this.scale=new r(s).multiply(this.scale),this.origin=new r,this.renderOrigin=new r,this.addTo&&this.addTo.addChild(this)},a.defaults={},a.optionKeys=Object.keys(a.defaults).concat(["rotate","translate","scale","addTo"]),a.prototype.setOptions=function(l){var u=this.constructor.optionKeys;for(var d in l)u.indexOf(d)!=-1&&(this[d]=l[d])},a.prototype.addChild=function(l){this.children.indexOf(l)==-1&&(l.remove(),l.addTo=this,this.children.push(l))},a.prototype.removeChild=function(l){var u=this.children.indexOf(l);u!=-1&&this.children.splice(u,1)},a.prototype.remove=function(){this.addTo&&this.addTo.removeChild(this)},a.prototype.update=function(){this.reset(),this.children.forEach(function(l){l.update()}),this.transform(this.translate,this.rotate,this.scale)},a.prototype.reset=function(){this.renderOrigin.set(this.origin)},a.prototype.transform=function(l,u,d){this.renderOrigin.transform(l,u,d),this.children.forEach(function(h){h.transform(l,u,d)})},a.prototype.updateGraph=function(){this.update(),this.updateFlatGraph(),this.flatGraph.forEach(function(l){l.updateSortValue()}),this.flatGraph.sort(a.shapeSorter)},a.shapeSorter=function(l,u){return l.sortValue-u.sortValue},Object.defineProperty(a.prototype,"flatGraph",{get:function(){return this._flatGraph||this.updateFlatGraph(),this._flatGraph},set:function(l){this._flatGraph=l}}),a.prototype.updateFlatGraph=function(){this.flatGraph=this.getFlatGraph()},a.prototype.getFlatGraph=function(){var l=[this];return this.addChildFlatGraph(l)},a.prototype.addChildFlatGraph=function(l){return this.children.forEach(function(u){var d=u.getFlatGraph();Array.prototype.push.apply(l,d)}),l},a.prototype.updateSortValue=function(){this.sortValue=this.renderOrigin.z},a.prototype.render=function(){},a.prototype.renderGraphCanvas=function(l){if(!l)throw new Error("ctx is "+l+". Canvas context required for render. Check .renderGraphCanvas( ctx ).");this.flatGraph.forEach(function(u){u.render(l,n)})},a.prototype.renderGraphSvg=function(l){if(!l)throw new Error("svg is "+l+". SVG required for render. Check .renderGraphSvg( svg ).");this.flatGraph.forEach(function(u){u.render(l,o)})},a.prototype.copy=function(l){var u={},d=this.constructor.optionKeys;d.forEach(function(m){u[m]=this[m]},this),t.extend(u,l);var h=this.constructor;return new h(u)},a.prototype.copyGraph=function(l){var u=this.copy(l);return this.children.forEach(function(d){d.copyGraph({addTo:u})}),u},a.prototype.normalizeRotate=function(){this.rotate.x=t.modulo(this.rotate.x,i),this.rotate.y=t.modulo(this.rotate.y,i),this.rotate.z=t.modulo(this.rotate.z,i)};function c(l){return function(u){function d(h){this.create(h||{})}return d.prototype=Object.create(l.prototype),d.prototype.constructor=d,d.defaults=t.extend({},l.defaults),t.extend(d.defaults,u),d.optionKeys=l.optionKeys.slice(0),Object.keys(d.defaults).forEach(function(h){!d.optionKeys.indexOf(h)!=1&&d.optionKeys.push(h)}),d.subclass=c(d),d}}return a.subclass=c(a),a})}(Hn)),Hn.exports}var Un={exports:{}},Yn;function as(){return Yn||(Yn=1,function(e){(function(t,r){e.exports?e.exports=r():t.Zdog.Dragger=r()})(oe,function(){var t=typeof window<"u",r="mousedown",n="mousemove",o="mouseup";t&&(window.PointerEvent?(r="pointerdown",n="pointermove",o="pointerup"):"ontouchstart"in window&&(r="touchstart",n="touchmove",o="touchend"));function i(){}function s(a){this.create(a||{})}return s.prototype.create=function(a){this.onDragStart=a.onDragStart||i,this.onDragMove=a.onDragMove||i,this.onDragEnd=a.onDragEnd||i,this.bindDrag(a.startElement)},s.prototype.bindDrag=function(a){a=this.getQueryElement(a),a&&(a.style.touchAction="none",a.addEventListener(r,this))},s.prototype.getQueryElement=function(a){return typeof a=="string"&&(a=document.querySelector(a)),a},s.prototype.handleEvent=function(a){var c=this["on"+a.type];c&&c.call(this,a)},s.prototype.onmousedown=s.prototype.onpointerdown=function(a){this.dragStart(a,a)},s.prototype.ontouchstart=function(a){this.dragStart(a,a.changedTouches[0])},s.prototype.dragStart=function(a,c){a.preventDefault(),this.dragStartX=c.pageX,this.dragStartY=c.pageY,t&&(window.addEventListener(n,this),window.addEventListener(o,this)),this.onDragStart(c)},s.prototype.ontouchmove=function(a){this.dragMove(a,a.changedTouches[0])},s.prototype.onmousemove=s.prototype.onpointermove=function(a){this.dragMove(a,a)},s.prototype.dragMove=function(a,c){a.preventDefault();var l=c.pageX-this.dragStartX,u=c.pageY-this.dragStartY;this.onDragMove(c,l,u)},s.prototype.onmouseup=s.prototype.onpointerup=s.prototype.ontouchend=s.prototype.dragEnd=function(){window.removeEventListener(n,this),window.removeEventListener(o,this),this.onDragEnd()},s})}(Un)),Un.exports}var Kn={exports:{}},Xn;function Mc(){return Xn||(Xn=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),it(),as());else{var n=t.Zdog;n.Illustration=r(n,n.Anchor,n.Dragger)}})(oe,function(t,r,n){function o(){}var i=t.TAU,s=r.subclass({element:void 0,centered:!0,zoom:1,dragRotate:!1,resize:!1,onPrerender:o,onDragStart:o,onDragMove:o,onDragEnd:o,onResize:o});t.extend(s.prototype,n.prototype),s.prototype.create=function(c){r.prototype.create.call(this,c),n.prototype.create.call(this,c),this.setElement(this.element),this.setDragRotate(this.dragRotate),this.setResize(this.resize)},s.prototype.setElement=function(c){if(c=this.getQueryElement(c),!c)throw new Error("Zdog.Illustration element required. Set to "+c);var l=c.nodeName.toLowerCase();l=="canvas"?this.setCanvas(c):l=="svg"&&this.setSvg(c)},s.prototype.setSize=function(c,l){c=Math.round(c),l=Math.round(l),this.isCanvas?this.setSizeCanvas(c,l):this.isSvg&&this.setSizeSvg(c,l)},s.prototype.setResize=function(c){this.resize=c,this.resizeListener||(this.resizeListener=this.onWindowResize.bind(this)),c?(window.addEventListener("resize",this.resizeListener),this.onWindowResize()):window.removeEventListener("resize",this.resizeListener)},s.prototype.onWindowResize=function(){this.setMeasuredSize(),this.onResize(this.width,this.height)},s.prototype.setMeasuredSize=function(){var c,l,u=this.resize=="fullscreen";if(u)c=window.innerWidth,l=window.innerHeight;else{var d=this.element.getBoundingClientRect();c=d.width,l=d.height}this.setSize(c,l)},s.prototype.renderGraph=function(c){this.isCanvas?this.renderGraphCanvas(c):this.isSvg&&this.renderGraphSvg(c)},s.prototype.updateRenderGraph=function(c){this.updateGraph(),this.renderGraph(c)},s.prototype.setCanvas=function(c){this.element=c,this.isCanvas=!0,this.ctx=this.element.getContext("2d"),this.setSizeCanvas(c.width,c.height)},s.prototype.setSizeCanvas=function(c,l){this.width=c,this.height=l;var u=this.pixelRatio=window.devicePixelRatio||1;this.element.width=this.canvasWidth=c*u,this.element.height=this.canvasHeight=l*u;var d=u>1&&!this.resize;d&&(this.element.style.width=c+"px",this.element.style.height=l+"px")},s.prototype.renderGraphCanvas=function(c){c=c||this,this.prerenderCanvas(),r.prototype.renderGraphCanvas.call(c,this.ctx),this.postrenderCanvas()},s.prototype.prerenderCanvas=function(){var c=this.ctx;if(c.lineCap="round",c.lineJoin="round",c.clearRect(0,0,this.canvasWidth,this.canvasHeight),c.save(),this.centered){var l=this.width/2*this.pixelRatio,u=this.height/2*this.pixelRatio;c.translate(l,u)}var d=this.pixelRatio*this.zoom;c.scale(d,d),this.onPrerender(c)},s.prototype.postrenderCanvas=function(){this.ctx.restore()},s.prototype.setSvg=function(c){this.element=c,this.isSvg=!0,this.pixelRatio=1;var l=c.getAttribute("width"),u=c.getAttribute("height");this.setSizeSvg(l,u)},s.prototype.setSizeSvg=function(c,l){this.width=c,this.height=l;var u=c/this.zoom,d=l/this.zoom,h=this.centered?-u/2:0,m=this.centered?-d/2:0;this.element.setAttribute("viewBox",h+" "+m+" "+u+" "+d),this.resize?(this.element.removeAttribute("width"),this.element.removeAttribute("height")):(this.element.setAttribute("width",c),this.element.setAttribute("height",l))},s.prototype.renderGraphSvg=function(c){c=c||this,a(this.element),this.onPrerender(this.element),r.prototype.renderGraphSvg.call(c,this.element)};function a(c){for(;c.firstChild;)c.removeChild(c.firstChild)}return s.prototype.setDragRotate=function(c){if(c)c===!0&&(c=this);else return;this.dragRotate=c,this.bindDrag(this.element)},s.prototype.dragStart=function(){this.dragStartRX=this.dragRotate.rotate.x,this.dragStartRY=this.dragRotate.rotate.y,n.prototype.dragStart.apply(this,arguments)},s.prototype.dragMove=function(c,l){var u=l.pageX-this.dragStartX,d=l.pageY-this.dragStartY,h=Math.min(this.width,this.height),m=u/h*i,v=d/h*i;this.dragRotate.rotate.x=this.dragStartRX-v,this.dragRotate.rotate.y=this.dragStartRY-m,n.prototype.dragMove.apply(this,arguments)},s})}(Kn)),Kn.exports}var Zn={exports:{}},qn;function tr(){return qn||(qn=1,function(e){(function(t,r){if(e.exports)e.exports=r(wt());else{var n=t.Zdog;n.PathCommand=r(n.Vector)}})(oe,function(t){function r(s,a,c){this.method=s,this.points=a.map(n),this.renderPoints=a.map(o),this.previousPoint=c,this.endRenderPoint=this.renderPoints[this.renderPoints.length-1],s=="arc"&&(this.controlPoints=[new t,new t])}function n(s){return s instanceof t?s:new t(s)}function o(s){return new t(s)}r.prototype.reset=function(){var s=this.points;this.renderPoints.forEach(function(a,c){var l=s[c];a.set(l)})},r.prototype.transform=function(s,a,c){this.renderPoints.forEach(function(l){l.transform(s,a,c)})},r.prototype.render=function(s,a,c){return this[this.method](s,a,c)},r.prototype.move=function(s,a,c){return c.move(s,a,this.renderPoints[0])},r.prototype.line=function(s,a,c){return c.line(s,a,this.renderPoints[0])},r.prototype.bezier=function(s,a,c){var l=this.renderPoints[0],u=this.renderPoints[1],d=this.renderPoints[2];return c.bezier(s,a,l,u,d)};var i=9/16;return r.prototype.arc=function(s,a,c){var l=this.previousPoint,u=this.renderPoints[0],d=this.renderPoints[1],h=this.controlPoints[0],m=this.controlPoints[1];return h.set(l).lerp(u,i),m.set(d).lerp(u,i),c.bezier(s,a,h,m,d)},r})}(Zn)),Zn.exports}var Qn={exports:{}},Jn;function at(){return Jn||(Jn=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),wt(),tr(),it());else{var n=t.Zdog;n.Shape=r(n,n.Vector,n.PathCommand,n.Anchor)}})(oe,function(t,r,n,o){var i=o.subclass({stroke:1,fill:!1,color:"#333",closed:!0,visible:!0,path:[{}],front:{z:1},backface:!0});i.prototype.create=function(l){o.prototype.create.call(this,l),this.updatePath(),this.front=new r(l.front||this.front),this.renderFront=new r(this.front),this.renderNormal=new r};var s=["move","line","bezier","arc"];i.prototype.updatePath=function(){this.setPath(),this.updatePathCommands()},i.prototype.setPath=function(){},i.prototype.updatePathCommands=function(){var l;this.pathCommands=this.path.map(function(u,d){var h=Object.keys(u),m=h[0],v=u[m],p=h.length==1&&s.indexOf(m)!=-1;p||(m="line",v=u);var y=m=="line"||m=="move",b=Array.isArray(v);y&&!b&&(v=[v]),m=d===0?"move":m;var x=new n(m,v,l);return l=x.endRenderPoint,x})},i.prototype.reset=function(){this.renderOrigin.set(this.origin),this.renderFront.set(this.front),this.pathCommands.forEach(function(l){l.reset()})},i.prototype.transform=function(l,u,d){this.renderOrigin.transform(l,u,d),this.renderFront.transform(l,u,d),this.renderNormal.set(this.renderOrigin).subtract(this.renderFront),this.pathCommands.forEach(function(h){h.transform(l,u,d)}),this.children.forEach(function(h){h.transform(l,u,d)})},i.prototype.updateSortValue=function(){var l=this.pathCommands.length,u=this.pathCommands[0].endRenderPoint,d=this.pathCommands[l-1].endRenderPoint,h=l>2&&u.isSame(d);h&&(l-=1);for(var m=0,v=0;v<l;v++)m+=this.pathCommands[v].endRenderPoint.z;this.sortValue=m/l},i.prototype.render=function(l,u){var d=this.pathCommands.length;if(!(!this.visible||!d)&&(this.isFacingBack=this.renderNormal.z>0,!(!this.backface&&this.isFacingBack))){if(!u)throw new Error("Zdog renderer required. Set to "+u);var h=d==1;u.isCanvas&&h?this.renderCanvasDot(l,u):this.renderPath(l,u)}};var a=t.TAU;i.prototype.renderCanvasDot=function(l){var u=this.getLineWidth();if(u){l.fillStyle=this.getRenderColor();var d=this.pathCommands[0].endRenderPoint;l.beginPath();var h=u/2;l.arc(d.x,d.y,h,0,a),l.fill()}},i.prototype.getLineWidth=function(){return this.stroke?this.stroke==!0?1:this.stroke:0},i.prototype.getRenderColor=function(){var l=typeof this.backface=="string"&&this.isFacingBack,u=l?this.backface:this.color;return u},i.prototype.renderPath=function(l,u){var d=this.getRenderElement(l,u),h=this.pathCommands.length==2&&this.pathCommands[1].method=="line",m=!h&&this.closed,v=this.getRenderColor();u.renderPath(l,d,this.pathCommands,m),u.stroke(l,d,this.stroke,v,this.getLineWidth()),u.fill(l,d,this.fill,v),u.end(l,d)};var c="http://www.w3.org/2000/svg";return i.prototype.getRenderElement=function(l,u){if(u.isSvg)return this.svgElement||(this.svgElement=document.createElementNS(c,"path"),this.svgElement.setAttribute("stroke-linecap","round"),this.svgElement.setAttribute("stroke-linejoin","round")),this.svgElement},i})}(Qn)),Qn.exports}var eo={exports:{}},to;function ls(){return to||(to=1,function(e){(function(t,r){if(e.exports)e.exports=r(it());else{var n=t.Zdog;n.Group=r(n.Anchor)}})(oe,function(t){var r=t.subclass({updateSort:!1,visible:!0});return r.prototype.updateSortValue=function(){var n=0;this.flatGraph.forEach(function(o){o.updateSortValue(),n+=o.sortValue}),this.sortValue=n/this.flatGraph.length,this.updateSort&&this.flatGraph.sort(t.shapeSorter)},r.prototype.render=function(n,o){this.visible&&this.flatGraph.forEach(function(i){i.render(n,o)})},r.prototype.updateFlatGraph=function(){var n=[];this.flatGraph=this.addChildFlatGraph(n)},r.prototype.getFlatGraph=function(){return[this]},r})}(eo)),eo.exports}var ro={exports:{}},no;function cs(){return no||(no=1,function(e){(function(t,r){if(e.exports)e.exports=r(at());else{var n=t.Zdog;n.Rect=r(n.Shape)}})(oe,function(t){var r=t.subclass({width:1,height:1});return r.prototype.setPath=function(){var n=this.width/2,o=this.height/2;this.path=[{x:-n,y:-o},{x:n,y:-o},{x:n,y:o},{x:-n,y:o}]},r})}(ro)),ro.exports}var oo={exports:{}},so;function Ic(){return so||(so=1,function(e){(function(t,r){if(e.exports)e.exports=r(at());else{var n=t.Zdog;n.RoundedRect=r(n.Shape)}})(oe,function(t){var r=t.subclass({width:1,height:1,cornerRadius:.25,closed:!1});return r.prototype.setPath=function(){var n=this.width/2,o=this.height/2,i=Math.min(n,o),s=Math.min(this.cornerRadius,i),a=n-s,c=o-s,l=[{x:a,y:-o},{arc:[{x:n,y:-o},{x:n,y:-c}]}];c&&l.push({x:n,y:c}),l.push({arc:[{x:n,y:o},{x:a,y:o}]}),a&&l.push({x:-a,y:o}),l.push({arc:[{x:-n,y:o},{x:-n,y:c}]}),c&&l.push({x:-n,y:-c}),l.push({arc:[{x:-n,y:-o},{x:-a,y:-o}]}),a&&l.push({x:a,y:-o}),this.path=l},r})}(oo)),oo.exports}var io={exports:{}},ao;function rr(){return ao||(ao=1,function(e){(function(t,r){if(e.exports)e.exports=r(at());else{var n=t.Zdog;n.Ellipse=r(n.Shape)}})(oe,function(t){var r=t.subclass({diameter:1,width:void 0,height:void 0,quarters:4,closed:!1});return r.prototype.setPath=function(){var n=this.width!=null?this.width:this.diameter,o=this.height!=null?this.height:this.diameter,i=n/2,s=o/2;this.path=[{x:0,y:-s},{arc:[{x:i,y:-s},{x:i,y:0}]}],this.quarters>1&&this.path.push({arc:[{x:i,y:s},{x:0,y:s}]}),this.quarters>2&&this.path.push({arc:[{x:-i,y:s},{x:-i,y:0}]}),this.quarters>3&&this.path.push({arc:[{x:-i,y:-s},{x:0,y:-s}]})},r})}(io)),io.exports}var lo={exports:{}},co;function Oc(){return co||(co=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),at());else{var n=t.Zdog;n.Polygon=r(n,n.Shape)}})(oe,function(t,r){var n=r.subclass({sides:3,radius:.5}),o=t.TAU;return n.prototype.setPath=function(){this.path=[];for(var i=0;i<this.sides;i++){var s=i/this.sides*o-o/4,a=Math.cos(s)*this.radius,c=Math.sin(s)*this.radius;this.path.push({x:a,y:c})}},n})}(lo)),lo.exports}var uo={exports:{}},fo;function _c(){return fo||(fo=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),wt(),it(),rr());else{var n=t.Zdog;n.Hemisphere=r(n,n.Vector,n.Anchor,n.Ellipse)}})(oe,function(t,r,n,o){var i=o.subclass({fill:!0}),s=t.TAU;i.prototype.create=function(){o.prototype.create.apply(this,arguments),this.apex=new n({addTo:this,translate:{z:this.diameter/2}}),this.renderCentroid=new r},i.prototype.updateSortValue=function(){this.renderCentroid.set(this.renderOrigin).lerp(this.apex.renderOrigin,3/8),this.sortValue=this.renderCentroid.z},i.prototype.render=function(c,l){this.renderDome(c,l),o.prototype.render.apply(this,arguments)},i.prototype.renderDome=function(c,l){if(this.visible){var u=this.getDomeRenderElement(c,l),d=Math.atan2(this.renderNormal.y,this.renderNormal.x),h=this.diameter/2*this.renderNormal.magnitude(),m=this.renderOrigin.x,v=this.renderOrigin.y;if(l.isCanvas){var p=d+s/4,y=d-s/4;c.beginPath(),c.arc(m,v,h,p,y)}else l.isSvg&&(d=(d-s/4)/s*360,this.domeSvgElement.setAttribute("d","M "+-h+",0 A "+h+","+h+" 0 0 1 "+h+",0"),this.domeSvgElement.setAttribute("transform","translate("+m+","+v+" ) rotate("+d+")"));l.stroke(c,u,this.stroke,this.color,this.getLineWidth()),l.fill(c,u,this.fill,this.color),l.end(c,u)}};var a="http://www.w3.org/2000/svg";return i.prototype.getDomeRenderElement=function(c,l){if(l.isSvg)return this.domeSvgElement||(this.domeSvgElement=document.createElementNS(a,"path"),this.domeSvgElement.setAttribute("stroke-linecap","round"),this.domeSvgElement.setAttribute("stroke-linejoin","round")),this.domeSvgElement},i})}(uo)),uo.exports}var po={exports:{}},ho;function jc(){return ho||(ho=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),tr(),at(),ls(),rr());else{var n=t.Zdog;n.Cylinder=r(n,n.PathCommand,n.Shape,n.Group,n.Ellipse)}})(oe,function(t,r,n,o,i){function s(){}var a=o.subclass({color:"#333",updateSort:!0});a.prototype.create=function(){o.prototype.create.apply(this,arguments),this.pathCommands=[new r("move",[{}]),new r("line",[{}])]},a.prototype.render=function(m,v){this.renderCylinderSurface(m,v),o.prototype.render.apply(this,arguments)},a.prototype.renderCylinderSurface=function(m,v){if(this.visible){var p=this.getRenderElement(m,v),y=this.frontBase,b=this.rearBase,x=y.renderNormal.magnitude(),w=y.diameter*x+y.getLineWidth();this.pathCommands[0].renderPoints[0].set(y.renderOrigin),this.pathCommands[1].renderPoints[0].set(b.renderOrigin),v.isCanvas&&(m.lineCap="butt"),v.renderPath(m,p,this.pathCommands),v.stroke(m,p,!0,this.color,w),v.end(m,p),v.isCanvas&&(m.lineCap="round")}};var c="http://www.w3.org/2000/svg";a.prototype.getRenderElement=function(m,v){if(v.isSvg)return this.svgElement||(this.svgElement=document.createElementNS(c,"path")),this.svgElement},a.prototype.copyGraph=s;var l=i.subclass();l.prototype.copyGraph=s;var u=n.subclass({diameter:1,length:1,frontFace:void 0,fill:!0}),d=t.TAU;u.prototype.create=function(){n.prototype.create.apply(this,arguments),this.group=new a({addTo:this,color:this.color,visible:this.visible});var m=this.length/2,v=this.backface||!0;this.frontBase=this.group.frontBase=new i({addTo:this.group,diameter:this.diameter,translate:{z:m},rotate:{y:d/2},color:this.color,stroke:this.stroke,fill:this.fill,backface:this.frontFace||v,visible:this.visible}),this.rearBase=this.group.rearBase=this.frontBase.copy({translate:{z:-m},rotate:{y:0},backface:v})},u.prototype.render=function(){};var h=["stroke","fill","color","visible"];return h.forEach(function(m){var v="_"+m;Object.defineProperty(u.prototype,m,{get:function(){return this[v]},set:function(p){this[v]=p,this.frontBase&&(this.frontBase[m]=p,this.rearBase[m]=p,this.group[m]=p)}})}),u})}(po)),po.exports}var mo={exports:{}},go;function Lc(){return go||(go=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),wt(),tr(),it(),rr());else{var n=t.Zdog;n.Cone=r(n,n.Vector,n.PathCommand,n.Anchor,n.Ellipse)}})(oe,function(t,r,n,o,i){var s=i.subclass({length:1,fill:!0}),a=t.TAU;s.prototype.create=function(){i.prototype.create.apply(this,arguments),this.apex=new o({addTo:this,translate:{z:this.length}}),this.renderApex=new r,this.renderCentroid=new r,this.tangentA=new r,this.tangentB=new r,this.surfacePathCommands=[new n("move",[{}]),new n("line",[{}]),new n("line",[{}])]},s.prototype.updateSortValue=function(){this.renderCentroid.set(this.renderOrigin).lerp(this.apex.renderOrigin,1/3),this.sortValue=this.renderCentroid.z},s.prototype.render=function(l,u){this.renderConeSurface(l,u),i.prototype.render.apply(this,arguments)},s.prototype.renderConeSurface=function(l,u){if(this.visible){this.renderApex.set(this.apex.renderOrigin).subtract(this.renderOrigin);var d=this.renderNormal.magnitude(),h=this.renderApex.magnitude2d(),m=this.renderNormal.magnitude2d(),v=Math.acos(m/d),p=Math.sin(v),y=this.diameter/2*d,b=y*p<h;if(b){var x=Math.atan2(this.renderNormal.y,this.renderNormal.x)+a/2,w=h/p,S=Math.acos(y/w),E=this.tangentA,N=this.tangentB;E.x=Math.cos(S)*y*p,E.y=Math.sin(S)*y,N.set(this.tangentA),N.y*=-1,E.rotateZ(x),N.rotateZ(x),E.add(this.renderOrigin),N.add(this.renderOrigin),this.setSurfaceRenderPoint(0,E),this.setSurfaceRenderPoint(1,this.apex.renderOrigin),this.setSurfaceRenderPoint(2,N);var R=this.getSurfaceRenderElement(l,u);u.renderPath(l,R,this.surfacePathCommands),u.stroke(l,R,this.stroke,this.color,this.getLineWidth()),u.fill(l,R,this.fill,this.color),u.end(l,R)}}};var c="http://www.w3.org/2000/svg";return s.prototype.getSurfaceRenderElement=function(l,u){if(u.isSvg)return this.surfaceSvgElement||(this.surfaceSvgElement=document.createElementNS(c,"path"),this.surfaceSvgElement.setAttribute("stroke-linecap","round"),this.surfaceSvgElement.setAttribute("stroke-linejoin","round")),this.surfaceSvgElement},s.prototype.setSurfaceRenderPoint=function(l,u){var d=this.surfacePathCommands[l].renderPoints[0];d.set(u)},s})}(mo)),mo.exports}var vo={exports:{}},yo;function zc(){return yo||(yo=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),it(),at(),cs());else{var n=t.Zdog;n.Box=r(n,n.Anchor,n.Shape,n.Rect)}})(oe,function(t,r,n,o){var i=o.subclass();i.prototype.copyGraph=function(){};var s=t.TAU,a=["frontFace","rearFace","leftFace","rightFace","topFace","bottomFace"],c=t.extend({},n.defaults);delete c.path,a.forEach(function(d){c[d]=!0}),t.extend(c,{width:1,height:1,depth:1,fill:!0});var l=r.subclass(c);l.prototype.create=function(d){r.prototype.create.call(this,d),this.updatePath(),this.fill=this.fill},l.prototype.updatePath=function(){a.forEach(function(d){this[d]=this[d]},this)},a.forEach(function(d){var h="_"+d;Object.defineProperty(l.prototype,d,{get:function(){return this[h]},set:function(m){this[h]=m,this.setFace(d,m)}})}),l.prototype.setFace=function(d,h){var m=d+"Rect",v=this[m];if(!h){this.removeChild(v);return}var p=this.getFaceOptions(d);p.color=typeof h=="string"?h:this.color,v?v.setOptions(p):v=this[m]=new i(p),v.updatePath(),this.addChild(v)},l.prototype.getFaceOptions=function(d){return{frontFace:{width:this.width,height:this.height,translate:{z:this.depth/2}},rearFace:{width:this.width,height:this.height,translate:{z:-this.depth/2},rotate:{y:s/2}},leftFace:{width:this.depth,height:this.height,translate:{x:-this.width/2},rotate:{y:-s/4}},rightFace:{width:this.depth,height:this.height,translate:{x:this.width/2},rotate:{y:s/4}},topFace:{width:this.width,height:this.depth,translate:{y:-this.height/2},rotate:{x:-s/4}},bottomFace:{width:this.width,height:this.depth,translate:{y:this.height/2},rotate:{x:s/4}}}[d]};var u=["color","stroke","fill","backface","front","visible"];return u.forEach(function(d){var h="_"+d;Object.defineProperty(l.prototype,d,{get:function(){return this[h]},set:function(m){this[h]=m,a.forEach(function(v){var p=this[v+"Rect"],y=typeof this[v]=="string",b=d=="color"&&y;p&&!b&&(p[d]=m)},this)}})}),l})}(vo)),vo.exports}(function(e){(function(t,r){e.exports&&(e.exports=r(Me(),ss(),is(),wt(),it(),as(),Mc(),tr(),at(),ls(),cs(),Ic(),rr(),Oc(),_c(),jc(),Lc(),zc()))})(oe,function(t,r,n,o,i,s,a,c,l,u,d,h,m,v,p,y,b,x){return t.CanvasRenderer=r,t.SvgRenderer=n,t.Vector=o,t.Anchor=i,t.Dragger=s,t.Illustration=a,t.PathCommand=c,t.Shape=l,t.Group=u,t.Rect=d,t.RoundedRect=h,t.Ellipse=m,t.Polygon=v,t.Hemisphere=p,t.Cylinder=y,t.Cone=b,t.Box=x,t})})(os);var bo=os.exports;function $c(e={}){const{size:t="sm",cycleDuration:r=3e3,className:n=""}=e,o=()=>{switch(t){case"sm":return{width:140,height:105,discSize:42};case"md":return{width:300,height:200,discSize:80};case"lg":return{width:400,height:250,discSize:100};case"xl":return{width:500,height:300,discSize:108};default:return{width:140,height:105,discSize:42}}},{width:i,height:s,discSize:a}=o(),c=Math.floor(i*.23),l=document.createElement("div");l.className=`memoreco-disc-loader ${n}`.trim(),l.style.cssText=`
15
+ */var zn;function Me(){return zn||(zn=1,function(e){(function(t,r){e.exports?e.exports=r():t.Zdog=r()})(oe,function(){var t={};t.TAU=Math.PI*2,t.extend=function(n,o){for(var i in o)n[i]=o[i];return n},t.lerp=function(n,o,i){return(o-n)*i+n},t.modulo=function(n,o){return(n%o+o)%o};var r={2:function(n){return n*n},3:function(n){return n*n*n},4:function(n){return n*n*n*n},5:function(n){return n*n*n*n*n}};return t.easeInOut=function(n,o){if(o==1)return n;n=Math.max(0,Math.min(1,n));var i=n<.5,s=i?n:1-n;s/=.5;var a=r[o]||r[2],c=a(s);return c/=2,i?c:1-c},t})}($n)),$n.exports}var Bn={exports:{}},Fn;function as(){return Fn||(Fn=1,function(e){(function(t,r){e.exports?e.exports=r():t.Zdog.CanvasRenderer=r()})(oe,function(){var t={isCanvas:!0};return t.begin=function(r){r.beginPath()},t.move=function(r,n,o){r.moveTo(o.x,o.y)},t.line=function(r,n,o){r.lineTo(o.x,o.y)},t.bezier=function(r,n,o,i,s){r.bezierCurveTo(o.x,o.y,i.x,i.y,s.x,s.y)},t.closePath=function(r){r.closePath()},t.setPath=function(){},t.renderPath=function(r,n,o,i){this.begin(r,n),o.forEach(function(s){s.render(r,n,t)}),i&&this.closePath(r,n)},t.stroke=function(r,n,o,i,s){o&&(r.strokeStyle=i,r.lineWidth=s,r.stroke())},t.fill=function(r,n,o,i){o&&(r.fillStyle=i,r.fill())},t.end=function(){},t})}(Bn)),Bn.exports}var Vn={exports:{}},Wn;function ls(){return Wn||(Wn=1,function(e){(function(t,r){e.exports?e.exports=r():t.Zdog.SvgRenderer=r()})(oe,function(){var t={isSvg:!0},r=t.round=function(o){return Math.round(o*1e3)/1e3};function n(o){return r(o.x)+","+r(o.y)+" "}return t.begin=function(){},t.move=function(o,i,s){return"M"+n(s)},t.line=function(o,i,s){return"L"+n(s)},t.bezier=function(o,i,s,a,c){return"C"+n(s)+n(a)+n(c)},t.closePath=function(){return"Z"},t.setPath=function(o,i,s){i.setAttribute("d",s)},t.renderPath=function(o,i,s,a){var c="";s.forEach(function(l){c+=l.render(o,i,t)}),a&&(c+=this.closePath(o,i)),this.setPath(o,i,c)},t.stroke=function(o,i,s,a,c){s&&(i.setAttribute("stroke",a),i.setAttribute("stroke-width",c))},t.fill=function(o,i,s,a){var c=s?a:"none";i.setAttribute("fill",c)},t.end=function(o,i){o.appendChild(i)},t})}(Vn)),Vn.exports}var Hn={exports:{}},Gn;function wt(){return Gn||(Gn=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me());else{var n=t.Zdog;n.Vector=r(n)}})(oe,function(t){function r(s){this.set(s)}var n=t.TAU;r.prototype.set=function(s){return this.x=s&&s.x||0,this.y=s&&s.y||0,this.z=s&&s.z||0,this},r.prototype.write=function(s){return s?(this.x=s.x!=null?s.x:this.x,this.y=s.y!=null?s.y:this.y,this.z=s.z!=null?s.z:this.z,this):this},r.prototype.rotate=function(s){if(s)return this.rotateZ(s.z),this.rotateY(s.y),this.rotateX(s.x),this},r.prototype.rotateZ=function(s){o(this,s,"x","y")},r.prototype.rotateX=function(s){o(this,s,"y","z")},r.prototype.rotateY=function(s){o(this,s,"x","z")};function o(s,a,c,l){if(!(!a||a%n===0)){var u=Math.cos(a),d=Math.sin(a),h=s[c],m=s[l];s[c]=h*u-m*d,s[l]=m*u+h*d}}r.prototype.isSame=function(s){return s?this.x===s.x&&this.y===s.y&&this.z===s.z:!1},r.prototype.add=function(s){return s?(this.x+=s.x||0,this.y+=s.y||0,this.z+=s.z||0,this):this},r.prototype.subtract=function(s){return s?(this.x-=s.x||0,this.y-=s.y||0,this.z-=s.z||0,this):this},r.prototype.multiply=function(s){return s==null?this:(typeof s=="number"?(this.x*=s,this.y*=s,this.z*=s):(this.x*=s.x!=null?s.x:1,this.y*=s.y!=null?s.y:1,this.z*=s.z!=null?s.z:1),this)},r.prototype.transform=function(s,a,c){return this.multiply(c),this.rotate(a),this.add(s),this},r.prototype.lerp=function(s,a){return this.x=t.lerp(this.x,s.x||0,a),this.y=t.lerp(this.y,s.y||0,a),this.z=t.lerp(this.z,s.z||0,a),this},r.prototype.magnitude=function(){var s=this.x*this.x+this.y*this.y+this.z*this.z;return i(s)};function i(s){return Math.abs(s-1)<1e-8?1:Math.sqrt(s)}return r.prototype.magnitude2d=function(){var s=this.x*this.x+this.y*this.y;return i(s)},r.prototype.copy=function(){return new r(this)},r})}(Hn)),Hn.exports}var Un={exports:{}},Yn;function it(){return Yn||(Yn=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),wt(),as(),ls());else{var n=t.Zdog;n.Anchor=r(n,n.Vector,n.CanvasRenderer,n.SvgRenderer)}})(oe,function(t,r,n,o){var i=t.TAU,s={x:1,y:1,z:1};function a(l){this.create(l||{})}a.prototype.create=function(l){this.children=[],t.extend(this,this.constructor.defaults),this.setOptions(l),this.translate=new r(l.translate),this.rotate=new r(l.rotate),this.scale=new r(s).multiply(this.scale),this.origin=new r,this.renderOrigin=new r,this.addTo&&this.addTo.addChild(this)},a.defaults={},a.optionKeys=Object.keys(a.defaults).concat(["rotate","translate","scale","addTo"]),a.prototype.setOptions=function(l){var u=this.constructor.optionKeys;for(var d in l)u.indexOf(d)!=-1&&(this[d]=l[d])},a.prototype.addChild=function(l){this.children.indexOf(l)==-1&&(l.remove(),l.addTo=this,this.children.push(l))},a.prototype.removeChild=function(l){var u=this.children.indexOf(l);u!=-1&&this.children.splice(u,1)},a.prototype.remove=function(){this.addTo&&this.addTo.removeChild(this)},a.prototype.update=function(){this.reset(),this.children.forEach(function(l){l.update()}),this.transform(this.translate,this.rotate,this.scale)},a.prototype.reset=function(){this.renderOrigin.set(this.origin)},a.prototype.transform=function(l,u,d){this.renderOrigin.transform(l,u,d),this.children.forEach(function(h){h.transform(l,u,d)})},a.prototype.updateGraph=function(){this.update(),this.updateFlatGraph(),this.flatGraph.forEach(function(l){l.updateSortValue()}),this.flatGraph.sort(a.shapeSorter)},a.shapeSorter=function(l,u){return l.sortValue-u.sortValue},Object.defineProperty(a.prototype,"flatGraph",{get:function(){return this._flatGraph||this.updateFlatGraph(),this._flatGraph},set:function(l){this._flatGraph=l}}),a.prototype.updateFlatGraph=function(){this.flatGraph=this.getFlatGraph()},a.prototype.getFlatGraph=function(){var l=[this];return this.addChildFlatGraph(l)},a.prototype.addChildFlatGraph=function(l){return this.children.forEach(function(u){var d=u.getFlatGraph();Array.prototype.push.apply(l,d)}),l},a.prototype.updateSortValue=function(){this.sortValue=this.renderOrigin.z},a.prototype.render=function(){},a.prototype.renderGraphCanvas=function(l){if(!l)throw new Error("ctx is "+l+". Canvas context required for render. Check .renderGraphCanvas( ctx ).");this.flatGraph.forEach(function(u){u.render(l,n)})},a.prototype.renderGraphSvg=function(l){if(!l)throw new Error("svg is "+l+". SVG required for render. Check .renderGraphSvg( svg ).");this.flatGraph.forEach(function(u){u.render(l,o)})},a.prototype.copy=function(l){var u={},d=this.constructor.optionKeys;d.forEach(function(m){u[m]=this[m]},this),t.extend(u,l);var h=this.constructor;return new h(u)},a.prototype.copyGraph=function(l){var u=this.copy(l);return this.children.forEach(function(d){d.copyGraph({addTo:u})}),u},a.prototype.normalizeRotate=function(){this.rotate.x=t.modulo(this.rotate.x,i),this.rotate.y=t.modulo(this.rotate.y,i),this.rotate.z=t.modulo(this.rotate.z,i)};function c(l){return function(u){function d(h){this.create(h||{})}return d.prototype=Object.create(l.prototype),d.prototype.constructor=d,d.defaults=t.extend({},l.defaults),t.extend(d.defaults,u),d.optionKeys=l.optionKeys.slice(0),Object.keys(d.defaults).forEach(function(h){!d.optionKeys.indexOf(h)!=1&&d.optionKeys.push(h)}),d.subclass=c(d),d}}return a.subclass=c(a),a})}(Un)),Un.exports}var Kn={exports:{}},Xn;function cs(){return Xn||(Xn=1,function(e){(function(t,r){e.exports?e.exports=r():t.Zdog.Dragger=r()})(oe,function(){var t=typeof window<"u",r="mousedown",n="mousemove",o="mouseup";t&&(window.PointerEvent?(r="pointerdown",n="pointermove",o="pointerup"):"ontouchstart"in window&&(r="touchstart",n="touchmove",o="touchend"));function i(){}function s(a){this.create(a||{})}return s.prototype.create=function(a){this.onDragStart=a.onDragStart||i,this.onDragMove=a.onDragMove||i,this.onDragEnd=a.onDragEnd||i,this.bindDrag(a.startElement)},s.prototype.bindDrag=function(a){a=this.getQueryElement(a),a&&(a.style.touchAction="none",a.addEventListener(r,this))},s.prototype.getQueryElement=function(a){return typeof a=="string"&&(a=document.querySelector(a)),a},s.prototype.handleEvent=function(a){var c=this["on"+a.type];c&&c.call(this,a)},s.prototype.onmousedown=s.prototype.onpointerdown=function(a){this.dragStart(a,a)},s.prototype.ontouchstart=function(a){this.dragStart(a,a.changedTouches[0])},s.prototype.dragStart=function(a,c){a.preventDefault(),this.dragStartX=c.pageX,this.dragStartY=c.pageY,t&&(window.addEventListener(n,this),window.addEventListener(o,this)),this.onDragStart(c)},s.prototype.ontouchmove=function(a){this.dragMove(a,a.changedTouches[0])},s.prototype.onmousemove=s.prototype.onpointermove=function(a){this.dragMove(a,a)},s.prototype.dragMove=function(a,c){a.preventDefault();var l=c.pageX-this.dragStartX,u=c.pageY-this.dragStartY;this.onDragMove(c,l,u)},s.prototype.onmouseup=s.prototype.onpointerup=s.prototype.ontouchend=s.prototype.dragEnd=function(){window.removeEventListener(n,this),window.removeEventListener(o,this),this.onDragEnd()},s})}(Kn)),Kn.exports}var Zn={exports:{}},qn;function Ic(){return qn||(qn=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),it(),cs());else{var n=t.Zdog;n.Illustration=r(n,n.Anchor,n.Dragger)}})(oe,function(t,r,n){function o(){}var i=t.TAU,s=r.subclass({element:void 0,centered:!0,zoom:1,dragRotate:!1,resize:!1,onPrerender:o,onDragStart:o,onDragMove:o,onDragEnd:o,onResize:o});t.extend(s.prototype,n.prototype),s.prototype.create=function(c){r.prototype.create.call(this,c),n.prototype.create.call(this,c),this.setElement(this.element),this.setDragRotate(this.dragRotate),this.setResize(this.resize)},s.prototype.setElement=function(c){if(c=this.getQueryElement(c),!c)throw new Error("Zdog.Illustration element required. Set to "+c);var l=c.nodeName.toLowerCase();l=="canvas"?this.setCanvas(c):l=="svg"&&this.setSvg(c)},s.prototype.setSize=function(c,l){c=Math.round(c),l=Math.round(l),this.isCanvas?this.setSizeCanvas(c,l):this.isSvg&&this.setSizeSvg(c,l)},s.prototype.setResize=function(c){this.resize=c,this.resizeListener||(this.resizeListener=this.onWindowResize.bind(this)),c?(window.addEventListener("resize",this.resizeListener),this.onWindowResize()):window.removeEventListener("resize",this.resizeListener)},s.prototype.onWindowResize=function(){this.setMeasuredSize(),this.onResize(this.width,this.height)},s.prototype.setMeasuredSize=function(){var c,l,u=this.resize=="fullscreen";if(u)c=window.innerWidth,l=window.innerHeight;else{var d=this.element.getBoundingClientRect();c=d.width,l=d.height}this.setSize(c,l)},s.prototype.renderGraph=function(c){this.isCanvas?this.renderGraphCanvas(c):this.isSvg&&this.renderGraphSvg(c)},s.prototype.updateRenderGraph=function(c){this.updateGraph(),this.renderGraph(c)},s.prototype.setCanvas=function(c){this.element=c,this.isCanvas=!0,this.ctx=this.element.getContext("2d"),this.setSizeCanvas(c.width,c.height)},s.prototype.setSizeCanvas=function(c,l){this.width=c,this.height=l;var u=this.pixelRatio=window.devicePixelRatio||1;this.element.width=this.canvasWidth=c*u,this.element.height=this.canvasHeight=l*u;var d=u>1&&!this.resize;d&&(this.element.style.width=c+"px",this.element.style.height=l+"px")},s.prototype.renderGraphCanvas=function(c){c=c||this,this.prerenderCanvas(),r.prototype.renderGraphCanvas.call(c,this.ctx),this.postrenderCanvas()},s.prototype.prerenderCanvas=function(){var c=this.ctx;if(c.lineCap="round",c.lineJoin="round",c.clearRect(0,0,this.canvasWidth,this.canvasHeight),c.save(),this.centered){var l=this.width/2*this.pixelRatio,u=this.height/2*this.pixelRatio;c.translate(l,u)}var d=this.pixelRatio*this.zoom;c.scale(d,d),this.onPrerender(c)},s.prototype.postrenderCanvas=function(){this.ctx.restore()},s.prototype.setSvg=function(c){this.element=c,this.isSvg=!0,this.pixelRatio=1;var l=c.getAttribute("width"),u=c.getAttribute("height");this.setSizeSvg(l,u)},s.prototype.setSizeSvg=function(c,l){this.width=c,this.height=l;var u=c/this.zoom,d=l/this.zoom,h=this.centered?-u/2:0,m=this.centered?-d/2:0;this.element.setAttribute("viewBox",h+" "+m+" "+u+" "+d),this.resize?(this.element.removeAttribute("width"),this.element.removeAttribute("height")):(this.element.setAttribute("width",c),this.element.setAttribute("height",l))},s.prototype.renderGraphSvg=function(c){c=c||this,a(this.element),this.onPrerender(this.element),r.prototype.renderGraphSvg.call(c,this.element)};function a(c){for(;c.firstChild;)c.removeChild(c.firstChild)}return s.prototype.setDragRotate=function(c){if(c)c===!0&&(c=this);else return;this.dragRotate=c,this.bindDrag(this.element)},s.prototype.dragStart=function(){this.dragStartRX=this.dragRotate.rotate.x,this.dragStartRY=this.dragRotate.rotate.y,n.prototype.dragStart.apply(this,arguments)},s.prototype.dragMove=function(c,l){var u=l.pageX-this.dragStartX,d=l.pageY-this.dragStartY,h=Math.min(this.width,this.height),m=u/h*i,v=d/h*i;this.dragRotate.rotate.x=this.dragStartRX-v,this.dragRotate.rotate.y=this.dragStartRY-m,n.prototype.dragMove.apply(this,arguments)},s})}(Zn)),Zn.exports}var Qn={exports:{}},Jn;function nr(){return Jn||(Jn=1,function(e){(function(t,r){if(e.exports)e.exports=r(wt());else{var n=t.Zdog;n.PathCommand=r(n.Vector)}})(oe,function(t){function r(s,a,c){this.method=s,this.points=a.map(n),this.renderPoints=a.map(o),this.previousPoint=c,this.endRenderPoint=this.renderPoints[this.renderPoints.length-1],s=="arc"&&(this.controlPoints=[new t,new t])}function n(s){return s instanceof t?s:new t(s)}function o(s){return new t(s)}r.prototype.reset=function(){var s=this.points;this.renderPoints.forEach(function(a,c){var l=s[c];a.set(l)})},r.prototype.transform=function(s,a,c){this.renderPoints.forEach(function(l){l.transform(s,a,c)})},r.prototype.render=function(s,a,c){return this[this.method](s,a,c)},r.prototype.move=function(s,a,c){return c.move(s,a,this.renderPoints[0])},r.prototype.line=function(s,a,c){return c.line(s,a,this.renderPoints[0])},r.prototype.bezier=function(s,a,c){var l=this.renderPoints[0],u=this.renderPoints[1],d=this.renderPoints[2];return c.bezier(s,a,l,u,d)};var i=9/16;return r.prototype.arc=function(s,a,c){var l=this.previousPoint,u=this.renderPoints[0],d=this.renderPoints[1],h=this.controlPoints[0],m=this.controlPoints[1];return h.set(l).lerp(u,i),m.set(d).lerp(u,i),c.bezier(s,a,h,m,d)},r})}(Qn)),Qn.exports}var eo={exports:{}},to;function at(){return to||(to=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),wt(),nr(),it());else{var n=t.Zdog;n.Shape=r(n,n.Vector,n.PathCommand,n.Anchor)}})(oe,function(t,r,n,o){var i=o.subclass({stroke:1,fill:!1,color:"#333",closed:!0,visible:!0,path:[{}],front:{z:1},backface:!0});i.prototype.create=function(l){o.prototype.create.call(this,l),this.updatePath(),this.front=new r(l.front||this.front),this.renderFront=new r(this.front),this.renderNormal=new r};var s=["move","line","bezier","arc"];i.prototype.updatePath=function(){this.setPath(),this.updatePathCommands()},i.prototype.setPath=function(){},i.prototype.updatePathCommands=function(){var l;this.pathCommands=this.path.map(function(u,d){var h=Object.keys(u),m=h[0],v=u[m],p=h.length==1&&s.indexOf(m)!=-1;p||(m="line",v=u);var y=m=="line"||m=="move",b=Array.isArray(v);y&&!b&&(v=[v]),m=d===0?"move":m;var x=new n(m,v,l);return l=x.endRenderPoint,x})},i.prototype.reset=function(){this.renderOrigin.set(this.origin),this.renderFront.set(this.front),this.pathCommands.forEach(function(l){l.reset()})},i.prototype.transform=function(l,u,d){this.renderOrigin.transform(l,u,d),this.renderFront.transform(l,u,d),this.renderNormal.set(this.renderOrigin).subtract(this.renderFront),this.pathCommands.forEach(function(h){h.transform(l,u,d)}),this.children.forEach(function(h){h.transform(l,u,d)})},i.prototype.updateSortValue=function(){var l=this.pathCommands.length,u=this.pathCommands[0].endRenderPoint,d=this.pathCommands[l-1].endRenderPoint,h=l>2&&u.isSame(d);h&&(l-=1);for(var m=0,v=0;v<l;v++)m+=this.pathCommands[v].endRenderPoint.z;this.sortValue=m/l},i.prototype.render=function(l,u){var d=this.pathCommands.length;if(!(!this.visible||!d)&&(this.isFacingBack=this.renderNormal.z>0,!(!this.backface&&this.isFacingBack))){if(!u)throw new Error("Zdog renderer required. Set to "+u);var h=d==1;u.isCanvas&&h?this.renderCanvasDot(l,u):this.renderPath(l,u)}};var a=t.TAU;i.prototype.renderCanvasDot=function(l){var u=this.getLineWidth();if(u){l.fillStyle=this.getRenderColor();var d=this.pathCommands[0].endRenderPoint;l.beginPath();var h=u/2;l.arc(d.x,d.y,h,0,a),l.fill()}},i.prototype.getLineWidth=function(){return this.stroke?this.stroke==!0?1:this.stroke:0},i.prototype.getRenderColor=function(){var l=typeof this.backface=="string"&&this.isFacingBack,u=l?this.backface:this.color;return u},i.prototype.renderPath=function(l,u){var d=this.getRenderElement(l,u),h=this.pathCommands.length==2&&this.pathCommands[1].method=="line",m=!h&&this.closed,v=this.getRenderColor();u.renderPath(l,d,this.pathCommands,m),u.stroke(l,d,this.stroke,v,this.getLineWidth()),u.fill(l,d,this.fill,v),u.end(l,d)};var c="http://www.w3.org/2000/svg";return i.prototype.getRenderElement=function(l,u){if(u.isSvg)return this.svgElement||(this.svgElement=document.createElementNS(c,"path"),this.svgElement.setAttribute("stroke-linecap","round"),this.svgElement.setAttribute("stroke-linejoin","round")),this.svgElement},i})}(eo)),eo.exports}var ro={exports:{}},no;function ds(){return no||(no=1,function(e){(function(t,r){if(e.exports)e.exports=r(it());else{var n=t.Zdog;n.Group=r(n.Anchor)}})(oe,function(t){var r=t.subclass({updateSort:!1,visible:!0});return r.prototype.updateSortValue=function(){var n=0;this.flatGraph.forEach(function(o){o.updateSortValue(),n+=o.sortValue}),this.sortValue=n/this.flatGraph.length,this.updateSort&&this.flatGraph.sort(t.shapeSorter)},r.prototype.render=function(n,o){this.visible&&this.flatGraph.forEach(function(i){i.render(n,o)})},r.prototype.updateFlatGraph=function(){var n=[];this.flatGraph=this.addChildFlatGraph(n)},r.prototype.getFlatGraph=function(){return[this]},r})}(ro)),ro.exports}var oo={exports:{}},so;function us(){return so||(so=1,function(e){(function(t,r){if(e.exports)e.exports=r(at());else{var n=t.Zdog;n.Rect=r(n.Shape)}})(oe,function(t){var r=t.subclass({width:1,height:1});return r.prototype.setPath=function(){var n=this.width/2,o=this.height/2;this.path=[{x:-n,y:-o},{x:n,y:-o},{x:n,y:o},{x:-n,y:o}]},r})}(oo)),oo.exports}var io={exports:{}},ao;function Oc(){return ao||(ao=1,function(e){(function(t,r){if(e.exports)e.exports=r(at());else{var n=t.Zdog;n.RoundedRect=r(n.Shape)}})(oe,function(t){var r=t.subclass({width:1,height:1,cornerRadius:.25,closed:!1});return r.prototype.setPath=function(){var n=this.width/2,o=this.height/2,i=Math.min(n,o),s=Math.min(this.cornerRadius,i),a=n-s,c=o-s,l=[{x:a,y:-o},{arc:[{x:n,y:-o},{x:n,y:-c}]}];c&&l.push({x:n,y:c}),l.push({arc:[{x:n,y:o},{x:a,y:o}]}),a&&l.push({x:-a,y:o}),l.push({arc:[{x:-n,y:o},{x:-n,y:c}]}),c&&l.push({x:-n,y:-c}),l.push({arc:[{x:-n,y:-o},{x:-a,y:-o}]}),a&&l.push({x:a,y:-o}),this.path=l},r})}(io)),io.exports}var lo={exports:{}},co;function or(){return co||(co=1,function(e){(function(t,r){if(e.exports)e.exports=r(at());else{var n=t.Zdog;n.Ellipse=r(n.Shape)}})(oe,function(t){var r=t.subclass({diameter:1,width:void 0,height:void 0,quarters:4,closed:!1});return r.prototype.setPath=function(){var n=this.width!=null?this.width:this.diameter,o=this.height!=null?this.height:this.diameter,i=n/2,s=o/2;this.path=[{x:0,y:-s},{arc:[{x:i,y:-s},{x:i,y:0}]}],this.quarters>1&&this.path.push({arc:[{x:i,y:s},{x:0,y:s}]}),this.quarters>2&&this.path.push({arc:[{x:-i,y:s},{x:-i,y:0}]}),this.quarters>3&&this.path.push({arc:[{x:-i,y:-s},{x:0,y:-s}]})},r})}(lo)),lo.exports}var uo={exports:{}},fo;function _c(){return fo||(fo=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),at());else{var n=t.Zdog;n.Polygon=r(n,n.Shape)}})(oe,function(t,r){var n=r.subclass({sides:3,radius:.5}),o=t.TAU;return n.prototype.setPath=function(){this.path=[];for(var i=0;i<this.sides;i++){var s=i/this.sides*o-o/4,a=Math.cos(s)*this.radius,c=Math.sin(s)*this.radius;this.path.push({x:a,y:c})}},n})}(uo)),uo.exports}var po={exports:{}},ho;function jc(){return ho||(ho=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),wt(),it(),or());else{var n=t.Zdog;n.Hemisphere=r(n,n.Vector,n.Anchor,n.Ellipse)}})(oe,function(t,r,n,o){var i=o.subclass({fill:!0}),s=t.TAU;i.prototype.create=function(){o.prototype.create.apply(this,arguments),this.apex=new n({addTo:this,translate:{z:this.diameter/2}}),this.renderCentroid=new r},i.prototype.updateSortValue=function(){this.renderCentroid.set(this.renderOrigin).lerp(this.apex.renderOrigin,3/8),this.sortValue=this.renderCentroid.z},i.prototype.render=function(c,l){this.renderDome(c,l),o.prototype.render.apply(this,arguments)},i.prototype.renderDome=function(c,l){if(this.visible){var u=this.getDomeRenderElement(c,l),d=Math.atan2(this.renderNormal.y,this.renderNormal.x),h=this.diameter/2*this.renderNormal.magnitude(),m=this.renderOrigin.x,v=this.renderOrigin.y;if(l.isCanvas){var p=d+s/4,y=d-s/4;c.beginPath(),c.arc(m,v,h,p,y)}else l.isSvg&&(d=(d-s/4)/s*360,this.domeSvgElement.setAttribute("d","M "+-h+",0 A "+h+","+h+" 0 0 1 "+h+",0"),this.domeSvgElement.setAttribute("transform","translate("+m+","+v+" ) rotate("+d+")"));l.stroke(c,u,this.stroke,this.color,this.getLineWidth()),l.fill(c,u,this.fill,this.color),l.end(c,u)}};var a="http://www.w3.org/2000/svg";return i.prototype.getDomeRenderElement=function(c,l){if(l.isSvg)return this.domeSvgElement||(this.domeSvgElement=document.createElementNS(a,"path"),this.domeSvgElement.setAttribute("stroke-linecap","round"),this.domeSvgElement.setAttribute("stroke-linejoin","round")),this.domeSvgElement},i})}(po)),po.exports}var mo={exports:{}},go;function Lc(){return go||(go=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),nr(),at(),ds(),or());else{var n=t.Zdog;n.Cylinder=r(n,n.PathCommand,n.Shape,n.Group,n.Ellipse)}})(oe,function(t,r,n,o,i){function s(){}var a=o.subclass({color:"#333",updateSort:!0});a.prototype.create=function(){o.prototype.create.apply(this,arguments),this.pathCommands=[new r("move",[{}]),new r("line",[{}])]},a.prototype.render=function(m,v){this.renderCylinderSurface(m,v),o.prototype.render.apply(this,arguments)},a.prototype.renderCylinderSurface=function(m,v){if(this.visible){var p=this.getRenderElement(m,v),y=this.frontBase,b=this.rearBase,x=y.renderNormal.magnitude(),w=y.diameter*x+y.getLineWidth();this.pathCommands[0].renderPoints[0].set(y.renderOrigin),this.pathCommands[1].renderPoints[0].set(b.renderOrigin),v.isCanvas&&(m.lineCap="butt"),v.renderPath(m,p,this.pathCommands),v.stroke(m,p,!0,this.color,w),v.end(m,p),v.isCanvas&&(m.lineCap="round")}};var c="http://www.w3.org/2000/svg";a.prototype.getRenderElement=function(m,v){if(v.isSvg)return this.svgElement||(this.svgElement=document.createElementNS(c,"path")),this.svgElement},a.prototype.copyGraph=s;var l=i.subclass();l.prototype.copyGraph=s;var u=n.subclass({diameter:1,length:1,frontFace:void 0,fill:!0}),d=t.TAU;u.prototype.create=function(){n.prototype.create.apply(this,arguments),this.group=new a({addTo:this,color:this.color,visible:this.visible});var m=this.length/2,v=this.backface||!0;this.frontBase=this.group.frontBase=new i({addTo:this.group,diameter:this.diameter,translate:{z:m},rotate:{y:d/2},color:this.color,stroke:this.stroke,fill:this.fill,backface:this.frontFace||v,visible:this.visible}),this.rearBase=this.group.rearBase=this.frontBase.copy({translate:{z:-m},rotate:{y:0},backface:v})},u.prototype.render=function(){};var h=["stroke","fill","color","visible"];return h.forEach(function(m){var v="_"+m;Object.defineProperty(u.prototype,m,{get:function(){return this[v]},set:function(p){this[v]=p,this.frontBase&&(this.frontBase[m]=p,this.rearBase[m]=p,this.group[m]=p)}})}),u})}(mo)),mo.exports}var vo={exports:{}},yo;function $c(){return yo||(yo=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),wt(),nr(),it(),or());else{var n=t.Zdog;n.Cone=r(n,n.Vector,n.PathCommand,n.Anchor,n.Ellipse)}})(oe,function(t,r,n,o,i){var s=i.subclass({length:1,fill:!0}),a=t.TAU;s.prototype.create=function(){i.prototype.create.apply(this,arguments),this.apex=new o({addTo:this,translate:{z:this.length}}),this.renderApex=new r,this.renderCentroid=new r,this.tangentA=new r,this.tangentB=new r,this.surfacePathCommands=[new n("move",[{}]),new n("line",[{}]),new n("line",[{}])]},s.prototype.updateSortValue=function(){this.renderCentroid.set(this.renderOrigin).lerp(this.apex.renderOrigin,1/3),this.sortValue=this.renderCentroid.z},s.prototype.render=function(l,u){this.renderConeSurface(l,u),i.prototype.render.apply(this,arguments)},s.prototype.renderConeSurface=function(l,u){if(this.visible){this.renderApex.set(this.apex.renderOrigin).subtract(this.renderOrigin);var d=this.renderNormal.magnitude(),h=this.renderApex.magnitude2d(),m=this.renderNormal.magnitude2d(),v=Math.acos(m/d),p=Math.sin(v),y=this.diameter/2*d,b=y*p<h;if(b){var x=Math.atan2(this.renderNormal.y,this.renderNormal.x)+a/2,w=h/p,S=Math.acos(y/w),E=this.tangentA,k=this.tangentB;E.x=Math.cos(S)*y*p,E.y=Math.sin(S)*y,k.set(this.tangentA),k.y*=-1,E.rotateZ(x),k.rotateZ(x),E.add(this.renderOrigin),k.add(this.renderOrigin),this.setSurfaceRenderPoint(0,E),this.setSurfaceRenderPoint(1,this.apex.renderOrigin),this.setSurfaceRenderPoint(2,k);var A=this.getSurfaceRenderElement(l,u);u.renderPath(l,A,this.surfacePathCommands),u.stroke(l,A,this.stroke,this.color,this.getLineWidth()),u.fill(l,A,this.fill,this.color),u.end(l,A)}}};var c="http://www.w3.org/2000/svg";return s.prototype.getSurfaceRenderElement=function(l,u){if(u.isSvg)return this.surfaceSvgElement||(this.surfaceSvgElement=document.createElementNS(c,"path"),this.surfaceSvgElement.setAttribute("stroke-linecap","round"),this.surfaceSvgElement.setAttribute("stroke-linejoin","round")),this.surfaceSvgElement},s.prototype.setSurfaceRenderPoint=function(l,u){var d=this.surfacePathCommands[l].renderPoints[0];d.set(u)},s})}(vo)),vo.exports}var bo={exports:{}},xo;function zc(){return xo||(xo=1,function(e){(function(t,r){if(e.exports)e.exports=r(Me(),it(),at(),us());else{var n=t.Zdog;n.Box=r(n,n.Anchor,n.Shape,n.Rect)}})(oe,function(t,r,n,o){var i=o.subclass();i.prototype.copyGraph=function(){};var s=t.TAU,a=["frontFace","rearFace","leftFace","rightFace","topFace","bottomFace"],c=t.extend({},n.defaults);delete c.path,a.forEach(function(d){c[d]=!0}),t.extend(c,{width:1,height:1,depth:1,fill:!0});var l=r.subclass(c);l.prototype.create=function(d){r.prototype.create.call(this,d),this.updatePath(),this.fill=this.fill},l.prototype.updatePath=function(){a.forEach(function(d){this[d]=this[d]},this)},a.forEach(function(d){var h="_"+d;Object.defineProperty(l.prototype,d,{get:function(){return this[h]},set:function(m){this[h]=m,this.setFace(d,m)}})}),l.prototype.setFace=function(d,h){var m=d+"Rect",v=this[m];if(!h){this.removeChild(v);return}var p=this.getFaceOptions(d);p.color=typeof h=="string"?h:this.color,v?v.setOptions(p):v=this[m]=new i(p),v.updatePath(),this.addChild(v)},l.prototype.getFaceOptions=function(d){return{frontFace:{width:this.width,height:this.height,translate:{z:this.depth/2}},rearFace:{width:this.width,height:this.height,translate:{z:-this.depth/2},rotate:{y:s/2}},leftFace:{width:this.depth,height:this.height,translate:{x:-this.width/2},rotate:{y:-s/4}},rightFace:{width:this.depth,height:this.height,translate:{x:this.width/2},rotate:{y:s/4}},topFace:{width:this.width,height:this.depth,translate:{y:-this.height/2},rotate:{x:-s/4}},bottomFace:{width:this.width,height:this.depth,translate:{y:this.height/2},rotate:{x:s/4}}}[d]};var u=["color","stroke","fill","backface","front","visible"];return u.forEach(function(d){var h="_"+d;Object.defineProperty(l.prototype,d,{get:function(){return this[h]},set:function(m){this[h]=m,a.forEach(function(v){var p=this[v+"Rect"],y=typeof this[v]=="string",b=d=="color"&&y;p&&!b&&(p[d]=m)},this)}})}),l})}(bo)),bo.exports}(function(e){(function(t,r){e.exports&&(e.exports=r(Me(),as(),ls(),wt(),it(),cs(),Ic(),nr(),at(),ds(),us(),Oc(),or(),_c(),jc(),Lc(),$c(),zc()))})(oe,function(t,r,n,o,i,s,a,c,l,u,d,h,m,v,p,y,b,x){return t.CanvasRenderer=r,t.SvgRenderer=n,t.Vector=o,t.Anchor=i,t.Dragger=s,t.Illustration=a,t.PathCommand=c,t.Shape=l,t.Group=u,t.Rect=d,t.RoundedRect=h,t.Ellipse=m,t.Polygon=v,t.Hemisphere=p,t.Cylinder=y,t.Cone=b,t.Box=x,t})})(is);var wo=is.exports;function Bc(e={}){const{size:t="sm",cycleDuration:r=3e3,className:n=""}=e,o=()=>{switch(t){case"sm":return{width:140,height:105,discSize:42};case"md":return{width:300,height:200,discSize:80};case"lg":return{width:400,height:250,discSize:100};case"xl":return{width:500,height:300,discSize:108};default:return{width:140,height:105,discSize:42}}},{width:i,height:s,discSize:a}=o(),c=Math.floor(i*.23),l=document.createElement("div");l.className=`memoreco-disc-loader ${n}`.trim(),l.style.cssText=`
16
16
  position: relative;
17
17
  width: ${i}px;
18
18
  height: ${s}px;
19
- `;const u=document.createElement("canvas");u.width=i,u.height=s,u.style.cssText="border-radius: 8px;",l.appendChild(u);let d=null,h=[],m=null,v=!1;const p=()=>{if(v)return;d=new bo.Illustration({element:u,zoom:1,rotate:{y:0}});const b=(P,k,I)=>{const M=new bo.Ellipse({addTo:d,diameter:a,stroke:!1,fill:!0,color:"#5e0f1a"});h.push({shape:M,id:I,group:P,offset:k})};let x=0;for(let P=0;P<6;P++)b("left",P/6,x++);for(let P=0;P<6;P++)b("right",P/6,x++);const w=P=>1-Math.pow(1-P,2),S=(P,k,I)=>P+(k-P)*I,E=P=>({r:parseInt(P.slice(1,3),16),g:parseInt(P.slice(3,5),16),b:parseInt(P.slice(5,7),16)}),N=["#5e0f1a","#c22a2f","#e0392b","#f05a24","#f39c12","#fde68a"].map(E),R=[...N].reverse(),O=(P,k)=>{if(k<=0)return P[0];if(k>=1)return P[P.length-1];const I=k*(P.length-1),M=Math.floor(I),_=I-M,A=P[M],T=P[M+1];return{r:Math.round(S(A.r,T.r,_)),g:Math.round(S(A.g,T.g,_)),b:Math.round(S(A.b,T.b,_))}};h.forEach(({shape:P,group:k,offset:I,id:M})=>{let _,A,T,D=1;if(k==="left"){const j=I,U=w(j);_=-c+c*U,A=Math.PI/2*U,T=300+(100-Math.abs(_))-M*.01;const{r:V,g:se,b:$}=O(N,j);P.color=`rgba(${V}, ${se}, ${$}, ${D})`}else{const j=I,U=w(j);_=0+c*U,A=Math.PI/2+Math.PI/2*U,T=300+(100-Math.abs(_))-M*.01;const{r:V,g:se,b:$}=O(R,j);P.color=`rgba(${V}, ${se}, ${$}, ${D})`}P.translate.x=_,P.translate.z=T,P.rotate.y=A}),d.updateRenderGraph();const B=(P,k,I,M)=>{let _,A,T,D;const j=Math.min(I,1),U=V=>V<.5?2*V*V:1-Math.pow(-2*V+2,2)/2;if(k==="left"){const V=U(j);_=-c+c*V,A=Math.PI/2*V,T=1,D=300+(100-Math.abs(_))-M*.01;const{r:se,g:$,b:X}=O(N,j);P.color=`rgba(${se}, ${$}, ${X}, ${T})`}else{const V=U(j);_=0+c*V,A=Math.PI/2+Math.PI/2*V,T=1,D=300+(100-Math.abs(_))-M*.01;const{r:se,g:$,b:X}=O(R,j);P.color=`rgba(${se}, ${$}, ${X}, ${T})`}P.translate.x=_,P.translate.z=D,P.rotate.y=A},F=P=>{if(v||!d||!h.length)return;const k=P%r/r;for(let I=0;I<h.length;I++){const M=h[I];let _=(k+M.offset)%1;if(_<.02){const A=_/.02;B(M.shape,M.group,0,M.id);const T=M.shape.color.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([^)]+)\)/);if(T){const D=parseFloat(T[4]);M.shape.color=`rgba(${T[1]}, ${T[2]}, ${T[3]}, ${D*A})`}M.shape.translate.z=100-M.id*.01}else if(_>.98){const A=(1-_)/.02,T=(.98-.02)/.96;B(M.shape,M.group,T,M.id);const D=M.shape.color.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([^)]+)\)/);if(D){const j=parseFloat(D[4]);M.shape.color=`rgba(${D[1]}, ${D[2]}, ${D[3]}, ${j*A})`}}else{const A=(_-.02)/.96;B(M.shape,M.group,A,M.id)}}d.updateRenderGraph(),v||(m=requestAnimationFrame(F))};m=requestAnimationFrame(F)},y=()=>{v=!0,m&&(cancelAnimationFrame(m),m=null),h=[],d=null};return p(),{element:l,destroy:y}}const Ur=kt("inline-flex items-center justify-center 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",{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-[#EDEBEB]",secondary:"bg-secondary text-secondary-foreground hover:bg-[#EDEBEB]",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"}}),ds=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const s=n?Ul:"button";return g.jsx(s,{className:st(Ur({variant:t,size:r,className:e})),ref:i,...o})});ds.displayName="Button";const us=f.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:st("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));us.displayName="Card";const fs=f.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:st("flex flex-col space-y-1.5 p-6",e),...t}));fs.displayName="CardHeader";const ps=f.forwardRef(({className:e,...t},r)=>g.jsx("h3",{ref:r,className:st("text-2xl font-semibold leading-none tracking-tight",e),...t}));ps.displayName="CardTitle";const hs=f.forwardRef(({className:e,...t},r)=>g.jsx("p",{ref:r,className:st("text-sm text-muted-foreground",e),...t}));hs.displayName="CardDescription";const ms=f.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:st("p-6 pt-0",e),...t}));ms.displayName="CardContent";function G(...e){return rs(Hr(e))}const gs=f.forwardRef(({className:e,type:t,error:r,...n},o)=>g.jsx("input",{type:t,className:G("flex h-10 w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r&&"border-red-500 focus-visible:ring-red-500",e),ref:o,...n}));gs.displayName="Input";var Bc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Bc.reduce((e,t)=>{const r=yt(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Fc(e,t){e&&er.flushSync(()=>e.dispatchEvent(t))}var Vc="Label",vs=f.forwardRef((e,t)=>g.jsx(K.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));vs.displayName=Vc;var ys=vs;const Wc=kt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),bs=f.forwardRef(({className:e,...t},r)=>g.jsx(ys,{ref:r,className:G(Wc(),e),...t}));bs.displayName=ys.displayName;const Hc=kt("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-white text-gray-900 border-gray-200",destructive:"border-red-500/50 text-red-900 dark:border-red-500 [&>svg]:text-red-500 bg-red-50",success:"border-green-500/50 text-green-900 dark:border-green-500 [&>svg]:text-green-500 bg-green-50",warning:"border-yellow-500/50 text-yellow-900 dark:border-yellow-500 [&>svg]:text-yellow-500 bg-yellow-50"}},defaultVariants:{variant:"default"}}),xs=f.forwardRef(({className:e,variant:t,...r},n)=>g.jsx("div",{ref:n,role:"alert",className:G(Hc({variant:t}),e),...r}));xs.displayName="Alert";const ws=f.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:G("text-sm [&_p]:leading-relaxed",e),...t}));ws.displayName="AlertDescription";const Cs=f.forwardRef(({className:e,...t},r)=>g.jsx("h5",{ref:r,className:G("mb-1 font-medium leading-none tracking-tight",e),...t}));Cs.displayName="AlertTitle";const Ss=f.forwardRef(({className:e,error:t,...r},n)=>g.jsx("textarea",{className:G("flex min-h-[80px] w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t&&"border-red-500 focus-visible:ring-red-500",e),ref:n,...r}));Ss.displayName="Textarea";const Gc=kt("animate-spin rounded-full border-2 border-current border-t-transparent",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-12 w-12"}},defaultVariants:{size:"md"}}),Es=f.forwardRef(({className:e,size:t,...r},n)=>g.jsx("div",{ref:n,className:G(Gc({size:t}),e),...r}));Es.displayName="Spinner";const Uc=kt("relative",{variants:{size:{sm:"w-[140px] h-[105px]",md:"w-[300px] h-[200px]",lg:"w-[400px] h-[250px]",xl:"w-[500px] h-[300px]"}},defaultVariants:{size:"md"}}),Rs=C.forwardRef(({className:e,size:t,cycleDuration:r=3e3,...n},o)=>{const i=C.useRef(null),s=C.useRef(null);return C.useEffect(()=>{if(i.current)return s.current&&s.current.destroy(),s.current=$c({size:t||"md",cycleDuration:r,className:""}),i.current.innerHTML="",i.current.appendChild(s.current.element),()=>{s.current&&(s.current.destroy(),s.current=null)}},[t,r]),g.jsx("div",{ref:a=>{i.current=a,typeof o=="function"?o(a):o&&(o.current=a)},className:G(Uc({size:t}),e),...n})});Rs.displayName="DiscLoader";function Yc(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const Kc=e=>{switch(e){case"success":return qc;case"info":return Jc;case"warning":return Qc;case"error":return ed;default:return null}},Xc=Array(12).fill(0),Zc=({visible:e,className:t})=>C.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},C.createElement("div",{className:"sonner-spinner"},Xc.map((r,n)=>C.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),qc=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Qc=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Jc=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ed=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),td=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},C.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),C.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),rd=()=>{const[e,t]=C.useState(document.hidden);return C.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let kr=1;class nd{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:kr++,s=this.toasts.find(c=>c.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...t,id:i,title:n}),{...c,...t,id:i,dismissible:a,title:n}):c):this.addToast({title:n,...o,dismissible:a,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=n!==void 0,s;const a=o.then(async l=>{if(s=["resolve",l],C.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(sd(l)&&!l.ok){i=!1;const d=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,h=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof d=="object"&&!C.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:h,...v})}else if(l instanceof Error){i=!1;const d=typeof r.error=="function"?await r.error(l):r.error,h=typeof r.description=="function"?await r.description(l):r.description,v=typeof d=="object"&&!C.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:h,...v})}else if(r.success!==void 0){i=!1;const d=typeof r.success=="function"?await r.success(l):r.success,h=typeof r.description=="function"?await r.description(l):r.description,v=typeof d=="object"&&!C.isValidElement(d)?d:{message:d};this.create({id:n,type:"success",description:h,...v})}}).catch(async l=>{if(s=["reject",l],r.error!==void 0){i=!1;const u=typeof r.error=="function"?await r.error(l):r.error,d=typeof r.description=="function"?await r.description(l):r.description,m=typeof u=="object"&&!C.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:d,...m})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),c=()=>new Promise((l,u)=>a.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(t,r)=>{const n=(r==null?void 0:r.id)||kr++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const pe=new nd,od=(e,t)=>{const r=(t==null?void 0:t.id)||kr++;return pe.addToast({title:e,...t,id:r}),r},sd=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",id=od,ad=()=>pe.toasts,ld=()=>pe.getActiveToasts(),cd=Object.assign(id,{success:pe.success,info:pe.info,warning:pe.warning,error:pe.error,custom:pe.custom,message:pe.message,promise:pe.promise,dismiss:pe.dismiss,loading:pe.loading},{getHistory:ad,getToasts:ld});Yc("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Lt(e){return e.label!==void 0}const dd=3,ud="24px",fd="16px",xo=4e3,pd=356,hd=14,md=45,gd=200;function Ne(...e){return e.filter(Boolean).join(" ")}function vd(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}const yd=e=>{var t,r,n,o,i,s,a,c,l;const{invert:u,toast:d,unstyled:h,interacting:m,setHeights:v,visibleToasts:p,heights:y,index:b,toasts:x,expanded:w,removeToast:S,defaultRichColors:E,closeButton:N,style:R,cancelButtonStyle:O,actionButtonStyle:B,className:F="",descriptionClassName:P="",duration:k,position:I,gap:M,expandByDefault:_,classNames:A,icons:T,closeButtonAriaLabel:D="Close toast"}=e,[j,U]=C.useState(null),[V,se]=C.useState(null),[$,X]=C.useState(!1),[J,ne]=C.useState(!1),[L,z]=C.useState(!1),[re,q]=C.useState(!1),[Z,Y]=C.useState(!1),[de,ue]=C.useState(0),[qe,$e]=C.useState(0),be=C.useRef(d.duration||k||xo),It=C.useRef(null),fe=C.useRef(null),jl=b===0,Ll=b+1<=p,he=d.type,lt=d.dismissible!==!1,zl=d.className||"",$l=d.descriptionClassName||"",Ot=C.useMemo(()=>y.findIndex(W=>W.toastId===d.id)||0,[y,d.id]),Bl=C.useMemo(()=>{var W;return(W=d.closeButton)!=null?W:N},[d.closeButton,N]),En=C.useMemo(()=>d.duration||k||xo,[d.duration,k]),yr=C.useRef(0),ct=C.useRef(0),Rn=C.useRef(0),dt=C.useRef(null),[Fl,Vl]=I.split("-"),An=C.useMemo(()=>y.reduce((W,ie,ce)=>ce>=Ot?W:W+ie.height,0),[y,Ot]),Nn=rd(),Wl=d.invert||u,br=he==="loading";ct.current=C.useMemo(()=>Ot*M+An,[Ot,An]),C.useEffect(()=>{be.current=En},[En]),C.useEffect(()=>{X(!0)},[]),C.useEffect(()=>{const W=fe.current;if(W){const ie=W.getBoundingClientRect().height;return $e(ie),v(ce=>[{toastId:d.id,height:ie,position:d.position},...ce]),()=>v(ce=>ce.filter(me=>me.toastId!==d.id))}},[v,d.id]),C.useLayoutEffect(()=>{if(!$)return;const W=fe.current,ie=W.style.height;W.style.height="auto";const ce=W.getBoundingClientRect().height;W.style.height=ie,$e(ce),v(me=>me.find(ae=>ae.toastId===d.id)?me.map(ae=>ae.toastId===d.id?{...ae,height:ce}:ae):[{toastId:d.id,height:ce,position:d.position},...me])},[$,d.title,d.description,v,d.id,d.jsx,d.action,d.cancel]);const Be=C.useCallback(()=>{ne(!0),ue(ct.current),v(W=>W.filter(ie=>ie.toastId!==d.id)),setTimeout(()=>{S(d)},gd)},[d,S,v,ct]);C.useEffect(()=>{if(d.promise&&he==="loading"||d.duration===1/0||d.type==="loading")return;let W;return w||m||Nn?(()=>{if(Rn.current<yr.current){const me=new Date().getTime()-yr.current;be.current=be.current-me}Rn.current=new Date().getTime()})():(()=>{be.current!==1/0&&(yr.current=new Date().getTime(),W=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),Be()},be.current))})(),()=>clearTimeout(W)},[w,m,d,he,Nn,Be]),C.useEffect(()=>{d.delete&&(Be(),d.onDismiss==null||d.onDismiss.call(d,d))},[Be,d.delete]);function Hl(){var W;if(T!=null&&T.loading){var ie;return C.createElement("div",{className:Ne(A==null?void 0:A.loader,d==null||(ie=d.classNames)==null?void 0:ie.loader,"sonner-loader"),"data-visible":he==="loading"},T.loading)}return C.createElement(Zc,{className:Ne(A==null?void 0:A.loader,d==null||(W=d.classNames)==null?void 0:W.loader),visible:he==="loading"})}const Gl=d.icon||(T==null?void 0:T[he])||Kc(he);var Pn,Tn;return C.createElement("li",{tabIndex:0,ref:fe,className:Ne(F,zl,A==null?void 0:A.toast,d==null||(t=d.classNames)==null?void 0:t.toast,A==null?void 0:A.default,A==null?void 0:A[he],d==null||(r=d.classNames)==null?void 0:r[he]),"data-sonner-toast":"","data-rich-colors":(Pn=d.richColors)!=null?Pn:E,"data-styled":!(d.jsx||d.unstyled||h),"data-mounted":$,"data-promise":!!d.promise,"data-swiped":Z,"data-removed":J,"data-visible":Ll,"data-y-position":Fl,"data-x-position":Vl,"data-index":b,"data-front":jl,"data-swiping":L,"data-dismissible":lt,"data-type":he,"data-invert":Wl,"data-swipe-out":re,"data-swipe-direction":V,"data-expanded":!!(w||_&&$),"data-testid":d.testId,style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${J?de:ct.current}px`,"--initial-height":_?"auto":`${qe}px`,...R,...d.style},onDragEnd:()=>{z(!1),U(null),dt.current=null},onPointerDown:W=>{W.button!==2&&(br||!lt||(It.current=new Date,ue(ct.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(z(!0),dt.current={x:W.clientX,y:W.clientY})))},onPointerUp:()=>{var W,ie,ce;if(re||!lt)return;dt.current=null;const me=Number(((W=fe.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),_t=Number(((ie=fe.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ae=new Date().getTime()-((ce=It.current)==null?void 0:ce.getTime()),ye=j==="x"?me:_t,jt=Math.abs(ye)/ae;if(Math.abs(ye)>=md||jt>.11){ue(ct.current),d.onDismiss==null||d.onDismiss.call(d,d),se(j==="x"?me>0?"right":"left":_t>0?"down":"up"),Be(),q(!0);return}else{var xe,we;(xe=fe.current)==null||xe.style.setProperty("--swipe-amount-x","0px"),(we=fe.current)==null||we.style.setProperty("--swipe-amount-y","0px")}Y(!1),z(!1),U(null)},onPointerMove:W=>{var ie,ce,me;if(!dt.current||!lt||((ie=window.getSelection())==null?void 0:ie.toString().length)>0)return;const ae=W.clientY-dt.current.y,ye=W.clientX-dt.current.x;var jt;const xe=(jt=e.swipeDirections)!=null?jt:vd(I);!j&&(Math.abs(ye)>1||Math.abs(ae)>1)&&U(Math.abs(ye)>Math.abs(ae)?"x":"y");let we={x:0,y:0};const Dn=Qe=>1/(1.5+Math.abs(Qe)/20);if(j==="y"){if(xe.includes("top")||xe.includes("bottom"))if(xe.includes("top")&&ae<0||xe.includes("bottom")&&ae>0)we.y=ae;else{const Qe=ae*Dn(ae);we.y=Math.abs(Qe)<Math.abs(ae)?Qe:ae}}else if(j==="x"&&(xe.includes("left")||xe.includes("right")))if(xe.includes("left")&&ye<0||xe.includes("right")&&ye>0)we.x=ye;else{const Qe=ye*Dn(ye);we.x=Math.abs(Qe)<Math.abs(ye)?Qe:ye}(Math.abs(we.x)>0||Math.abs(we.y)>0)&&Y(!0),(ce=fe.current)==null||ce.style.setProperty("--swipe-amount-x",`${we.x}px`),(me=fe.current)==null||me.style.setProperty("--swipe-amount-y",`${we.y}px`)}},Bl&&!d.jsx&&he!=="loading"?C.createElement("button",{"aria-label":D,"data-disabled":br,"data-close-button":!0,onClick:br||!lt?()=>{}:()=>{Be(),d.onDismiss==null||d.onDismiss.call(d,d)},className:Ne(A==null?void 0:A.closeButton,d==null||(n=d.classNames)==null?void 0:n.closeButton)},(Tn=T==null?void 0:T.close)!=null?Tn:td):null,(he||d.icon||d.promise)&&d.icon!==null&&((T==null?void 0:T[he])!==null||d.icon)?C.createElement("div",{"data-icon":"",className:Ne(A==null?void 0:A.icon,d==null||(o=d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Hl():null,d.type!=="loading"?Gl:null):null,C.createElement("div",{"data-content":"",className:Ne(A==null?void 0:A.content,d==null||(i=d.classNames)==null?void 0:i.content)},C.createElement("div",{"data-title":"",className:Ne(A==null?void 0:A.title,d==null||(s=d.classNames)==null?void 0:s.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?C.createElement("div",{"data-description":"",className:Ne(P,$l,A==null?void 0:A.description,d==null||(a=d.classNames)==null?void 0:a.description)},typeof d.description=="function"?d.description():d.description):null),C.isValidElement(d.cancel)?d.cancel:d.cancel&&Lt(d.cancel)?C.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||O,onClick:W=>{Lt(d.cancel)&&lt&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,W),Be())},className:Ne(A==null?void 0:A.cancelButton,d==null||(c=d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,C.isValidElement(d.action)?d.action:d.action&&Lt(d.action)?C.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||B,onClick:W=>{Lt(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,W),!W.defaultPrevented&&Be())},className:Ne(A==null?void 0:A.actionButton,d==null||(l=d.classNames)==null?void 0:l.actionButton)},d.action.label):null)};function wo(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function bd(e,t){const r={};return[e,t].forEach((n,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?fd:ud;function c(l){["top","right","bottom","left"].forEach(u=>{r[`${s}-${u}`]=typeof l=="number"?`${l}px`:l})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(l=>{n[l]===void 0?r[`${s}-${l}`]=a:r[`${s}-${l}`]=typeof n[l]=="number"?`${n[l]}px`:n[l]}):c(a)}),r}const xd=C.forwardRef(function(t,r){const{id:n,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:c,className:l,offset:u,mobileOffset:d,theme:h="light",richColors:m,duration:v,style:p,visibleToasts:y=dd,toastOptions:b,dir:x=wo(),gap:w=hd,icons:S,containerAriaLabel:E="Notifications"}=t,[N,R]=C.useState([]),O=C.useMemo(()=>n?N.filter($=>$.toasterId===n):N.filter($=>!$.toasterId),[N,n]),B=C.useMemo(()=>Array.from(new Set([i].concat(O.filter($=>$.position).map($=>$.position)))),[O,i]),[F,P]=C.useState([]),[k,I]=C.useState(!1),[M,_]=C.useState(!1),[A,T]=C.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=C.useRef(null),j=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=C.useRef(null),V=C.useRef(!1),se=C.useCallback($=>{R(X=>{var J;return(J=X.find(ne=>ne.id===$.id))!=null&&J.delete||pe.dismiss($.id),X.filter(({id:ne})=>ne!==$.id)})},[]);return C.useEffect(()=>pe.subscribe($=>{if($.dismiss){requestAnimationFrame(()=>{R(X=>X.map(J=>J.id===$.id?{...J,delete:!0}:J))});return}setTimeout(()=>{Wr.flushSync(()=>{R(X=>{const J=X.findIndex(ne=>ne.id===$.id);return J!==-1?[...X.slice(0,J),{...X[J],...$},...X.slice(J+1)]:[$,...X]})})})}),[N]),C.useEffect(()=>{if(h!=="system"){T(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),typeof window>"u")return;const $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:X})=>{T(X?"dark":"light")})}catch{$.addListener(({matches:J})=>{try{T(J?"dark":"light")}catch(ne){console.error(ne)}})}},[h]),C.useEffect(()=>{N.length<=1&&I(!1)},[N]),C.useEffect(()=>{const $=X=>{var J;if(s.every(z=>X[z]||X.code===z)){var L;I(!0),(L=D.current)==null||L.focus()}X.code==="Escape"&&(document.activeElement===D.current||(J=D.current)!=null&&J.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[s]),C.useEffect(()=>{if(D.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,V.current=!1)}},[D.current]),C.createElement("section",{ref:r,"aria-label":`${E} ${j}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map(($,X)=>{var J;const[ne,L]=$.split("-");return O.length?C.createElement("ol",{key:$,dir:x==="auto"?wo():x,tabIndex:-1,ref:D,className:l,"data-sonner-toaster":!0,"data-sonner-theme":A,"data-y-position":ne,"data-x-position":L,style:{"--front-toast-height":`${((J=F[0])==null?void 0:J.height)||0}px`,"--width":`${pd}px`,"--gap":`${w}px`,...p,...bd(u,d)},onBlur:z=>{V.current&&!z.currentTarget.contains(z.relatedTarget)&&(V.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||V.current||(V.current=!0,U.current=z.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{M||I(!1)},onDragEnd:()=>I(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},O.filter(z=>!z.position&&X===0||z.position===$).map((z,re)=>{var q,Z;return C.createElement(yd,{key:z.id,icons:S,index:re,toast:z,defaultRichColors:m,duration:(q=b==null?void 0:b.duration)!=null?q:v,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:o,visibleToasts:y,closeButton:(Z=b==null?void 0:b.closeButton)!=null?Z:c,interacting:M,position:$,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,closeButtonAriaLabel:b==null?void 0:b.closeButtonAriaLabel,removeToast:se,toasts:O.filter(Y=>Y.position==z.position),heights:F.filter(Y=>Y.position==z.position),setHeights:P,expandByDefault:a,gap:w,expanded:k,swipeDirections:t.swipeDirections})})):null}))}),wd=({...e})=>g.jsx(xd,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-white group-[.toaster]:text-gray-900 group-[.toaster]:border-gray-200 group-[.toaster]:shadow-lg",description:"group-[.toast]:text-gray-500",actionButton:"group-[.toast]:bg-gray-900 group-[.toast]:text-gray-50",cancelButton:"group-[.toast]:bg-gray-100 group-[.toast]:text-gray-500"}},...e}),As=f.forwardRef(({className:e,...t},r)=>g.jsx("form",{ref:r,className:G("space-y-4",e),...t}));As.displayName="Form";const Ns=f.forwardRef(({className:e,error:t,children:r,...n},o)=>g.jsxs("div",{ref:o,className:G("space-y-2",e),...n,children:[r,t&&g.jsx("p",{className:"text-sm text-red-600",role:"alert",children:t})]}));Ns.displayName="FormField";const Ps=f.forwardRef(({className:e,variant:t="default",size:r="md",...n},o)=>g.jsx("div",{className:G("inline-flex items-center rounded-full border font-medium text-center whitespace-nowrap",{"px-2 py-0.5 text-xs":r==="sm","px-2.5 py-0.5 text-sm":r==="md","px-3 py-1 text-sm":r==="lg","bg-blue-600 border-blue-600 text-white":t==="default","bg-gray-100 border-gray-300 text-gray-800":t==="secondary","bg-transparent border-gray-300 text-gray-700":t==="outline","bg-green-100 border-green-300 text-green-800":t==="success","bg-yellow-100 border-yellow-300 text-yellow-800":t==="warning","bg-red-100 border-red-300 text-red-800":t==="error"},e),ref:o,...n}));Ps.displayName="Badge";const Ts=f.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>g.jsx("div",{ref:o,role:r?"none":"separator","aria-orientation":t,className:st("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ts.displayName="Separator";function Cd(e,t){const r=f.createContext(t),n=i=>{const{children:s,...a}=i,c=f.useMemo(()=>a,Object.values(a));return g.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(i){const s=f.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function Ke(e,t=[]){let r=[];function n(i,s){const a=f.createContext(s),c=r.length;r=[...r,s];const l=d=>{var b;const{scope:h,children:m,...v}=d,p=((b=h==null?void 0:h[e])==null?void 0:b[c])||a,y=f.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:y,children:m})};l.displayName=i+"Provider";function u(d,h){var p;const m=((p=h==null?void 0:h[e])==null?void 0:p[c])||a,v=f.useContext(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const o=()=>{const i=r.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[n,Sd(o,...t)]}function Sd(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Ds(e){const t=e+"CollectionProvider",[r,n]=Ke(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:y,children:b}=p,x=C.useRef(null),w=C.useRef(new Map).current;return g.jsx(o,{scope:y,itemMap:w,collectionRef:x,children:b})};s.displayName=t;const a=e+"CollectionSlot",c=yt(a),l=C.forwardRef((p,y)=>{const{scope:b,children:x}=p,w=i(a,b),S=ee(y,w.collectionRef);return g.jsx(c,{ref:S,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=yt(u),m=C.forwardRef((p,y)=>{const{scope:b,children:x,...w}=p,S=C.useRef(null),E=ee(y,S),N=i(u,b);return C.useEffect(()=>(N.itemMap.set(S,{ref:S,...w}),()=>void N.itemMap.delete(S))),g.jsx(h,{[d]:"",ref:E,children:x})});m.displayName=u;function v(p){const y=i(e+"CollectionConsumer",p);return C.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((N,R)=>w.indexOf(N.ref.current)-w.indexOf(R.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:l,ItemSlot:m},v,n]}function Q(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var le=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Ed=f[" useInsertionEffect ".trim().toString()]||le;function Je({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=Rd({defaultProp:t,onChange:r}),a=e!==void 0,c=a?e:o;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${a?"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.`),u.current=a},[a,n])}const l=f.useCallback(u=>{var d;if(a){const h=Ad(u)?u(e):u;h!==e&&((d=s.current)==null||d.call(s,h))}else i(u)},[a,e,i,s]);return[c,l]}function Rd({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return Ed(()=>{i.current=t},[t]),f.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function Ad(e){return typeof e=="function"}function Nd(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Ct=e=>{const{present:t,children:r}=e,n=Pd(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=ee(n.ref,Td(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};Ct.displayName="Presence";function Pd(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Nd(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=zt(n.current);i.current=a==="mounted"?l:"none"},[a]),le(()=>{const l=n.current,u=o.current;if(u!==e){const h=i.current,m=zt(l);e?c("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),le(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=m=>{const p=zt(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&p&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=m=>{m.target===t&&(i.current=zt(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function zt(e){return(e==null?void 0:e.animationName)||"none"}function Td(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Dd=f[" useId ".trim().toString()]||(()=>{}),kd=0;function He(e){const[t,r]=f.useState(Dd());return le(()=>{r(n=>n??String(kd++))},[e]),t?`radix-${t}`:""}var nr="Collapsible",[Md,ks]=Ke(nr),[Id,Yr]=Md(nr),Ms=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:s,...a}=e,[c,l]=Je({prop:n,defaultProp:o??!1,onChange:s,caller:nr});return g.jsx(Id,{scope:r,disabled:i,contentId:He(),open:c,onOpenToggle:f.useCallback(()=>l(u=>!u),[l]),children:g.jsx(K.div,{"data-state":Xr(c),"data-disabled":i?"":void 0,...a,ref:t})})});Ms.displayName=nr;var Is="CollapsibleTrigger",Os=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Yr(Is,r);return g.jsx(K.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Xr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:Q(e.onClick,o.onOpenToggle)})});Os.displayName=Is;var Kr="CollapsibleContent",_s=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Yr(Kr,e.__scopeCollapsible);return g.jsx(Ct,{present:r||o.open,children:({present:i})=>g.jsx(Od,{...n,ref:t,present:i})})});_s.displayName=Kr;var Od=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,s=Yr(Kr,r),[a,c]=f.useState(n),l=f.useRef(null),u=ee(t,l),d=f.useRef(0),h=d.current,m=f.useRef(0),v=m.current,p=s.open||a,y=f.useRef(p),b=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(x)},[]),le(()=>{const x=l.current;if(x){b.current=b.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();d.current=w.height,m.current=w.width,y.current||(x.style.transitionDuration=b.current.transitionDuration,x.style.animationName=b.current.animationName),c(n)}},[s.open,n]),g.jsx(K.div,{"data-state":Xr(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!p,...i,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:p&&o})});function Xr(e){return e?"open":"closed"}var _d=Ms,jd=Os,Ld=_s,zd=f.createContext(void 0);function js(e){const t=f.useContext(zd);return e||t||"ltr"}var Re="Accordion",$d=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Zr,Bd,Fd]=Ds(Re),[or]=Ke(Re,[Fd,ks]),qr=ks(),Ls=C.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return g.jsx(Zr.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?g.jsx(Gd,{...i,ref:t}):g.jsx(Hd,{...o,ref:t})})});Ls.displayName=Re;var[zs,Vd]=or(Re),[$s,Wd]=or(Re,{collapsible:!1}),Hd=C.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...s}=e,[a,c]=Je({prop:r,defaultProp:n??"",onChange:o,caller:Re});return g.jsx(zs,{scope:e.__scopeAccordion,value:C.useMemo(()=>a?[a]:[],[a]),onItemOpen:c,onItemClose:C.useCallback(()=>i&&c(""),[i,c]),children:g.jsx($s,{scope:e.__scopeAccordion,collapsible:i,children:g.jsx(Bs,{...s,ref:t})})})}),Gd=C.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[s,a]=Je({prop:r,defaultProp:n??[],onChange:o,caller:Re}),c=C.useCallback(u=>a((d=[])=>[...d,u]),[a]),l=C.useCallback(u=>a((d=[])=>d.filter(h=>h!==u)),[a]);return g.jsx(zs,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:l,children:g.jsx($s,{scope:e.__scopeAccordion,collapsible:!0,children:g.jsx(Bs,{...i,ref:t})})})}),[Ud,sr]=or(Re),Bs=C.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...s}=e,a=C.useRef(null),c=ee(a,t),l=Bd(r),d=js(o)==="ltr",h=Q(e.onKeyDown,m=>{var O;if(!$d.includes(m.key))return;const v=m.target,p=l().filter(B=>{var F;return!((F=B.ref.current)!=null&&F.disabled)}),y=p.findIndex(B=>B.ref.current===v),b=p.length;if(y===-1)return;m.preventDefault();let x=y;const w=0,S=b-1,E=()=>{x=y+1,x>S&&(x=w)},N=()=>{x=y-1,x<w&&(x=S)};switch(m.key){case"Home":x=w;break;case"End":x=S;break;case"ArrowRight":i==="horizontal"&&(d?E():N());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(d?N():E());break;case"ArrowUp":i==="vertical"&&N();break}const R=x%b;(O=p[R].ref.current)==null||O.focus()});return g.jsx(Ud,{scope:r,disabled:n,direction:o,orientation:i,children:g.jsx(Zr.Slot,{scope:r,children:g.jsx(K.div,{...s,"data-orientation":i,ref:c,onKeyDown:n?void 0:h})})})}),Yt="AccordionItem",[Yd,Qr]=or(Yt),Fs=C.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=sr(Yt,r),s=Vd(Yt,r),a=qr(r),c=He(),l=n&&s.value.includes(n)||!1,u=i.disabled||e.disabled;return g.jsx(Yd,{scope:r,open:l,disabled:u,triggerId:c,children:g.jsx(_d,{"data-orientation":i.orientation,"data-state":Ys(l),...a,...o,ref:t,disabled:u,open:l,onOpenChange:d=>{d?s.onItemOpen(n):s.onItemClose(n)}})})});Fs.displayName=Yt;var Vs="AccordionHeader",Ws=C.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sr(Re,r),i=Qr(Vs,r);return g.jsx(K.h3,{"data-orientation":o.orientation,"data-state":Ys(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});Ws.displayName=Vs;var Mr="AccordionTrigger",Hs=C.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sr(Re,r),i=Qr(Mr,r),s=Wd(Mr,r),a=qr(r);return g.jsx(Zr.ItemSlot,{scope:r,children:g.jsx(jd,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...a,...n,ref:t})})});Hs.displayName=Mr;var Gs="AccordionContent",Us=C.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sr(Re,r),i=Qr(Gs,r),s=qr(r);return g.jsx(Ld,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Us.displayName=Gs;function Ys(e){return e?"open":"closed"}var Kd=Ls,Xd=Fs,Zd=Ws,Ks=Hs,Xs=Us;const qd=Kd,Zs=f.forwardRef(({className:e,...t},r)=>g.jsx(Xd,{ref:r,className:G("border rounded-lg",e),...t}));Zs.displayName="AccordionItem";const qs=f.forwardRef(({className:e,children:t,...r},n)=>g.jsx(Zd,{className:"flex",children:g.jsxs(Ks,{ref:n,className:G("flex flex-1 items-center justify-between py-4 px-4 text-left text-sm font-medium transition-all hover:underline",e),...r,children:[t,g.jsx("span",{className:"ml-2",children:"▾"})]})}));qs.displayName=Ks.displayName;const Qs=f.forwardRef(({className:e,children:t,...r},n)=>g.jsx(Xs,{ref:n,className:G("px-4 pb-4 text-sm text-muted-foreground",e),...r,children:t}));Qs.displayName=Xs.displayName;function et(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Qd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Jd="DismissableLayer",Ir="dismissableLayer.update",eu="dismissableLayer.pointerDownOutside",tu="dismissableLayer.focusOutside",Co,Js=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jr=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(Js),[u,d]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=f.useState({}),v=ee(t,R=>d(R)),p=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(y),x=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,S=x>=b,E=ou(R=>{const O=R.target,B=[...l.branches].some(F=>F.contains(O));!S||B||(o==null||o(R),s==null||s(R),R.defaultPrevented||a==null||a())},h),N=su(R=>{const O=R.target;[...l.branches].some(F=>F.contains(O))||(i==null||i(R),s==null||s(R),R.defaultPrevented||a==null||a())},h);return Qd(R=>{x===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Co=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),So(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Co)}},[u,h,r,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),So())},[u,l]),f.useEffect(()=>{const R=()=>m({});return document.addEventListener(Ir,R),()=>document.removeEventListener(Ir,R)},[]),g.jsx(K.div,{...c,ref:v,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,E.onPointerDownCapture)})});Jr.displayName=Jd;var ru="DismissableLayerBranch",nu=f.forwardRef((e,t)=>{const r=f.useContext(Js),n=f.useRef(null),o=ee(t,n);return f.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),g.jsx(K.div,{...e,ref:o})});nu.displayName=ru;function ou(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){ei(eu,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function su(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!n.current&&ei(tu,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function So(){const e=new CustomEvent(Ir);document.dispatchEvent(e)}function ei(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Fc(o,i):o.dispatchEvent(i)}var wr="focusScope.autoFocusOnMount",Cr="focusScope.autoFocusOnUnmount",Eo={bubbles:!1,cancelable:!0},iu="FocusScope",en=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=f.useState(null),l=et(o),u=et(i),d=f.useRef(null),h=ee(t,p=>c(p)),m=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let p=function(w){if(m.paused||!a)return;const S=w.target;a.contains(S)?d.current=S:We(d.current,{select:!0})},y=function(w){if(m.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||We(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&We(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",y);const x=new MutationObserver(b);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",y),x.disconnect()}}},[n,a,m.paused]),f.useEffect(()=>{if(a){Ao.add(m);const p=document.activeElement;if(!a.contains(p)){const b=new CustomEvent(wr,Eo);a.addEventListener(wr,l),a.dispatchEvent(b),b.defaultPrevented||(au(fu(ti(a)),{select:!0}),document.activeElement===p&&We(a))}return()=>{a.removeEventListener(wr,l),setTimeout(()=>{const b=new CustomEvent(Cr,Eo);a.addEventListener(Cr,u),a.dispatchEvent(b),b.defaultPrevented||We(p??document.body,{select:!0}),a.removeEventListener(Cr,u),Ao.remove(m)},0)}}},[a,l,u,m]);const v=f.useCallback(p=>{if(!r&&!n||m.paused)return;const y=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,b=document.activeElement;if(y&&b){const x=p.currentTarget,[w,S]=lu(x);w&&S?!p.shiftKey&&b===S?(p.preventDefault(),r&&We(w,{select:!0})):p.shiftKey&&b===w&&(p.preventDefault(),r&&We(S,{select:!0})):b===x&&p.preventDefault()}},[r,n,m.paused]);return g.jsx(K.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});en.displayName=iu;function au(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(We(n,{select:t}),document.activeElement!==r)return}function lu(e){const t=ti(e),r=Ro(t,e),n=Ro(t.reverse(),e);return[r,n]}function ti(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ro(e,t){for(const r of e)if(!cu(r,{upTo:t}))return r}function cu(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 du(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&du(e)&&t&&e.select()}}var Ao=uu();function uu(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=No(e,t),e.unshift(t)},remove(t){var r;e=No(e,t),(r=e[0])==null||r.resume()}}}function No(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function fu(e){return e.filter(t=>t.tagName!=="A")}var pu="Portal",tn=f.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,i]=f.useState(!1);le(()=>i(!0),[]);const s=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Wr.createPortal(g.jsx(K.div,{...n,ref:t}),s):null});tn.displayName=pu;var Sr=0;function ri(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Po()),document.body.insertAdjacentElement("beforeend",e[1]??Po()),Sr++,()=>{Sr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sr--}},[])}function Po(){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 Pe=function(){return Pe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Pe.apply(this,arguments)};function ni(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function hu(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Ht="right-scroll-bar-position",Gt="width-before-scroll-bar",mu="with-scroll-bars-hidden",gu="--removed-body-scroll-bar-size";function Er(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vu(e,t){var r=C.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var yu=typeof window<"u"?f.useLayoutEffect:f.useEffect,To=new WeakMap;function bu(e,t){var r=vu(null,function(n){return e.forEach(function(o){return Er(o,n)})});return yu(function(){var n=To.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||Er(a,null)}),i.forEach(function(a){o.has(a)||Er(a,s)})}To.set(r,e)},[e]),r}function xu(e){return e}function wu(e,t){t===void 0&&(t=xu);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var c=function(){var u=s;s=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),r={push:function(u){s.push(u),l()},filter:function(u){return s=s.filter(u),r}}}};return o}function Cu(e){e===void 0&&(e={});var t=wu(null);return t.options=Pe({async:!0,ssr:!1},e),t}var oi=function(e){var t=e.sideCar,r=ni(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,Pe({},r))};oi.isSideCarExport=!0;function Su(e,t){return e.useMedium(t),oi}var si=Cu(),Rr=function(){},ir=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:Rr,onWheelCapture:Rr,onTouchMoveCapture:Rr}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,m=e.noRelative,v=e.noIsolation,p=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,w=e.gapMode,S=ni(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,N=bu([r,t]),R=Pe(Pe({},S),o);return f.createElement(f.Fragment,null,u&&f.createElement(E,{sideCar:si,removeScrollBar:l,shards:d,noRelative:m,noIsolation:v,inert:p,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:w}),s?f.cloneElement(f.Children.only(a),Pe(Pe({},R),{ref:N})):f.createElement(x,Pe({},R,{className:c,ref:N}),a))});ir.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ir.classNames={fullWidth:Gt,zeroRight:Ht};var Eu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ru(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Eu();return t&&e.setAttribute("nonce",t),e}function Au(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pu=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ru())&&(Au(t,r),Nu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tu=function(){var e=Pu();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ii=function(){var e=Tu(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Du={left:0,top:0,right:0,gap:0},Ar=function(e){return parseInt(e||"",10)||0},ku=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ar(r),Ar(n),Ar(o)]},Mu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Du;var t=ku(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Iu=ii(),mt="data-scroll-locked",Ou=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
19
+ `;const u=document.createElement("canvas");u.width=i,u.height=s,u.style.cssText="border-radius: 8px;",l.appendChild(u);let d=null,h=[],m=null,v=!1;const p=()=>{if(v)return;d=new wo.Illustration({element:u,zoom:1,rotate:{y:0}});const b=(I,P,O)=>{const M=new wo.Ellipse({addTo:d,diameter:a,stroke:!1,fill:!0,color:"#5e0f1a"});h.push({shape:M,id:O,group:I,offset:P})};let x=0;for(let I=0;I<6;I++)b("left",I/6,x++);for(let I=0;I<6;I++)b("right",I/6,x++);const w=I=>1-Math.pow(1-I,2),S=(I,P,O)=>I+(P-I)*O,E=I=>({r:parseInt(I.slice(1,3),16),g:parseInt(I.slice(3,5),16),b:parseInt(I.slice(5,7),16)}),k=["#5e0f1a","#c22a2f","#e0392b","#f05a24","#f39c12","#fde68a"].map(E),A=[...k].reverse(),j=(I,P)=>{if(P<=0)return I[0];if(P>=1)return I[I.length-1];const O=P*(I.length-1),M=Math.floor(O),T=O-M,R=I[M],D=I[M+1];return{r:Math.round(S(R.r,D.r,T)),g:Math.round(S(R.g,D.g,T)),b:Math.round(S(R.b,D.b,T))}};h.forEach(({shape:I,group:P,offset:O,id:M})=>{let T,R,D,N=1;if(P==="left"){const _=O,G=w(_);T=-c+c*G,R=Math.PI/2*G,D=300+(100-Math.abs(T))-M*.01;const{r:V,g:se,b:F}=j(k,_);I.color=`rgba(${V}, ${se}, ${F}, ${N})`}else{const _=O,G=w(_);T=0+c*G,R=Math.PI/2+Math.PI/2*G,D=300+(100-Math.abs(T))-M*.01;const{r:V,g:se,b:F}=j(A,_);I.color=`rgba(${V}, ${se}, ${F}, ${N})`}I.translate.x=T,I.translate.z=D,I.rotate.y=R}),d.updateRenderGraph();const B=(I,P,O,M)=>{let T,R,D,N;const _=Math.min(O,1),G=V=>V<.5?2*V*V:1-Math.pow(-2*V+2,2)/2;if(P==="left"){const V=G(_);T=-c+c*V,R=Math.PI/2*V,D=1,N=300+(100-Math.abs(T))-M*.01;const{r:se,g:F,b:X}=j(k,_);I.color=`rgba(${se}, ${F}, ${X}, ${D})`}else{const V=G(_);T=0+c*V,R=Math.PI/2+Math.PI/2*V,D=1,N=300+(100-Math.abs(T))-M*.01;const{r:se,g:F,b:X}=j(A,_);I.color=`rgba(${se}, ${F}, ${X}, ${D})`}I.translate.x=T,I.translate.z=N,I.rotate.y=R},L=I=>{if(v||!d||!h.length)return;const P=I%r/r;for(let O=0;O<h.length;O++){const M=h[O];let T=(P+M.offset)%1;if(T<.02){const R=T/.02;B(M.shape,M.group,0,M.id);const D=M.shape.color.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([^)]+)\)/);if(D){const N=parseFloat(D[4]);M.shape.color=`rgba(${D[1]}, ${D[2]}, ${D[3]}, ${N*R})`}M.shape.translate.z=100-M.id*.01}else if(T>.98){const R=(1-T)/.02,D=(.98-.02)/.96;B(M.shape,M.group,D,M.id);const N=M.shape.color.match(/rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([^)]+)\)/);if(N){const _=parseFloat(N[4]);M.shape.color=`rgba(${N[1]}, ${N[2]}, ${N[3]}, ${_*R})`}}else{const R=(T-.02)/.96;B(M.shape,M.group,R,M.id)}}d.updateRenderGraph(),v||(m=requestAnimationFrame(L))};m=requestAnimationFrame(L)},y=()=>{v=!0,m&&(cancelAnimationFrame(m),m=null),h=[],d=null};return p(),{element:l,destroy:y}}const Yr=kt("inline-flex items-center justify-center 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",{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-[#EDEBEB]",secondary:"bg-secondary text-secondary-foreground hover:bg-[#EDEBEB]",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"}}),fs=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const s=n?Yl:"button";return g.jsx(s,{className:st(Yr({variant:t,size:r,className:e})),ref:i,...o})});fs.displayName="Button";const ps=f.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:st("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));ps.displayName="Card";const hs=f.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:st("flex flex-col space-y-1.5 p-6",e),...t}));hs.displayName="CardHeader";const ms=f.forwardRef(({className:e,...t},r)=>g.jsx("h3",{ref:r,className:st("text-2xl font-semibold leading-none tracking-tight",e),...t}));ms.displayName="CardTitle";const gs=f.forwardRef(({className:e,...t},r)=>g.jsx("p",{ref:r,className:st("text-sm text-muted-foreground",e),...t}));gs.displayName="CardDescription";const vs=f.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:st("p-6 pt-0",e),...t}));vs.displayName="CardContent";function U(...e){return os(Gr(e))}const ys=f.forwardRef(({className:e,type:t,error:r,...n},o)=>g.jsx("input",{type:t,className:U("flex h-10 w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r&&"border-red-500 focus-visible:ring-red-500",e),ref:o,...n}));ys.displayName="Input";var Fc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Fc.reduce((e,t)=>{const r=yt(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Vc(e,t){e&&rr.flushSync(()=>e.dispatchEvent(t))}var Wc="Label",bs=f.forwardRef((e,t)=>g.jsx(K.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));bs.displayName=Wc;var xs=bs;const Hc=kt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ws=f.forwardRef(({className:e,...t},r)=>g.jsx(xs,{ref:r,className:U(Hc(),e),...t}));ws.displayName=xs.displayName;const Gc=kt("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-white text-gray-900 border-gray-200",destructive:"border-red-500/50 text-red-900 dark:border-red-500 [&>svg]:text-red-500 bg-red-50",success:"border-green-500/50 text-green-900 dark:border-green-500 [&>svg]:text-green-500 bg-green-50",warning:"border-yellow-500/50 text-yellow-900 dark:border-yellow-500 [&>svg]:text-yellow-500 bg-yellow-50"}},defaultVariants:{variant:"default"}}),Cs=f.forwardRef(({className:e,variant:t,...r},n)=>g.jsx("div",{ref:n,role:"alert",className:U(Gc({variant:t}),e),...r}));Cs.displayName="Alert";const Ss=f.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:U("text-sm [&_p]:leading-relaxed",e),...t}));Ss.displayName="AlertDescription";const Es=f.forwardRef(({className:e,...t},r)=>g.jsx("h5",{ref:r,className:U("mb-1 font-medium leading-none tracking-tight",e),...t}));Es.displayName="AlertTitle";const Rs=f.forwardRef(({className:e,error:t,...r},n)=>g.jsx("textarea",{className:U("flex min-h-[80px] w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t&&"border-red-500 focus-visible:ring-red-500",e),ref:n,...r}));Rs.displayName="Textarea";const Uc=kt("animate-spin rounded-full border-2 border-current border-t-transparent",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-12 w-12"}},defaultVariants:{size:"md"}}),As=f.forwardRef(({className:e,size:t,...r},n)=>g.jsx("div",{ref:n,className:U(Uc({size:t}),e),...r}));As.displayName="Spinner";const Yc=kt("relative",{variants:{size:{sm:"w-[140px] h-[105px]",md:"w-[300px] h-[200px]",lg:"w-[400px] h-[250px]",xl:"w-[500px] h-[300px]"}},defaultVariants:{size:"md"}}),Ns=C.forwardRef(({className:e,size:t,cycleDuration:r=3e3,...n},o)=>{const i=C.useRef(null),s=C.useRef(null);return C.useEffect(()=>{if(i.current)return s.current&&s.current.destroy(),s.current=Bc({size:t||"md",cycleDuration:r,className:""}),i.current.innerHTML="",i.current.appendChild(s.current.element),()=>{s.current&&(s.current.destroy(),s.current=null)}},[t,r]),g.jsx("div",{ref:a=>{i.current=a,typeof o=="function"?o(a):o&&(o.current=a)},className:U(Yc({size:t}),e),...n})});Ns.displayName="DiscLoader";function Kc(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const Xc=e=>{switch(e){case"success":return Qc;case"info":return ed;case"warning":return Jc;case"error":return td;default:return null}},Zc=Array(12).fill(0),qc=({visible:e,className:t})=>C.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},C.createElement("div",{className:"sonner-spinner"},Zc.map((r,n)=>C.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Qc=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Jc=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ed=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),td=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),rd=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},C.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),C.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),nd=()=>{const[e,t]=C.useState(document.hidden);return C.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Mr=1;class od{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:n,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Mr++,s=this.toasts.find(c=>c.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...t,id:i,title:n}),{...c,...t,id:i,dismissible:a,title:n}):c):this.addToast({title:n,...o,dismissible:a,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=n!==void 0,s;const a=o.then(async l=>{if(s=["resolve",l],C.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(id(l)&&!l.ok){i=!1;const d=typeof r.error=="function"?await r.error(`HTTP error! status: ${l.status}`):r.error,h=typeof r.description=="function"?await r.description(`HTTP error! status: ${l.status}`):r.description,v=typeof d=="object"&&!C.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:h,...v})}else if(l instanceof Error){i=!1;const d=typeof r.error=="function"?await r.error(l):r.error,h=typeof r.description=="function"?await r.description(l):r.description,v=typeof d=="object"&&!C.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:h,...v})}else if(r.success!==void 0){i=!1;const d=typeof r.success=="function"?await r.success(l):r.success,h=typeof r.description=="function"?await r.description(l):r.description,v=typeof d=="object"&&!C.isValidElement(d)?d:{message:d};this.create({id:n,type:"success",description:h,...v})}}).catch(async l=>{if(s=["reject",l],r.error!==void 0){i=!1;const u=typeof r.error=="function"?await r.error(l):r.error,d=typeof r.description=="function"?await r.description(l):r.description,m=typeof u=="object"&&!C.isValidElement(u)?u:{message:u};this.create({id:n,type:"error",description:d,...m})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),c=()=>new Promise((l,u)=>a.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(t,r)=>{const n=(r==null?void 0:r.id)||Mr++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const pe=new od,sd=(e,t)=>{const r=(t==null?void 0:t.id)||Mr++;return pe.addToast({title:e,...t,id:r}),r},id=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ad=sd,ld=()=>pe.toasts,cd=()=>pe.getActiveToasts(),Ir=Object.assign(ad,{success:pe.success,info:pe.info,warning:pe.warning,error:pe.error,custom:pe.custom,message:pe.message,promise:pe.promise,dismiss:pe.dismiss,loading:pe.loading},{getHistory:ld,getToasts:cd});Kc("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function $t(e){return e.label!==void 0}const dd=3,ud="24px",fd="16px",Co=4e3,pd=356,hd=14,md=45,gd=200;function Ne(...e){return e.filter(Boolean).join(" ")}function vd(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}const yd=e=>{var t,r,n,o,i,s,a,c,l;const{invert:u,toast:d,unstyled:h,interacting:m,setHeights:v,visibleToasts:p,heights:y,index:b,toasts:x,expanded:w,removeToast:S,defaultRichColors:E,closeButton:k,style:A,cancelButtonStyle:j,actionButtonStyle:B,className:L="",descriptionClassName:I="",duration:P,position:O,gap:M,expandByDefault:T,classNames:R,icons:D,closeButtonAriaLabel:N="Close toast"}=e,[_,G]=C.useState(null),[V,se]=C.useState(null),[F,X]=C.useState(!1),[J,ne]=C.useState(!1),[$,z]=C.useState(!1),[re,q]=C.useState(!1),[Z,Y]=C.useState(!1),[de,ue]=C.useState(0),[qe,ze]=C.useState(0),be=C.useRef(d.duration||P||Co),Ot=C.useRef(null),fe=C.useRef(null),Ll=b===0,$l=b+1<=p,he=d.type,lt=d.dismissible!==!1,zl=d.className||"",Bl=d.descriptionClassName||"",_t=C.useMemo(()=>y.findIndex(W=>W.toastId===d.id)||0,[y,d.id]),Fl=C.useMemo(()=>{var W;return(W=d.closeButton)!=null?W:k},[d.closeButton,k]),An=C.useMemo(()=>d.duration||P||Co,[d.duration,P]),br=C.useRef(0),ct=C.useRef(0),Nn=C.useRef(0),dt=C.useRef(null),[Vl,Wl]=O.split("-"),Pn=C.useMemo(()=>y.reduce((W,ie,ce)=>ce>=_t?W:W+ie.height,0),[y,_t]),Tn=nd(),Hl=d.invert||u,xr=he==="loading";ct.current=C.useMemo(()=>_t*M+Pn,[_t,Pn]),C.useEffect(()=>{be.current=An},[An]),C.useEffect(()=>{X(!0)},[]),C.useEffect(()=>{const W=fe.current;if(W){const ie=W.getBoundingClientRect().height;return ze(ie),v(ce=>[{toastId:d.id,height:ie,position:d.position},...ce]),()=>v(ce=>ce.filter(me=>me.toastId!==d.id))}},[v,d.id]),C.useLayoutEffect(()=>{if(!F)return;const W=fe.current,ie=W.style.height;W.style.height="auto";const ce=W.getBoundingClientRect().height;W.style.height=ie,ze(ce),v(me=>me.find(ae=>ae.toastId===d.id)?me.map(ae=>ae.toastId===d.id?{...ae,height:ce}:ae):[{toastId:d.id,height:ce,position:d.position},...me])},[F,d.title,d.description,v,d.id,d.jsx,d.action,d.cancel]);const Be=C.useCallback(()=>{ne(!0),ue(ct.current),v(W=>W.filter(ie=>ie.toastId!==d.id)),setTimeout(()=>{S(d)},gd)},[d,S,v,ct]);C.useEffect(()=>{if(d.promise&&he==="loading"||d.duration===1/0||d.type==="loading")return;let W;return w||m||Tn?(()=>{if(Nn.current<br.current){const me=new Date().getTime()-br.current;be.current=be.current-me}Nn.current=new Date().getTime()})():(()=>{be.current!==1/0&&(br.current=new Date().getTime(),W=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),Be()},be.current))})(),()=>clearTimeout(W)},[w,m,d,he,Tn,Be]),C.useEffect(()=>{d.delete&&(Be(),d.onDismiss==null||d.onDismiss.call(d,d))},[Be,d.delete]);function Gl(){var W;if(D!=null&&D.loading){var ie;return C.createElement("div",{className:Ne(R==null?void 0:R.loader,d==null||(ie=d.classNames)==null?void 0:ie.loader,"sonner-loader"),"data-visible":he==="loading"},D.loading)}return C.createElement(qc,{className:Ne(R==null?void 0:R.loader,d==null||(W=d.classNames)==null?void 0:W.loader),visible:he==="loading"})}const Ul=d.icon||(D==null?void 0:D[he])||Xc(he);var Dn,kn;return C.createElement("li",{tabIndex:0,ref:fe,className:Ne(L,zl,R==null?void 0:R.toast,d==null||(t=d.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[he],d==null||(r=d.classNames)==null?void 0:r[he]),"data-sonner-toast":"","data-rich-colors":(Dn=d.richColors)!=null?Dn:E,"data-styled":!(d.jsx||d.unstyled||h),"data-mounted":F,"data-promise":!!d.promise,"data-swiped":Z,"data-removed":J,"data-visible":$l,"data-y-position":Vl,"data-x-position":Wl,"data-index":b,"data-front":Ll,"data-swiping":$,"data-dismissible":lt,"data-type":he,"data-invert":Hl,"data-swipe-out":re,"data-swipe-direction":V,"data-expanded":!!(w||T&&F),"data-testid":d.testId,style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${J?de:ct.current}px`,"--initial-height":T?"auto":`${qe}px`,...A,...d.style},onDragEnd:()=>{z(!1),G(null),dt.current=null},onPointerDown:W=>{W.button!==2&&(xr||!lt||(Ot.current=new Date,ue(ct.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(z(!0),dt.current={x:W.clientX,y:W.clientY})))},onPointerUp:()=>{var W,ie,ce;if(re||!lt)return;dt.current=null;const me=Number(((W=fe.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),jt=Number(((ie=fe.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ae=new Date().getTime()-((ce=Ot.current)==null?void 0:ce.getTime()),ye=_==="x"?me:jt,Lt=Math.abs(ye)/ae;if(Math.abs(ye)>=md||Lt>.11){ue(ct.current),d.onDismiss==null||d.onDismiss.call(d,d),se(_==="x"?me>0?"right":"left":jt>0?"down":"up"),Be(),q(!0);return}else{var xe,we;(xe=fe.current)==null||xe.style.setProperty("--swipe-amount-x","0px"),(we=fe.current)==null||we.style.setProperty("--swipe-amount-y","0px")}Y(!1),z(!1),G(null)},onPointerMove:W=>{var ie,ce,me;if(!dt.current||!lt||((ie=window.getSelection())==null?void 0:ie.toString().length)>0)return;const ae=W.clientY-dt.current.y,ye=W.clientX-dt.current.x;var Lt;const xe=(Lt=e.swipeDirections)!=null?Lt:vd(O);!_&&(Math.abs(ye)>1||Math.abs(ae)>1)&&G(Math.abs(ye)>Math.abs(ae)?"x":"y");let we={x:0,y:0};const Mn=Qe=>1/(1.5+Math.abs(Qe)/20);if(_==="y"){if(xe.includes("top")||xe.includes("bottom"))if(xe.includes("top")&&ae<0||xe.includes("bottom")&&ae>0)we.y=ae;else{const Qe=ae*Mn(ae);we.y=Math.abs(Qe)<Math.abs(ae)?Qe:ae}}else if(_==="x"&&(xe.includes("left")||xe.includes("right")))if(xe.includes("left")&&ye<0||xe.includes("right")&&ye>0)we.x=ye;else{const Qe=ye*Mn(ye);we.x=Math.abs(Qe)<Math.abs(ye)?Qe:ye}(Math.abs(we.x)>0||Math.abs(we.y)>0)&&Y(!0),(ce=fe.current)==null||ce.style.setProperty("--swipe-amount-x",`${we.x}px`),(me=fe.current)==null||me.style.setProperty("--swipe-amount-y",`${we.y}px`)}},Fl&&!d.jsx&&he!=="loading"?C.createElement("button",{"aria-label":N,"data-disabled":xr,"data-close-button":!0,onClick:xr||!lt?()=>{}:()=>{Be(),d.onDismiss==null||d.onDismiss.call(d,d)},className:Ne(R==null?void 0:R.closeButton,d==null||(n=d.classNames)==null?void 0:n.closeButton)},(kn=D==null?void 0:D.close)!=null?kn:rd):null,(he||d.icon||d.promise)&&d.icon!==null&&((D==null?void 0:D[he])!==null||d.icon)?C.createElement("div",{"data-icon":"",className:Ne(R==null?void 0:R.icon,d==null||(o=d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Gl():null,d.type!=="loading"?Ul:null):null,C.createElement("div",{"data-content":"",className:Ne(R==null?void 0:R.content,d==null||(i=d.classNames)==null?void 0:i.content)},C.createElement("div",{"data-title":"",className:Ne(R==null?void 0:R.title,d==null||(s=d.classNames)==null?void 0:s.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?C.createElement("div",{"data-description":"",className:Ne(I,Bl,R==null?void 0:R.description,d==null||(a=d.classNames)==null?void 0:a.description)},typeof d.description=="function"?d.description():d.description):null),C.isValidElement(d.cancel)?d.cancel:d.cancel&&$t(d.cancel)?C.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||j,onClick:W=>{$t(d.cancel)&&lt&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,W),Be())},className:Ne(R==null?void 0:R.cancelButton,d==null||(c=d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,C.isValidElement(d.action)?d.action:d.action&&$t(d.action)?C.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||B,onClick:W=>{$t(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,W),!W.defaultPrevented&&Be())},className:Ne(R==null?void 0:R.actionButton,d==null||(l=d.classNames)==null?void 0:l.actionButton)},d.action.label):null)};function So(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function bd(e,t){const r={};return[e,t].forEach((n,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?fd:ud;function c(l){["top","right","bottom","left"].forEach(u=>{r[`${s}-${u}`]=typeof l=="number"?`${l}px`:l})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(l=>{n[l]===void 0?r[`${s}-${l}`]=a:r[`${s}-${l}`]=typeof n[l]=="number"?`${n[l]}px`:n[l]}):c(a)}),r}const xd=C.forwardRef(function(t,r){const{id:n,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:c,className:l,offset:u,mobileOffset:d,theme:h="light",richColors:m,duration:v,style:p,visibleToasts:y=dd,toastOptions:b,dir:x=So(),gap:w=hd,icons:S,containerAriaLabel:E="Notifications"}=t,[k,A]=C.useState([]),j=C.useMemo(()=>n?k.filter(F=>F.toasterId===n):k.filter(F=>!F.toasterId),[k,n]),B=C.useMemo(()=>Array.from(new Set([i].concat(j.filter(F=>F.position).map(F=>F.position)))),[j,i]),[L,I]=C.useState([]),[P,O]=C.useState(!1),[M,T]=C.useState(!1),[R,D]=C.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),N=C.useRef(null),_=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),G=C.useRef(null),V=C.useRef(!1),se=C.useCallback(F=>{A(X=>{var J;return(J=X.find(ne=>ne.id===F.id))!=null&&J.delete||pe.dismiss(F.id),X.filter(({id:ne})=>ne!==F.id)})},[]);return C.useEffect(()=>pe.subscribe(F=>{if(F.dismiss){requestAnimationFrame(()=>{A(X=>X.map(J=>J.id===F.id?{...J,delete:!0}:J))});return}setTimeout(()=>{tr.flushSync(()=>{A(X=>{const J=X.findIndex(ne=>ne.id===F.id);return J!==-1?[...X.slice(0,J),{...X[J],...F},...X.slice(J+1)]:[F,...X]})})})}),[k]),C.useEffect(()=>{if(h!=="system"){D(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),typeof window>"u")return;const F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:X})=>{D(X?"dark":"light")})}catch{F.addListener(({matches:J})=>{try{D(J?"dark":"light")}catch(ne){console.error(ne)}})}},[h]),C.useEffect(()=>{k.length<=1&&O(!1)},[k]),C.useEffect(()=>{const F=X=>{var J;if(s.every(z=>X[z]||X.code===z)){var $;O(!0),($=N.current)==null||$.focus()}X.code==="Escape"&&(document.activeElement===N.current||(J=N.current)!=null&&J.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[s]),C.useEffect(()=>{if(N.current)return()=>{G.current&&(G.current.focus({preventScroll:!0}),G.current=null,V.current=!1)}},[N.current]),C.createElement("section",{ref:r,"aria-label":`${E} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((F,X)=>{var J;const[ne,$]=F.split("-");return j.length?C.createElement("ol",{key:F,dir:x==="auto"?So():x,tabIndex:-1,ref:N,className:l,"data-sonner-toaster":!0,"data-sonner-theme":R,"data-y-position":ne,"data-x-position":$,style:{"--front-toast-height":`${((J=L[0])==null?void 0:J.height)||0}px`,"--width":`${pd}px`,"--gap":`${w}px`,...p,...bd(u,d)},onBlur:z=>{V.current&&!z.currentTarget.contains(z.relatedTarget)&&(V.current=!1,G.current&&(G.current.focus({preventScroll:!0}),G.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||V.current||(V.current=!0,G.current=z.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{M||O(!1)},onDragEnd:()=>O(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||T(!0)},onPointerUp:()=>T(!1)},j.filter(z=>!z.position&&X===0||z.position===F).map((z,re)=>{var q,Z;return C.createElement(yd,{key:z.id,icons:S,index:re,toast:z,defaultRichColors:m,duration:(q=b==null?void 0:b.duration)!=null?q:v,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:o,visibleToasts:y,closeButton:(Z=b==null?void 0:b.closeButton)!=null?Z:c,interacting:M,position:F,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,closeButtonAriaLabel:b==null?void 0:b.closeButtonAriaLabel,removeToast:se,toasts:j.filter(Y=>Y.position==z.position),heights:L.filter(Y=>Y.position==z.position),setHeights:I,expandByDefault:a,gap:w,expanded:P,swipeDirections:t.swipeDirections})})):null}))}),wd=({...e})=>g.jsx(xd,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-white group-[.toaster]:text-gray-900 group-[.toaster]:border-gray-200 group-[.toaster]:shadow-lg",description:"group-[.toast]:text-gray-500",actionButton:"group-[.toast]:bg-gray-900 group-[.toast]:text-gray-50",cancelButton:"group-[.toast]:bg-gray-100 group-[.toast]:text-gray-500"}},...e}),Ps=f.forwardRef(({className:e,...t},r)=>g.jsx("form",{ref:r,className:U("space-y-4",e),...t}));Ps.displayName="Form";const Ts=f.forwardRef(({className:e,error:t,children:r,...n},o)=>g.jsxs("div",{ref:o,className:U("space-y-2",e),...n,children:[r,t&&g.jsx("p",{className:"text-sm text-red-600",role:"alert",children:t})]}));Ts.displayName="FormField";const Ds=f.forwardRef(({className:e,variant:t="default",size:r="md",...n},o)=>g.jsx("div",{className:U("inline-flex items-center rounded-full border font-medium text-center whitespace-nowrap",{"px-2 py-0.5 text-xs":r==="sm","px-2.5 py-0.5 text-sm":r==="md","px-3 py-1 text-sm":r==="lg","bg-blue-600 border-blue-600 text-white":t==="default","bg-gray-100 border-gray-300 text-gray-800":t==="secondary","bg-transparent border-gray-300 text-gray-700":t==="outline","bg-green-100 border-green-300 text-green-800":t==="success","bg-yellow-100 border-yellow-300 text-yellow-800":t==="warning","bg-red-100 border-red-300 text-red-800":t==="error"},e),ref:o,...n}));Ds.displayName="Badge";const ks=f.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>g.jsx("div",{ref:o,role:r?"none":"separator","aria-orientation":t,className:st("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));ks.displayName="Separator";function Cd(e,t){const r=f.createContext(t),n=i=>{const{children:s,...a}=i,c=f.useMemo(()=>a,Object.values(a));return g.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(i){const s=f.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function Ke(e,t=[]){let r=[];function n(i,s){const a=f.createContext(s),c=r.length;r=[...r,s];const l=d=>{var b;const{scope:h,children:m,...v}=d,p=((b=h==null?void 0:h[e])==null?void 0:b[c])||a,y=f.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:y,children:m})};l.displayName=i+"Provider";function u(d,h){var p;const m=((p=h==null?void 0:h[e])==null?void 0:p[c])||a,v=f.useContext(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const o=()=>{const i=r.map(s=>f.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[n,Sd(o,...t)]}function Sd(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=n.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Ms(e){const t=e+"CollectionProvider",[r,n]=Ke(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:y,children:b}=p,x=C.useRef(null),w=C.useRef(new Map).current;return g.jsx(o,{scope:y,itemMap:w,collectionRef:x,children:b})};s.displayName=t;const a=e+"CollectionSlot",c=yt(a),l=C.forwardRef((p,y)=>{const{scope:b,children:x}=p,w=i(a,b),S=ee(y,w.collectionRef);return g.jsx(c,{ref:S,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=yt(u),m=C.forwardRef((p,y)=>{const{scope:b,children:x,...w}=p,S=C.useRef(null),E=ee(y,S),k=i(u,b);return C.useEffect(()=>(k.itemMap.set(S,{ref:S,...w}),()=>void k.itemMap.delete(S))),g.jsx(h,{[d]:"",ref:E,children:x})});m.displayName=u;function v(p){const y=i(e+"CollectionConsumer",p);return C.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((k,A)=>w.indexOf(k.ref.current)-w.indexOf(A.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:l,ItemSlot:m},v,n]}function Q(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var le=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Ed=f[" useInsertionEffect ".trim().toString()]||le;function Je({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=Rd({defaultProp:t,onChange:r}),a=e!==void 0,c=a?e:o;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${a?"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.`),u.current=a},[a,n])}const l=f.useCallback(u=>{var d;if(a){const h=Ad(u)?u(e):u;h!==e&&((d=s.current)==null||d.call(s,h))}else i(u)},[a,e,i,s]);return[c,l]}function Rd({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return Ed(()=>{i.current=t},[t]),f.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function Ad(e){return typeof e=="function"}function Nd(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Ct=e=>{const{present:t,children:r}=e,n=Pd(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=ee(n.ref,Td(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};Ct.displayName="Presence";function Pd(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Nd(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=zt(n.current);i.current=a==="mounted"?l:"none"},[a]),le(()=>{const l=n.current,u=o.current;if(u!==e){const h=i.current,m=zt(l);e?c("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),le(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=m=>{const p=zt(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&p&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=m=>{m.target===t&&(i.current=zt(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function zt(e){return(e==null?void 0:e.animationName)||"none"}function Td(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Dd=f[" useId ".trim().toString()]||(()=>{}),kd=0;function He(e){const[t,r]=f.useState(Dd());return le(()=>{r(n=>n??String(kd++))},[e]),e||(t?`radix-${t}`:"")}var sr="Collapsible",[Md,Is]=Ke(sr),[Id,Kr]=Md(sr),Os=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:s,...a}=e,[c,l]=Je({prop:n,defaultProp:o??!1,onChange:s,caller:sr});return g.jsx(Id,{scope:r,disabled:i,contentId:He(),open:c,onOpenToggle:f.useCallback(()=>l(u=>!u),[l]),children:g.jsx(K.div,{"data-state":Zr(c),"data-disabled":i?"":void 0,...a,ref:t})})});Os.displayName=sr;var _s="CollapsibleTrigger",js=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Kr(_s,r);return g.jsx(K.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Zr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:Q(e.onClick,o.onOpenToggle)})});js.displayName=_s;var Xr="CollapsibleContent",Ls=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Kr(Xr,e.__scopeCollapsible);return g.jsx(Ct,{present:r||o.open,children:({present:i})=>g.jsx(Od,{...n,ref:t,present:i})})});Ls.displayName=Xr;var Od=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,s=Kr(Xr,r),[a,c]=f.useState(n),l=f.useRef(null),u=ee(t,l),d=f.useRef(0),h=d.current,m=f.useRef(0),v=m.current,p=s.open||a,y=f.useRef(p),b=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(x)},[]),le(()=>{const x=l.current;if(x){b.current=b.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();d.current=w.height,m.current=w.width,y.current||(x.style.transitionDuration=b.current.transitionDuration,x.style.animationName=b.current.animationName),c(n)}},[s.open,n]),g.jsx(K.div,{"data-state":Zr(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!p,...i,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:p&&o})});function Zr(e){return e?"open":"closed"}var _d=Os,jd=js,Ld=Ls,$d=f.createContext(void 0);function $s(e){const t=f.useContext($d);return e||t||"ltr"}var Re="Accordion",zd=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[qr,Bd,Fd]=Ms(Re),[ir]=Ke(Re,[Fd,Is]),Qr=Is(),zs=C.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return g.jsx(qr.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?g.jsx(Gd,{...i,ref:t}):g.jsx(Hd,{...o,ref:t})})});zs.displayName=Re;var[Bs,Vd]=ir(Re),[Fs,Wd]=ir(Re,{collapsible:!1}),Hd=C.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...s}=e,[a,c]=Je({prop:r,defaultProp:n??"",onChange:o,caller:Re});return g.jsx(Bs,{scope:e.__scopeAccordion,value:C.useMemo(()=>a?[a]:[],[a]),onItemOpen:c,onItemClose:C.useCallback(()=>i&&c(""),[i,c]),children:g.jsx(Fs,{scope:e.__scopeAccordion,collapsible:i,children:g.jsx(Vs,{...s,ref:t})})})}),Gd=C.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[s,a]=Je({prop:r,defaultProp:n??[],onChange:o,caller:Re}),c=C.useCallback(u=>a((d=[])=>[...d,u]),[a]),l=C.useCallback(u=>a((d=[])=>d.filter(h=>h!==u)),[a]);return g.jsx(Bs,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:l,children:g.jsx(Fs,{scope:e.__scopeAccordion,collapsible:!0,children:g.jsx(Vs,{...i,ref:t})})})}),[Ud,ar]=ir(Re),Vs=C.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...s}=e,a=C.useRef(null),c=ee(a,t),l=Bd(r),d=$s(o)==="ltr",h=Q(e.onKeyDown,m=>{var j;if(!zd.includes(m.key))return;const v=m.target,p=l().filter(B=>{var L;return!((L=B.ref.current)!=null&&L.disabled)}),y=p.findIndex(B=>B.ref.current===v),b=p.length;if(y===-1)return;m.preventDefault();let x=y;const w=0,S=b-1,E=()=>{x=y+1,x>S&&(x=w)},k=()=>{x=y-1,x<w&&(x=S)};switch(m.key){case"Home":x=w;break;case"End":x=S;break;case"ArrowRight":i==="horizontal"&&(d?E():k());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(d?k():E());break;case"ArrowUp":i==="vertical"&&k();break}const A=x%b;(j=p[A].ref.current)==null||j.focus()});return g.jsx(Ud,{scope:r,disabled:n,direction:o,orientation:i,children:g.jsx(qr.Slot,{scope:r,children:g.jsx(K.div,{...s,"data-orientation":i,ref:c,onKeyDown:n?void 0:h})})})}),Kt="AccordionItem",[Yd,Jr]=ir(Kt),Ws=C.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=ar(Kt,r),s=Vd(Kt,r),a=Qr(r),c=He(),l=n&&s.value.includes(n)||!1,u=i.disabled||e.disabled;return g.jsx(Yd,{scope:r,open:l,disabled:u,triggerId:c,children:g.jsx(_d,{"data-orientation":i.orientation,"data-state":Xs(l),...a,...o,ref:t,disabled:u,open:l,onOpenChange:d=>{d?s.onItemOpen(n):s.onItemClose(n)}})})});Ws.displayName=Kt;var Hs="AccordionHeader",Gs=C.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ar(Re,r),i=Jr(Hs,r);return g.jsx(K.h3,{"data-orientation":o.orientation,"data-state":Xs(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});Gs.displayName=Hs;var Or="AccordionTrigger",Us=C.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ar(Re,r),i=Jr(Or,r),s=Wd(Or,r),a=Qr(r);return g.jsx(qr.ItemSlot,{scope:r,children:g.jsx(jd,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...a,...n,ref:t})})});Us.displayName=Or;var Ys="AccordionContent",Ks=C.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ar(Re,r),i=Jr(Ys,r),s=Qr(r);return g.jsx(Ld,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ks.displayName=Ys;function Xs(e){return e?"open":"closed"}var Kd=zs,Xd=Ws,Zd=Gs,Zs=Us,qs=Ks;const qd=Kd,Qs=f.forwardRef(({className:e,...t},r)=>g.jsx(Xd,{ref:r,className:U("border rounded-lg",e),...t}));Qs.displayName="AccordionItem";const Js=f.forwardRef(({className:e,children:t,...r},n)=>g.jsx(Zd,{className:"flex",children:g.jsxs(Zs,{ref:n,className:U("flex flex-1 items-center justify-between py-4 px-4 text-left text-sm font-medium transition-all hover:underline",e),...r,children:[t,g.jsx("span",{className:"ml-2",children:"▾"})]})}));Js.displayName=Zs.displayName;const ei=f.forwardRef(({className:e,children:t,...r},n)=>g.jsx(qs,{ref:n,className:U("px-4 pb-4 text-sm text-muted-foreground",e),...r,children:t}));ei.displayName=qs.displayName;function et(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Qd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Jd="DismissableLayer",_r="dismissableLayer.update",eu="dismissableLayer.pointerDownOutside",tu="dismissableLayer.focusOutside",Eo,ti=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),en=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(ti),[u,d]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=f.useState({}),v=ee(t,A=>d(A)),p=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(y),x=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,S=x>=b,E=ou(A=>{const j=A.target,B=[...l.branches].some(L=>L.contains(j));!S||B||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},h),k=su(A=>{const j=A.target;[...l.branches].some(L=>L.contains(j))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},h);return Qd(A=>{x===l.layers.size-1&&(n==null||n(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Eo=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ro(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Eo)}},[u,h,r,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ro())},[u,l]),f.useEffect(()=>{const A=()=>m({});return document.addEventListener(_r,A),()=>document.removeEventListener(_r,A)},[]),g.jsx(K.div,{...c,ref:v,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,E.onPointerDownCapture)})});en.displayName=Jd;var ru="DismissableLayerBranch",nu=f.forwardRef((e,t)=>{const r=f.useContext(ti),n=f.useRef(null),o=ee(t,n);return f.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),g.jsx(K.div,{...e,ref:o})});nu.displayName=ru;function ou(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){ri(eu,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function su(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!n.current&&ri(tu,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ro(){const e=new CustomEvent(_r);document.dispatchEvent(e)}function ri(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Vc(o,i):o.dispatchEvent(i)}var Cr="focusScope.autoFocusOnMount",Sr="focusScope.autoFocusOnUnmount",Ao={bubbles:!1,cancelable:!0},iu="FocusScope",tn=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=f.useState(null),l=et(o),u=et(i),d=f.useRef(null),h=ee(t,p=>c(p)),m=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let p=function(w){if(m.paused||!a)return;const S=w.target;a.contains(S)?d.current=S:We(d.current,{select:!0})},y=function(w){if(m.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||We(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&We(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",y);const x=new MutationObserver(b);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",y),x.disconnect()}}},[n,a,m.paused]),f.useEffect(()=>{if(a){Po.add(m);const p=document.activeElement;if(!a.contains(p)){const b=new CustomEvent(Cr,Ao);a.addEventListener(Cr,l),a.dispatchEvent(b),b.defaultPrevented||(au(fu(ni(a)),{select:!0}),document.activeElement===p&&We(a))}return()=>{a.removeEventListener(Cr,l),setTimeout(()=>{const b=new CustomEvent(Sr,Ao);a.addEventListener(Sr,u),a.dispatchEvent(b),b.defaultPrevented||We(p??document.body,{select:!0}),a.removeEventListener(Sr,u),Po.remove(m)},0)}}},[a,l,u,m]);const v=f.useCallback(p=>{if(!r&&!n||m.paused)return;const y=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,b=document.activeElement;if(y&&b){const x=p.currentTarget,[w,S]=lu(x);w&&S?!p.shiftKey&&b===S?(p.preventDefault(),r&&We(w,{select:!0})):p.shiftKey&&b===w&&(p.preventDefault(),r&&We(S,{select:!0})):b===x&&p.preventDefault()}},[r,n,m.paused]);return g.jsx(K.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});tn.displayName=iu;function au(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(We(n,{select:t}),document.activeElement!==r)return}function lu(e){const t=ni(e),r=No(t,e),n=No(t.reverse(),e);return[r,n]}function ni(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function No(e,t){for(const r of e)if(!cu(r,{upTo:t}))return r}function cu(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 du(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&du(e)&&t&&e.select()}}var Po=uu();function uu(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=To(e,t),e.unshift(t)},remove(t){var r;e=To(e,t),(r=e[0])==null||r.resume()}}}function To(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function fu(e){return e.filter(t=>t.tagName!=="A")}var pu="Portal",rn=f.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,i]=f.useState(!1);le(()=>i(!0),[]);const s=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?tr.createPortal(g.jsx(K.div,{...n,ref:t}),s):null});rn.displayName=pu;var Er=0;function oi(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Do()),document.body.insertAdjacentElement("beforeend",e[1]??Do()),Er++,()=>{Er===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Er--}},[])}function Do(){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 Pe=function(){return Pe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Pe.apply(this,arguments)};function si(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function hu(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Gt="right-scroll-bar-position",Ut="width-before-scroll-bar",mu="with-scroll-bars-hidden",gu="--removed-body-scroll-bar-size";function Rr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vu(e,t){var r=C.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var yu=typeof window<"u"?f.useLayoutEffect:f.useEffect,ko=new WeakMap;function bu(e,t){var r=vu(null,function(n){return e.forEach(function(o){return Rr(o,n)})});return yu(function(){var n=ko.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||Rr(a,null)}),i.forEach(function(a){o.has(a)||Rr(a,s)})}ko.set(r,e)},[e]),r}function xu(e){return e}function wu(e,t){t===void 0&&(t=xu);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var c=function(){var u=s;s=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),r={push:function(u){s.push(u),l()},filter:function(u){return s=s.filter(u),r}}}};return o}function Cu(e){e===void 0&&(e={});var t=wu(null);return t.options=Pe({async:!0,ssr:!1},e),t}var ii=function(e){var t=e.sideCar,r=si(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,Pe({},r))};ii.isSideCarExport=!0;function Su(e,t){return e.useMedium(t),ii}var ai=Cu(),Ar=function(){},lr=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:Ar,onWheelCapture:Ar,onTouchMoveCapture:Ar}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,m=e.noRelative,v=e.noIsolation,p=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,w=e.gapMode,S=si(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,k=bu([r,t]),A=Pe(Pe({},S),o);return f.createElement(f.Fragment,null,u&&f.createElement(E,{sideCar:ai,removeScrollBar:l,shards:d,noRelative:m,noIsolation:v,inert:p,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:w}),s?f.cloneElement(f.Children.only(a),Pe(Pe({},A),{ref:k})):f.createElement(x,Pe({},A,{className:c,ref:k}),a))});lr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lr.classNames={fullWidth:Ut,zeroRight:Gt};var Eu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ru(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Eu();return t&&e.setAttribute("nonce",t),e}function Au(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pu=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ru())&&(Au(t,r),Nu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tu=function(){var e=Pu();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},li=function(){var e=Tu(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Du={left:0,top:0,right:0,gap:0},Nr=function(e){return parseInt(e||"",10)||0},ku=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Nr(r),Nr(n),Nr(o)]},Mu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Du;var t=ku(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Iu=li(),mt="data-scroll-locked",Ou=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
20
20
  .`.concat(mu,` {
21
21
  overflow: hidden `).concat(n,`;
22
22
  padding-right: `).concat(a,"px ").concat(n,`;
@@ -34,38 +34,38 @@
34
34
  `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
35
35
  }
36
36
 
37
- .`).concat(Ht,` {
37
+ .`).concat(Gt,` {
38
38
  right: `).concat(a,"px ").concat(n,`;
39
39
  }
40
40
 
41
- .`).concat(Gt,` {
41
+ .`).concat(Ut,` {
42
42
  margin-right: `).concat(a,"px ").concat(n,`;
43
43
  }
44
44
 
45
- .`).concat(Ht," .").concat(Ht,` {
45
+ .`).concat(Gt," .").concat(Gt,` {
46
46
  right: 0 `).concat(n,`;
47
47
  }
48
48
 
49
- .`).concat(Gt," .").concat(Gt,` {
49
+ .`).concat(Ut," .").concat(Ut,` {
50
50
  margin-right: 0 `).concat(n,`;
51
51
  }
52
52
 
53
53
  body[`).concat(mt,`] {
54
54
  `).concat(gu,": ").concat(a,`px;
55
55
  }
56
- `)},Do=function(){var e=parseInt(document.body.getAttribute(mt)||"0",10);return isFinite(e)?e:0},_u=function(){f.useEffect(function(){return document.body.setAttribute(mt,(Do()+1).toString()),function(){var e=Do()-1;e<=0?document.body.removeAttribute(mt):document.body.setAttribute(mt,e.toString())}},[])},ju=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;_u();var i=f.useMemo(function(){return Mu(o)},[o]);return f.createElement(Iu,{styles:Ou(i,!t,o,r?"":"!important")})},Or=!1;if(typeof window<"u")try{var $t=Object.defineProperty({},"passive",{get:function(){return Or=!0,!0}});window.addEventListener("test",$t,$t),window.removeEventListener("test",$t,$t)}catch{Or=!1}var ut=Or?{passive:!1}:!1,Lu=function(e){return e.tagName==="TEXTAREA"},ai=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Lu(e)&&r[t]==="visible")},zu=function(e){return ai(e,"overflowY")},$u=function(e){return ai(e,"overflowX")},ko=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=li(e,n);if(o){var i=ci(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Bu=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Fu=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},li=function(e,t){return e==="v"?zu(t):$u(t)},ci=function(e,t){return e==="v"?Bu(t):Fu(t)},Vu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Wu=function(e,t,r,n,o){var i=Vu(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,c=t.contains(a),l=!1,u=s>0,d=0,h=0;do{if(!a)break;var m=ci(e,a),v=m[0],p=m[1],y=m[2],b=p-y-i*v;(v||b)&&li(e,a)&&(d+=b,h+=v);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(h)<1)&&(l=!0),l},Bt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mo=function(e){return[e.deltaX,e.deltaY]},Io=function(e){return e&&"current"in e?e.current:e},Hu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gu=function(e){return`
56
+ `)},Mo=function(){var e=parseInt(document.body.getAttribute(mt)||"0",10);return isFinite(e)?e:0},_u=function(){f.useEffect(function(){return document.body.setAttribute(mt,(Mo()+1).toString()),function(){var e=Mo()-1;e<=0?document.body.removeAttribute(mt):document.body.setAttribute(mt,e.toString())}},[])},ju=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;_u();var i=f.useMemo(function(){return Mu(o)},[o]);return f.createElement(Iu,{styles:Ou(i,!t,o,r?"":"!important")})},jr=!1;if(typeof window<"u")try{var Bt=Object.defineProperty({},"passive",{get:function(){return jr=!0,!0}});window.addEventListener("test",Bt,Bt),window.removeEventListener("test",Bt,Bt)}catch{jr=!1}var ut=jr?{passive:!1}:!1,Lu=function(e){return e.tagName==="TEXTAREA"},ci=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Lu(e)&&r[t]==="visible")},$u=function(e){return ci(e,"overflowY")},zu=function(e){return ci(e,"overflowX")},Io=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=di(e,n);if(o){var i=ui(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Bu=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Fu=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},di=function(e,t){return e==="v"?$u(t):zu(t)},ui=function(e,t){return e==="v"?Bu(t):Fu(t)},Vu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Wu=function(e,t,r,n,o){var i=Vu(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,c=t.contains(a),l=!1,u=s>0,d=0,h=0;do{if(!a)break;var m=ui(e,a),v=m[0],p=m[1],y=m[2],b=p-y-i*v;(v||b)&&di(e,a)&&(d+=b,h+=v);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(h)<1)&&(l=!0),l},Ft=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Oo=function(e){return[e.deltaX,e.deltaY]},_o=function(e){return e&&"current"in e?e.current:e},Hu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gu=function(e){return`
57
57
  .block-interactivity-`.concat(e,` {pointer-events: none;}
58
58
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
59
- `)},Uu=0,ft=[];function Yu(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(Uu++)[0],i=f.useState(ii)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=hu([e.lockRef.current],(e.shards||[]).map(Io),!0).filter(Boolean);return p.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(p,y){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var b=Bt(p),x=r.current,w="deltaX"in p?p.deltaX:x[0]-b[0],S="deltaY"in p?p.deltaY:x[1]-b[1],E,N=p.target,R=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in p&&R==="h"&&N.type==="range")return!1;var O=ko(R,N);if(!O)return!0;if(O?E=R:(E=R==="v"?"h":"v",O=ko(R,N)),!O)return!1;if(!n.current&&"changedTouches"in p&&(w||S)&&(n.current=E),!E)return!0;var B=n.current||E;return Wu(B,y,p,B==="h"?w:S)},[]),c=f.useCallback(function(p){var y=p;if(!(!ft.length||ft[ft.length-1]!==i)){var b="deltaY"in y?Mo(y):Bt(y),x=t.current.filter(function(E){return E.name===y.type&&(E.target===y.target||y.target===E.shadowParent)&&Hu(E.delta,b)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var w=(s.current.shards||[]).map(Io).filter(Boolean).filter(function(E){return E.contains(y.target)}),S=w.length>0?a(y,w[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),l=f.useCallback(function(p,y,b,x){var w={name:p,delta:y,target:b,should:x,shadowParent:Ku(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),u=f.useCallback(function(p){r.current=Bt(p),n.current=void 0},[]),d=f.useCallback(function(p){l(p.type,Mo(p),p.target,a(p,e.lockRef.current))},[]),h=f.useCallback(function(p){l(p.type,Bt(p),p.target,a(p,e.lockRef.current))},[]);f.useEffect(function(){return ft.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,ut),document.addEventListener("touchmove",c,ut),document.addEventListener("touchstart",u,ut),function(){ft=ft.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,ut),document.removeEventListener("touchmove",c,ut),document.removeEventListener("touchstart",u,ut)}},[]);var m=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(i,{styles:Gu(o)}):null,m?f.createElement(ju,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ku(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xu=Su(si,Yu);var rn=f.forwardRef(function(e,t){return f.createElement(ir,Pe({},e,{ref:t,sideCar:Xu}))});rn.classNames=ir.classNames;var Zu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pt=new WeakMap,Ft=new WeakMap,Vt={},Nr=0,di=function(e){return e&&(e.host||di(e.parentNode))},qu=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=di(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Qu=function(e,t,r,n){var o=qu(t,Array.isArray(e)?e:[e]);Vt[r]||(Vt[r]=new WeakMap);var i=Vt[r],s=[],a=new Set,c=new Set(o),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};o.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var m=h.getAttribute(n),v=m!==null&&m!=="false",p=(pt.get(h)||0)+1,y=(i.get(h)||0)+1;pt.set(h,p),i.set(h,y),s.push(h),p===1&&v&&Ft.set(h,!0),y===1&&h.setAttribute(r,"true"),v||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return u(t),a.clear(),Nr++,function(){s.forEach(function(d){var h=pt.get(d)-1,m=i.get(d)-1;pt.set(d,h),i.set(d,m),h||(Ft.has(d)||d.removeAttribute(n),Ft.delete(d)),m||d.removeAttribute(r)}),Nr--,Nr||(pt=new WeakMap,pt=new WeakMap,Ft=new WeakMap,Vt={})}},ui=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Zu(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Qu(n,o,r,"aria-hidden")):function(){return null}},ar="Dialog",[fi,pi]=Ke(ar),[Ju,Ae]=fi(ar),hi=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=f.useRef(null),c=f.useRef(null),[l,u]=Je({prop:n,defaultProp:o??!1,onChange:i,caller:ar});return g.jsx(Ju,{scope:t,triggerRef:a,contentRef:c,contentId:He(),titleId:He(),descriptionId:He(),open:l,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(d=>!d),[u]),modal:s,children:r})};hi.displayName=ar;var mi="DialogTrigger",gi=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ae(mi,r),i=ee(t,o.triggerRef);return g.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sn(o.open),...n,ref:i,onClick:Q(e.onClick,o.onOpenToggle)})});gi.displayName=mi;var nn="DialogPortal",[ef,vi]=fi(nn,{forceMount:void 0}),yi=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Ae(nn,t);return g.jsx(ef,{scope:t,forceMount:r,children:f.Children.map(n,s=>g.jsx(Ct,{present:r||i.open,children:g.jsx(tn,{asChild:!0,container:o,children:s})}))})};yi.displayName=nn;var Kt="DialogOverlay",bi=f.forwardRef((e,t)=>{const r=vi(Kt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ae(Kt,e.__scopeDialog);return i.modal?g.jsx(Ct,{present:n||i.open,children:g.jsx(rf,{...o,ref:t})}):null});bi.displayName=Kt;var tf=yt("DialogOverlay.RemoveScroll"),rf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ae(Kt,r);return g.jsx(rn,{as:tf,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(K.div,{"data-state":sn(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),tt="DialogContent",xi=f.forwardRef((e,t)=>{const r=vi(tt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ae(tt,e.__scopeDialog);return g.jsx(Ct,{present:n||i.open,children:i.modal?g.jsx(nf,{...o,ref:t}):g.jsx(of,{...o,ref:t})})});xi.displayName=tt;var nf=f.forwardRef((e,t)=>{const r=Ae(tt,e.__scopeDialog),n=f.useRef(null),o=ee(t,r.contentRef,n);return f.useEffect(()=>{const i=n.current;if(i)return ui(i)},[]),g.jsx(wi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault())})}),of=f.forwardRef((e,t)=>{const r=Ae(tt,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return g.jsx(wi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=r.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),wi=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Ae(tt,r),c=f.useRef(null),l=ee(t,c);return ri(),g.jsxs(g.Fragment,{children:[g.jsx(en,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(Jr,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":sn(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(af,{titleId:a.titleId}),g.jsx(cf,{contentRef:c,descriptionId:a.descriptionId})]})]})}),on="DialogTitle",Ci=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ae(on,r);return g.jsx(K.h2,{id:o.titleId,...n,ref:t})});Ci.displayName=on;var Si="DialogDescription",Ei=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ae(Si,r);return g.jsx(K.p,{id:o.descriptionId,...n,ref:t})});Ei.displayName=Si;var Ri="DialogClose",Ai=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ae(Ri,r);return g.jsx(K.button,{type:"button",...n,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});Ai.displayName=Ri;function sn(e){return e?"open":"closed"}var Ni="DialogTitleWarning",[sf,Pi]=Cd(Ni,{contentName:tt,titleName:on,docsSlug:"dialog"}),af=({titleId:e})=>{const t=Pi(Ni),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
59
+ `)},Uu=0,ft=[];function Yu(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(Uu++)[0],i=f.useState(li)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=hu([e.lockRef.current],(e.shards||[]).map(_o),!0).filter(Boolean);return p.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(p,y){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var b=Ft(p),x=r.current,w="deltaX"in p?p.deltaX:x[0]-b[0],S="deltaY"in p?p.deltaY:x[1]-b[1],E,k=p.target,A=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in p&&A==="h"&&k.type==="range")return!1;var j=Io(A,k);if(!j)return!0;if(j?E=A:(E=A==="v"?"h":"v",j=Io(A,k)),!j)return!1;if(!n.current&&"changedTouches"in p&&(w||S)&&(n.current=E),!E)return!0;var B=n.current||E;return Wu(B,y,p,B==="h"?w:S)},[]),c=f.useCallback(function(p){var y=p;if(!(!ft.length||ft[ft.length-1]!==i)){var b="deltaY"in y?Oo(y):Ft(y),x=t.current.filter(function(E){return E.name===y.type&&(E.target===y.target||y.target===E.shadowParent)&&Hu(E.delta,b)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var w=(s.current.shards||[]).map(_o).filter(Boolean).filter(function(E){return E.contains(y.target)}),S=w.length>0?a(y,w[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),l=f.useCallback(function(p,y,b,x){var w={name:p,delta:y,target:b,should:x,shadowParent:Ku(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),u=f.useCallback(function(p){r.current=Ft(p),n.current=void 0},[]),d=f.useCallback(function(p){l(p.type,Oo(p),p.target,a(p,e.lockRef.current))},[]),h=f.useCallback(function(p){l(p.type,Ft(p),p.target,a(p,e.lockRef.current))},[]);f.useEffect(function(){return ft.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,ut),document.addEventListener("touchmove",c,ut),document.addEventListener("touchstart",u,ut),function(){ft=ft.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,ut),document.removeEventListener("touchmove",c,ut),document.removeEventListener("touchstart",u,ut)}},[]);var m=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(i,{styles:Gu(o)}):null,m?f.createElement(ju,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ku(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xu=Su(ai,Yu);var nn=f.forwardRef(function(e,t){return f.createElement(lr,Pe({},e,{ref:t,sideCar:Xu}))});nn.classNames=lr.classNames;var Zu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pt=new WeakMap,Vt=new WeakMap,Wt={},Pr=0,fi=function(e){return e&&(e.host||fi(e.parentNode))},qu=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=fi(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Qu=function(e,t,r,n){var o=qu(t,Array.isArray(e)?e:[e]);Wt[r]||(Wt[r]=new WeakMap);var i=Wt[r],s=[],a=new Set,c=new Set(o),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};o.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var m=h.getAttribute(n),v=m!==null&&m!=="false",p=(pt.get(h)||0)+1,y=(i.get(h)||0)+1;pt.set(h,p),i.set(h,y),s.push(h),p===1&&v&&Vt.set(h,!0),y===1&&h.setAttribute(r,"true"),v||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return u(t),a.clear(),Pr++,function(){s.forEach(function(d){var h=pt.get(d)-1,m=i.get(d)-1;pt.set(d,h),i.set(d,m),h||(Vt.has(d)||d.removeAttribute(n),Vt.delete(d)),m||d.removeAttribute(r)}),Pr--,Pr||(pt=new WeakMap,pt=new WeakMap,Vt=new WeakMap,Wt={})}},pi=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Zu(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Qu(n,o,r,"aria-hidden")):function(){return null}},cr="Dialog",[hi,mi]=Ke(cr),[Ju,Ae]=hi(cr),gi=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=f.useRef(null),c=f.useRef(null),[l,u]=Je({prop:n,defaultProp:o??!1,onChange:i,caller:cr});return g.jsx(Ju,{scope:t,triggerRef:a,contentRef:c,contentId:He(),titleId:He(),descriptionId:He(),open:l,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(d=>!d),[u]),modal:s,children:r})};gi.displayName=cr;var vi="DialogTrigger",yi=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ae(vi,r),i=ee(t,o.triggerRef);return g.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":an(o.open),...n,ref:i,onClick:Q(e.onClick,o.onOpenToggle)})});yi.displayName=vi;var on="DialogPortal",[ef,bi]=hi(on,{forceMount:void 0}),xi=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Ae(on,t);return g.jsx(ef,{scope:t,forceMount:r,children:f.Children.map(n,s=>g.jsx(Ct,{present:r||i.open,children:g.jsx(rn,{asChild:!0,container:o,children:s})}))})};xi.displayName=on;var Xt="DialogOverlay",wi=f.forwardRef((e,t)=>{const r=bi(Xt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ae(Xt,e.__scopeDialog);return i.modal?g.jsx(Ct,{present:n||i.open,children:g.jsx(rf,{...o,ref:t})}):null});wi.displayName=Xt;var tf=yt("DialogOverlay.RemoveScroll"),rf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ae(Xt,r);return g.jsx(nn,{as:tf,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(K.div,{"data-state":an(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),tt="DialogContent",Ci=f.forwardRef((e,t)=>{const r=bi(tt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ae(tt,e.__scopeDialog);return g.jsx(Ct,{present:n||i.open,children:i.modal?g.jsx(nf,{...o,ref:t}):g.jsx(of,{...o,ref:t})})});Ci.displayName=tt;var nf=f.forwardRef((e,t)=>{const r=Ae(tt,e.__scopeDialog),n=f.useRef(null),o=ee(t,r.contentRef,n);return f.useEffect(()=>{const i=n.current;if(i)return pi(i)},[]),g.jsx(Si,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault())})}),of=f.forwardRef((e,t)=>{const r=Ae(tt,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return g.jsx(Si,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=r.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Si=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Ae(tt,r),c=f.useRef(null),l=ee(t,c);return oi(),g.jsxs(g.Fragment,{children:[g.jsx(tn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(en,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":an(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(af,{titleId:a.titleId}),g.jsx(cf,{contentRef:c,descriptionId:a.descriptionId})]})]})}),sn="DialogTitle",Ei=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ae(sn,r);return g.jsx(K.h2,{id:o.titleId,...n,ref:t})});Ei.displayName=sn;var Ri="DialogDescription",Ai=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ae(Ri,r);return g.jsx(K.p,{id:o.descriptionId,...n,ref:t})});Ai.displayName=Ri;var Ni="DialogClose",Pi=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ae(Ni,r);return g.jsx(K.button,{type:"button",...n,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});Pi.displayName=Ni;function an(e){return e?"open":"closed"}var Ti="DialogTitleWarning",[sf,Di]=Cd(Ti,{contentName:tt,titleName:sn,docsSlug:"dialog"}),af=({titleId:e})=>{const t=Di(Ti),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
60
60
 
61
61
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
62
62
 
63
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},lf="DialogDescriptionWarning",cf=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pi(lf).contentName}}.`;return f.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ti=hi,Di=gi,ki=yi,an=bi,ln=xi,cn=Ci,dn=Ei,lr=Ai;/**
63
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},lf="DialogDescriptionWarning",cf=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Di(lf).contentName}}.`;return f.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},ki=gi,Mi=yi,Ii=xi,ln=wi,cn=Ci,dn=Ei,un=Ai,dr=Pi;/**
64
64
  * @license lucide-react v0.542.0 - ISC
65
65
  *
66
66
  * This source code is licensed under the ISC license.
67
67
  * See the LICENSE file in the root directory of this source tree.
68
- */const df=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Oo=e=>{const t=uf(e);return t.charAt(0).toUpperCase()+t.slice(1)},Mi=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),ff=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
68
+ */const df=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),jo=e=>{const t=uf(e);return t.charAt(0).toUpperCase()+t.slice(1)},Oi=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),ff=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
69
69
  * @license lucide-react v0.542.0 - ISC
70
70
  *
71
71
  * This source code is licensed under the ISC license.
@@ -75,35 +75,42 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
75
75
  *
76
76
  * This source code is licensed under the ISC license.
77
77
  * See the LICENSE file in the root directory of this source tree.
78
- */const hf=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...a},c)=>C.createElement("svg",{ref:c,...pf,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Mi("lucide",o),...!i&&!ff(a)&&{"aria-hidden":"true"},...a},[...s.map(([l,u])=>C.createElement(l,u)),...Array.isArray(i)?i:[i]]));/**
78
+ */const hf=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...a},c)=>C.createElement("svg",{ref:c,...pf,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Oi("lucide",o),...!i&&!ff(a)&&{"aria-hidden":"true"},...a},[...s.map(([l,u])=>C.createElement(l,u)),...Array.isArray(i)?i:[i]]));/**
79
+ * @license lucide-react v0.542.0 - ISC
80
+ *
81
+ * This source code is licensed under the ISC license.
82
+ * See the LICENSE file in the root directory of this source tree.
83
+ */const Mt=(e,t)=>{const r=C.forwardRef(({className:n,...o},i)=>C.createElement(hf,{ref:i,iconNode:t,className:Oi(`lucide-${df(jo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=jo(e),r};/**
79
84
  * @license lucide-react v0.542.0 - ISC
80
85
  *
81
86
  * This source code is licensed under the ISC license.
82
87
  * See the LICENSE file in the root directory of this source tree.
83
- */const cr=(e,t)=>{const r=C.forwardRef(({className:n,...o},i)=>C.createElement(hf,{ref:i,iconNode:t,className:Mi(`lucide-${df(Oo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Oo(e),r};/**
88
+ */const mf=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fn=Mt("check",mf);/**
84
89
  * @license lucide-react v0.542.0 - ISC
85
90
  *
86
91
  * This source code is licensed under the ISC license.
87
92
  * See the LICENSE file in the root directory of this source tree.
88
- */const mf=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ii=cr("check",mf);/**
93
+ */const gf=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_i=Mt("chevron-down",gf);/**
89
94
  * @license lucide-react v0.542.0 - ISC
90
95
  *
91
96
  * This source code is licensed under the ISC license.
92
97
  * See the LICENSE file in the root directory of this source tree.
93
- */const gf=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Oi=cr("chevron-down",gf);/**
98
+ */const vf=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yf=Mt("chevron-up",vf);/**
94
99
  * @license lucide-react v0.542.0 - ISC
95
100
  *
96
101
  * This source code is licensed under the ISC license.
97
102
  * See the LICENSE file in the root directory of this source tree.
98
- */const vf=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yf=cr("chevron-up",vf);/**
103
+ */const bf=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],xf=Mt("copy",bf);/**
99
104
  * @license lucide-react v0.542.0 - ISC
100
105
  *
101
106
  * This source code is licensed under the ISC license.
102
107
  * See the LICENSE file in the root directory of this source tree.
103
- */const bf=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xf=cr("x",bf),wf=Ti,Cf=Di,_i=ki,Sf=lr,un=f.forwardRef(({className:e,...t},r)=>g.jsx(an,{ref:r,className:G("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}));un.displayName=an.displayName;const ji=f.forwardRef(({className:e,children:t,...r},n)=>g.jsxs(_i,{children:[g.jsx(un,{}),g.jsxs(ln,{ref:n,className:G("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-white 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),...r,children:[t,g.jsxs(lr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-500",children:[g.jsx(xf,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ji.displayName=ln.displayName;const Li=({className:e,...t})=>g.jsx("div",{className:G("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Li.displayName="DialogHeader";const zi=({className:e,...t})=>g.jsx("div",{className:G("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});zi.displayName="DialogFooter";const $i=f.forwardRef(({className:e,...t},r)=>g.jsx(cn,{ref:r,className:G("text-lg font-semibold leading-none tracking-tight",e),...t}));$i.displayName=cn.displayName;const Bi=f.forwardRef(({className:e,...t},r)=>g.jsx(dn,{ref:r,className:G("text-sm text-gray-500",e),...t}));Bi.displayName=dn.displayName;function _o(e,[t,r]){return Math.min(r,Math.max(t,e))}const Ef=["top","right","bottom","left"],Ue=Math.min,ge=Math.max,Xt=Math.round,Wt=Math.floor,De=e=>({x:e,y:e}),Rf={left:"right",right:"left",bottom:"top",top:"bottom"},Af={start:"end",end:"start"};function _r(e,t,r){return ge(e,Ue(t,r))}function je(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function St(e){return e.split("-")[1]}function fn(e){return e==="x"?"y":"x"}function pn(e){return e==="y"?"height":"width"}const Nf=new Set(["top","bottom"]);function Te(e){return Nf.has(Le(e))?"y":"x"}function hn(e){return fn(Te(e))}function Pf(e,t,r){r===void 0&&(r=!1);const n=St(e),o=hn(e),i=pn(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Zt(s)),[s,Zt(s)]}function Tf(e){const t=Zt(e);return[jr(e),t,jr(t)]}function jr(e){return e.replace(/start|end/g,t=>Af[t])}const jo=["left","right"],Lo=["right","left"],Df=["top","bottom"],kf=["bottom","top"];function Mf(e,t,r){switch(e){case"top":case"bottom":return r?t?Lo:jo:t?jo:Lo;case"left":case"right":return t?Df:kf;default:return[]}}function If(e,t,r,n){const o=St(e);let i=Mf(Le(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(jr)))),i}function Zt(e){return e.replace(/left|right|bottom|top/g,t=>Rf[t])}function Of(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fi(e){return typeof e!="number"?Of(e):{top:e,right:e,bottom:e,left:e}}function qt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function zo(e,t,r){let{reference:n,floating:o}=e;const i=Te(t),s=hn(t),a=pn(s),c=Le(t),l=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let m;switch(c){case"top":m={x:u,y:n.y-o.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:d};break;case"left":m={x:n.x-o.width,y:d};break;default:m={x:n.x,y:n.y}}switch(St(t)){case"start":m[s]-=h*(r&&l?-1:1);break;case"end":m[s]+=h*(r&&l?-1:1);break}return m}const _f=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zo(l,n,c),h=n,m={},v=0;for(let p=0;p<a.length;p++){const{name:y,fn:b}=a[p],{x,y:w,data:S,reset:E}=await b({x:u,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=x??u,d=w??d,m={...m,[y]:{...m[y],...S}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(l=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:u,y:d}=zo(l,h,c)),p=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:m}};async function Tt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=je(t,e),v=Fi(m),y=a[h?d==="floating"?"reference":"floating":d],b=qt(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),x=d==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=qt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:c}):x);return{top:(b.top-E.top+v.top)/S.y,bottom:(E.bottom-b.bottom+v.bottom)/S.y,left:(b.left-E.left+v.left)/S.x,right:(E.right-b.right+v.right)/S.x}}const jf=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=je(e,t)||{};if(l==null)return{};const d=Fi(u),h={x:r,y:n},m=hn(o),v=pn(m),p=await s.getDimensions(l),y=m==="y",b=y?"top":"left",x=y?"bottom":"right",w=y?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[m]-h[m]-i.floating[v],E=h[m]-i.reference[m],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let R=N?N[w]:0;(!R||!await(s.isElement==null?void 0:s.isElement(N)))&&(R=a.floating[w]||i.floating[v]);const O=S/2-E/2,B=R/2-p[v]/2-1,F=Ue(d[b],B),P=Ue(d[x],B),k=F,I=R-p[v]-P,M=R/2-p[v]/2+O,_=_r(k,M,I),A=!c.arrow&&St(o)!=null&&M!==_&&i.reference[v]/2-(M<k?F:P)-p[v]/2<0,T=A?M<k?M-k:M-I:0;return{[m]:h[m]+T,data:{[m]:_,centerOffset:M-_-T,...A&&{alignmentOffset:T}},reset:A}}}),Lf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...y}=je(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=Le(o),x=Te(a),w=Le(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=h||(w||!p?[Zt(a)]:Tf(a)),N=v!=="none";!h&&N&&E.push(...If(a,p,v,S));const R=[a,...E],O=await Tt(t,y),B=[];let F=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&B.push(O[b]),d){const M=Pf(o,s,S);B.push(O[M[0]],O[M[1]])}if(F=[...F,{placement:o,overflows:B}],!B.every(M=>M<=0)){var P,k;const M=(((P=i.flip)==null?void 0:P.index)||0)+1,_=R[M];if(_&&(!(d==="alignment"?x!==Te(_):!1)||F.every(D=>Te(D.placement)===x?D.overflows[0]>0:!0)))return{data:{index:M,overflows:F},reset:{placement:_}};let A=(k=F.filter(T=>T.overflows[0]<=0).sort((T,D)=>T.overflows[1]-D.overflows[1])[0])==null?void 0:k.placement;if(!A)switch(m){case"bestFit":{var I;const T=(I=F.filter(D=>{if(N){const j=Te(D.placement);return j===x||j==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(j=>j>0).reduce((j,U)=>j+U,0)]).sort((D,j)=>D[1]-j[1])[0])==null?void 0:I[0];T&&(A=T);break}case"initialPlacement":A=a;break}if(o!==A)return{reset:{placement:A}}}return{}}}};function $o(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bo(e){return Ef.some(t=>e[t]>=0)}const zf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=je(e,t);switch(n){case"referenceHidden":{const i=await Tt(t,{...o,elementContext:"reference"}),s=$o(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Bo(s)}}}case"escaped":{const i=await Tt(t,{...o,altBoundary:!0}),s=$o(i,r.floating);return{data:{escapedOffsets:s,escaped:Bo(s)}}}default:return{}}}}},Vi=new Set(["left","top"]);async function $f(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Le(r),a=St(r),c=Te(r)==="y",l=Vi.has(s)?-1:1,u=i&&c?-1:1,d=je(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),c?{x:m*u,y:h*l}:{x:h*l,y:m*u}}const Bf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await $f(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Ff=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:b,y:x}=y;return{x:b,y:x}}},...c}=je(e,t),l={x:r,y:n},u=await Tt(t,c),d=Te(Le(o)),h=fn(d);let m=l[h],v=l[d];if(i){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=m+u[y],w=m-u[b];m=_r(x,m,w)}if(s){const y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=v+u[y],w=v-u[b];v=_r(x,v,w)}const p=a.fn({...t,[h]:m,[d]:v});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[h]:i,[d]:s}}}}}},Vf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=je(e,t),u={x:r,y:n},d=Te(o),h=fn(d);let m=u[h],v=u[d];const p=je(a,t),y=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const w=h==="y"?"height":"width",S=i.reference[h]-i.floating[w]+y.mainAxis,E=i.reference[h]+i.reference[w]-y.mainAxis;m<S?m=S:m>E&&(m=E)}if(l){var b,x;const w=h==="y"?"width":"height",S=Vi.has(Le(o)),E=i.reference[d]-i.floating[w]+(S&&((b=s.offset)==null?void 0:b[d])||0)+(S?0:y.crossAxis),N=i.reference[d]+i.reference[w]+(S?0:((x=s.offset)==null?void 0:x[d])||0)-(S?y.crossAxis:0);v<E?v=E:v>N&&(v=N)}return{[h]:m,[d]:v}}}},Wf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=je(e,t),u=await Tt(t,l),d=Le(o),h=St(o),m=Te(o)==="y",{width:v,height:p}=i.floating;let y,b;d==="top"||d==="bottom"?(y=d,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,y=h==="end"?"top":"bottom");const x=p-u.top-u.bottom,w=v-u.left-u.right,S=Ue(p-u[y],x),E=Ue(v-u[b],w),N=!t.middlewareData.shift;let R=S,O=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(O=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=x),N&&!h){const F=ge(u.left,0),P=ge(u.right,0),k=ge(u.top,0),I=ge(u.bottom,0);m?O=v-2*(F!==0||P!==0?F+P:ge(u.left,u.right)):R=p-2*(k!==0||I!==0?k+I:ge(u.top,u.bottom))}await c({...t,availableWidth:O,availableHeight:R});const B=await s.getDimensions(a.floating);return v!==B.width||p!==B.height?{reset:{rects:!0}}:{}}}};function dr(){return typeof window<"u"}function Et(e){return Wi(e)?(e.nodeName||"").toLowerCase():"#document"}function ve(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(Wi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Wi(e){return dr()?e instanceof Node||e instanceof ve(e).Node:!1}function Se(e){return dr()?e instanceof Element||e instanceof ve(e).Element:!1}function ke(e){return dr()?e instanceof HTMLElement||e instanceof ve(e).HTMLElement:!1}function Fo(e){return!dr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ve(e).ShadowRoot}const Hf=new Set(["inline","contents"]);function Mt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Hf.has(o)}const Gf=new Set(["table","td","th"]);function Uf(e){return Gf.has(Et(e))}const Yf=[":popover-open",":modal"];function ur(e){return Yf.some(t=>{try{return e.matches(t)}catch{return!1}})}const Kf=["transform","translate","scale","rotate","perspective"],Xf=["transform","translate","scale","rotate","perspective","filter"],Zf=["paint","layout","strict","content"];function mn(e){const t=gn(),r=Se(e)?Ee(e):e;return Kf.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Xf.some(n=>(r.willChange||"").includes(n))||Zf.some(n=>(r.contain||"").includes(n))}function qf(e){let t=Ye(e);for(;ke(t)&&!bt(t);){if(mn(t))return t;if(ur(t))return null;t=Ye(t)}return null}function gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qf=new Set(["html","body","#document"]);function bt(e){return Qf.has(Et(e))}function Ee(e){return ve(e).getComputedStyle(e)}function fr(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ye(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fo(e)&&e.host||Ie(e);return Fo(t)?t.host:t}function Hi(e){const t=Ye(e);return bt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&Mt(t)?t:Hi(t)}function Dt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Hi(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=ve(o);if(i){const a=Lr(s);return t.concat(s,s.visualViewport||[],Mt(o)?o:[],a&&r?Dt(a):[])}return t.concat(o,Dt(o,[],r))}function Lr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gi(e){const t=Ee(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=ke(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Xt(r)!==i||Xt(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function vn(e){return Se(e)?e:e.contextElement}function gt(e){const t=vn(e);if(!ke(t))return De(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Gi(t);let s=(i?Xt(r.width):r.width)/n,a=(i?Xt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Jf=De(0);function Ui(e){const t=ve(e);return!gn()||!t.visualViewport?Jf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ep(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ve(e)?!1:t}function rt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=vn(e);let s=De(1);t&&(n?Se(n)&&(s=gt(n)):s=gt(e));const a=ep(i,r,n)?Ui(i):De(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const h=ve(i),m=n&&Se(n)?ve(n):n;let v=h,p=Lr(v);for(;p&&n&&m!==v;){const y=gt(p),b=p.getBoundingClientRect(),x=Ee(p),w=b.left+(p.clientLeft+parseFloat(x.paddingLeft))*y.x,S=b.top+(p.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=w,l+=S,v=ve(p),p=Lr(v)}}return qt({width:u,height:d,x:c,y:l})}function pr(e,t){const r=fr(e).scrollLeft;return t?t.left+r:rt(Ie(e)).left+r}function Yi(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-pr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function tp(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Ie(n),a=t?ur(t.floating):!1;if(n===s||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=De(1);const u=De(0),d=ke(n);if((d||!d&&!i)&&((Et(n)!=="body"||Mt(s))&&(c=fr(n)),ke(n))){const m=rt(n);l=gt(n),u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}const h=s&&!d&&!i?Yi(s,c):De(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:r.y*l.y-c.scrollTop*l.y+u.y+h.y}}function rp(e){return Array.from(e.getClientRects())}function np(e){const t=Ie(e),r=fr(e),n=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ge(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+pr(e);const a=-r.scrollTop;return Ee(n).direction==="rtl"&&(s+=ge(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Vo=25;function op(e,t){const r=ve(e),n=Ie(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const u=gn();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=pr(n);if(l<=0){const u=n.ownerDocument,d=u.body,h=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(n.clientWidth-d.clientWidth-m);v<=Vo&&(i-=v)}else l<=Vo&&(i+=l);return{width:i,height:s,x:a,y:c}}const sp=new Set(["absolute","fixed"]);function ip(e,t){const r=rt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=ke(e)?gt(e):De(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=n*i.y;return{width:s,height:a,x:c,y:l}}function Wo(e,t,r){let n;if(t==="viewport")n=op(e,r);else if(t==="document")n=np(Ie(e));else if(Se(t))n=ip(t,r);else{const o=Ui(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return qt(n)}function Ki(e,t){const r=Ye(e);return r===t||!Se(r)||bt(r)?!1:Ee(r).position==="fixed"||Ki(r,t)}function ap(e,t){const r=t.get(e);if(r)return r;let n=Dt(e,[],!1).filter(a=>Se(a)&&Et(a)!=="body"),o=null;const i=Ee(e).position==="fixed";let s=i?Ye(e):e;for(;Se(s)&&!bt(s);){const a=Ee(s),c=mn(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&sp.has(o.position)||Mt(s)&&!c&&Ki(e,s))?n=n.filter(u=>u!==s):o=a,s=Ye(s)}return t.set(e,n),n}function lp(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?ur(t)?[]:ap(t,this._c):[].concat(r),n],a=s[0],c=s.reduce((l,u)=>{const d=Wo(t,u,o);return l.top=ge(d.top,l.top),l.right=Ue(d.right,l.right),l.bottom=Ue(d.bottom,l.bottom),l.left=ge(d.left,l.left),l},Wo(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function cp(e){const{width:t,height:r}=Gi(e);return{width:t,height:r}}function dp(e,t,r){const n=ke(t),o=Ie(t),i=r==="fixed",s=rt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=De(0);function l(){c.x=pr(o)}if(n||!n&&!i)if((Et(t)!=="body"||Mt(o))&&(a=fr(t)),n){const m=rt(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();i&&!n&&o&&l();const u=o&&!n&&!i?Yi(o,a):De(0),d=s.left+a.scrollLeft-c.x-u.x,h=s.top+a.scrollTop-c.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function Pr(e){return Ee(e).position==="static"}function Ho(e,t){if(!ke(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ie(e)===r&&(r=r.ownerDocument.body),r}function Xi(e,t){const r=ve(e);if(ur(e))return r;if(!ke(e)){let o=Ye(e);for(;o&&!bt(o);){if(Se(o)&&!Pr(o))return o;o=Ye(o)}return r}let n=Ho(e,t);for(;n&&Uf(n)&&Pr(n);)n=Ho(n,t);return n&&bt(n)&&Pr(n)&&!mn(n)?r:n||qf(e)||r}const up=async function(e){const t=this.getOffsetParent||Xi,r=this.getDimensions,n=await r(e.floating);return{reference:dp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function fp(e){return Ee(e).direction==="rtl"}const pp={convertOffsetParentRelativeRectToViewportRelativeRect:tp,getDocumentElement:Ie,getClippingRect:lp,getOffsetParent:Xi,getElementRects:up,getClientRects:rp,getDimensions:cp,getScale:gt,isElement:Se,isRTL:fp};function Zi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hp(e,t){let r=null,n;const o=Ie(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:h,height:m}=l;if(a||t(),!h||!m)return;const v=Wt(d),p=Wt(o.clientWidth-(u+h)),y=Wt(o.clientHeight-(d+m)),b=Wt(u),w={rootMargin:-v+"px "+-p+"px "+-y+"px "+-b+"px",threshold:ge(0,Ue(1,c))||1};let S=!0;function E(N){const R=N[0].intersectionRatio;if(R!==c){if(!S)return s();R?s(!1,R):n=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Zi(l,e.getBoundingClientRect())&&s(),S=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return s(!0),i}function mp(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=vn(e),u=o||i?[...l?Dt(l):[],...Dt(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=l&&a?hp(l,r):null;let h=-1,m=null;s&&(m=new ResizeObserver(b=>{let[x]=b;x&&x.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),r()}),l&&!c&&m.observe(l),m.observe(t));let v,p=c?rt(e):null;c&&y();function y(){const b=rt(e);p&&!Zi(p,b)&&r(),p=b,v=requestAnimationFrame(y)}return r(),()=>{var b;u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d==null||d(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(v)}}const gp=Bf,vp=Ff,yp=Lf,bp=Wf,xp=zf,Go=jf,wp=Vf,Cp=(e,t,r)=>{const n=new Map,o={platform:pp,...r},i={...o.platform,_c:n};return _f(e,t,{...o,platform:i})};var Sp=typeof document<"u",Ep=function(){},Ut=Sp?C.useLayoutEffect:Ep;function Qt(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Qt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Qt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function qi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uo(e,t){const r=qi(e);return Math.round(t*r)/r}function Tr(e){const t=f.useRef(e);return Ut(()=>{t.current=e}),t}function Rp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=f.useState(n);Qt(h,n)||m(n);const[v,p]=f.useState(null),[y,b]=f.useState(null),x=f.useCallback(D=>{D!==N.current&&(N.current=D,p(D))},[]),w=f.useCallback(D=>{D!==R.current&&(R.current=D,b(D))},[]),S=i||v,E=s||y,N=f.useRef(null),R=f.useRef(null),O=f.useRef(u),B=c!=null,F=Tr(c),P=Tr(o),k=Tr(l),I=f.useCallback(()=>{if(!N.current||!R.current)return;const D={placement:t,strategy:r,middleware:h};P.current&&(D.platform=P.current),Cp(N.current,R.current,D).then(j=>{const U={...j,isPositioned:k.current!==!1};M.current&&!Qt(O.current,U)&&(O.current=U,er.flushSync(()=>{d(U)}))})},[h,t,r,P,k]);Ut(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(D=>({...D,isPositioned:!1})))},[l]);const M=f.useRef(!1);Ut(()=>(M.current=!0,()=>{M.current=!1}),[]),Ut(()=>{if(S&&(N.current=S),E&&(R.current=E),S&&E){if(F.current)return F.current(S,E,I);I()}},[S,E,I,F,B]);const _=f.useMemo(()=>({reference:N,floating:R,setReference:x,setFloating:w}),[x,w]),A=f.useMemo(()=>({reference:S,floating:E}),[S,E]),T=f.useMemo(()=>{const D={position:r,left:0,top:0};if(!A.floating)return D;const j=Uo(A.floating,u.x),U=Uo(A.floating,u.y);return a?{...D,transform:"translate("+j+"px, "+U+"px)",...qi(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:j,top:U}},[r,a,A.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:I,refs:_,elements:A,floatingStyles:T}),[u,I,_,A,T])}const Ap=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Go({element:n.current,padding:o}).fn(r):{}:n?Go({element:n,padding:o}).fn(r):{}}}},Np=(e,t)=>({...gp(e),options:[e,t]}),Pp=(e,t)=>({...vp(e),options:[e,t]}),Tp=(e,t)=>({...wp(e),options:[e,t]}),Dp=(e,t)=>({...yp(e),options:[e,t]}),kp=(e,t)=>({...bp(e),options:[e,t]}),Mp=(e,t)=>({...xp(e),options:[e,t]}),Ip=(e,t)=>({...Ap(e),options:[e,t]});var Op="Arrow",Qi=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return g.jsx(K.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qi.displayName=Op;var _p=Qi;function Ji(e){const[t,r]=f.useState(void 0);return le(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var yn="Popper",[ea,ta]=Ke(yn),[jp,ra]=ea(yn),na=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return g.jsx(jp,{scope:t,anchor:n,onAnchorChange:o,children:r})};na.displayName=yn;var oa="PopperAnchor",sa=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=ra(oa,r),s=f.useRef(null),a=ee(t,s),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=(n==null?void 0:n.current)||s.current,l!==c.current&&i.onAnchorChange(c.current)}),n?null:g.jsx(K.div,{...o,ref:a})});sa.displayName=oa;var bn="PopperContent",[Lp,zp]=ea(bn),ia=f.forwardRef((e,t)=>{var L,z,re,q,Z,Y;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:v,...p}=e,y=ra(bn,r),[b,x]=f.useState(null),w=ee(t,de=>x(de)),[S,E]=f.useState(null),N=Ji(S),R=(N==null?void 0:N.width)??0,O=(N==null?void 0:N.height)??0,B=n+(i!=="center"?"-"+i:""),F=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},P=Array.isArray(l)?l:[l],k=P.length>0,I={padding:F,boundary:P.filter(Bp),altBoundary:k},{refs:M,floatingStyles:_,placement:A,isPositioned:T,middlewareData:D}=Rp({strategy:"fixed",placement:B,whileElementsMounted:(...de)=>mp(...de,{animationFrame:m==="always"}),elements:{reference:y.anchor},middleware:[Np({mainAxis:o+O,alignmentAxis:s}),c&&Pp({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Tp():void 0,...I}),c&&Dp({...I}),kp({...I,apply:({elements:de,rects:ue,availableWidth:qe,availableHeight:$e})=>{const{width:be,height:It}=ue.reference,fe=de.floating.style;fe.setProperty("--radix-popper-available-width",`${qe}px`),fe.setProperty("--radix-popper-available-height",`${$e}px`),fe.setProperty("--radix-popper-anchor-width",`${be}px`),fe.setProperty("--radix-popper-anchor-height",`${It}px`)}}),S&&Ip({element:S,padding:a}),Fp({arrowWidth:R,arrowHeight:O}),h&&Mp({strategy:"referenceHidden",...I})]}),[j,U]=ca(A),V=et(v);le(()=>{T&&(V==null||V())},[T,V]);const se=(L=D.arrow)==null?void 0:L.x,$=(z=D.arrow)==null?void 0:z.y,X=((re=D.arrow)==null?void 0:re.centerOffset)!==0,[J,ne]=f.useState();return le(()=>{b&&ne(window.getComputedStyle(b).zIndex)},[b]),g.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:T?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(q=D.transformOrigin)==null?void 0:q.x,(Z=D.transformOrigin)==null?void 0:Z.y].join(" "),...((Y=D.hide)==null?void 0:Y.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(Lp,{scope:r,placedSide:j,onArrowChange:E,arrowX:se,arrowY:$,shouldHideArrow:X,children:g.jsx(K.div,{"data-side":j,"data-align":U,...p,ref:w,style:{...p.style,animation:T?void 0:"none"}})})})});ia.displayName=bn;var aa="PopperArrow",$p={top:"bottom",right:"left",bottom:"top",left:"right"},la=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=zp(aa,n),s=$p[i.placedSide];return g.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:g.jsx(_p,{...o,ref:r,style:{...o.style,display:"block"}})})});la.displayName=aa;function Bp(e){return e!==null}var Fp=e=>({name:"transformOrigin",options:e,fn(t){var y,b,x;const{placement:r,rects:n,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,u]=ca(r),d={start:"0%",center:"50%",end:"100%"}[u],h=(((b=o.arrow)==null?void 0:b.x)??0)+a/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let v="",p="";return l==="bottom"?(v=s?d:`${h}px`,p=`${-c}px`):l==="top"?(v=s?d:`${h}px`,p=`${n.floating.height+c}px`):l==="right"?(v=`${-c}px`,p=s?d:`${m}px`):l==="left"&&(v=`${n.floating.width+c}px`,p=s?d:`${m}px`),{data:{x:v,y:p}}}});function ca(e){const[t,r="center"]=e.split("-");return[t,r]}var Vp=na,Wp=sa,Hp=ia,Gp=la;function da(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ua=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"}),Up="VisuallyHidden",Yp=f.forwardRef((e,t)=>g.jsx(K.span,{...e,ref:t,style:{...ua,...e.style}}));Yp.displayName=Up;var Kp=[" ","Enter","ArrowUp","ArrowDown"],Xp=[" ","Enter"],nt="Select",[hr,mr,Zp]=Ds(nt),[Rt]=Ke(nt,[Zp,ta]),gr=ta(),[qp,Xe]=Rt(nt),[Qp,Jp]=Rt(nt),fa=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:h,required:m,form:v}=e,p=gr(t),[y,b]=f.useState(null),[x,w]=f.useState(null),[S,E]=f.useState(!1),N=js(l),[R,O]=Je({prop:n,defaultProp:o??!1,onChange:i,caller:nt}),[B,F]=Je({prop:s,defaultProp:a,onChange:c,caller:nt}),P=f.useRef(null),k=y?v||!!y.closest("form"):!0,[I,M]=f.useState(new Set),_=Array.from(I).map(A=>A.props.value).join(";");return g.jsx(Vp,{...p,children:g.jsxs(qp,{required:m,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:He(),value:B,onValueChange:F,open:R,onOpenChange:O,dir:N,triggerPointerDownPosRef:P,disabled:h,children:[g.jsx(hr.Provider,{scope:t,children:g.jsx(Qp,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(A=>{M(T=>new Set(T).add(A))},[]),onNativeOptionRemove:f.useCallback(A=>{M(T=>{const D=new Set(T);return D.delete(A),D})},[]),children:r})}),k?g.jsxs(La,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:d,value:B,onChange:A=>F(A.target.value),disabled:h,form:v,children:[B===void 0?g.jsx("option",{value:""}):null,Array.from(I)]},_):null]})})};fa.displayName=nt;var pa="SelectTrigger",ha=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=gr(r),s=Xe(pa,r),a=s.disabled||n,c=ee(t,s.onTriggerChange),l=mr(r),u=f.useRef("touch"),[d,h,m]=$a(p=>{const y=l().filter(w=>!w.disabled),b=y.find(w=>w.value===s.value),x=Ba(y,p,b);x!==void 0&&s.onValueChange(x.value)}),v=p=>{a||(s.onOpenChange(!0),m()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return g.jsx(Wp,{asChild:!0,...i,children:g.jsx(K.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":za(s.value)?"":void 0,...o,ref:c,onClick:Q(o.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&v(p)}),onPointerDown:Q(o.onPointerDown,p=>{u.current=p.pointerType;const y=p.target;y.hasPointerCapture(p.pointerId)&&y.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:Q(o.onKeyDown,p=>{const y=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(y&&p.key===" ")&&Kp.includes(p.key)&&(v(),p.preventDefault())})})})});ha.displayName=pa;var ma="SelectValue",ga=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:s="",...a}=e,c=Xe(ma,r),{onValueNodeHasChildrenChange:l}=c,u=i!==void 0,d=ee(t,c.onValueNodeChange);return le(()=>{l(u)},[l,u]),g.jsx(K.span,{...a,ref:d,style:{pointerEvents:"none"},children:za(c.value)?g.jsx(g.Fragment,{children:s}):i})});ga.displayName=ma;var eh="SelectIcon",va=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return g.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});va.displayName=eh;var th="SelectPortal",ya=e=>g.jsx(tn,{asChild:!0,...e});ya.displayName=th;var ot="SelectContent",ba=f.forwardRef((e,t)=>{const r=Xe(ot,e.__scopeSelect),[n,o]=f.useState();if(le(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?er.createPortal(g.jsx(xa,{scope:e.__scopeSelect,children:g.jsx(hr.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),i):null}return g.jsx(wa,{...e,ref:t})});ba.displayName=ot;var Ce=10,[xa,Ze]=Rt(ot),rh="SelectContentImpl",nh=yt("SelectContent.RemoveScroll"),wa=f.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:y,...b}=e,x=Xe(ot,r),[w,S]=f.useState(null),[E,N]=f.useState(null),R=ee(t,L=>S(L)),[O,B]=f.useState(null),[F,P]=f.useState(null),k=mr(r),[I,M]=f.useState(!1),_=f.useRef(!1);f.useEffect(()=>{if(w)return ui(w)},[w]),ri();const A=f.useCallback(L=>{const[z,...re]=k().map(Y=>Y.ref.current),[q]=re.slice(-1),Z=document.activeElement;for(const Y of L)if(Y===Z||(Y==null||Y.scrollIntoView({block:"nearest"}),Y===z&&E&&(E.scrollTop=0),Y===q&&E&&(E.scrollTop=E.scrollHeight),Y==null||Y.focus(),document.activeElement!==Z))return},[k,E]),T=f.useCallback(()=>A([O,w]),[A,O,w]);f.useEffect(()=>{I&&T()},[I,T]);const{onOpenChange:D,triggerPointerDownPosRef:j}=x;f.useEffect(()=>{if(w){let L={x:0,y:0};const z=q=>{var Z,Y;L={x:Math.abs(Math.round(q.pageX)-(((Z=j.current)==null?void 0:Z.x)??0)),y:Math.abs(Math.round(q.pageY)-(((Y=j.current)==null?void 0:Y.y)??0))}},re=q=>{L.x<=10&&L.y<=10?q.preventDefault():w.contains(q.target)||D(!1),document.removeEventListener("pointermove",z),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",z),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",re,{capture:!0})}}},[w,D,j]),f.useEffect(()=>{const L=()=>D(!1);return window.addEventListener("blur",L),window.addEventListener("resize",L),()=>{window.removeEventListener("blur",L),window.removeEventListener("resize",L)}},[D]);const[U,V]=$a(L=>{const z=k().filter(Z=>!Z.disabled),re=z.find(Z=>Z.ref.current===document.activeElement),q=Ba(z,L,re);q&&setTimeout(()=>q.ref.current.focus())}),se=f.useCallback((L,z,re)=>{const q=!_.current&&!re;(x.value!==void 0&&x.value===z||q)&&(B(L),q&&(_.current=!0))},[x.value]),$=f.useCallback(()=>w==null?void 0:w.focus(),[w]),X=f.useCallback((L,z,re)=>{const q=!_.current&&!re;(x.value!==void 0&&x.value===z||q)&&P(L)},[x.value]),J=n==="popper"?zr:Ca,ne=J===zr?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:y}:{};return g.jsx(xa,{scope:r,content:w,viewport:E,onViewportChange:N,itemRefCallback:se,selectedItem:O,onItemLeave:$,itemTextRefCallback:X,focusSelectedItem:T,selectedItemText:F,position:n,isPositioned:I,searchRef:U,children:g.jsx(rn,{as:nh,allowPinchZoom:!0,children:g.jsx(en,{asChild:!0,trapped:x.open,onMountAutoFocus:L=>{L.preventDefault()},onUnmountAutoFocus:Q(o,L=>{var z;(z=x.trigger)==null||z.focus({preventScroll:!0}),L.preventDefault()}),children:g.jsx(Jr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:L=>L.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:g.jsx(J,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:L=>L.preventDefault(),...b,...ne,onPlaced:()=>M(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:Q(b.onKeyDown,L=>{const z=L.ctrlKey||L.altKey||L.metaKey;if(L.key==="Tab"&&L.preventDefault(),!z&&L.key.length===1&&V(L.key),["ArrowUp","ArrowDown","Home","End"].includes(L.key)){let q=k().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes(L.key)&&(q=q.slice().reverse()),["ArrowUp","ArrowDown"].includes(L.key)){const Z=L.target,Y=q.indexOf(Z);q=q.slice(Y+1)}setTimeout(()=>A(q)),L.preventDefault()}})})})})})})});wa.displayName=rh;var oh="SelectItemAlignedPosition",Ca=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=Xe(ot,r),s=Ze(ot,r),[a,c]=f.useState(null),[l,u]=f.useState(null),d=ee(t,R=>u(R)),h=mr(r),m=f.useRef(!1),v=f.useRef(!0),{viewport:p,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=s,w=f.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&p&&y&&b){const R=i.trigger.getBoundingClientRect(),O=l.getBoundingClientRect(),B=i.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(i.dir!=="rtl"){const Z=F.left-O.left,Y=B.left-Z,de=R.left-Y,ue=R.width+de,qe=Math.max(ue,O.width),$e=window.innerWidth-Ce,be=_o(Y,[Ce,Math.max(Ce,$e-qe)]);a.style.minWidth=ue+"px",a.style.left=be+"px"}else{const Z=O.right-F.right,Y=window.innerWidth-B.right-Z,de=window.innerWidth-R.right-Y,ue=R.width+de,qe=Math.max(ue,O.width),$e=window.innerWidth-Ce,be=_o(Y,[Ce,Math.max(Ce,$e-qe)]);a.style.minWidth=ue+"px",a.style.right=be+"px"}const P=h(),k=window.innerHeight-Ce*2,I=p.scrollHeight,M=window.getComputedStyle(l),_=parseInt(M.borderTopWidth,10),A=parseInt(M.paddingTop,10),T=parseInt(M.borderBottomWidth,10),D=parseInt(M.paddingBottom,10),j=_+A+I+D+T,U=Math.min(y.offsetHeight*5,j),V=window.getComputedStyle(p),se=parseInt(V.paddingTop,10),$=parseInt(V.paddingBottom,10),X=R.top+R.height/2-Ce,J=k-X,ne=y.offsetHeight/2,L=y.offsetTop+ne,z=_+A+L,re=j-z;if(z<=X){const Z=P.length>0&&y===P[P.length-1].ref.current;a.style.bottom="0px";const Y=l.clientHeight-p.offsetTop-p.offsetHeight,de=Math.max(J,ne+(Z?$:0)+Y+T),ue=z+de;a.style.height=ue+"px"}else{const Z=P.length>0&&y===P[0].ref.current;a.style.top="0px";const de=Math.max(X,_+p.offsetTop+(Z?se:0)+ne)+re;a.style.height=de+"px",p.scrollTop=z-X+p.offsetTop}a.style.margin=`${Ce}px 0`,a.style.minHeight=U+"px",a.style.maxHeight=k+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[h,i.trigger,i.valueNode,a,l,p,y,b,i.dir,n]);le(()=>w(),[w]);const[S,E]=f.useState();le(()=>{l&&E(window.getComputedStyle(l).zIndex)},[l]);const N=f.useCallback(R=>{R&&v.current===!0&&(w(),x==null||x(),v.current=!1)},[w,x]);return g.jsx(ih,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:N,children:g.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:g.jsx(K.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ca.displayName=oh;var sh="SelectPopperPosition",zr=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Ce,...i}=e,s=gr(r);return g.jsx(Hp,{...s,...i,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});zr.displayName=sh;var[ih,xn]=Rt(ot,{}),$r="SelectViewport",Sa=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=Ze($r,r),s=xn($r,r),a=ee(t,i.onViewportChange),c=f.useRef(0);return g.jsxs(g.Fragment,{children:[g.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:n}),g.jsx(hr.Slot,{scope:r,children:g.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Q(o.onScroll,l=>{const u=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=s;if(h!=null&&h.current&&d){const m=Math.abs(c.current-u.scrollTop);if(m>0){const v=window.innerHeight-Ce*2,p=parseFloat(d.style.minHeight),y=parseFloat(d.style.height),b=Math.max(p,y);if(b<v){const x=b+m,w=Math.min(v,x),S=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});Sa.displayName=$r;var Ea="SelectGroup",[ah,lh]=Rt(Ea),Ra=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=He();return g.jsx(ah,{scope:r,id:o,children:g.jsx(K.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Ra.displayName=Ea;var Aa="SelectLabel",Na=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=lh(Aa,r);return g.jsx(K.div,{id:o.id,...n,ref:t})});Na.displayName=Aa;var Jt="SelectItem",[ch,Pa]=Rt(Jt),Ta=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...s}=e,a=Xe(Jt,r),c=Ze(Jt,r),l=a.value===n,[u,d]=f.useState(i??""),[h,m]=f.useState(!1),v=ee(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,n,o)}),p=He(),y=f.useRef("touch"),b=()=>{o||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")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 g.jsx(ch,{scope:r,value:n,disabled:o,textId:p,isSelected:l,onItemTextChange:f.useCallback(x=>{d(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:g.jsx(hr.ItemSlot,{scope:r,value:n,disabled:o,textValue:u,children:g.jsx(K.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":l&&h,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:Q(s.onFocus,()=>m(!0)),onBlur:Q(s.onBlur,()=>m(!1)),onClick:Q(s.onClick,()=>{y.current!=="mouse"&&b()}),onPointerUp:Q(s.onPointerUp,()=>{y.current==="mouse"&&b()}),onPointerDown:Q(s.onPointerDown,x=>{y.current=x.pointerType}),onPointerMove:Q(s.onPointerMove,x=>{var w;y.current=x.pointerType,o?(w=c.onItemLeave)==null||w.call(c):y.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Q(s.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:Q(s.onKeyDown,x=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&x.key===" "||(Xp.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});Ta.displayName=Jt;var Pt="SelectItemText",Da=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,s=Xe(Pt,r),a=Ze(Pt,r),c=Pa(Pt,r),l=Jp(Pt,r),[u,d]=f.useState(null),h=ee(t,b=>d(b),c.onItemTextChange,b=>{var x;return(x=a.itemTextRefCallback)==null?void 0:x.call(a,b,c.value,c.disabled)}),m=u==null?void 0:u.textContent,v=f.useMemo(()=>g.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:y}=l;return le(()=>(p(v),()=>y(v)),[p,y,v]),g.jsxs(g.Fragment,{children:[g.jsx(K.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?er.createPortal(i.children,s.valueNode):null]})});Da.displayName=Pt;var ka="SelectItemIndicator",Ma=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Pa(ka,r).isSelected?g.jsx(K.span,{"aria-hidden":!0,...n,ref:t}):null});Ma.displayName=ka;var Br="SelectScrollUpButton",Ia=f.forwardRef((e,t)=>{const r=Ze(Br,e.__scopeSelect),n=xn(Br,e.__scopeSelect),[o,i]=f.useState(!1),s=ee(t,n.onScrollButtonChange);return le(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollTop>0;i(l)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),o?g.jsx(_a,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});Ia.displayName=Br;var Fr="SelectScrollDownButton",Oa=f.forwardRef((e,t)=>{const r=Ze(Fr,e.__scopeSelect),n=xn(Fr,e.__scopeSelect),[o,i]=f.useState(!1),s=ee(t,n.onScrollButtonChange);return le(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<l;i(u)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),o?g.jsx(_a,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});Oa.displayName=Fr;var _a=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=Ze("SelectScrollButton",r),s=f.useRef(null),a=mr(r),c=f.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return f.useEffect(()=>()=>c(),[c]),le(()=>{var u;const l=a().find(d=>d.ref.current===document.activeElement);(u=l==null?void 0:l.ref.current)==null||u.scrollIntoView({block:"nearest"})},[a]),g.jsx(K.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Q(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:Q(o.onPointerMove,()=>{var l;(l=i.onItemLeave)==null||l.call(i),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:Q(o.onPointerLeave,()=>{c()})})}),dh="SelectSeparator",ja=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return g.jsx(K.div,{"aria-hidden":!0,...n,ref:t})});ja.displayName=dh;var Vr="SelectArrow",uh=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=gr(r),i=Xe(Vr,r),s=Ze(Vr,r);return i.open&&s.position==="popper"?g.jsx(Gp,{...o,...n,ref:t}):null});uh.displayName=Vr;var fh="SelectBubbleInput",La=f.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=f.useRef(null),i=ee(n,o),s=da(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&u){const d=new Event("change",{bubbles:!0});u.call(a,t),a.dispatchEvent(d)}},[s,t]),g.jsx(K.select,{...r,style:{...ua,...r.style},ref:i,defaultValue:t})});La.displayName=fh;function za(e){return e===""||e===void 0}function $a(e){const t=et(e),r=f.useRef(""),n=f.useRef(0),o=f.useCallback(s=>{const a=r.current+s;t(a),function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(a)},[t]),i=f.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function Ba(e,t,r){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let s=ph(e,Math.max(i,0));o.length===1&&(s=s.filter(l=>l!==r));const c=s.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function ph(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var hh=fa,Fa=ha,mh=ga,gh=va,vh=ya,Va=ba,yh=Sa,bh=Ra,Wa=Na,Ha=Ta,xh=Da,wh=Ma,Ga=Ia,Ua=Oa,Ya=ja;const Ch=hh,Sh=bh,Eh=mh,Ka=f.forwardRef(({className:e,children:t,...r},n)=>g.jsxs(Fa,{ref:n,className:G("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,g.jsx(gh,{asChild:!0,children:g.jsx(Oi,{className:"h-4 w-4 opacity-50"})})]}));Ka.displayName=Fa.displayName;const Xa=f.forwardRef(({className:e,...t},r)=>g.jsx(Ga,{ref:r,className:G("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(yf,{className:"h-4 w-4"})}));Xa.displayName=Ga.displayName;const Za=f.forwardRef(({className:e,...t},r)=>g.jsx(Ua,{ref:r,className:G("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(Oi,{className:"h-4 w-4"})}));Za.displayName=Ua.displayName;const qa=f.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>g.jsx(vh,{children:g.jsxs(Va,{ref:o,className:G("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="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:r,...n,children:[g.jsx(Xa,{}),g.jsx(yh,{className:G("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),g.jsx(Za,{})]})}));qa.displayName=Va.displayName;const Qa=f.forwardRef(({className:e,...t},r)=>g.jsx(Wa,{ref:r,className:G("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Qa.displayName=Wa.displayName;const Ja=f.forwardRef(({className:e,children:t,...r},n)=>g.jsxs(Ha,{ref:n,className:G("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),...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(wh,{children:g.jsx(Ii,{className:"h-4 w-4"})})}),g.jsx(xh,{children:t})]}));Ja.displayName=Ha.displayName;const el=f.forwardRef(({className:e,...t},r)=>g.jsx(Ya,{ref:r,className:G("-mx-1 my-1 h-px bg-muted",e),...t}));el.displayName=Ya.displayName;var vr="Checkbox",[Rh]=Ke(vr),[Ah,wn]=Rh(vr);function Nh(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:i,form:s,name:a,onCheckedChange:c,required:l,value:u="on",internal_do_not_use_render:d}=e,[h,m]=Je({prop:r,defaultProp:o??!1,onChange:c,caller:vr}),[v,p]=f.useState(null),[y,b]=f.useState(null),x=f.useRef(!1),w=v?!!s||!!v.closest("form"):!0,S={checked:h,disabled:i,setChecked:m,control:v,setControl:p,name:a,form:s,value:u,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Ge(o)?!1:o,isFormControl:w,bubbleInput:y,setBubbleInput:b};return g.jsx(Ah,{scope:t,...S,children:Ph(d)?d(S):n})}var tl="CheckboxTrigger",rl=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:i,value:s,disabled:a,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:h,isFormControl:m,bubbleInput:v}=wn(tl,e),p=ee(o,u),y=f.useRef(c);return f.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const x=()=>d(y.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,d]),g.jsx(K.button,{type:"button",role:"checkbox","aria-checked":Ge(c)?"mixed":c,"aria-required":l,"data-state":al(c),"data-disabled":a?"":void 0,disabled:a,value:s,...n,ref:p,onKeyDown:Q(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:Q(r,b=>{d(x=>Ge(x)?!0:!x),v&&m&&(h.current=b.isPropagationStopped(),h.current||b.stopPropagation())})})});rl.displayName=tl;var Cn=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:s,disabled:a,value:c,onCheckedChange:l,form:u,...d}=e;return g.jsx(Nh,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:a,required:s,onCheckedChange:l,name:n,form:u,value:c,internal_do_not_use_render:({isFormControl:h})=>g.jsxs(g.Fragment,{children:[g.jsx(rl,{...d,ref:t,__scopeCheckbox:r}),h&&g.jsx(il,{__scopeCheckbox:r})]})})});Cn.displayName=vr;var nl="CheckboxIndicator",ol=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=wn(nl,r);return g.jsx(Ct,{present:n||Ge(i.checked)||i.checked===!0,children:g.jsx(K.span,{"data-state":al(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});ol.displayName=nl;var sl="CheckboxBubbleInput",il=f.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:s,required:a,disabled:c,name:l,value:u,form:d,bubbleInput:h,setBubbleInput:m}=wn(sl,e),v=ee(r,m),p=da(i),y=Ji(n);f.useEffect(()=>{const x=h;if(!x)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,N=!o.current;if(p!==i&&E){const R=new Event("click",{bubbles:N});x.indeterminate=Ge(i),E.call(x,Ge(i)?!1:i),x.dispatchEvent(R)}},[h,p,i,o]);const b=f.useRef(Ge(i)?!1:i);return g.jsx(K.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??b.current,required:a,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:v,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});il.displayName=sl;function Ph(e){return typeof e=="function"}function Ge(e){return e==="indeterminate"}function al(e){return Ge(e)?"indeterminate":e?"checked":"unchecked"}const ll=f.forwardRef(({className:e,...t},r)=>g.jsx(Cn,{ref:r,className:G("peer h-4 w-4 shrink-0 rounded-sm border border-gray-200 border-gray-900 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-gray-900 data-[state=checked]:text-gray-50 dark:border-gray-800 dark:border-gray-50 dark:ring-offset-gray-950 dark:focus-visible:ring-gray-300 dark:data-[state=checked]:bg-gray-50 dark:data-[state=checked]:text-gray-900",e),...t,children:g.jsx(ol,{className:G("flex items-center justify-center text-current"),children:g.jsx(Ii,{className:"h-4 w-4"})})}));ll.displayName=Cn.displayName;var cl="AlertDialog",[Th]=Ke(cl,[pi]),ze=pi(),dl=e=>{const{__scopeAlertDialog:t,...r}=e,n=ze(t);return g.jsx(Ti,{...n,...r,modal:!0})};dl.displayName=cl;var Dh="AlertDialogTrigger",ul=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=ze(r);return g.jsx(Di,{...o,...n,ref:t})});ul.displayName=Dh;var kh="AlertDialogPortal",fl=e=>{const{__scopeAlertDialog:t,...r}=e,n=ze(t);return g.jsx(ki,{...n,...r})};fl.displayName=kh;var Mh="AlertDialogOverlay",pl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=ze(r);return g.jsx(an,{...o,...n,ref:t})});pl.displayName=Mh;var vt="AlertDialogContent",[Ih,Oh]=Th(vt),_h=Kl("AlertDialogContent"),hl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=ze(r),s=f.useRef(null),a=ee(t,s),c=f.useRef(null);return g.jsx(sf,{contentName:vt,titleName:ml,docsSlug:"alert-dialog",children:g.jsx(Ih,{scope:r,cancelRef:c,children:g.jsxs(ln,{role:"alertdialog",...i,...o,ref:a,onOpenAutoFocus:Q(o.onOpenAutoFocus,l=>{var u;l.preventDefault(),(u=c.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:l=>l.preventDefault(),onInteractOutside:l=>l.preventDefault(),children:[g.jsx(_h,{children:n}),g.jsx(Lh,{contentRef:s})]})})})});hl.displayName=vt;var ml="AlertDialogTitle",gl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=ze(r);return g.jsx(cn,{...o,...n,ref:t})});gl.displayName=ml;var vl="AlertDialogDescription",yl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=ze(r);return g.jsx(dn,{...o,...n,ref:t})});yl.displayName=vl;var jh="AlertDialogAction",bl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=ze(r);return g.jsx(lr,{...o,...n,ref:t})});bl.displayName=jh;var xl="AlertDialogCancel",wl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=Oh(xl,r),i=ze(r),s=ee(t,o);return g.jsx(lr,{...i,...n,ref:s})});wl.displayName=xl;var Lh=({contentRef:e})=>{const t=`\`${vt}\` requires a description for the component to be accessible for screen reader users.
108
+ */const wf=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cf=Mt("x",wf),Sf=ki,Ef=Mi,ji=Ii,Rf=dr,pn=f.forwardRef(({className:e,...t},r)=>g.jsx(ln,{ref:r,className:U("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}));pn.displayName=ln.displayName;const Li=f.forwardRef(({className:e,children:t,...r},n)=>g.jsxs(ji,{children:[g.jsx(pn,{}),g.jsxs(cn,{ref:n,className:U("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-white 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),...r,children:[t,g.jsxs(dr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-500",children:[g.jsx(Cf,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Li.displayName=cn.displayName;const $i=({className:e,...t})=>g.jsx("div",{className:U("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$i.displayName="DialogHeader";const zi=({className:e,...t})=>g.jsx("div",{className:U("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});zi.displayName="DialogFooter";const Bi=f.forwardRef(({className:e,...t},r)=>g.jsx(dn,{ref:r,className:U("text-lg font-semibold leading-none tracking-tight",e),...t}));Bi.displayName=dn.displayName;const Fi=f.forwardRef(({className:e,...t},r)=>g.jsx(un,{ref:r,className:U("text-sm text-gray-500",e),...t}));Fi.displayName=un.displayName;function Lo(e,[t,r]){return Math.min(r,Math.max(t,e))}const Af=["top","right","bottom","left"],Ue=Math.min,ge=Math.max,Zt=Math.round,Ht=Math.floor,De=e=>({x:e,y:e}),Nf={left:"right",right:"left",bottom:"top",top:"bottom"},Pf={start:"end",end:"start"};function Lr(e,t,r){return ge(e,Ue(t,r))}function je(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function St(e){return e.split("-")[1]}function hn(e){return e==="x"?"y":"x"}function mn(e){return e==="y"?"height":"width"}const Tf=new Set(["top","bottom"]);function Te(e){return Tf.has(Le(e))?"y":"x"}function gn(e){return hn(Te(e))}function Df(e,t,r){r===void 0&&(r=!1);const n=St(e),o=gn(e),i=mn(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=qt(s)),[s,qt(s)]}function kf(e){const t=qt(e);return[$r(e),t,$r(t)]}function $r(e){return e.replace(/start|end/g,t=>Pf[t])}const $o=["left","right"],zo=["right","left"],Mf=["top","bottom"],If=["bottom","top"];function Of(e,t,r){switch(e){case"top":case"bottom":return r?t?zo:$o:t?$o:zo;case"left":case"right":return t?Mf:If;default:return[]}}function _f(e,t,r,n){const o=St(e);let i=Of(Le(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map($r)))),i}function qt(e){return e.replace(/left|right|bottom|top/g,t=>Nf[t])}function jf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vi(e){return typeof e!="number"?jf(e):{top:e,right:e,bottom:e,left:e}}function Qt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Bo(e,t,r){let{reference:n,floating:o}=e;const i=Te(t),s=gn(t),a=mn(s),c=Le(t),l=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let m;switch(c){case"top":m={x:u,y:n.y-o.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:d};break;case"left":m={x:n.x-o.width,y:d};break;default:m={x:n.x,y:n.y}}switch(St(t)){case"start":m[s]-=h*(r&&l?-1:1);break;case"end":m[s]+=h*(r&&l?-1:1);break}return m}const Lf=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Bo(l,n,c),h=n,m={},v=0;for(let p=0;p<a.length;p++){const{name:y,fn:b}=a[p],{x,y:w,data:S,reset:E}=await b({x:u,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=x??u,d=w??d,m={...m,[y]:{...m[y],...S}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(l=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:u,y:d}=Bo(l,h,c)),p=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:m}};async function Tt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=je(t,e),v=Vi(m),y=a[h?d==="floating"?"reference":"floating":d],b=Qt(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),x=d==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=Qt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:c}):x);return{top:(b.top-E.top+v.top)/S.y,bottom:(E.bottom-b.bottom+v.bottom)/S.y,left:(b.left-E.left+v.left)/S.x,right:(E.right-b.right+v.right)/S.x}}const $f=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=je(e,t)||{};if(l==null)return{};const d=Vi(u),h={x:r,y:n},m=gn(o),v=mn(m),p=await s.getDimensions(l),y=m==="y",b=y?"top":"left",x=y?"bottom":"right",w=y?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[m]-h[m]-i.floating[v],E=h[m]-i.reference[m],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let A=k?k[w]:0;(!A||!await(s.isElement==null?void 0:s.isElement(k)))&&(A=a.floating[w]||i.floating[v]);const j=S/2-E/2,B=A/2-p[v]/2-1,L=Ue(d[b],B),I=Ue(d[x],B),P=L,O=A-p[v]-I,M=A/2-p[v]/2+j,T=Lr(P,M,O),R=!c.arrow&&St(o)!=null&&M!==T&&i.reference[v]/2-(M<P?L:I)-p[v]/2<0,D=R?M<P?M-P:M-O:0;return{[m]:h[m]+D,data:{[m]:T,centerOffset:M-T-D,...R&&{alignmentOffset:D}},reset:R}}}),zf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...y}=je(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=Le(o),x=Te(a),w=Le(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=h||(w||!p?[qt(a)]:kf(a)),k=v!=="none";!h&&k&&E.push(..._f(a,p,v,S));const A=[a,...E],j=await Tt(t,y),B=[];let L=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&B.push(j[b]),d){const M=Df(o,s,S);B.push(j[M[0]],j[M[1]])}if(L=[...L,{placement:o,overflows:B}],!B.every(M=>M<=0)){var I,P;const M=(((I=i.flip)==null?void 0:I.index)||0)+1,T=A[M];if(T&&(!(d==="alignment"?x!==Te(T):!1)||L.every(N=>Te(N.placement)===x?N.overflows[0]>0:!0)))return{data:{index:M,overflows:L},reset:{placement:T}};let R=(P=L.filter(D=>D.overflows[0]<=0).sort((D,N)=>D.overflows[1]-N.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(m){case"bestFit":{var O;const D=(O=L.filter(N=>{if(k){const _=Te(N.placement);return _===x||_==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(_=>_>0).reduce((_,G)=>_+G,0)]).sort((N,_)=>N[1]-_[1])[0])==null?void 0:O[0];D&&(R=D);break}case"initialPlacement":R=a;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function Fo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vo(e){return Af.some(t=>e[t]>=0)}const Bf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=je(e,t);switch(n){case"referenceHidden":{const i=await Tt(t,{...o,elementContext:"reference"}),s=Fo(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Vo(s)}}}case"escaped":{const i=await Tt(t,{...o,altBoundary:!0}),s=Fo(i,r.floating);return{data:{escapedOffsets:s,escaped:Vo(s)}}}default:return{}}}}},Wi=new Set(["left","top"]);async function Ff(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Le(r),a=St(r),c=Te(r)==="y",l=Wi.has(s)?-1:1,u=i&&c?-1:1,d=je(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),c?{x:m*u,y:h*l}:{x:h*l,y:m*u}}const Vf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await Ff(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Wf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:b,y:x}=y;return{x:b,y:x}}},...c}=je(e,t),l={x:r,y:n},u=await Tt(t,c),d=Te(Le(o)),h=hn(d);let m=l[h],v=l[d];if(i){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=m+u[y],w=m-u[b];m=Lr(x,m,w)}if(s){const y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=v+u[y],w=v-u[b];v=Lr(x,v,w)}const p=a.fn({...t,[h]:m,[d]:v});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[h]:i,[d]:s}}}}}},Hf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=je(e,t),u={x:r,y:n},d=Te(o),h=hn(d);let m=u[h],v=u[d];const p=je(a,t),y=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const w=h==="y"?"height":"width",S=i.reference[h]-i.floating[w]+y.mainAxis,E=i.reference[h]+i.reference[w]-y.mainAxis;m<S?m=S:m>E&&(m=E)}if(l){var b,x;const w=h==="y"?"width":"height",S=Wi.has(Le(o)),E=i.reference[d]-i.floating[w]+(S&&((b=s.offset)==null?void 0:b[d])||0)+(S?0:y.crossAxis),k=i.reference[d]+i.reference[w]+(S?0:((x=s.offset)==null?void 0:x[d])||0)-(S?y.crossAxis:0);v<E?v=E:v>k&&(v=k)}return{[h]:m,[d]:v}}}},Gf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=je(e,t),u=await Tt(t,l),d=Le(o),h=St(o),m=Te(o)==="y",{width:v,height:p}=i.floating;let y,b;d==="top"||d==="bottom"?(y=d,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,y=h==="end"?"top":"bottom");const x=p-u.top-u.bottom,w=v-u.left-u.right,S=Ue(p-u[y],x),E=Ue(v-u[b],w),k=!t.middlewareData.shift;let A=S,j=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=x),k&&!h){const L=ge(u.left,0),I=ge(u.right,0),P=ge(u.top,0),O=ge(u.bottom,0);m?j=v-2*(L!==0||I!==0?L+I:ge(u.left,u.right)):A=p-2*(P!==0||O!==0?P+O:ge(u.top,u.bottom))}await c({...t,availableWidth:j,availableHeight:A});const B=await s.getDimensions(a.floating);return v!==B.width||p!==B.height?{reset:{rects:!0}}:{}}}};function ur(){return typeof window<"u"}function Et(e){return Hi(e)?(e.nodeName||"").toLowerCase():"#document"}function ve(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(Hi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hi(e){return ur()?e instanceof Node||e instanceof ve(e).Node:!1}function Se(e){return ur()?e instanceof Element||e instanceof ve(e).Element:!1}function ke(e){return ur()?e instanceof HTMLElement||e instanceof ve(e).HTMLElement:!1}function Wo(e){return!ur()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ve(e).ShadowRoot}const Uf=new Set(["inline","contents"]);function It(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Uf.has(o)}const Yf=new Set(["table","td","th"]);function Kf(e){return Yf.has(Et(e))}const Xf=[":popover-open",":modal"];function fr(e){return Xf.some(t=>{try{return e.matches(t)}catch{return!1}})}const Zf=["transform","translate","scale","rotate","perspective"],qf=["transform","translate","scale","rotate","perspective","filter"],Qf=["paint","layout","strict","content"];function vn(e){const t=yn(),r=Se(e)?Ee(e):e;return Zf.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||qf.some(n=>(r.willChange||"").includes(n))||Qf.some(n=>(r.contain||"").includes(n))}function Jf(e){let t=Ye(e);for(;ke(t)&&!bt(t);){if(vn(t))return t;if(fr(t))return null;t=Ye(t)}return null}function yn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ep=new Set(["html","body","#document"]);function bt(e){return ep.has(Et(e))}function Ee(e){return ve(e).getComputedStyle(e)}function pr(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ye(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wo(e)&&e.host||Ie(e);return Wo(t)?t.host:t}function Gi(e){const t=Ye(e);return bt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&It(t)?t:Gi(t)}function Dt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Gi(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=ve(o);if(i){const a=zr(s);return t.concat(s,s.visualViewport||[],It(o)?o:[],a&&r?Dt(a):[])}return t.concat(o,Dt(o,[],r))}function zr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ui(e){const t=Ee(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=ke(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Zt(r)!==i||Zt(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function bn(e){return Se(e)?e:e.contextElement}function gt(e){const t=bn(e);if(!ke(t))return De(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Ui(t);let s=(i?Zt(r.width):r.width)/n,a=(i?Zt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const tp=De(0);function Yi(e){const t=ve(e);return!yn()||!t.visualViewport?tp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rp(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ve(e)?!1:t}function rt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=bn(e);let s=De(1);t&&(n?Se(n)&&(s=gt(n)):s=gt(e));const a=rp(i,r,n)?Yi(i):De(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const h=ve(i),m=n&&Se(n)?ve(n):n;let v=h,p=zr(v);for(;p&&n&&m!==v;){const y=gt(p),b=p.getBoundingClientRect(),x=Ee(p),w=b.left+(p.clientLeft+parseFloat(x.paddingLeft))*y.x,S=b.top+(p.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=w,l+=S,v=ve(p),p=zr(v)}}return Qt({width:u,height:d,x:c,y:l})}function hr(e,t){const r=pr(e).scrollLeft;return t?t.left+r:rt(Ie(e)).left+r}function Ki(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-hr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function np(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=Ie(n),a=t?fr(t.floating):!1;if(n===s||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=De(1);const u=De(0),d=ke(n);if((d||!d&&!i)&&((Et(n)!=="body"||It(s))&&(c=pr(n)),ke(n))){const m=rt(n);l=gt(n),u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}const h=s&&!d&&!i?Ki(s,c):De(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:r.y*l.y-c.scrollTop*l.y+u.y+h.y}}function op(e){return Array.from(e.getClientRects())}function sp(e){const t=Ie(e),r=pr(e),n=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ge(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+hr(e);const a=-r.scrollTop;return Ee(n).direction==="rtl"&&(s+=ge(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Ho=25;function ip(e,t){const r=ve(e),n=Ie(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const u=yn();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=hr(n);if(l<=0){const u=n.ownerDocument,d=u.body,h=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(n.clientWidth-d.clientWidth-m);v<=Ho&&(i-=v)}else l<=Ho&&(i+=l);return{width:i,height:s,x:a,y:c}}const ap=new Set(["absolute","fixed"]);function lp(e,t){const r=rt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=ke(e)?gt(e):De(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=n*i.y;return{width:s,height:a,x:c,y:l}}function Go(e,t,r){let n;if(t==="viewport")n=ip(e,r);else if(t==="document")n=sp(Ie(e));else if(Se(t))n=lp(t,r);else{const o=Yi(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qt(n)}function Xi(e,t){const r=Ye(e);return r===t||!Se(r)||bt(r)?!1:Ee(r).position==="fixed"||Xi(r,t)}function cp(e,t){const r=t.get(e);if(r)return r;let n=Dt(e,[],!1).filter(a=>Se(a)&&Et(a)!=="body"),o=null;const i=Ee(e).position==="fixed";let s=i?Ye(e):e;for(;Se(s)&&!bt(s);){const a=Ee(s),c=vn(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&ap.has(o.position)||It(s)&&!c&&Xi(e,s))?n=n.filter(u=>u!==s):o=a,s=Ye(s)}return t.set(e,n),n}function dp(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?fr(t)?[]:cp(t,this._c):[].concat(r),n],a=s[0],c=s.reduce((l,u)=>{const d=Go(t,u,o);return l.top=ge(d.top,l.top),l.right=Ue(d.right,l.right),l.bottom=Ue(d.bottom,l.bottom),l.left=ge(d.left,l.left),l},Go(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function up(e){const{width:t,height:r}=Ui(e);return{width:t,height:r}}function fp(e,t,r){const n=ke(t),o=Ie(t),i=r==="fixed",s=rt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=De(0);function l(){c.x=hr(o)}if(n||!n&&!i)if((Et(t)!=="body"||It(o))&&(a=pr(t)),n){const m=rt(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();i&&!n&&o&&l();const u=o&&!n&&!i?Ki(o,a):De(0),d=s.left+a.scrollLeft-c.x-u.x,h=s.top+a.scrollTop-c.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function Tr(e){return Ee(e).position==="static"}function Uo(e,t){if(!ke(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ie(e)===r&&(r=r.ownerDocument.body),r}function Zi(e,t){const r=ve(e);if(fr(e))return r;if(!ke(e)){let o=Ye(e);for(;o&&!bt(o);){if(Se(o)&&!Tr(o))return o;o=Ye(o)}return r}let n=Uo(e,t);for(;n&&Kf(n)&&Tr(n);)n=Uo(n,t);return n&&bt(n)&&Tr(n)&&!vn(n)?r:n||Jf(e)||r}const pp=async function(e){const t=this.getOffsetParent||Zi,r=this.getDimensions,n=await r(e.floating);return{reference:fp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function hp(e){return Ee(e).direction==="rtl"}const mp={convertOffsetParentRelativeRectToViewportRelativeRect:np,getDocumentElement:Ie,getClippingRect:dp,getOffsetParent:Zi,getElementRects:pp,getClientRects:op,getDimensions:up,getScale:gt,isElement:Se,isRTL:hp};function qi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gp(e,t){let r=null,n;const o=Ie(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:h,height:m}=l;if(a||t(),!h||!m)return;const v=Ht(d),p=Ht(o.clientWidth-(u+h)),y=Ht(o.clientHeight-(d+m)),b=Ht(u),w={rootMargin:-v+"px "+-p+"px "+-y+"px "+-b+"px",threshold:ge(0,Ue(1,c))||1};let S=!0;function E(k){const A=k[0].intersectionRatio;if(A!==c){if(!S)return s();A?s(!1,A):n=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!qi(l,e.getBoundingClientRect())&&s(),S=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return s(!0),i}function vp(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=bn(e),u=o||i?[...l?Dt(l):[],...Dt(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=l&&a?gp(l,r):null;let h=-1,m=null;s&&(m=new ResizeObserver(b=>{let[x]=b;x&&x.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),r()}),l&&!c&&m.observe(l),m.observe(t));let v,p=c?rt(e):null;c&&y();function y(){const b=rt(e);p&&!qi(p,b)&&r(),p=b,v=requestAnimationFrame(y)}return r(),()=>{var b;u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d==null||d(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(v)}}const yp=Vf,bp=Wf,xp=zf,wp=Gf,Cp=Bf,Yo=$f,Sp=Hf,Ep=(e,t,r)=>{const n=new Map,o={platform:mp,...r},i={...o.platform,_c:n};return Lf(e,t,{...o,platform:i})};var Rp=typeof document<"u",Ap=function(){},Yt=Rp?C.useLayoutEffect:Ap;function Jt(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Jt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Jt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Qi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ko(e,t){const r=Qi(e);return Math.round(t*r)/r}function Dr(e){const t=f.useRef(e);return Yt(()=>{t.current=e}),t}function Np(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=f.useState(n);Jt(h,n)||m(n);const[v,p]=f.useState(null),[y,b]=f.useState(null),x=f.useCallback(N=>{N!==k.current&&(k.current=N,p(N))},[]),w=f.useCallback(N=>{N!==A.current&&(A.current=N,b(N))},[]),S=i||v,E=s||y,k=f.useRef(null),A=f.useRef(null),j=f.useRef(u),B=c!=null,L=Dr(c),I=Dr(o),P=Dr(l),O=f.useCallback(()=>{if(!k.current||!A.current)return;const N={placement:t,strategy:r,middleware:h};I.current&&(N.platform=I.current),Ep(k.current,A.current,N).then(_=>{const G={..._,isPositioned:P.current!==!1};M.current&&!Jt(j.current,G)&&(j.current=G,rr.flushSync(()=>{d(G)}))})},[h,t,r,I,P]);Yt(()=>{l===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,d(N=>({...N,isPositioned:!1})))},[l]);const M=f.useRef(!1);Yt(()=>(M.current=!0,()=>{M.current=!1}),[]),Yt(()=>{if(S&&(k.current=S),E&&(A.current=E),S&&E){if(L.current)return L.current(S,E,O);O()}},[S,E,O,L,B]);const T=f.useMemo(()=>({reference:k,floating:A,setReference:x,setFloating:w}),[x,w]),R=f.useMemo(()=>({reference:S,floating:E}),[S,E]),D=f.useMemo(()=>{const N={position:r,left:0,top:0};if(!R.floating)return N;const _=Ko(R.floating,u.x),G=Ko(R.floating,u.y);return a?{...N,transform:"translate("+_+"px, "+G+"px)",...Qi(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:_,top:G}},[r,a,R.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:O,refs:T,elements:R,floatingStyles:D}),[u,O,T,R,D])}const Pp=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Yo({element:n.current,padding:o}).fn(r):{}:n?Yo({element:n,padding:o}).fn(r):{}}}},Tp=(e,t)=>({...yp(e),options:[e,t]}),Dp=(e,t)=>({...bp(e),options:[e,t]}),kp=(e,t)=>({...Sp(e),options:[e,t]}),Mp=(e,t)=>({...xp(e),options:[e,t]}),Ip=(e,t)=>({...wp(e),options:[e,t]}),Op=(e,t)=>({...Cp(e),options:[e,t]}),_p=(e,t)=>({...Pp(e),options:[e,t]});var jp="Arrow",Ji=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return g.jsx(K.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ji.displayName=jp;var Lp=Ji;function ea(e){const[t,r]=f.useState(void 0);return le(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var xn="Popper",[ta,ra]=Ke(xn),[$p,na]=ta(xn),oa=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return g.jsx($p,{scope:t,anchor:n,onAnchorChange:o,children:r})};oa.displayName=xn;var sa="PopperAnchor",ia=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=na(sa,r),s=f.useRef(null),a=ee(t,s),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=(n==null?void 0:n.current)||s.current,l!==c.current&&i.onAnchorChange(c.current)}),n?null:g.jsx(K.div,{...o,ref:a})});ia.displayName=sa;var wn="PopperContent",[zp,Bp]=ta(wn),aa=f.forwardRef((e,t)=>{var $,z,re,q,Z,Y;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:v,...p}=e,y=na(wn,r),[b,x]=f.useState(null),w=ee(t,de=>x(de)),[S,E]=f.useState(null),k=ea(S),A=(k==null?void 0:k.width)??0,j=(k==null?void 0:k.height)??0,B=n+(i!=="center"?"-"+i:""),L=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(l)?l:[l],P=I.length>0,O={padding:L,boundary:I.filter(Vp),altBoundary:P},{refs:M,floatingStyles:T,placement:R,isPositioned:D,middlewareData:N}=Np({strategy:"fixed",placement:B,whileElementsMounted:(...de)=>vp(...de,{animationFrame:m==="always"}),elements:{reference:y.anchor},middleware:[Tp({mainAxis:o+j,alignmentAxis:s}),c&&Dp({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?kp():void 0,...O}),c&&Mp({...O}),Ip({...O,apply:({elements:de,rects:ue,availableWidth:qe,availableHeight:ze})=>{const{width:be,height:Ot}=ue.reference,fe=de.floating.style;fe.setProperty("--radix-popper-available-width",`${qe}px`),fe.setProperty("--radix-popper-available-height",`${ze}px`),fe.setProperty("--radix-popper-anchor-width",`${be}px`),fe.setProperty("--radix-popper-anchor-height",`${Ot}px`)}}),S&&_p({element:S,padding:a}),Wp({arrowWidth:A,arrowHeight:j}),h&&Op({strategy:"referenceHidden",...O})]}),[_,G]=da(R),V=et(v);le(()=>{D&&(V==null||V())},[D,V]);const se=($=N.arrow)==null?void 0:$.x,F=(z=N.arrow)==null?void 0:z.y,X=((re=N.arrow)==null?void 0:re.centerOffset)!==0,[J,ne]=f.useState();return le(()=>{b&&ne(window.getComputedStyle(b).zIndex)},[b]),g.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:D?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(q=N.transformOrigin)==null?void 0:q.x,(Z=N.transformOrigin)==null?void 0:Z.y].join(" "),...((Y=N.hide)==null?void 0:Y.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(zp,{scope:r,placedSide:_,onArrowChange:E,arrowX:se,arrowY:F,shouldHideArrow:X,children:g.jsx(K.div,{"data-side":_,"data-align":G,...p,ref:w,style:{...p.style,animation:D?void 0:"none"}})})})});aa.displayName=wn;var la="PopperArrow",Fp={top:"bottom",right:"left",bottom:"top",left:"right"},ca=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=Bp(la,n),s=Fp[i.placedSide];return g.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:g.jsx(Lp,{...o,ref:r,style:{...o.style,display:"block"}})})});ca.displayName=la;function Vp(e){return e!==null}var Wp=e=>({name:"transformOrigin",options:e,fn(t){var y,b,x;const{placement:r,rects:n,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,u]=da(r),d={start:"0%",center:"50%",end:"100%"}[u],h=(((b=o.arrow)==null?void 0:b.x)??0)+a/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let v="",p="";return l==="bottom"?(v=s?d:`${h}px`,p=`${-c}px`):l==="top"?(v=s?d:`${h}px`,p=`${n.floating.height+c}px`):l==="right"?(v=`${-c}px`,p=s?d:`${m}px`):l==="left"&&(v=`${n.floating.width+c}px`,p=s?d:`${m}px`),{data:{x:v,y:p}}}});function da(e){const[t,r="center"]=e.split("-");return[t,r]}var Hp=oa,Gp=ia,Up=aa,Yp=ca;function ua(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var fa=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"}),Kp="VisuallyHidden",Xp=f.forwardRef((e,t)=>g.jsx(K.span,{...e,ref:t,style:{...fa,...e.style}}));Xp.displayName=Kp;var Zp=[" ","Enter","ArrowUp","ArrowDown"],qp=[" ","Enter"],nt="Select",[mr,gr,Qp]=Ms(nt),[Rt]=Ke(nt,[Qp,ra]),vr=ra(),[Jp,Xe]=Rt(nt),[eh,th]=Rt(nt),pa=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:h,required:m,form:v}=e,p=vr(t),[y,b]=f.useState(null),[x,w]=f.useState(null),[S,E]=f.useState(!1),k=$s(l),[A,j]=Je({prop:n,defaultProp:o??!1,onChange:i,caller:nt}),[B,L]=Je({prop:s,defaultProp:a,onChange:c,caller:nt}),I=f.useRef(null),P=y?v||!!y.closest("form"):!0,[O,M]=f.useState(new Set),T=Array.from(O).map(R=>R.props.value).join(";");return g.jsx(Hp,{...p,children:g.jsxs(Jp,{required:m,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:He(),value:B,onValueChange:L,open:A,onOpenChange:j,dir:k,triggerPointerDownPosRef:I,disabled:h,children:[g.jsx(mr.Provider,{scope:t,children:g.jsx(eh,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(R=>{M(D=>new Set(D).add(R))},[]),onNativeOptionRemove:f.useCallback(R=>{M(D=>{const N=new Set(D);return N.delete(R),N})},[]),children:r})}),P?g.jsxs($a,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:d,value:B,onChange:R=>L(R.target.value),disabled:h,form:v,children:[B===void 0?g.jsx("option",{value:""}):null,Array.from(O)]},T):null]})})};pa.displayName=nt;var ha="SelectTrigger",ma=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=vr(r),s=Xe(ha,r),a=s.disabled||n,c=ee(t,s.onTriggerChange),l=gr(r),u=f.useRef("touch"),[d,h,m]=Ba(p=>{const y=l().filter(w=>!w.disabled),b=y.find(w=>w.value===s.value),x=Fa(y,p,b);x!==void 0&&s.onValueChange(x.value)}),v=p=>{a||(s.onOpenChange(!0),m()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return g.jsx(Gp,{asChild:!0,...i,children:g.jsx(K.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":za(s.value)?"":void 0,...o,ref:c,onClick:Q(o.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&v(p)}),onPointerDown:Q(o.onPointerDown,p=>{u.current=p.pointerType;const y=p.target;y.hasPointerCapture(p.pointerId)&&y.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:Q(o.onKeyDown,p=>{const y=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(y&&p.key===" ")&&Zp.includes(p.key)&&(v(),p.preventDefault())})})})});ma.displayName=ha;var ga="SelectValue",va=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:s="",...a}=e,c=Xe(ga,r),{onValueNodeHasChildrenChange:l}=c,u=i!==void 0,d=ee(t,c.onValueNodeChange);return le(()=>{l(u)},[l,u]),g.jsx(K.span,{...a,ref:d,style:{pointerEvents:"none"},children:za(c.value)?g.jsx(g.Fragment,{children:s}):i})});va.displayName=ga;var rh="SelectIcon",ya=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return g.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});ya.displayName=rh;var nh="SelectPortal",ba=e=>g.jsx(rn,{asChild:!0,...e});ba.displayName=nh;var ot="SelectContent",xa=f.forwardRef((e,t)=>{const r=Xe(ot,e.__scopeSelect),[n,o]=f.useState();if(le(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?rr.createPortal(g.jsx(wa,{scope:e.__scopeSelect,children:g.jsx(mr.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),i):null}return g.jsx(Ca,{...e,ref:t})});xa.displayName=ot;var Ce=10,[wa,Ze]=Rt(ot),oh="SelectContentImpl",sh=yt("SelectContent.RemoveScroll"),Ca=f.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:y,...b}=e,x=Xe(ot,r),[w,S]=f.useState(null),[E,k]=f.useState(null),A=ee(t,$=>S($)),[j,B]=f.useState(null),[L,I]=f.useState(null),P=gr(r),[O,M]=f.useState(!1),T=f.useRef(!1);f.useEffect(()=>{if(w)return pi(w)},[w]),oi();const R=f.useCallback($=>{const[z,...re]=P().map(Y=>Y.ref.current),[q]=re.slice(-1),Z=document.activeElement;for(const Y of $)if(Y===Z||(Y==null||Y.scrollIntoView({block:"nearest"}),Y===z&&E&&(E.scrollTop=0),Y===q&&E&&(E.scrollTop=E.scrollHeight),Y==null||Y.focus(),document.activeElement!==Z))return},[P,E]),D=f.useCallback(()=>R([j,w]),[R,j,w]);f.useEffect(()=>{O&&D()},[O,D]);const{onOpenChange:N,triggerPointerDownPosRef:_}=x;f.useEffect(()=>{if(w){let $={x:0,y:0};const z=q=>{var Z,Y;$={x:Math.abs(Math.round(q.pageX)-(((Z=_.current)==null?void 0:Z.x)??0)),y:Math.abs(Math.round(q.pageY)-(((Y=_.current)==null?void 0:Y.y)??0))}},re=q=>{$.x<=10&&$.y<=10?q.preventDefault():w.contains(q.target)||N(!1),document.removeEventListener("pointermove",z),_.current=null};return _.current!==null&&(document.addEventListener("pointermove",z),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",re,{capture:!0})}}},[w,N,_]),f.useEffect(()=>{const $=()=>N(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[N]);const[G,V]=Ba($=>{const z=P().filter(Z=>!Z.disabled),re=z.find(Z=>Z.ref.current===document.activeElement),q=Fa(z,$,re);q&&setTimeout(()=>q.ref.current.focus())}),se=f.useCallback(($,z,re)=>{const q=!T.current&&!re;(x.value!==void 0&&x.value===z||q)&&(B($),q&&(T.current=!0))},[x.value]),F=f.useCallback(()=>w==null?void 0:w.focus(),[w]),X=f.useCallback(($,z,re)=>{const q=!T.current&&!re;(x.value!==void 0&&x.value===z||q)&&I($)},[x.value]),J=n==="popper"?Br:Sa,ne=J===Br?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:y}:{};return g.jsx(wa,{scope:r,content:w,viewport:E,onViewportChange:k,itemRefCallback:se,selectedItem:j,onItemLeave:F,itemTextRefCallback:X,focusSelectedItem:D,selectedItemText:L,position:n,isPositioned:O,searchRef:G,children:g.jsx(nn,{as:sh,allowPinchZoom:!0,children:g.jsx(tn,{asChild:!0,trapped:x.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:Q(o,$=>{var z;(z=x.trigger)==null||z.focus({preventScroll:!0}),$.preventDefault()}),children:g.jsx(en,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:g.jsx(J,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:$=>$.preventDefault(),...b,...ne,onPlaced:()=>M(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:Q(b.onKeyDown,$=>{const z=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!z&&$.key.length===1&&V($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let q=P().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes($.key)&&(q=q.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const Z=$.target,Y=q.indexOf(Z);q=q.slice(Y+1)}setTimeout(()=>R(q)),$.preventDefault()}})})})})})})});Ca.displayName=oh;var ih="SelectItemAlignedPosition",Sa=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=Xe(ot,r),s=Ze(ot,r),[a,c]=f.useState(null),[l,u]=f.useState(null),d=ee(t,A=>u(A)),h=gr(r),m=f.useRef(!1),v=f.useRef(!0),{viewport:p,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=s,w=f.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&p&&y&&b){const A=i.trigger.getBoundingClientRect(),j=l.getBoundingClientRect(),B=i.valueNode.getBoundingClientRect(),L=b.getBoundingClientRect();if(i.dir!=="rtl"){const Z=L.left-j.left,Y=B.left-Z,de=A.left-Y,ue=A.width+de,qe=Math.max(ue,j.width),ze=window.innerWidth-Ce,be=Lo(Y,[Ce,Math.max(Ce,ze-qe)]);a.style.minWidth=ue+"px",a.style.left=be+"px"}else{const Z=j.right-L.right,Y=window.innerWidth-B.right-Z,de=window.innerWidth-A.right-Y,ue=A.width+de,qe=Math.max(ue,j.width),ze=window.innerWidth-Ce,be=Lo(Y,[Ce,Math.max(Ce,ze-qe)]);a.style.minWidth=ue+"px",a.style.right=be+"px"}const I=h(),P=window.innerHeight-Ce*2,O=p.scrollHeight,M=window.getComputedStyle(l),T=parseInt(M.borderTopWidth,10),R=parseInt(M.paddingTop,10),D=parseInt(M.borderBottomWidth,10),N=parseInt(M.paddingBottom,10),_=T+R+O+N+D,G=Math.min(y.offsetHeight*5,_),V=window.getComputedStyle(p),se=parseInt(V.paddingTop,10),F=parseInt(V.paddingBottom,10),X=A.top+A.height/2-Ce,J=P-X,ne=y.offsetHeight/2,$=y.offsetTop+ne,z=T+R+$,re=_-z;if(z<=X){const Z=I.length>0&&y===I[I.length-1].ref.current;a.style.bottom="0px";const Y=l.clientHeight-p.offsetTop-p.offsetHeight,de=Math.max(J,ne+(Z?F:0)+Y+D),ue=z+de;a.style.height=ue+"px"}else{const Z=I.length>0&&y===I[0].ref.current;a.style.top="0px";const de=Math.max(X,T+p.offsetTop+(Z?se:0)+ne)+re;a.style.height=de+"px",p.scrollTop=z-X+p.offsetTop}a.style.margin=`${Ce}px 0`,a.style.minHeight=G+"px",a.style.maxHeight=P+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[h,i.trigger,i.valueNode,a,l,p,y,b,i.dir,n]);le(()=>w(),[w]);const[S,E]=f.useState();le(()=>{l&&E(window.getComputedStyle(l).zIndex)},[l]);const k=f.useCallback(A=>{A&&v.current===!0&&(w(),x==null||x(),v.current=!1)},[w,x]);return g.jsx(lh,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:k,children:g.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:g.jsx(K.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Sa.displayName=ih;var ah="SelectPopperPosition",Br=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Ce,...i}=e,s=vr(r);return g.jsx(Up,{...s,...i,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});Br.displayName=ah;var[lh,Cn]=Rt(ot,{}),Fr="SelectViewport",Ea=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=Ze(Fr,r),s=Cn(Fr,r),a=ee(t,i.onViewportChange),c=f.useRef(0);return g.jsxs(g.Fragment,{children:[g.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:n}),g.jsx(mr.Slot,{scope:r,children:g.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Q(o.onScroll,l=>{const u=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=s;if(h!=null&&h.current&&d){const m=Math.abs(c.current-u.scrollTop);if(m>0){const v=window.innerHeight-Ce*2,p=parseFloat(d.style.minHeight),y=parseFloat(d.style.height),b=Math.max(p,y);if(b<v){const x=b+m,w=Math.min(v,x),S=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});Ea.displayName=Fr;var Ra="SelectGroup",[ch,dh]=Rt(Ra),Aa=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=He();return g.jsx(ch,{scope:r,id:o,children:g.jsx(K.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Aa.displayName=Ra;var Na="SelectLabel",Pa=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=dh(Na,r);return g.jsx(K.div,{id:o.id,...n,ref:t})});Pa.displayName=Na;var er="SelectItem",[uh,Ta]=Rt(er),Da=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...s}=e,a=Xe(er,r),c=Ze(er,r),l=a.value===n,[u,d]=f.useState(i??""),[h,m]=f.useState(!1),v=ee(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,n,o)}),p=He(),y=f.useRef("touch"),b=()=>{o||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")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 g.jsx(uh,{scope:r,value:n,disabled:o,textId:p,isSelected:l,onItemTextChange:f.useCallback(x=>{d(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:g.jsx(mr.ItemSlot,{scope:r,value:n,disabled:o,textValue:u,children:g.jsx(K.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":l&&h,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:Q(s.onFocus,()=>m(!0)),onBlur:Q(s.onBlur,()=>m(!1)),onClick:Q(s.onClick,()=>{y.current!=="mouse"&&b()}),onPointerUp:Q(s.onPointerUp,()=>{y.current==="mouse"&&b()}),onPointerDown:Q(s.onPointerDown,x=>{y.current=x.pointerType}),onPointerMove:Q(s.onPointerMove,x=>{var w;y.current=x.pointerType,o?(w=c.onItemLeave)==null||w.call(c):y.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Q(s.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:Q(s.onKeyDown,x=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&x.key===" "||(qp.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});Da.displayName=er;var Pt="SelectItemText",ka=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,s=Xe(Pt,r),a=Ze(Pt,r),c=Ta(Pt,r),l=th(Pt,r),[u,d]=f.useState(null),h=ee(t,b=>d(b),c.onItemTextChange,b=>{var x;return(x=a.itemTextRefCallback)==null?void 0:x.call(a,b,c.value,c.disabled)}),m=u==null?void 0:u.textContent,v=f.useMemo(()=>g.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:y}=l;return le(()=>(p(v),()=>y(v)),[p,y,v]),g.jsxs(g.Fragment,{children:[g.jsx(K.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?rr.createPortal(i.children,s.valueNode):null]})});ka.displayName=Pt;var Ma="SelectItemIndicator",Ia=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Ta(Ma,r).isSelected?g.jsx(K.span,{"aria-hidden":!0,...n,ref:t}):null});Ia.displayName=Ma;var Vr="SelectScrollUpButton",Oa=f.forwardRef((e,t)=>{const r=Ze(Vr,e.__scopeSelect),n=Cn(Vr,e.__scopeSelect),[o,i]=f.useState(!1),s=ee(t,n.onScrollButtonChange);return le(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollTop>0;i(l)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),o?g.jsx(ja,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});Oa.displayName=Vr;var Wr="SelectScrollDownButton",_a=f.forwardRef((e,t)=>{const r=Ze(Wr,e.__scopeSelect),n=Cn(Wr,e.__scopeSelect),[o,i]=f.useState(!1),s=ee(t,n.onScrollButtonChange);return le(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<l;i(u)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),o?g.jsx(ja,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});_a.displayName=Wr;var ja=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=Ze("SelectScrollButton",r),s=f.useRef(null),a=gr(r),c=f.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return f.useEffect(()=>()=>c(),[c]),le(()=>{var u;const l=a().find(d=>d.ref.current===document.activeElement);(u=l==null?void 0:l.ref.current)==null||u.scrollIntoView({block:"nearest"})},[a]),g.jsx(K.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Q(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:Q(o.onPointerMove,()=>{var l;(l=i.onItemLeave)==null||l.call(i),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:Q(o.onPointerLeave,()=>{c()})})}),fh="SelectSeparator",La=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return g.jsx(K.div,{"aria-hidden":!0,...n,ref:t})});La.displayName=fh;var Hr="SelectArrow",ph=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=vr(r),i=Xe(Hr,r),s=Ze(Hr,r);return i.open&&s.position==="popper"?g.jsx(Yp,{...o,...n,ref:t}):null});ph.displayName=Hr;var hh="SelectBubbleInput",$a=f.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=f.useRef(null),i=ee(n,o),s=ua(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&u){const d=new Event("change",{bubbles:!0});u.call(a,t),a.dispatchEvent(d)}},[s,t]),g.jsx(K.select,{...r,style:{...fa,...r.style},ref:i,defaultValue:t})});$a.displayName=hh;function za(e){return e===""||e===void 0}function Ba(e){const t=et(e),r=f.useRef(""),n=f.useRef(0),o=f.useCallback(s=>{const a=r.current+s;t(a),function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(a)},[t]),i=f.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function Fa(e,t,r){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let s=mh(e,Math.max(i,0));o.length===1&&(s=s.filter(l=>l!==r));const c=s.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function mh(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var gh=pa,Va=ma,vh=va,yh=ya,bh=ba,Wa=xa,xh=Ea,wh=Aa,Ha=Pa,Ga=Da,Ch=ka,Sh=Ia,Ua=Oa,Ya=_a,Ka=La;const Eh=gh,Rh=wh,Ah=vh,Xa=f.forwardRef(({className:e,children:t,...r},n)=>g.jsxs(Va,{ref:n,className:U("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,g.jsx(yh,{asChild:!0,children:g.jsx(_i,{className:"h-4 w-4 opacity-50"})})]}));Xa.displayName=Va.displayName;const Za=f.forwardRef(({className:e,...t},r)=>g.jsx(Ua,{ref:r,className:U("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(yf,{className:"h-4 w-4"})}));Za.displayName=Ua.displayName;const qa=f.forwardRef(({className:e,...t},r)=>g.jsx(Ya,{ref:r,className:U("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(_i,{className:"h-4 w-4"})}));qa.displayName=Ya.displayName;const Qa=f.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>g.jsx(bh,{children:g.jsxs(Wa,{ref:o,className:U("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="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:r,...n,children:[g.jsx(Za,{}),g.jsx(xh,{className:U("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),g.jsx(qa,{})]})}));Qa.displayName=Wa.displayName;const Ja=f.forwardRef(({className:e,...t},r)=>g.jsx(Ha,{ref:r,className:U("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Ja.displayName=Ha.displayName;const el=f.forwardRef(({className:e,children:t,...r},n)=>g.jsxs(Ga,{ref:n,className:U("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),...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(Sh,{children:g.jsx(fn,{className:"h-4 w-4"})})}),g.jsx(Ch,{children:t})]}));el.displayName=Ga.displayName;const tl=f.forwardRef(({className:e,...t},r)=>g.jsx(Ka,{ref:r,className:U("-mx-1 my-1 h-px bg-muted",e),...t}));tl.displayName=Ka.displayName;var yr="Checkbox",[Nh]=Ke(yr),[Ph,Sn]=Nh(yr);function Th(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:i,form:s,name:a,onCheckedChange:c,required:l,value:u="on",internal_do_not_use_render:d}=e,[h,m]=Je({prop:r,defaultProp:o??!1,onChange:c,caller:yr}),[v,p]=f.useState(null),[y,b]=f.useState(null),x=f.useRef(!1),w=v?!!s||!!v.closest("form"):!0,S={checked:h,disabled:i,setChecked:m,control:v,setControl:p,name:a,form:s,value:u,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Ge(o)?!1:o,isFormControl:w,bubbleInput:y,setBubbleInput:b};return g.jsx(Ph,{scope:t,...S,children:Dh(d)?d(S):n})}var rl="CheckboxTrigger",nl=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:i,value:s,disabled:a,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:h,isFormControl:m,bubbleInput:v}=Sn(rl,e),p=ee(o,u),y=f.useRef(c);return f.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const x=()=>d(y.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,d]),g.jsx(K.button,{type:"button",role:"checkbox","aria-checked":Ge(c)?"mixed":c,"aria-required":l,"data-state":ll(c),"data-disabled":a?"":void 0,disabled:a,value:s,...n,ref:p,onKeyDown:Q(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:Q(r,b=>{d(x=>Ge(x)?!0:!x),v&&m&&(h.current=b.isPropagationStopped(),h.current||b.stopPropagation())})})});nl.displayName=rl;var En=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:s,disabled:a,value:c,onCheckedChange:l,form:u,...d}=e;return g.jsx(Th,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:a,required:s,onCheckedChange:l,name:n,form:u,value:c,internal_do_not_use_render:({isFormControl:h})=>g.jsxs(g.Fragment,{children:[g.jsx(nl,{...d,ref:t,__scopeCheckbox:r}),h&&g.jsx(al,{__scopeCheckbox:r})]})})});En.displayName=yr;var ol="CheckboxIndicator",sl=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=Sn(ol,r);return g.jsx(Ct,{present:n||Ge(i.checked)||i.checked===!0,children:g.jsx(K.span,{"data-state":ll(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});sl.displayName=ol;var il="CheckboxBubbleInput",al=f.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:s,required:a,disabled:c,name:l,value:u,form:d,bubbleInput:h,setBubbleInput:m}=Sn(il,e),v=ee(r,m),p=ua(i),y=ea(n);f.useEffect(()=>{const x=h;if(!x)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,k=!o.current;if(p!==i&&E){const A=new Event("click",{bubbles:k});x.indeterminate=Ge(i),E.call(x,Ge(i)?!1:i),x.dispatchEvent(A)}},[h,p,i,o]);const b=f.useRef(Ge(i)?!1:i);return g.jsx(K.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??b.current,required:a,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:v,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});al.displayName=il;function Dh(e){return typeof e=="function"}function Ge(e){return e==="indeterminate"}function ll(e){return Ge(e)?"indeterminate":e?"checked":"unchecked"}const cl=f.forwardRef(({className:e,...t},r)=>g.jsx(En,{ref:r,className:U("peer h-4 w-4 shrink-0 rounded-sm border border-gray-200 border-gray-900 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-gray-900 data-[state=checked]:text-gray-50 dark:border-gray-800 dark:border-gray-50 dark:ring-offset-gray-950 dark:focus-visible:ring-gray-300 dark:data-[state=checked]:bg-gray-50 dark:data-[state=checked]:text-gray-900",e),...t,children:g.jsx(sl,{className:U("flex items-center justify-center text-current"),children:g.jsx(fn,{className:"h-4 w-4"})})}));cl.displayName=En.displayName;var dl="AlertDialog",[kh]=Ke(dl,[mi]),$e=mi(),ul=e=>{const{__scopeAlertDialog:t,...r}=e,n=$e(t);return g.jsx(ki,{...n,...r,modal:!0})};ul.displayName=dl;var Mh="AlertDialogTrigger",fl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=$e(r);return g.jsx(Mi,{...o,...n,ref:t})});fl.displayName=Mh;var Ih="AlertDialogPortal",pl=e=>{const{__scopeAlertDialog:t,...r}=e,n=$e(t);return g.jsx(Ii,{...n,...r})};pl.displayName=Ih;var Oh="AlertDialogOverlay",hl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=$e(r);return g.jsx(ln,{...o,...n,ref:t})});hl.displayName=Oh;var vt="AlertDialogContent",[_h,jh]=kh(vt),Lh=Xl("AlertDialogContent"),ml=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=$e(r),s=f.useRef(null),a=ee(t,s),c=f.useRef(null);return g.jsx(sf,{contentName:vt,titleName:gl,docsSlug:"alert-dialog",children:g.jsx(_h,{scope:r,cancelRef:c,children:g.jsxs(cn,{role:"alertdialog",...i,...o,ref:a,onOpenAutoFocus:Q(o.onOpenAutoFocus,l=>{var u;l.preventDefault(),(u=c.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:l=>l.preventDefault(),onInteractOutside:l=>l.preventDefault(),children:[g.jsx(Lh,{children:n}),g.jsx(zh,{contentRef:s})]})})})});ml.displayName=vt;var gl="AlertDialogTitle",vl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=$e(r);return g.jsx(dn,{...o,...n,ref:t})});vl.displayName=gl;var yl="AlertDialogDescription",bl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=$e(r);return g.jsx(un,{...o,...n,ref:t})});bl.displayName=yl;var $h="AlertDialogAction",xl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=$e(r);return g.jsx(dr,{...o,...n,ref:t})});xl.displayName=$h;var wl="AlertDialogCancel",Cl=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=jh(wl,r),i=$e(r),s=ee(t,o);return g.jsx(dr,{...i,...n,ref:s})});Cl.displayName=wl;var zh=({contentRef:e})=>{const t=`\`${vt}\` requires a description for the component to be accessible for screen reader users.
104
109
 
105
- You can add a description to the \`${vt}\` by passing a \`${vl}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
110
+ You can add a description to the \`${vt}\` by passing a \`${yl}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
106
111
 
107
112
  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 \`${vt}\`. 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.
108
113
 
109
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},zh=dl,$h=ul,Bh=fl,Cl=pl,Sl=hl,El=bl,Rl=wl,Al=gl,Nl=yl;const Fh=zh,Vh=$h,Pl=Bh,Sn=f.forwardRef(({className:e,...t},r)=>g.jsx(Cl,{className:G("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:r}));Sn.displayName=Cl.displayName;const Tl=f.forwardRef(({className:e,...t},r)=>g.jsxs(Pl,{children:[g.jsx(Sn,{}),g.jsx(Sl,{ref:r,className:G("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200 bg-white 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 dark:border-gray-800 dark:bg-gray-950",e),...t})]}));Tl.displayName=Sl.displayName;const Dl=({className:e,...t})=>g.jsx("div",{className:G("flex flex-col space-y-2 text-center sm:text-left",e),...t});Dl.displayName="AlertDialogHeader";const kl=({className:e,...t})=>g.jsx("div",{className:G("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});kl.displayName="AlertDialogFooter";const Ml=f.forwardRef(({className:e,...t},r)=>g.jsx(Al,{ref:r,className:G("text-lg font-semibold",e),...t}));Ml.displayName=Al.displayName;const Il=f.forwardRef(({className:e,...t},r)=>g.jsx(Nl,{ref:r,className:G("text-sm text-gray-500 dark:text-gray-400",e),...t}));Il.displayName=Nl.displayName;const Ol=f.forwardRef(({className:e,...t},r)=>g.jsx(El,{ref:r,className:G(Ur(),e),...t}));Ol.displayName=El.displayName;const _l=f.forwardRef(({className:e,...t},r)=>g.jsx(Rl,{ref:r,className:G(Ur({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));_l.displayName=Rl.displayName;exports.Accordion=qd;exports.AccordionContent=Qs;exports.AccordionItem=Zs;exports.AccordionTrigger=qs;exports.Alert=xs;exports.AlertDescription=ws;exports.AlertDialog=Fh;exports.AlertDialogAction=Ol;exports.AlertDialogCancel=_l;exports.AlertDialogContent=Tl;exports.AlertDialogDescription=Il;exports.AlertDialogFooter=kl;exports.AlertDialogHeader=Dl;exports.AlertDialogOverlay=Sn;exports.AlertDialogPortal=Pl;exports.AlertDialogTitle=Ml;exports.AlertDialogTrigger=Vh;exports.AlertTitle=Cs;exports.Badge=Ps;exports.Button=ds;exports.Card=us;exports.CardContent=ms;exports.CardDescription=hs;exports.CardHeader=fs;exports.CardTitle=ps;exports.Checkbox=ll;exports.Dialog=wf;exports.DialogClose=Sf;exports.DialogContent=ji;exports.DialogDescription=Bi;exports.DialogFooter=zi;exports.DialogHeader=Li;exports.DialogOverlay=un;exports.DialogPortal=_i;exports.DialogTitle=$i;exports.DialogTrigger=Cf;exports.DiscLoader=Rs;exports.Form=As;exports.FormField=Ns;exports.Input=gs;exports.Label=bs;exports.Select=Ch;exports.SelectContent=qa;exports.SelectGroup=Sh;exports.SelectItem=Ja;exports.SelectLabel=Qa;exports.SelectSeparator=el;exports.SelectTrigger=Ka;exports.SelectValue=Eh;exports.Separator=Ts;exports.Spinner=Es;exports.Textarea=Ss;exports.Toaster=wd;exports.cn=G;exports.toast=cd;
114
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Bh=ul,Fh=fl,Vh=pl,Sl=hl,El=ml,Rl=xl,Al=Cl,Nl=vl,Pl=bl;const Wh=Bh,Hh=Fh,Tl=Vh,Rn=f.forwardRef(({className:e,...t},r)=>g.jsx(Sl,{className:U("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:r}));Rn.displayName=Sl.displayName;const Dl=f.forwardRef(({className:e,...t},r)=>g.jsxs(Tl,{children:[g.jsx(Rn,{}),g.jsx(El,{ref:r,className:U("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200 bg-white 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 dark:border-gray-800 dark:bg-gray-950",e),...t})]}));Dl.displayName=El.displayName;const kl=({className:e,...t})=>g.jsx("div",{className:U("flex flex-col space-y-2 text-center sm:text-left",e),...t});kl.displayName="AlertDialogHeader";const Ml=({className:e,...t})=>g.jsx("div",{className:U("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ml.displayName="AlertDialogFooter";const Il=f.forwardRef(({className:e,...t},r)=>g.jsx(Nl,{ref:r,className:U("text-lg font-semibold",e),...t}));Il.displayName=Nl.displayName;const Ol=f.forwardRef(({className:e,...t},r)=>g.jsx(Pl,{ref:r,className:U("text-sm text-gray-500 dark:text-gray-400",e),...t}));Ol.displayName=Pl.displayName;const _l=f.forwardRef(({className:e,...t},r)=>g.jsx(Rl,{ref:r,className:U(Yr(),e),...t}));_l.displayName=Rl.displayName;const jl=f.forwardRef(({className:e,...t},r)=>g.jsx(Al,{ref:r,className:U(Yr({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));jl.displayName=Al.displayName;function Gh({caption:e,children:t,plainText:r,enableSpacebar:n=!1,showToast:o=!0,maxHeight:i="60vh",className:s=""}){const[a,c]=C.useState(!1),[l,u]=C.useState(!1),[d,h]=C.useState(!1),[m,v]=C.useState(!1),[p,y]=C.useState(null),b=C.useRef(null),x=C.useRef(null),w=C.useRef(null),S=C.useRef(null),E=C.useRef(!1),k=C.useCallback(()=>{x.current&&clearTimeout(x.current),x.current=window.setTimeout(()=>{w.current&&(y(w.current.getBoundingClientRect()),v(!0))},500)},[]),A=C.useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=null),v(!1),y(null)},[]),j=L=>{const I=L.split(`
115
+ `),P=[];return I.forEach((O,M)=>{if(M>0&&P.push(`
116
+ `),O.trim().startsWith("//")){P.push(g.jsx("span",{className:"text-gray-400",children:O},`line-${M}`));return}let T=O,R=0;for(;T.length>0;){let D=!1;if(T[0]==='"'){const N=T.indexOf('"',1);if(N!==-1){const _=T.substring(0,N+1);P.push(g.jsx("span",{className:"text-green-400",children:_},`line-${M}-${R}`)),T=T.substring(N+1),R+=N+1,D=!0}}if(!D&&T[0]==="'"){const N=T.indexOf("'",1);if(N!==-1){const _=T.substring(0,N+1);P.push(g.jsx("span",{className:"text-green-400",children:_},`line-${M}-${R}`)),T=T.substring(N+1),R+=N+1,D=!0}}if(!D&&T[0]==="`"){const N=T.indexOf("`",1);if(N!==-1){const _=T.substring(0,N+1);P.push(g.jsx("span",{className:"text-green-400",children:_},`line-${M}-${R}`)),T=T.substring(N+1),R+=N+1,D=!0}}if(!D&&/[a-zA-Z_]/.test(T[0])){const N=T.match(/^[a-zA-Z_][a-zA-Z0-9_]*/);if(N){const _=N[0];["import","export","from","const","let","var","function","return","await","async","if","else","try","catch","finally","for","while","switch","case","break","continue","default","class","interface","type","enum","extends","implements","new","this","super","void","true","false","null","undefined"].includes(_)?P.push(g.jsx("span",{className:"text-purple-400",children:_},`line-${M}-${R}`)):P.push(_),T=T.substring(_.length),R+=_.length,D=!0}}if(!D&&/\d/.test(T[0])){const N=T.match(/^\d+\.?\d*/);if(N){const _=N[0];P.push(g.jsx("span",{className:"text-orange-400",children:_},`line-${M}-${R}`)),T=T.substring(_.length),R+=_.length,D=!0}}!D&&/[{}\[\]()]/.test(T[0])&&(P.push(g.jsx("span",{className:"text-yellow-300",children:T[0]},`line-${M}-${R}`)),T=T.substring(1),R+=1,D=!0),D||(P.push(T[0]),T=T.substring(1),R+=1)}}),P},B=C.useCallback(async()=>{if(S.current)try{c(!0);const L=r||S.current.innerText||S.current.textContent||"";await navigator.clipboard.writeText(L),o&&Ir.success("Code copied to clipboard"),b.current&&window.clearTimeout(b.current),h(!0),b.current=window.setTimeout(()=>{h(!1)},2e3)}catch(L){console.error("Failed to copy code",L),o&&Ir.error("Failed to copy code")}finally{c(!1)}},[r,o]);return C.useEffect(()=>{if(!n)return;const L=P=>{const O=P.target;P.code==="Space"&&!a&&!E.current&&O.tagName!=="INPUT"&&O.tagName!=="TEXTAREA"&&!O.isContentEditable&&!O.closest("input")&&!O.closest("textarea")&&(P.preventDefault(),E.current=!0,u(!0),w.current&&w.current.blur(),B())},I=P=>{P.code==="Space"&&(E.current=!1,u(!1))};return window.addEventListener("keydown",L),window.addEventListener("keyup",I),()=>{window.removeEventListener("keydown",L),window.removeEventListener("keyup",I)}},[n,a,B]),C.useEffect(()=>()=>{b.current&&window.clearTimeout(b.current),x.current&&window.clearTimeout(x.current)},[]),g.jsxs("figure",{className:`space-y-3 ${s}`,children:[e&&g.jsx("figcaption",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-[#6B6766]",children:e}),g.jsxs("div",{className:"relative group",children:[g.jsx("button",{ref:w,onClick:B,onMouseEnter:k,onMouseLeave:()=>{A(),u(!1)},onMouseDown:()=>u(!0),onMouseUp:()=>u(!1),onTouchStart:()=>u(!0),onTouchEnd:()=>u(!1),disabled:a,className:"absolute top-3 right-3 w-8 h-8 flex items-center justify-center rounded-md bg-gray-800/70 hover:bg-gray-700 text-gray-200 transition-colors cursor-pointer select-none focus:outline-none z-10 disabled:opacity-50 disabled:cursor-not-allowed","aria-label":"Copy code",children:d?g.jsx(fn,{className:`h-4 w-4 text-green-400 transition-transform duration-150 ${l?"scale-90":"scale-100"}`}):g.jsx(xf,{className:`h-4 w-4 transition-transform duration-150 ${l?"scale-90":"scale-100"}`})}),g.jsx("pre",{ref:S,className:"overflow-x-auto rounded-2xl bg-gray-900 px-6 py-8 font-mono text-sm leading-relaxed text-gray-100 shadow-sm whitespace-pre",style:{maxHeight:i},children:g.jsx("code",{className:"block",children:typeof t=="string"?j(t):t})})]}),m&&p&&typeof window<"u"&&tr.createPortal(g.jsx("div",{className:"fixed px-2 py-1 text-xs rounded bg-gray-800 text-white whitespace-nowrap shadow-lg z-[9999] pointer-events-none",style:{left:p.left+p.width/2,top:p.top-40,transform:"translateX(-50%)"},children:"Copy"}),document.body)]})}const Uh="0.2.4";exports.Accordion=qd;exports.AccordionContent=ei;exports.AccordionItem=Qs;exports.AccordionTrigger=Js;exports.Alert=Cs;exports.AlertDescription=Ss;exports.AlertDialog=Wh;exports.AlertDialogAction=_l;exports.AlertDialogCancel=jl;exports.AlertDialogContent=Dl;exports.AlertDialogDescription=Ol;exports.AlertDialogFooter=Ml;exports.AlertDialogHeader=kl;exports.AlertDialogOverlay=Rn;exports.AlertDialogPortal=Tl;exports.AlertDialogTitle=Il;exports.AlertDialogTrigger=Hh;exports.AlertTitle=Es;exports.Badge=Ds;exports.Button=fs;exports.Card=ps;exports.CardContent=vs;exports.CardDescription=gs;exports.CardHeader=hs;exports.CardTitle=ms;exports.Checkbox=cl;exports.CodeSample=Gh;exports.Dialog=Sf;exports.DialogClose=Rf;exports.DialogContent=Li;exports.DialogDescription=Fi;exports.DialogFooter=zi;exports.DialogHeader=$i;exports.DialogOverlay=pn;exports.DialogPortal=ji;exports.DialogTitle=Bi;exports.DialogTrigger=Ef;exports.DiscLoader=Ns;exports.Form=Ps;exports.FormField=Ts;exports.Input=ys;exports.Label=ws;exports.Select=Eh;exports.SelectContent=Qa;exports.SelectGroup=Rh;exports.SelectItem=el;exports.SelectLabel=Ja;exports.SelectSeparator=tl;exports.SelectTrigger=Xa;exports.SelectValue=Ah;exports.Separator=ks;exports.Spinner=As;exports.Textarea=Rs;exports.Toaster=wd;exports.UI_LIBRARY_VERSION=Uh;exports.cn=U;exports.toast=Ir;