@local-logic/design-system 0.7.29 → 0.7.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/components/ColorIcon/index.d.ts +8 -0
  2. package/dist/components/ColorIcon/index.d.ts.map +1 -0
  3. package/dist/components/ColorIcon/index.stories.d.ts +6 -0
  4. package/dist/components/ColorIcon/index.stories.d.ts.map +1 -0
  5. package/dist/components/ColorIcon/index.test.d.ts +1 -0
  6. package/dist/components/ColorIcon/index.test.d.ts.map +1 -0
  7. package/dist/components/ColorIcon/styles.d.ts +3 -0
  8. package/dist/components/ColorIcon/styles.d.ts.map +1 -0
  9. package/dist/components/HorizontalScrollFilters/Root/Dialog/index.d.ts.map +1 -1
  10. package/dist/components/HorizontalScrollFilters/Root/Dialog/index.test.d.ts +1 -0
  11. package/dist/components/HorizontalScrollFilters/Root/Dialog/index.test.d.ts.map +1 -0
  12. package/dist/components/HorizontalScrollFilters/Root/DialogTrigger/index.d.ts.map +1 -1
  13. package/dist/components/HorizontalScrollFilters/Root/DialogTrigger/index.test.d.ts +1 -0
  14. package/dist/components/HorizontalScrollFilters/Root/DialogTrigger/index.test.d.ts.map +1 -0
  15. package/dist/components/HorizontalScrollFilters/Root/DialogTrigger/styles.d.ts +1 -1
  16. package/dist/components/HorizontalScrollFilters/Root/DialogTrigger/styles.d.ts.map +1 -1
  17. package/dist/components/HorizontalScrollFilters/Root/Filter/index.d.ts +3 -1
  18. package/dist/components/HorizontalScrollFilters/Root/Filter/index.d.ts.map +1 -1
  19. package/dist/components/HorizontalScrollFilters/Root/Filter/index.stories.d.ts.map +1 -1
  20. package/dist/components/HorizontalScrollFilters/Root/Filter/index.test.d.ts +1 -0
  21. package/dist/components/HorizontalScrollFilters/Root/Filter/index.test.d.ts.map +1 -0
  22. package/dist/components/HorizontalScrollFilters/Root/Filter/styles.d.ts +1 -1
  23. package/dist/components/HorizontalScrollFilters/Root/Filter/styles.d.ts.map +1 -1
  24. package/dist/components/HorizontalScrollFilters/Root/ScrollList/index.d.ts +1 -0
  25. package/dist/components/HorizontalScrollFilters/Root/ScrollList/index.d.ts.map +1 -1
  26. package/dist/components/HorizontalScrollFilters/Root/ScrollList/index.test.d.ts +1 -0
  27. package/dist/components/HorizontalScrollFilters/Root/ScrollList/index.test.d.ts.map +1 -0
  28. package/dist/index.d.ts +3 -1
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.es.js +7421 -7018
  31. package/dist/index.umd.js +126 -73
  32. package/dist/setupTests.d.ts +1 -0
  33. package/dist/setupTests.d.ts.map +1 -0
  34. package/dist/style.css +1 -1
  35. package/package.json +4 -1
  36. package/tailwind.config.cjs +1 -1
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(Y,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],T):(Y=typeof globalThis<"u"?globalThis:Y||self,T(Y.LocalLogicDesignSystem={},Y.jsxRuntime,Y.React,Y.ReactDOM))})(this,function(Y,T,E,ns){"use strict";function rs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=rs(E),os=rs(ns),Dr="-",Zd=e=>{const t=qd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Dr);return a[0]===""&&a.length!==1&&a.shift(),is(a,t)||Xd(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},is=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?is(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Dr);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},ss=/^\[(.+)\]$/,Xd=e=>{if(ss.test(e)){const t=ss.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},qd=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Or(n[o],r,o,t);return r},Or=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:as(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Qd(o)){Or(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Or(s,as(t,i),n,r)})})},as=(e,t)=>{let n=e;return t.split(Dr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Qd=e=>e.isThemeGetter,Jd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},kr="!",Fr=":",ef=Fr.length,tf=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;for(let y=0;y<o.length;y++){let m=o[y];if(s===0&&a===0){if(m===Fr){i.push(o.slice(c,y)),c=y+ef;continue}if(m==="/"){l=y;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=i.length===0?o:o.substring(c),d=nf(u),f=d!==u,p=l&&l>c?l-c:void 0;return{modifiers:i,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const o=t+Fr,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},nf=e=>e.endsWith(kr)?e.substring(0,e.length-1):e.startsWith(kr)?e.substring(1):e,rf=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},of=e=>({cache:Jd(e.cacheSize),parseClassName:tf(e),sortModifiers:rf(e),...Zd(e)}),sf=/\s+/,af=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(sf);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let g=!!m,v=r(g?y.substring(0,m):y);if(!v){if(!g){c=u+(c.length>0?" "+c:c);continue}if(v=r(y),!v){c=u+(c.length>0?" "+c:c);continue}g=!1}const x=i(f).join(":"),w=p?x+kr:x,C=w+v;if(s.includes(C))continue;s.push(C);const b=o(v,g);for(let P=0;P<b.length;++P){const A=b[P];s.push(w+A)}c=u+(c.length>0?" "+c:c)}return c};function cf(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=cs(t))&&(r&&(r+=" "),r+=n);return r}const cs=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=cs(e[r]))&&(n&&(n+=" "),n+=t);return n};function lf(e,...t){let n,r,o,i=s;function s(c){const l=t.reduce((u,d)=>d(u),e());return n=of(l),r=n.cache.get,o=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=af(c,n);return o(c,u),u}return function(){return i(cf.apply(null,arguments))}}const he=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ls=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,us=/^\((?:(\w[\w-]*):)?(.+)\)$/i,uf=/^\d+\/\d+$/,df=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ff=/\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$/,hf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=e=>uf.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),tt=e=>!!e&&Number.isInteger(Number(e)),Rr=e=>e.endsWith("%")&&j(e.slice(0,-1)),ze=e=>df.test(e),gf=()=>!0,yf=e=>ff.test(e)&&!hf.test(e),ds=()=>!1,vf=e=>pf.test(e),bf=e=>mf.test(e),wf=e=>!k(e)&&!F(e),Tf=e=>Nt(e,gs,ds),k=e=>ls.test(e),pt=e=>Nt(e,ys,yf),Ir=e=>Nt(e,Cf,j),fs=e=>Nt(e,ps,ds),Ef=e=>Nt(e,ms,bf),Nn=e=>Nt(e,vs,vf),F=e=>us.test(e),an=e=>Vt(e,ys),xf=e=>Vt(e,Pf),hs=e=>Vt(e,ps),Sf=e=>Vt(e,gs),Af=e=>Vt(e,ms),Vn=e=>Vt(e,vs,!0),Nt=(e,t,n)=>{const r=ls.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vt=(e,t,n=!1)=>{const r=us.exec(e);return r?r[1]?t(r[1]):n:!1},ps=e=>e==="position"||e==="percentage",ms=e=>e==="image"||e==="url",gs=e=>e==="length"||e==="size"||e==="bg-size",ys=e=>e==="length",Cf=e=>e==="number",Pf=e=>e==="family-name",vs=e=>e==="shadow",mt=lf(()=>{const e=he("color"),t=he("font"),n=he("text"),r=he("font-weight"),o=he("tracking"),i=he("leading"),s=he("breakpoint"),a=he("container"),c=he("spacing"),l=he("radius"),u=he("shadow"),d=he("inset-shadow"),f=he("text-shadow"),p=he("drop-shadow"),y=he("blur"),m=he("perspective"),g=he("aspect"),v=he("ease"),x=he("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...C(),F,k],P=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],M=()=>[F,k,c],R=()=>[It,"full","auto",...M()],U=()=>[tt,"none","subgrid",F,k],oe=()=>["auto",{span:["full",tt,F,k]},tt,F,k],me=()=>[tt,"auto",F,k],ie=()=>["auto","min","max","fr",F,k],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],se=()=>["auto",...M()],$=()=>[It,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],D=()=>[e,F,k],fe=()=>[...C(),hs,fs,{position:[F,k]}],we=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",Sf,Tf,{size:[F,k]}],Ee=()=>[Rr,an,pt],Q=()=>["","none","full",l,F,k],ce=()=>["",j,an,pt],Me=()=>["solid","dashed","dotted","double"],Ft=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[j,Rr,hs,fs],Rt=()=>["","none",y,F,k],Qe=()=>["none",j,F,k],Je=()=>["none",j,F,k],et=()=>[j,F,k],I=()=>[It,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ze],breakpoint:[ze],color:[gf],container:[ze],"drop-shadow":[ze],ease:["in","out","in-out"],font:[wf],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ze],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ze],shadow:[ze],spacing:["px",j],text:[ze],"text-shadow":[ze],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",It,k,F,g]}],container:["container"],columns:[{columns:[j,k,F,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[tt,"auto",F,k]}],basis:[{basis:[It,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,It,"auto","initial","none",k]}],grow:[{grow:["",j,F,k]}],shrink:[{shrink:["",j,F,k]}],order:[{order:[tt,"first","last","none",F,k]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[a,"screen",...$()]}],"min-w":[{"min-w":[a,"screen","none",...$()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,an,pt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,F,Ir]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rr,k]}],"font-family":[{font:[xf,k,t]}],"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:[o,F,k]}],"line-clamp":[{"line-clamp":[j,"none",F,Ir]}],leading:[{leading:[i,...M()]}],"list-image":[{"list-image":["none",F,k]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Me(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",F,pt]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[j,"auto",F,k]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,k]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F,k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:we()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tt,F,k],radial:["",F,k],conic:[tt,F,k]},Af,Ef]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Me(),"hidden","none"]}],"divide-style":[{divide:[...Me(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...Me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,F,k]}],"outline-w":[{outline:["",j,an,pt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",u,Vn,Nn]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",d,Vn,Nn]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[j,pt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",f,Vn,Nn]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[j,F,k]}],"mix-blend":[{"mix-blend":[...Ft(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ft()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[F,k]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:we()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,k]}],filter:[{filter:["","none",F,k]}],blur:[{blur:Rt()}],brightness:[{brightness:[j,F,k]}],contrast:[{contrast:[j,F,k]}],"drop-shadow":[{"drop-shadow":["","none",p,Vn,Nn]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",j,F,k]}],"hue-rotate":[{"hue-rotate":[j,F,k]}],invert:[{invert:["",j,F,k]}],saturate:[{saturate:[j,F,k]}],sepia:[{sepia:["",j,F,k]}],"backdrop-filter":[{"backdrop-filter":["","none",F,k]}],"backdrop-blur":[{"backdrop-blur":Rt()}],"backdrop-brightness":[{"backdrop-brightness":[j,F,k]}],"backdrop-contrast":[{"backdrop-contrast":[j,F,k]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,F,k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,F,k]}],"backdrop-invert":[{"backdrop-invert":["",j,F,k]}],"backdrop-opacity":[{"backdrop-opacity":[j,F,k]}],"backdrop-saturate":[{"backdrop-saturate":[j,F,k]}],"backdrop-sepia":[{"backdrop-sepia":["",j,F,k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,k]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",F,k]}],ease:[{ease:["linear","initial",v,F,k]}],delay:[{delay:[j,F,k]}],animate:[{animate:["none",x,F,k]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,F,k]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:et()}],"skew-x":[{"skew-x":et()}],"skew-y":[{"skew-y":et()}],transform:[{transform:[F,k,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:I()}],"translate-x":[{"translate-x":I()}],"translate-y":[{"translate-y":I()}],"translate-z":[{"translate-z":I()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F,k]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",F,k]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[j,an,pt,Ir]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Mf=`
1
+ (function(K,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],b):(K=typeof globalThis<"u"?globalThis:K||self,b(K.LocalLogicDesignSystem={},K.jsxRuntime,K.React,K.ReactDOM))})(this,function(K,b,E,os){"use strict";function is(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=is(E),ss=is(os),Or="-",pf=e=>{const t=gf(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Or);return a[0]===""&&a.length!==1&&a.shift(),as(a,t)||mf(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},as=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?as(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Or);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},cs=/^\[(.+)\]$/,mf=e=>{if(cs.test(e)){const t=cs.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},gf=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Vr(n[o],r,o,t);return r},Vr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ls(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(yf(o)){Vr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Vr(s,ls(t,i),n,r)})})},ls=(e,t)=>{let n=e;return t.split(Or).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},yf=e=>e.isThemeGetter,vf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Fr="!",kr=":",bf=kr.length,wf=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;for(let y=0;y<o.length;y++){let m=o[y];if(s===0&&a===0){if(m===kr){i.push(o.slice(c,y)),c=y+bf;continue}if(m==="/"){l=y;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=i.length===0?o:o.substring(c),d=Tf(u),h=d!==u,p=l&&l>c?l-c:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const o=t+kr,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Tf=e=>e.endsWith(Fr)?e.substring(0,e.length-1):e.startsWith(Fr)?e.substring(1):e,Ef=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},xf=e=>({cache:vf(e.cacheSize),parseClassName:wf(e),sortModifiers:Ef(e),...pf(e)}),Sf=/\s+/,Af=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Sf);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:d,modifiers:h,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let g=!!m,v=r(g?y.substring(0,m):y);if(!v){if(!g){c=u+(c.length>0?" "+c:c);continue}if(v=r(y),!v){c=u+(c.length>0?" "+c:c);continue}g=!1}const x=i(h).join(":"),T=p?x+Fr:x,C=T+v;if(s.includes(C))continue;s.push(C);const w=o(v,g);for(let P=0;P<w.length;++P){const A=w[P];s.push(T+A)}c=u+(c.length>0?" "+c:c)}return c};function Cf(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=us(t))&&(r&&(r+=" "),r+=n);return r}const us=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=us(e[r]))&&(n&&(n+=" "),n+=t);return n};function Pf(e,...t){let n,r,o,i=s;function s(c){const l=t.reduce((u,d)=>d(u),e());return n=xf(l),r=n.cache.get,o=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=Af(c,n);return o(c,u),u}return function(){return i(Cf.apply(null,arguments))}}const he=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ds=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mf=/^\d+\/\d+$/,Df=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Of=/\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$/,Vf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ff=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nt=e=>Mf.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),tt=e=>!!e&&Number.isInteger(Number(e)),Ir=e=>e.endsWith("%")&&j(e.slice(0,-1)),ze=e=>Df.test(e),If=()=>!0,Nf=e=>Of.test(e)&&!Vf.test(e),hs=()=>!1,Lf=e=>Ff.test(e),Rf=e=>kf.test(e),_f=e=>!V(e)&&!F(e),jf=e=>Lt(e,vs,hs),V=e=>ds.test(e),mt=e=>Lt(e,bs,Nf),Nr=e=>Lt(e,zf,j),ps=e=>Lt(e,gs,hs),Bf=e=>Lt(e,ys,Rf),Rn=e=>Lt(e,ws,Lf),F=e=>fs.test(e),cn=e=>Rt(e,bs),Uf=e=>Rt(e,Zf),ms=e=>Rt(e,gs),$f=e=>Rt(e,vs),Wf=e=>Rt(e,ys),_n=e=>Rt(e,ws,!0),Lt=(e,t,n)=>{const r=ds.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Rt=(e,t,n=!1)=>{const r=fs.exec(e);return r?r[1]?t(r[1]):n:!1},gs=e=>e==="position"||e==="percentage",ys=e=>e==="image"||e==="url",vs=e=>e==="length"||e==="size"||e==="bg-size",bs=e=>e==="length",zf=e=>e==="number",Zf=e=>e==="family-name",ws=e=>e==="shadow",gt=Pf(()=>{const e=he("color"),t=he("font"),n=he("text"),r=he("font-weight"),o=he("tracking"),i=he("leading"),s=he("breakpoint"),a=he("container"),c=he("spacing"),l=he("radius"),u=he("shadow"),d=he("inset-shadow"),h=he("text-shadow"),p=he("drop-shadow"),y=he("blur"),m=he("perspective"),g=he("aspect"),v=he("ease"),x=he("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...C(),F,V],P=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],M=()=>[F,V,c],k=()=>[Nt,"full","auto",...M()],U=()=>[tt,"none","subgrid",F,V],oe=()=>["auto",{span:["full",tt,F,V]},tt,F,V],me=()=>[tt,"auto",F,V],ie=()=>["auto","min","max","fr",F,V],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],se=()=>["auto",...M()],$=()=>[Nt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],D=()=>[e,F,V],fe=()=>[...C(),ms,ps,{position:[F,V]}],we=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",$f,jf,{size:[F,V]}],Ee=()=>[Ir,cn,mt],Q=()=>["","none","full",l,F,V],ce=()=>["",j,cn,mt],Me=()=>["solid","dashed","dotted","double"],kt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[j,Ir,ms,ps],It=()=>["","none",y,F,V],Qe=()=>["none",j,F,V],Je=()=>["none",j,F,V],et=()=>[j,F,V],I=()=>[Nt,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ze],breakpoint:[ze],color:[If],container:[ze],"drop-shadow":[ze],ease:["in","out","in-out"],font:[_f],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ze],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ze],shadow:[ze],spacing:["px",j],text:[ze],"text-shadow":[ze],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Nt,V,F,g]}],container:["container"],columns:[{columns:[j,V,F,a]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[tt,"auto",F,V]}],basis:[{basis:[Nt,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,Nt,"auto","initial","none",V]}],grow:[{grow:["",j,F,V]}],shrink:[{shrink:["",j,F,V]}],order:[{order:[tt,"first","last","none",F,V]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[a,"screen",...$()]}],"min-w":[{"min-w":[a,"screen","none",...$()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,cn,mt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,F,Nr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ir,V]}],"font-family":[{font:[Uf,V,t]}],"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:[o,F,V]}],"line-clamp":[{"line-clamp":[j,"none",F,Nr]}],leading:[{leading:[i,...M()]}],"list-image":[{"list-image":["none",F,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Me(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",F,mt]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[j,"auto",F,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:we()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tt,F,V],radial:["",F,V],conic:[tt,F,V]},Wf,Bf]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Me(),"hidden","none"]}],"divide-style":[{divide:[...Me(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...Me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,F,V]}],"outline-w":[{outline:["",j,cn,mt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",u,_n,Rn]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",d,_n,Rn]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[j,mt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",h,_n,Rn]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[j,F,V]}],"mix-blend":[{"mix-blend":[...kt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":kt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[F,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:we()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,V]}],filter:[{filter:["","none",F,V]}],blur:[{blur:It()}],brightness:[{brightness:[j,F,V]}],contrast:[{contrast:[j,F,V]}],"drop-shadow":[{"drop-shadow":["","none",p,_n,Rn]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",j,F,V]}],"hue-rotate":[{"hue-rotate":[j,F,V]}],invert:[{invert:["",j,F,V]}],saturate:[{saturate:[j,F,V]}],sepia:[{sepia:["",j,F,V]}],"backdrop-filter":[{"backdrop-filter":["","none",F,V]}],"backdrop-blur":[{"backdrop-blur":It()}],"backdrop-brightness":[{"backdrop-brightness":[j,F,V]}],"backdrop-contrast":[{"backdrop-contrast":[j,F,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,F,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,F,V]}],"backdrop-invert":[{"backdrop-invert":["",j,F,V]}],"backdrop-opacity":[{"backdrop-opacity":[j,F,V]}],"backdrop-saturate":[{"backdrop-saturate":[j,F,V]}],"backdrop-sepia":[{"backdrop-sepia":["",j,F,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",F,V]}],ease:[{ease:["linear","initial",v,F,V]}],delay:[{delay:[j,F,V]}],animate:[{animate:["none",x,F,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,F,V]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:et()}],"skew-x":[{"skew-x":et()}],"skew-y":[{"skew-y":et()}],transform:[{transform:[F,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:I()}],"translate-x":[{"translate-x":I()}],"translate-y":[{"translate-y":I()}],"translate-z":[{"translate-z":I()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",F,V]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[j,cn,mt,Nr]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Hf=`
2
2
  group justify-center
3
3
  text-lg font-medium no-underline
4
4
  px-5 rounded-xl h-11
@@ -44,7 +44,7 @@
44
44
  data-[variant="ghost"]:data-[is-disabled=true]:text-gray-250
45
45
 
46
46
  data-[variant="ghost"]:data-[inverse=true]:text-white
47
- `,bs="h-6 w-6",Nr=E.forwardRef(({children:e,className:t="",variant:n="primary",size:r="small",prefixIcon:o,suffixIcon:i,isDisabled:s=!1,inverse:a=!1,onClick:c,type:l="button",...u},d)=>{const f=p=>{c&&c(p)};return T.jsxs("button",{onClick:f,className:mt(Mf,t),disabled:s,"data-variant":n,"data-size":r,"data-inverse":a,type:l,...u,children:[o&&E.cloneElement(o,{...o.props,className:mt(bs,o.props.className)}),e,i&&E.cloneElement(i,{...i.props,className:mt(bs,i.props.className)})]})});Nr.displayName="Button";const Df=`
47
+ `,Ts="h-6 w-6",ln=E.forwardRef(({children:e,className:t="",variant:n="primary",size:r="small",prefixIcon:o,suffixIcon:i,isDisabled:s=!1,inverse:a=!1,onClick:c,type:l="button",...u},d)=>{const h=p=>{c&&c(p)};return b.jsxs("button",{onClick:h,className:gt(Hf,t),disabled:s,"data-variant":n,"data-size":r,"data-inverse":a,type:l,...u,children:[o&&E.cloneElement(o,{...o.props,className:gt(Ts,o.props.className)}),e,i&&E.cloneElement(i,{...i.props,className:gt(Ts,i.props.className)})]})});ln.displayName="Button";const Kf=`
48
48
  font-sans
49
49
  rounded-lg p-9 relative
50
50
  border border-solid border-gray-150
@@ -52,70 +52,34 @@
52
52
 
53
53
  bg-white
54
54
  text-gray-400
55
- `,Of=`
55
+ `,Gf=`
56
56
  bg-cover bg-center
57
57
  w-full
58
58
  h-60
59
- `;function ws({children:e,imageSRC:t}){return T.jsxs("div",{className:Df,children:[t&&T.jsx("div",{className:Of,style:{backgroundImage:`url("${t}")`}}),e]})}function nt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ts(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Es(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ts(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ts(e[o],null)}}}}function Se(...e){return h.useCallback(Es(...e),e)}function kf(e,t){const n=h.createContext(t),r=i=>{const{children:s,...a}=i,c=h.useMemo(()=>a,Object.values(a));return T.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=h.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Vr(e,t=[]){let n=[];function r(i,s){const a=h.createContext(s),c=n.length;n=[...n,s];const l=d=>{var v;const{scope:f,children:p,...y}=d,m=((v=f==null?void 0:f[e])==null?void 0:v[c])||a,g=h.useMemo(()=>y,Object.values(y));return T.jsx(m.Provider,{value:g,children:p})};l.displayName=i+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[c])||a,y=h.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const o=()=>{const i=n.map(s=>h.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Ff(o,...t)]}function Ff(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var rt=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Rf=h[" useId ".trim().toString()]||(()=>{}),If=0;function Lr(e){const[t,n]=h.useState(Rf());return rt(()=>{n(r=>r??String(If++))},[e]),e||(t?`radix-${t}`:"")}var Nf=h[" useInsertionEffect ".trim().toString()]||rt;function xs({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Vf({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const u=h.useRef(e!==void 0);h.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} 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,r])}const l=h.useCallback(u=>{var d;if(a){const f=Lf(u)?u(e):u;f!==e&&((d=s.current)==null||d.call(s,f))}else i(u)},[a,e,i,s]);return[c,l]}function Vf({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),i=h.useRef(t);return Nf(()=>{i.current=t},[t]),h.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Lf(e){return typeof e=="function"}function Ln(e){const t=_f(e),n=h.forwardRef((r,o)=>{const{children:i,...s}=r,a=h.Children.toArray(i),c=a.find(Bf);if(c){const l=c.props.children,u=a.map(d=>d===c?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:d);return T.jsx(t,{...s,ref:o,children:h.isValidElement(l)?h.cloneElement(l,void 0,u):null})}return T.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function _f(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const s=$f(o),a=Uf(i,o.props);return o.type!==h.Fragment&&(a.ref=r?Es(r,s):s),h.cloneElement(o,a)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jf=Symbol("radix.slottable");function Bf(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jf}function Uf(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function $f(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=Wf.reduce((e,t)=>{const n=Ln(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),T.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function _r(e,t){e&&os.flushSync(()=>e.dispatchEvent(t))}function Re(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ss(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var zf="DismissableLayer",jr="dismissableLayer.update",Kf="dismissableLayer.pointerDownOutside",Hf="dismissableLayer.focusOutside",As,Cs=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ps=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=h.useContext(Cs),[u,d]=h.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=h.useState({}),y=Se(t,A=>d(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),x=u?m.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,b=Zf(A=>{const M=A.target,R=[...l.branches].some(U=>U.contains(M));!C||R||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},f),P=Xf(A=>{const M=A.target;[...l.branches].some(U=>U.contains(M))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},f);return Ss(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},f),h.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(As=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ms(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=As)}},[u,f,n,l]),h.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ms())},[u,l]),h.useEffect(()=>{const A=()=>p({});return document.addEventListener(jr,A),()=>document.removeEventListener(jr,A)},[]),T.jsx(ge.div,{...c,ref:y,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:nt(e.onFocusCapture,P.onFocusCapture),onBlurCapture:nt(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:nt(e.onPointerDownCapture,b.onPointerDownCapture)})});Ps.displayName=zf;var Gf="DismissableLayerBranch",Yf=h.forwardRef((e,t)=>{const n=h.useContext(Cs),r=h.useRef(null),o=Se(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),T.jsx(ge.div,{...e,ref:o})});Yf.displayName=Gf;function Zf(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Ds(Kf,n,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);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xf(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ds(Hf,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ms(){const e=new CustomEvent(jr);document.dispatchEvent(e)}function Ds(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?_r(o,i):o.dispatchEvent(i)}var Br="focusScope.autoFocusOnMount",Ur="focusScope.autoFocusOnUnmount",Os={bubbles:!1,cancelable:!0},qf="FocusScope",ks=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=h.useState(null),l=Re(o),u=Re(i),d=h.useRef(null),f=Se(t,m=>c(m)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let m=function(w){if(p.paused||!a)return;const C=w.target;a.contains(C)?d.current=C:ot(d.current,{select:!0})},g=function(w){if(p.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||ot(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const b of w)b.removedNodes.length>0&&ot(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const x=new MutationObserver(v);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),x.disconnect()}}},[r,a,p.paused]),h.useEffect(()=>{if(a){Is.add(p);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(Br,Os);a.addEventListener(Br,l),a.dispatchEvent(v),v.defaultPrevented||(Qf(rh(Fs(a)),{select:!0}),document.activeElement===m&&ot(a))}return()=>{a.removeEventListener(Br,l),setTimeout(()=>{const v=new CustomEvent(Ur,Os);a.addEventListener(Ur,u),a.dispatchEvent(v),v.defaultPrevented||ot(m??document.body,{select:!0}),a.removeEventListener(Ur,u),Is.remove(p)},0)}}},[a,l,u,p]);const y=h.useCallback(m=>{if(!n&&!r||p.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(g&&v){const x=m.currentTarget,[w,C]=Jf(x);w&&C?!m.shiftKey&&v===C?(m.preventDefault(),n&&ot(w,{select:!0})):m.shiftKey&&v===w&&(m.preventDefault(),n&&ot(C,{select:!0})):v===x&&m.preventDefault()}},[n,r,p.paused]);return T.jsx(ge.div,{tabIndex:-1,...s,ref:f,onKeyDown:y})});ks.displayName=qf;function Qf(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ot(r,{select:t}),document.activeElement!==n)return}function Jf(e){const t=Fs(e),n=Rs(t,e),r=Rs(t.reverse(),e);return[n,r]}function Fs(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rs(e,t){for(const n of e)if(!eh(n,{upTo:t}))return n}function eh(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 th(e){return e instanceof HTMLInputElement&&"select"in e}function ot(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&th(e)&&t&&e.select()}}var Is=nh();function nh(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ns(e,t),e.unshift(t)},remove(t){var n;e=Ns(e,t),(n=e[0])==null||n.resume()}}}function Ns(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rh(e){return e.filter(t=>t.tagName!=="A")}var oh="Portal",$r=h.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=h.useState(!1);rt(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?ns.createPortal(T.jsx(ge.div,{...r,ref:t}),s):null});$r.displayName=oh;function ih(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var _n=e=>{const{present:t,children:n}=e,r=sh(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=Se(r.ref,ah(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};_n.displayName="Presence";function sh(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),i=h.useRef("none"),s=e?"mounted":"unmounted",[a,c]=ih(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const l=jn(r.current);i.current=a==="mounted"?l:"none"},[a]),rt(()=>{const l=r.current,u=o.current;if(u!==e){const f=i.current,p=jn(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),rt(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=jn(r.current).includes(p.animationName);if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},f=p=>{p.target===t&&(i.current=jn(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function jn(e){return(e==null?void 0:e.animationName)||"none"}function ah(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wr=0;function ch(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vs()),document.body.insertAdjacentElement("beforeend",e[1]??Vs()),Wr++,()=>{Wr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Wr--}},[])}function Vs(){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 it=function(){return it=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},it.apply(this,arguments)};function lh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function uh(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Bn="right-scroll-bar-position",Un="width-before-scroll-bar",dh="with-scroll-bars-hidden",fh="--removed-body-scroll-bar-size";function zr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hh(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ph=typeof window<"u"?h.useLayoutEffect:h.useEffect,Ls=new WeakMap;function mh(e,t){var n=hh(null,function(r){return e.forEach(function(o){return zr(o,r)})});return ph(function(){var r=Ls.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||zr(a,null)}),i.forEach(function(a){o.has(a)||zr(a,s)})}Ls.set(n,e)},[e]),n}var $n=function(){return $n=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},$n.apply(this,arguments)};function gh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}typeof SuppressedError=="function"&&SuppressedError;function yh(e){return e}function vh(e,t){t===void 0&&(t=yh);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var u=s;s=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){s.push(u),l()},filter:function(u){return s=s.filter(u),n}}}};return o}function bh(e){e===void 0&&(e={});var t=vh(null);return t.options=$n({async:!0,ssr:!1},e),t}var _s=function(e){var t=e.sideCar,n=gh(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,$n({},n))};_s.isSideCarExport=!0;function wh(e,t){return e.useMedium(t),_s}var js=bh(),Kr=function(){},Wn=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Kr,onWheelCapture:Kr,onTouchMoveCapture:Kr}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,y=e.inert,m=e.allowPinchZoom,g=e.as,v=g===void 0?"div":g,x=e.gapMode,w=lh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,b=mh([n,t]),P=it(it({},w),o);return h.createElement(h.Fragment,null,u&&h.createElement(C,{sideCar:js,removeScrollBar:l,shards:d,noIsolation:p,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:x}),s?h.cloneElement(h.Children.only(a),it(it({},P),{ref:b})):h.createElement(v,it({},P,{className:c,ref:b}),a))});Wn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Wn.classNames={fullWidth:Un,zeroRight:Bn};var Th=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Eh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Th();return t&&e.setAttribute("nonce",t),e}function xh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Sh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ah=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Eh())&&(xh(t,n),Sh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ch=function(){var e=Ah();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bs=function(){var e=Ch(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ph={left:0,top:0,right:0,gap:0},Hr=function(e){return parseInt(e||"",10)||0},Mh=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Hr(n),Hr(r),Hr(o)]},Dh=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ph;var t=Mh(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Oh=Bs(),Lt="data-scroll-locked",kh=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
60
- .`.concat(dh,` {
61
- overflow: hidden `).concat(r,`;
62
- padding-right: `).concat(a,"px ").concat(r,`;
63
- }
64
- body[`).concat(Lt,`] {
65
- overflow: hidden `).concat(r,`;
66
- overscroll-behavior: contain;
67
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
68
- padding-left: `.concat(o,`px;
69
- padding-top: `).concat(i,`px;
70
- padding-right: `).concat(s,`px;
71
- margin-left:0;
72
- margin-top:0;
73
- margin-right: `).concat(a,"px ").concat(r,`;
74
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
75
- }
76
-
77
- .`).concat(Bn,` {
78
- right: `).concat(a,"px ").concat(r,`;
79
- }
80
-
81
- .`).concat(Un,` {
82
- margin-right: `).concat(a,"px ").concat(r,`;
83
- }
84
-
85
- .`).concat(Bn," .").concat(Bn,` {
86
- right: 0 `).concat(r,`;
87
- }
88
-
89
- .`).concat(Un," .").concat(Un,` {
90
- margin-right: 0 `).concat(r,`;
91
- }
92
-
93
- body[`).concat(Lt,`] {
94
- `).concat(fh,": ").concat(a,`px;
95
- }
96
- `)},Us=function(){var e=parseInt(document.body.getAttribute(Lt)||"0",10);return isFinite(e)?e:0},Fh=function(){h.useEffect(function(){return document.body.setAttribute(Lt,(Us()+1).toString()),function(){var e=Us()-1;e<=0?document.body.removeAttribute(Lt):document.body.setAttribute(Lt,e.toString())}},[])},Rh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Fh();var i=h.useMemo(function(){return Dh(o)},[o]);return h.createElement(Oh,{styles:kh(i,!t,o,n?"":"!important")})},Gr=!1;if(typeof window<"u")try{var zn=Object.defineProperty({},"passive",{get:function(){return Gr=!0,!0}});window.addEventListener("test",zn,zn),window.removeEventListener("test",zn,zn)}catch{Gr=!1}var _t=Gr?{passive:!1}:!1,Ih=function(e){return e.tagName==="TEXTAREA"},$s=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ih(e)&&n[t]==="visible")},Nh=function(e){return $s(e,"overflowY")},Vh=function(e){return $s(e,"overflowX")},Ws=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=zs(e,r);if(o){var i=Ks(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Lh=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_h=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},zs=function(e,t){return e==="v"?Nh(t):Vh(t)},Ks=function(e,t){return e==="v"?Lh(t):_h(t)},jh=function(e,t){return e==="h"&&t==="rtl"?-1:1},Bh=function(e,t,n,r,o){var i=jh(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,u=s>0,d=0,f=0;do{var p=Ks(e,a),y=p[0],m=p[1],g=p[2],v=m-g-i*y;(y||v)&&zs(e,a)&&(d+=v,f+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},Kn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hs=function(e){return[e.deltaX,e.deltaY]},Gs=function(e){return e&&"current"in e?e.current:e},Uh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$h=function(e){return`
97
- .block-interactivity-`.concat(e,` {pointer-events: none;}
98
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
99
- `)},Wh=0,jt=[];function zh(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(Wh++)[0],i=h.useState(Bs)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=uh([e.lockRef.current],(e.shards||[]).map(Gs),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var v=Kn(m),x=n.current,w="deltaX"in m?m.deltaX:x[0]-v[0],C="deltaY"in m?m.deltaY:x[1]-v[1],b,P=m.target,A=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&A==="h"&&P.type==="range")return!1;var M=Ws(A,P);if(!M)return!0;if(M?b=A:(b=A==="v"?"h":"v",M=Ws(A,P)),!M)return!1;if(!r.current&&"changedTouches"in m&&(w||C)&&(r.current=b),!b)return!0;var R=r.current||b;return Bh(R,g,m,R==="h"?w:C)},[]),c=h.useCallback(function(m){var g=m;if(!(!jt.length||jt[jt.length-1]!==i)){var v="deltaY"in g?Hs(g):Kn(g),x=t.current.filter(function(b){return b.name===g.type&&(b.target===g.target||g.target===b.shadowParent)&&Uh(b.delta,v)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var w=(s.current.shards||[]).map(Gs).filter(Boolean).filter(function(b){return b.contains(g.target)}),C=w.length>0?a(g,w[0]):!s.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),l=h.useCallback(function(m,g,v,x){var w={name:m,delta:g,target:v,should:x,shadowParent:Kh(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=h.useCallback(function(m){n.current=Kn(m),r.current=void 0},[]),d=h.useCallback(function(m){l(m.type,Hs(m),m.target,a(m,e.lockRef.current))},[]),f=h.useCallback(function(m){l(m.type,Kn(m),m.target,a(m,e.lockRef.current))},[]);h.useEffect(function(){return jt.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,_t),document.addEventListener("touchmove",c,_t),document.addEventListener("touchstart",u,_t),function(){jt=jt.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,_t),document.removeEventListener("touchmove",c,_t),document.removeEventListener("touchstart",u,_t)}},[]);var p=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(i,{styles:$h(o)}):null,p?h.createElement(Rh,{gapMode:e.gapMode}):null)}function Kh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Hh=wh(js,zh);var Ys=h.forwardRef(function(e,t){return h.createElement(Wn,it({},e,{ref:t,sideCar:Hh}))});Ys.classNames=Wn.classNames;var Gh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Bt=new WeakMap,Hn=new WeakMap,Gn={},Yr=0,Zs=function(e){return e&&(e.host||Zs(e.parentNode))},Yh=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Zs(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Zh=function(e,t,n,r){var o=Yh(t,Array.isArray(e)?e:[e]);Gn[n]||(Gn[n]=new WeakMap);var i=Gn[n],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(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),y=p!==null&&p!=="false",m=(Bt.get(f)||0)+1,g=(i.get(f)||0)+1;Bt.set(f,m),i.set(f,g),s.push(f),m===1&&y&&Hn.set(f,!0),g===1&&f.setAttribute(n,"true"),y||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),Yr++,function(){s.forEach(function(d){var f=Bt.get(d)-1,p=i.get(d)-1;Bt.set(d,f),i.set(d,p),f||(Hn.has(d)||d.removeAttribute(r),Hn.delete(d)),p||d.removeAttribute(n)}),Yr--,Yr||(Bt=new WeakMap,Bt=new WeakMap,Hn=new WeakMap,Gn={})}},Xh=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Gh(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Zh(r,o,n,"aria-hidden")):function(){return null}},Yn="Dialog",[Xs,vx]=Vr(Yn),[qh,Ie]=Xs(Yn),qs=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=h.useRef(null),c=h.useRef(null),[l,u]=xs({prop:r,defaultProp:o??!1,onChange:i,caller:Yn});return T.jsx(qh,{scope:t,triggerRef:a,contentRef:c,contentId:Lr(),titleId:Lr(),descriptionId:Lr(),open:l,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(d=>!d),[u]),modal:s,children:n})};qs.displayName=Yn;var Qs="DialogTrigger",Qh=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(Qs,n),i=Se(t,o.triggerRef);return T.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":qr(o.open),...r,ref:i,onClick:nt(e.onClick,o.onOpenToggle)})});Qh.displayName=Qs;var Zr="DialogPortal",[Jh,Js]=Xs(Zr,{forceMount:void 0}),ea=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Ie(Zr,t);return T.jsx(Jh,{scope:t,forceMount:n,children:h.Children.map(r,s=>T.jsx(_n,{present:n||i.open,children:T.jsx($r,{asChild:!0,container:o,children:s})}))})};ea.displayName=Zr;var Zn="DialogOverlay",ta=h.forwardRef((e,t)=>{const n=Js(Zn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ie(Zn,e.__scopeDialog);return i.modal?T.jsx(_n,{present:r||i.open,children:T.jsx(tp,{...o,ref:t})}):null});ta.displayName=Zn;var ep=Ln("DialogOverlay.RemoveScroll"),tp=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(Zn,n);return T.jsx(Ys,{as:ep,allowPinchZoom:!0,shards:[o.contentRef],children:T.jsx(ge.div,{"data-state":qr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),gt="DialogContent",na=h.forwardRef((e,t)=>{const n=Js(gt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ie(gt,e.__scopeDialog);return T.jsx(_n,{present:r||i.open,children:i.modal?T.jsx(np,{...o,ref:t}):T.jsx(rp,{...o,ref:t})})});na.displayName=gt;var np=h.forwardRef((e,t)=>{const n=Ie(gt,e.__scopeDialog),r=h.useRef(null),o=Se(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return Xh(i)},[]),T.jsx(ra,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nt(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:nt(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:nt(e.onFocusOutside,i=>i.preventDefault())})}),rp=h.forwardRef((e,t)=>{const n=Ie(gt,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return T.jsx(ra,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),ra=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Ie(gt,n),c=h.useRef(null),l=Se(t,c);return ch(),T.jsxs(T.Fragment,{children:[T.jsx(ks,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:T.jsx(Ps,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":qr(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),T.jsxs(T.Fragment,{children:[T.jsx(ip,{titleId:a.titleId}),T.jsx(ap,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Xr="DialogTitle",oa=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(Xr,n);return T.jsx(ge.h2,{id:o.titleId,...r,ref:t})});oa.displayName=Xr;var ia="DialogDescription",sa=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(ia,n);return T.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});sa.displayName=ia;var aa="DialogClose",op=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ie(aa,n);return T.jsx(ge.button,{type:"button",...r,ref:t,onClick:nt(e.onClick,()=>o.onOpenChange(!1))})});op.displayName=aa;function qr(e){return e?"open":"closed"}var ca="DialogTitleWarning",[bx,la]=kf(ca,{contentName:gt,titleName:Xr,docsSlug:"dialog"}),ip=({titleId:e})=>{const t=la(ca),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
59
+ `;function Es({children:e,imageSRC:t}){return b.jsxs("div",{className:Kf,children:[t&&b.jsx("div",{className:Gf,style:{backgroundImage:`url("${t}")`}}),e]})}const Yf=`
60
+ p-1 rounded-full inline-flex items-center justify-center transition-colors
100
61
 
101
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
62
+ bg-[var(--background)]
63
+ group-hover/color-icon:bg-[var(--fill)]
64
+ group-data-[is-active=true]/color-icon:bg-[var(--fill)]
102
65
 
103
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},sp="DialogDescriptionWarning",ap=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${la(sp).contentName}}.`;return h.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},cp=qs,lp=ea,up=ta,dp=na,fp=oa,hp=sa;const pp=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),h.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),mp=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),h.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),gp=new Map([["bold",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",h.createElement(h.Fragment,null,h.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),h.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",h.createElement(h.Fragment,null,h.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",h.createElement(h.Fragment,null,h.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",h.createElement(h.Fragment,null,h.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",h.createElement(h.Fragment,null,h.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),yp=E.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Xn=h.forwardRef((e,t)=>{const{alt:n,color:r,size:o,weight:i,mirrored:s,children:a,weights:c,...l}=e,{color:u="currentColor",size:d,weight:f="regular",mirrored:p=!1,...y}=h.useContext(yp);return h.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:o??d,height:o??d,fill:r??u,viewBox:"0 0 256 256",transform:s||p?"scale(-1, 1)":void 0,...y,...l},!!n&&h.createElement("title",null,n),a,c.get(i??f))});Xn.displayName="IconBase";const ua=h.forwardRef((e,t)=>h.createElement(Xn,{ref:t,...e,weights:pp}));ua.displayName="CheckIcon";const da=h.forwardRef((e,t)=>h.createElement(Xn,{ref:t,...e,weights:mp}));da.displayName="SpinnerIcon";const qn=h.forwardRef((e,t)=>h.createElement(Xn,{ref:t,...e,weights:gp}));qn.displayName="XIcon";const vp="fixed inset-0 bg-black/50 data-[state=open]:animate-overlayShow z-10",bp=`
104
- fixed left-1/2 top-1/2 z-10
105
- -translate-x-1/2 -translate-y-1/2
106
- shadow-lg focus:outline-none
66
+ sm:p-1.5
67
+ `,Xf=`
68
+ w-3.5 h-3.5 transition-colors
107
69
 
108
- data-[state=open]:animate-contentShow
109
- `,wp="flex flex-col gap-y-6 whitespace-pre-line",Tp="flex items-center justify-between m-0 text-2xl text-gray-800",Ep="m-0",xp="h-8 w-8 cursor-pointer transition-colors hover:bg-gray-200 rounded-full flex items-center justify-center",Sp="flex justify-end gap-2",Ap=({title:e,description:t,isOpen:n,children:r,onClose:o})=>T.jsx(cp,{open:n,children:T.jsxs(lp,{children:[T.jsx(up,{className:vp}),T.jsx(dp,{className:bp,children:T.jsx(ws,{children:T.jsxs("div",{className:wp,children:[T.jsxs(fp,{className:Tp,children:[T.jsx("span",{children:e}),T.jsx(qn,{size:32,className:xp,onClick:o})]}),T.jsx(hp,{className:Ep,children:t}),T.jsx("div",{className:Sp,children:r})]})})})]})});function Cp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fa={exports:{}},le=fa.exports={},Le,_e;function Qr(){throw new Error("setTimeout has not been defined")}function Jr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Le=setTimeout:Le=Qr}catch{Le=Qr}try{typeof clearTimeout=="function"?_e=clearTimeout:_e=Jr}catch{_e=Jr}})();function ha(e){if(Le===setTimeout)return setTimeout(e,0);if((Le===Qr||!Le)&&setTimeout)return Le=setTimeout,setTimeout(e,0);try{return Le(e,0)}catch{try{return Le.call(null,e,0)}catch{return Le.call(this,e,0)}}}function Pp(e){if(_e===clearTimeout)return clearTimeout(e);if((_e===Jr||!_e)&&clearTimeout)return _e=clearTimeout,clearTimeout(e);try{return _e(e)}catch{try{return _e.call(null,e)}catch{return _e.call(this,e)}}}var Ke=[],Ut=!1,yt,Qn=-1;function Mp(){!Ut||!yt||(Ut=!1,yt.length?Ke=yt.concat(Ke):Qn=-1,Ke.length&&pa())}function pa(){if(!Ut){var e=ha(Mp);Ut=!0;for(var t=Ke.length;t;){for(yt=Ke,Ke=[];++Qn<t;)yt&&yt[Qn].run();Qn=-1,t=Ke.length}yt=null,Ut=!1,Pp(e)}}le.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ke.push(new ma(e,t)),Ke.length===1&&!Ut&&ha(pa)};function ma(e,t){this.fun=e,this.array=t}ma.prototype.run=function(){this.fun.apply(null,this.array)},le.title="browser",le.browser=!0,le.env={},le.argv=[],le.version="",le.versions={};function He(){}le.on=He,le.addListener=He,le.once=He,le.off=He,le.removeListener=He,le.removeAllListeners=He,le.emit=He,le.prependListener=He,le.prependOnceListener=He,le.listeners=function(e){return[]},le.binding=function(e){throw new Error("process.binding is not supported")},le.cwd=function(){return"/"},le.chdir=function(e){throw new Error("process.chdir is not supported")},le.umask=function(){return 0};var Dp=fa.exports;const z=Cp(Dp);var Op=function(t){return kp(t)&&!Fp(t)};function kp(e){return!!e&&typeof e=="object"}function Fp(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Np(e)}var Rp=typeof Symbol=="function"&&Symbol.for,Ip=Rp?Symbol.for("react.element"):60103;function Np(e){return e.$$typeof===Ip}function Vp(e){return Array.isArray(e)?[]:{}}function Jn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?cn(Vp(e),e,t):e}function Lp(e,t,n){return e.concat(t).map(function(r){return Jn(r,n)})}function _p(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=Jn(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=Jn(t[o],n):r[o]=cn(e[o],t[o],n)}),r}function cn(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Lp,n.isMergeableObject=n.isMergeableObject||Op;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):_p(e,t,n):Jn(t,n)}cn.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return cn(r,o,n)},{})};var eo=cn;const er=globalThis||void 0||self;var ga=typeof er=="object"&&er&&er.Object===Object&&er,jp=typeof self=="object"&&self&&self.Object===Object&&self,je=ga||jp||Function("return this")(),st=je.Symbol,ya=Object.prototype,Bp=ya.hasOwnProperty,Up=ya.toString,ln=st?st.toStringTag:void 0;function $p(e){var t=Bp.call(e,ln),n=e[ln];try{e[ln]=void 0;var r=!0}catch{}var o=Up.call(e);return r&&(t?e[ln]=n:delete e[ln]),o}var Wp=Object.prototype,zp=Wp.toString;function Kp(e){return zp.call(e)}var Hp="[object Null]",Gp="[object Undefined]",va=st?st.toStringTag:void 0;function vt(e){return e==null?e===void 0?Gp:Hp:va&&va in Object(e)?$p(e):Kp(e)}function ba(e,t){return function(n){return e(t(n))}}var to=ba(Object.getPrototypeOf,Object);function bt(e){return e!=null&&typeof e=="object"}var Yp="[object Object]",Zp=Function.prototype,Xp=Object.prototype,wa=Zp.toString,qp=Xp.hasOwnProperty,Qp=wa.call(Object);function Ta(e){if(!bt(e)||vt(e)!=Yp)return!1;var t=to(e);if(t===null)return!0;var n=qp.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&wa.call(n)==Qp}function Jp(){this.__data__=[],this.size=0}function Ea(e,t){return e===t||e!==e&&t!==t}function tr(e,t){for(var n=e.length;n--;)if(Ea(e[n][0],t))return n;return-1}var em=Array.prototype,tm=em.splice;function nm(e){var t=this.__data__,n=tr(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():tm.call(t,n,1),--this.size,!0}function rm(e){var t=this.__data__,n=tr(t,e);return n<0?void 0:t[n][1]}function om(e){return tr(this.__data__,e)>-1}function im(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ge(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ge.prototype.clear=Jp,Ge.prototype.delete=nm,Ge.prototype.get=rm,Ge.prototype.has=om,Ge.prototype.set=im;function sm(){this.__data__=new Ge,this.size=0}function am(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function cm(e){return this.__data__.get(e)}function lm(e){return this.__data__.has(e)}function un(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var um="[object AsyncFunction]",dm="[object Function]",fm="[object GeneratorFunction]",hm="[object Proxy]";function xa(e){if(!un(e))return!1;var t=vt(e);return t==dm||t==fm||t==um||t==hm}var no=je["__core-js_shared__"],Sa=function(){var e=/[^.]+$/.exec(no&&no.keys&&no.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pm(e){return!!Sa&&Sa in e}var mm=Function.prototype,gm=mm.toString;function wt(e){if(e!=null){try{return gm.call(e)}catch{}try{return e+""}catch{}}return""}var ym=/[\\^$.*+?()[\]{}|]/g,vm=/^\[object .+?Constructor\]$/,bm=Function.prototype,wm=Object.prototype,Tm=bm.toString,Em=wm.hasOwnProperty,xm=RegExp("^"+Tm.call(Em).replace(ym,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sm(e){if(!un(e)||pm(e))return!1;var t=xa(e)?xm:vm;return t.test(wt(e))}function Am(e,t){return e==null?void 0:e[t]}function Tt(e,t){var n=Am(e,t);return Sm(n)?n:void 0}var dn=Tt(je,"Map"),fn=Tt(Object,"create");function Cm(){this.__data__=fn?fn(null):{},this.size=0}function Pm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Mm="__lodash_hash_undefined__",Dm=Object.prototype,Om=Dm.hasOwnProperty;function km(e){var t=this.__data__;if(fn){var n=t[e];return n===Mm?void 0:n}return Om.call(t,e)?t[e]:void 0}var Fm=Object.prototype,Rm=Fm.hasOwnProperty;function Im(e){var t=this.__data__;return fn?t[e]!==void 0:Rm.call(t,e)}var Nm="__lodash_hash_undefined__";function Vm(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=fn&&t===void 0?Nm:t,this}function Et(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Et.prototype.clear=Cm,Et.prototype.delete=Pm,Et.prototype.get=km,Et.prototype.has=Im,Et.prototype.set=Vm;function Lm(){this.size=0,this.__data__={hash:new Et,map:new(dn||Ge),string:new Et}}function _m(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function nr(e,t){var n=e.__data__;return _m(t)?n[typeof t=="string"?"string":"hash"]:n.map}function jm(e){var t=nr(this,e).delete(e);return this.size-=t?1:0,t}function Bm(e){return nr(this,e).get(e)}function Um(e){return nr(this,e).has(e)}function $m(e,t){var n=nr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function at(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}at.prototype.clear=Lm,at.prototype.delete=jm,at.prototype.get=Bm,at.prototype.has=Um,at.prototype.set=$m;var Wm=200;function zm(e,t){var n=this.__data__;if(n instanceof Ge){var r=n.__data__;if(!dn||r.length<Wm-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new at(r)}return n.set(e,t),this.size=n.size,this}function $t(e){var t=this.__data__=new Ge(e);this.size=t.size}$t.prototype.clear=sm,$t.prototype.delete=am,$t.prototype.get=cm,$t.prototype.has=lm,$t.prototype.set=zm;function Km(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Aa=function(){try{var e=Tt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ca(e,t,n){t=="__proto__"&&Aa?Aa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Hm=Object.prototype,Gm=Hm.hasOwnProperty;function Pa(e,t,n){var r=e[t];(!(Gm.call(e,t)&&Ea(r,n))||n===void 0&&!(t in e))&&Ca(e,t,n)}function rr(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=void 0;c===void 0&&(c=e[a]),o?Ca(n,a,c):Pa(n,a,c)}return n}function Ym(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Zm="[object Arguments]";function Ma(e){return bt(e)&&vt(e)==Zm}var Da=Object.prototype,Xm=Da.hasOwnProperty,qm=Da.propertyIsEnumerable,Qm=Ma(function(){return arguments}())?Ma:function(e){return bt(e)&&Xm.call(e,"callee")&&!qm.call(e,"callee")},hn=Array.isArray;function Jm(){return!1}var Oa=typeof Y=="object"&&Y&&!Y.nodeType&&Y,ka=Oa&&typeof module=="object"&&module&&!module.nodeType&&module,eg=ka&&ka.exports===Oa,Fa=eg?je.Buffer:void 0,tg=Fa?Fa.isBuffer:void 0,Ra=tg||Jm,ng=9007199254740991,rg=/^(?:0|[1-9]\d*)$/;function og(e,t){var n=typeof e;return t=t??ng,!!t&&(n=="number"||n!="symbol"&&rg.test(e))&&e>-1&&e%1==0&&e<t}var ig=9007199254740991;function Ia(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ig}var sg="[object Arguments]",ag="[object Array]",cg="[object Boolean]",lg="[object Date]",ug="[object Error]",dg="[object Function]",fg="[object Map]",hg="[object Number]",pg="[object Object]",mg="[object RegExp]",gg="[object Set]",yg="[object String]",vg="[object WeakMap]",bg="[object ArrayBuffer]",wg="[object DataView]",Tg="[object Float32Array]",Eg="[object Float64Array]",xg="[object Int8Array]",Sg="[object Int16Array]",Ag="[object Int32Array]",Cg="[object Uint8Array]",Pg="[object Uint8ClampedArray]",Mg="[object Uint16Array]",Dg="[object Uint32Array]",q={};q[Tg]=q[Eg]=q[xg]=q[Sg]=q[Ag]=q[Cg]=q[Pg]=q[Mg]=q[Dg]=!0,q[sg]=q[ag]=q[bg]=q[cg]=q[wg]=q[lg]=q[ug]=q[dg]=q[fg]=q[hg]=q[pg]=q[mg]=q[gg]=q[yg]=q[vg]=!1;function Og(e){return bt(e)&&Ia(e.length)&&!!q[vt(e)]}function ro(e){return function(t){return e(t)}}var Na=typeof Y=="object"&&Y&&!Y.nodeType&&Y,pn=Na&&typeof module=="object"&&module&&!module.nodeType&&module,kg=pn&&pn.exports===Na,oo=kg&&ga.process,Wt=function(){try{var e=pn&&pn.require&&pn.require("util").types;return e||oo&&oo.binding&&oo.binding("util")}catch{}}(),Va=Wt&&Wt.isTypedArray,Fg=Va?ro(Va):Og,Rg=Object.prototype,Ig=Rg.hasOwnProperty;function La(e,t){var n=hn(e),r=!n&&Qm(e),o=!n&&!r&&Ra(e),i=!n&&!r&&!o&&Fg(e),s=n||r||o||i,a=s?Ym(e.length,String):[],c=a.length;for(var l in e)(t||Ig.call(e,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||og(l,c)))&&a.push(l);return a}var Ng=Object.prototype;function io(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ng;return e===n}var Vg=ba(Object.keys,Object),Lg=Object.prototype,_g=Lg.hasOwnProperty;function jg(e){if(!io(e))return Vg(e);var t=[];for(var n in Object(e))_g.call(e,n)&&n!="constructor"&&t.push(n);return t}function _a(e){return e!=null&&Ia(e.length)&&!xa(e)}function so(e){return _a(e)?La(e):jg(e)}function Bg(e,t){return e&&rr(t,so(t),e)}function Ug(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var $g=Object.prototype,Wg=$g.hasOwnProperty;function zg(e){if(!un(e))return Ug(e);var t=io(e),n=[];for(var r in e)r=="constructor"&&(t||!Wg.call(e,r))||n.push(r);return n}function ao(e){return _a(e)?La(e,!0):zg(e)}function Kg(e,t){return e&&rr(t,ao(t),e)}var ja=typeof Y=="object"&&Y&&!Y.nodeType&&Y,Ba=ja&&typeof module=="object"&&module&&!module.nodeType&&module,Hg=Ba&&Ba.exports===ja,Ua=Hg?je.Buffer:void 0,$a=Ua?Ua.allocUnsafe:void 0;function Gg(e,t){if(t)return e.slice();var n=e.length,r=$a?$a(n):new e.constructor(n);return e.copy(r),r}function Wa(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Yg(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function za(){return[]}var Zg=Object.prototype,Xg=Zg.propertyIsEnumerable,Ka=Object.getOwnPropertySymbols,co=Ka?function(e){return e==null?[]:(e=Object(e),Yg(Ka(e),function(t){return Xg.call(e,t)}))}:za;function qg(e,t){return rr(e,co(e),t)}function Ha(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Qg=Object.getOwnPropertySymbols,Ga=Qg?function(e){for(var t=[];e;)Ha(t,co(e)),e=to(e);return t}:za;function Jg(e,t){return rr(e,Ga(e),t)}function Ya(e,t,n){var r=t(e);return hn(e)?r:Ha(r,n(e))}function ey(e){return Ya(e,so,co)}function ty(e){return Ya(e,ao,Ga)}var lo=Tt(je,"DataView"),uo=Tt(je,"Promise"),fo=Tt(je,"Set"),ho=Tt(je,"WeakMap"),Za="[object Map]",ny="[object Object]",Xa="[object Promise]",qa="[object Set]",Qa="[object WeakMap]",Ja="[object DataView]",ry=wt(lo),oy=wt(dn),iy=wt(uo),sy=wt(fo),ay=wt(ho),Ye=vt;(lo&&Ye(new lo(new ArrayBuffer(1)))!=Ja||dn&&Ye(new dn)!=Za||uo&&Ye(uo.resolve())!=Xa||fo&&Ye(new fo)!=qa||ho&&Ye(new ho)!=Qa)&&(Ye=function(e){var t=vt(e),n=t==ny?e.constructor:void 0,r=n?wt(n):"";if(r)switch(r){case ry:return Ja;case oy:return Za;case iy:return Xa;case sy:return qa;case ay:return Qa}return t});var cy=Object.prototype,ly=cy.hasOwnProperty;function uy(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ly.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ec=je.Uint8Array;function po(e){var t=new e.constructor(e.byteLength);return new ec(t).set(new ec(e)),t}function dy(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var fy=/\w*$/;function hy(e){var t=new e.constructor(e.source,fy.exec(e));return t.lastIndex=e.lastIndex,t}var tc=st?st.prototype:void 0,nc=tc?tc.valueOf:void 0;function py(e){return nc?Object(nc.call(e)):{}}function my(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var gy="[object Boolean]",yy="[object Date]",vy="[object Map]",by="[object Number]",wy="[object RegExp]",Ty="[object Set]",Ey="[object String]",xy="[object Symbol]",Sy="[object ArrayBuffer]",Ay="[object DataView]",Cy="[object Float32Array]",Py="[object Float64Array]",My="[object Int8Array]",Dy="[object Int16Array]",Oy="[object Int32Array]",ky="[object Uint8Array]",Fy="[object Uint8ClampedArray]",Ry="[object Uint16Array]",Iy="[object Uint32Array]";function Ny(e,t,n){var r=e.constructor;switch(t){case Sy:return po(e);case gy:case yy:return new r(+e);case Ay:return dy(e,n);case Cy:case Py:case My:case Dy:case Oy:case ky:case Fy:case Ry:case Iy:return my(e,n);case vy:return new r;case by:case Ey:return new r(e);case wy:return hy(e);case Ty:return new r;case xy:return py(e)}}var rc=Object.create,Vy=function(){function e(){}return function(t){if(!un(t))return{};if(rc)return rc(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ly(e){return typeof e.constructor=="function"&&!io(e)?Vy(to(e)):{}}var _y="[object Map]";function jy(e){return bt(e)&&Ye(e)==_y}var oc=Wt&&Wt.isMap,By=oc?ro(oc):jy,Uy="[object Set]";function $y(e){return bt(e)&&Ye(e)==Uy}var ic=Wt&&Wt.isSet,Wy=ic?ro(ic):$y,zy=1,Ky=2,Hy=4,sc="[object Arguments]",Gy="[object Array]",Yy="[object Boolean]",Zy="[object Date]",Xy="[object Error]",ac="[object Function]",qy="[object GeneratorFunction]",Qy="[object Map]",Jy="[object Number]",cc="[object Object]",ev="[object RegExp]",tv="[object Set]",nv="[object String]",rv="[object Symbol]",ov="[object WeakMap]",iv="[object ArrayBuffer]",sv="[object DataView]",av="[object Float32Array]",cv="[object Float64Array]",lv="[object Int8Array]",uv="[object Int16Array]",dv="[object Int32Array]",fv="[object Uint8Array]",hv="[object Uint8ClampedArray]",pv="[object Uint16Array]",mv="[object Uint32Array]",X={};X[sc]=X[Gy]=X[iv]=X[sv]=X[Yy]=X[Zy]=X[av]=X[cv]=X[lv]=X[uv]=X[dv]=X[Qy]=X[Jy]=X[cc]=X[ev]=X[tv]=X[nv]=X[rv]=X[fv]=X[hv]=X[pv]=X[mv]=!0,X[Xy]=X[ac]=X[ov]=!1;function mn(e,t,n,r,o,i){var s,a=t&zy,c=t&Ky,l=t&Hy;if(s!==void 0)return s;if(!un(e))return e;var u=hn(e);if(u){if(s=uy(e),!a)return Wa(e,s)}else{var d=Ye(e),f=d==ac||d==qy;if(Ra(e))return Gg(e,a);if(d==cc||d==sc||f&&!o){if(s=c||f?{}:Ly(e),!a)return c?Jg(e,Kg(s,e)):qg(e,Bg(s,e))}else{if(!X[d])return o?e:{};s=Ny(e,d,a)}}i||(i=new $t);var p=i.get(e);if(p)return p;i.set(e,s),Wy(e)?e.forEach(function(g){s.add(mn(g,t,n,g,e,i))}):By(e)&&e.forEach(function(g,v){s.set(v,mn(g,t,n,v,e,i))});var y=l?c?ty:ey:c?ao:so,m=u?void 0:y(e);return Km(m||e,function(g,v){m&&(v=g,g=e[v]),Pa(s,v,mn(g,t,n,v,e,i))}),s}var gv=1,yv=4;function gn(e){return mn(e,gv|yv)}function lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mo,uc;function vv(){if(uc)return mo;uc=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function o(i,s){if(i===s)return!0;if(i&&s&&typeof i=="object"&&typeof s=="object"){var a=e(i),c=e(s),l,u,d;if(a&&c){if(u=i.length,u!=s.length)return!1;for(l=u;l--!==0;)if(!o(i[l],s[l]))return!1;return!0}if(a!=c)return!1;var f=i instanceof Date,p=s instanceof Date;if(f!=p)return!1;if(f&&p)return i.getTime()==s.getTime();var y=i instanceof RegExp,m=s instanceof RegExp;if(y!=m)return!1;if(y&&m)return i.toString()==s.toString();var g=t(i);if(u=g.length,u!==t(s).length)return!1;for(l=u;l--!==0;)if(!n.call(s,g[l]))return!1;if(r&&i instanceof Element&&s instanceof Element)return i===s;for(l=u;l--!==0;)if(d=g[l],!(d==="_owner"&&i.$$typeof)&&!o(i[d],s[d]))return!1;return!0}return i!==i&&s!==s}return mo=function(s,a){try{return o(s,a)}catch(c){if(c.message&&c.message.match(/stack|recursion/i)||c.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",c.name,c.message),!1;throw c}},mo}var bv=vv();const ct=lc(bv);var wv=z.env.NODE_ENV==="production";function ae(e,t){if(!wv){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var Tv=4;function dc(e){return mn(e,Tv)}function fc(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Ev="[object Symbol]";function go(e){return typeof e=="symbol"||bt(e)&&vt(e)==Ev}var xv="Expected a function";function yo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xv);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(yo.Cache||at),n}yo.Cache=at;var Sv=500;function Av(e){var t=yo(e,function(r){return n.size===Sv&&n.clear(),r}),n=t.cache;return t}var Cv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pv=/\\(\\)?/g,Mv=Av(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Cv,function(n,r,o,i){t.push(o?i.replace(Pv,"$1"):r||n)}),t});function Dv(e){if(typeof e=="string"||go(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var hc=st?st.prototype:void 0,pc=hc?hc.toString:void 0;function mc(e){if(typeof e=="string")return e;if(hn(e))return fc(e,mc)+"";if(go(e))return pc?pc.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ov(e){return e==null?"":mc(e)}function gc(e){return hn(e)?fc(e,Dv):go(e)?[e]:Wa(Mv(Ov(e)))}var or={exports:{}},K={};/** @license React v16.13.1
70
+ fill-[var(--fill)]
71
+ group-hover/color-icon:fill-base-white
72
+ group-data-[is-active=true]/color-icon:fill-base-white
73
+ `;function xs({element:e,backgroundColor:t="gray",fillColor:n="black"}){return b.jsx("span",{className:Yf,"data-testid":"icon-background","data-background-color":t,"data-fill-color":n,style:{"--background":t,"--fill":n},children:E.cloneElement(e,{className:Xf,"aria-hidden":"true","data-testid":"icon"})})}function qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ss={exports:{}},le=Ss.exports={},Re,_e;function Lr(){throw new Error("setTimeout has not been defined")}function Rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Re=setTimeout:Re=Lr}catch{Re=Lr}try{typeof clearTimeout=="function"?_e=clearTimeout:_e=Rr}catch{_e=Rr}})();function As(e){if(Re===setTimeout)return setTimeout(e,0);if((Re===Lr||!Re)&&setTimeout)return Re=setTimeout,setTimeout(e,0);try{return Re(e,0)}catch{try{return Re.call(null,e,0)}catch{return Re.call(this,e,0)}}}function Qf(e){if(_e===clearTimeout)return clearTimeout(e);if((_e===Rr||!_e)&&clearTimeout)return _e=clearTimeout,clearTimeout(e);try{return _e(e)}catch{try{return _e.call(null,e)}catch{return _e.call(this,e)}}}var Ze=[],_t=!1,yt,jn=-1;function Jf(){!_t||!yt||(_t=!1,yt.length?Ze=yt.concat(Ze):jn=-1,Ze.length&&Cs())}function Cs(){if(!_t){var e=As(Jf);_t=!0;for(var t=Ze.length;t;){for(yt=Ze,Ze=[];++jn<t;)yt&&yt[jn].run();jn=-1,t=Ze.length}yt=null,_t=!1,Qf(e)}}le.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ze.push(new Ps(e,t)),Ze.length===1&&!_t&&As(Cs)};function Ps(e,t){this.fun=e,this.array=t}Ps.prototype.run=function(){this.fun.apply(null,this.array)},le.title="browser",le.browser=!0,le.env={},le.argv=[],le.version="",le.versions={};function He(){}le.on=He,le.addListener=He,le.once=He,le.off=He,le.removeListener=He,le.removeAllListeners=He,le.emit=He,le.prependListener=He,le.prependOnceListener=He,le.listeners=function(e){return[]},le.binding=function(e){throw new Error("process.binding is not supported")},le.cwd=function(){return"/"},le.chdir=function(e){throw new Error("process.chdir is not supported")},le.umask=function(){return 0};var eh=Ss.exports;const z=qf(eh);var th=function(t){return nh(t)&&!rh(t)};function nh(e){return!!e&&typeof e=="object"}function rh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||sh(e)}var oh=typeof Symbol=="function"&&Symbol.for,ih=oh?Symbol.for("react.element"):60103;function sh(e){return e.$$typeof===ih}function ah(e){return Array.isArray(e)?[]:{}}function Bn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?un(ah(e),e,t):e}function ch(e,t,n){return e.concat(t).map(function(r){return Bn(r,n)})}function lh(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=Bn(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=Bn(t[o],n):r[o]=un(e[o],t[o],n)}),r}function un(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ch,n.isMergeableObject=n.isMergeableObject||th;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):lh(e,t,n):Bn(t,n)}un.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return un(r,o,n)},{})};var _r=un;const Un=globalThis||void 0||self;var Ms=typeof Un=="object"&&Un&&Un.Object===Object&&Un,uh=typeof self=="object"&&self&&self.Object===Object&&self,je=Ms||uh||Function("return this")(),nt=je.Symbol,Ds=Object.prototype,dh=Ds.hasOwnProperty,fh=Ds.toString,dn=nt?nt.toStringTag:void 0;function hh(e){var t=dh.call(e,dn),n=e[dn];try{e[dn]=void 0;var r=!0}catch{}var o=fh.call(e);return r&&(t?e[dn]=n:delete e[dn]),o}var ph=Object.prototype,mh=ph.toString;function gh(e){return mh.call(e)}var yh="[object Null]",vh="[object Undefined]",Os=nt?nt.toStringTag:void 0;function vt(e){return e==null?e===void 0?vh:yh:Os&&Os in Object(e)?hh(e):gh(e)}function Vs(e,t){return function(n){return e(t(n))}}var jr=Vs(Object.getPrototypeOf,Object);function bt(e){return e!=null&&typeof e=="object"}var bh="[object Object]",wh=Function.prototype,Th=Object.prototype,Fs=wh.toString,Eh=Th.hasOwnProperty,xh=Fs.call(Object);function ks(e){if(!bt(e)||vt(e)!=bh)return!1;var t=jr(e);if(t===null)return!0;var n=Eh.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fs.call(n)==xh}function Sh(){this.__data__=[],this.size=0}function Is(e,t){return e===t||e!==e&&t!==t}function $n(e,t){for(var n=e.length;n--;)if(Is(e[n][0],t))return n;return-1}var Ah=Array.prototype,Ch=Ah.splice;function Ph(e){var t=this.__data__,n=$n(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ch.call(t,n,1),--this.size,!0}function Mh(e){var t=this.__data__,n=$n(t,e);return n<0?void 0:t[n][1]}function Dh(e){return $n(this.__data__,e)>-1}function Oh(e,t){var n=this.__data__,r=$n(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ke.prototype.clear=Sh,Ke.prototype.delete=Ph,Ke.prototype.get=Mh,Ke.prototype.has=Dh,Ke.prototype.set=Oh;function Vh(){this.__data__=new Ke,this.size=0}function Fh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function kh(e){return this.__data__.get(e)}function Ih(e){return this.__data__.has(e)}function fn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nh="[object AsyncFunction]",Lh="[object Function]",Rh="[object GeneratorFunction]",_h="[object Proxy]";function Ns(e){if(!fn(e))return!1;var t=vt(e);return t==Lh||t==Rh||t==Nh||t==_h}var Br=je["__core-js_shared__"],Ls=function(){var e=/[^.]+$/.exec(Br&&Br.keys&&Br.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jh(e){return!!Ls&&Ls in e}var Bh=Function.prototype,Uh=Bh.toString;function wt(e){if(e!=null){try{return Uh.call(e)}catch{}try{return e+""}catch{}}return""}var $h=/[\\^$.*+?()[\]{}|]/g,Wh=/^\[object .+?Constructor\]$/,zh=Function.prototype,Zh=Object.prototype,Hh=zh.toString,Kh=Zh.hasOwnProperty,Gh=RegExp("^"+Hh.call(Kh).replace($h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Yh(e){if(!fn(e)||jh(e))return!1;var t=Ns(e)?Gh:Wh;return t.test(wt(e))}function Xh(e,t){return e==null?void 0:e[t]}function Tt(e,t){var n=Xh(e,t);return Yh(n)?n:void 0}var hn=Tt(je,"Map"),pn=Tt(Object,"create");function qh(){this.__data__=pn?pn(null):{},this.size=0}function Qh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Jh="__lodash_hash_undefined__",ep=Object.prototype,tp=ep.hasOwnProperty;function np(e){var t=this.__data__;if(pn){var n=t[e];return n===Jh?void 0:n}return tp.call(t,e)?t[e]:void 0}var rp=Object.prototype,op=rp.hasOwnProperty;function ip(e){var t=this.__data__;return pn?t[e]!==void 0:op.call(t,e)}var sp="__lodash_hash_undefined__";function ap(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pn&&t===void 0?sp:t,this}function Et(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Et.prototype.clear=qh,Et.prototype.delete=Qh,Et.prototype.get=np,Et.prototype.has=ip,Et.prototype.set=ap;function cp(){this.size=0,this.__data__={hash:new Et,map:new(hn||Ke),string:new Et}}function lp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wn(e,t){var n=e.__data__;return lp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function up(e){var t=Wn(this,e).delete(e);return this.size-=t?1:0,t}function dp(e){return Wn(this,e).get(e)}function fp(e){return Wn(this,e).has(e)}function hp(e,t){var n=Wn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function rt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rt.prototype.clear=cp,rt.prototype.delete=up,rt.prototype.get=dp,rt.prototype.has=fp,rt.prototype.set=hp;var pp=200;function mp(e,t){var n=this.__data__;if(n instanceof Ke){var r=n.__data__;if(!hn||r.length<pp-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new rt(r)}return n.set(e,t),this.size=n.size,this}function jt(e){var t=this.__data__=new Ke(e);this.size=t.size}jt.prototype.clear=Vh,jt.prototype.delete=Fh,jt.prototype.get=kh,jt.prototype.has=Ih,jt.prototype.set=mp;function gp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Rs=function(){try{var e=Tt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function _s(e,t,n){t=="__proto__"&&Rs?Rs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var yp=Object.prototype,vp=yp.hasOwnProperty;function js(e,t,n){var r=e[t];(!(vp.call(e,t)&&Is(r,n))||n===void 0&&!(t in e))&&_s(e,t,n)}function zn(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=void 0;c===void 0&&(c=e[a]),o?_s(n,a,c):js(n,a,c)}return n}function bp(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var wp="[object Arguments]";function Bs(e){return bt(e)&&vt(e)==wp}var Us=Object.prototype,Tp=Us.hasOwnProperty,Ep=Us.propertyIsEnumerable,xp=Bs(function(){return arguments}())?Bs:function(e){return bt(e)&&Tp.call(e,"callee")&&!Ep.call(e,"callee")},mn=Array.isArray;function Sp(){return!1}var $s=typeof K=="object"&&K&&!K.nodeType&&K,Ws=$s&&typeof module=="object"&&module&&!module.nodeType&&module,Ap=Ws&&Ws.exports===$s,zs=Ap?je.Buffer:void 0,Cp=zs?zs.isBuffer:void 0,Zs=Cp||Sp,Pp=9007199254740991,Mp=/^(?:0|[1-9]\d*)$/;function Dp(e,t){var n=typeof e;return t=t??Pp,!!t&&(n=="number"||n!="symbol"&&Mp.test(e))&&e>-1&&e%1==0&&e<t}var Op=9007199254740991;function Hs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Op}var Vp="[object Arguments]",Fp="[object Array]",kp="[object Boolean]",Ip="[object Date]",Np="[object Error]",Lp="[object Function]",Rp="[object Map]",_p="[object Number]",jp="[object Object]",Bp="[object RegExp]",Up="[object Set]",$p="[object String]",Wp="[object WeakMap]",zp="[object ArrayBuffer]",Zp="[object DataView]",Hp="[object Float32Array]",Kp="[object Float64Array]",Gp="[object Int8Array]",Yp="[object Int16Array]",Xp="[object Int32Array]",qp="[object Uint8Array]",Qp="[object Uint8ClampedArray]",Jp="[object Uint16Array]",em="[object Uint32Array]",q={};q[Hp]=q[Kp]=q[Gp]=q[Yp]=q[Xp]=q[qp]=q[Qp]=q[Jp]=q[em]=!0,q[Vp]=q[Fp]=q[zp]=q[kp]=q[Zp]=q[Ip]=q[Np]=q[Lp]=q[Rp]=q[_p]=q[jp]=q[Bp]=q[Up]=q[$p]=q[Wp]=!1;function tm(e){return bt(e)&&Hs(e.length)&&!!q[vt(e)]}function Ur(e){return function(t){return e(t)}}var Ks=typeof K=="object"&&K&&!K.nodeType&&K,gn=Ks&&typeof module=="object"&&module&&!module.nodeType&&module,nm=gn&&gn.exports===Ks,$r=nm&&Ms.process,Bt=function(){try{var e=gn&&gn.require&&gn.require("util").types;return e||$r&&$r.binding&&$r.binding("util")}catch{}}(),Gs=Bt&&Bt.isTypedArray,rm=Gs?Ur(Gs):tm,om=Object.prototype,im=om.hasOwnProperty;function Ys(e,t){var n=mn(e),r=!n&&xp(e),o=!n&&!r&&Zs(e),i=!n&&!r&&!o&&rm(e),s=n||r||o||i,a=s?bp(e.length,String):[],c=a.length;for(var l in e)(t||im.call(e,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Dp(l,c)))&&a.push(l);return a}var sm=Object.prototype;function Wr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||sm;return e===n}var am=Vs(Object.keys,Object),cm=Object.prototype,lm=cm.hasOwnProperty;function um(e){if(!Wr(e))return am(e);var t=[];for(var n in Object(e))lm.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xs(e){return e!=null&&Hs(e.length)&&!Ns(e)}function zr(e){return Xs(e)?Ys(e):um(e)}function dm(e,t){return e&&zn(t,zr(t),e)}function fm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var hm=Object.prototype,pm=hm.hasOwnProperty;function mm(e){if(!fn(e))return fm(e);var t=Wr(e),n=[];for(var r in e)r=="constructor"&&(t||!pm.call(e,r))||n.push(r);return n}function Zr(e){return Xs(e)?Ys(e,!0):mm(e)}function gm(e,t){return e&&zn(t,Zr(t),e)}var qs=typeof K=="object"&&K&&!K.nodeType&&K,Qs=qs&&typeof module=="object"&&module&&!module.nodeType&&module,ym=Qs&&Qs.exports===qs,Js=ym?je.Buffer:void 0,ea=Js?Js.allocUnsafe:void 0;function vm(e,t){if(t)return e.slice();var n=e.length,r=ea?ea(n):new e.constructor(n);return e.copy(r),r}function ta(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function bm(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function na(){return[]}var wm=Object.prototype,Tm=wm.propertyIsEnumerable,ra=Object.getOwnPropertySymbols,Hr=ra?function(e){return e==null?[]:(e=Object(e),bm(ra(e),function(t){return Tm.call(e,t)}))}:na;function Em(e,t){return zn(e,Hr(e),t)}function oa(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var xm=Object.getOwnPropertySymbols,ia=xm?function(e){for(var t=[];e;)oa(t,Hr(e)),e=jr(e);return t}:na;function Sm(e,t){return zn(e,ia(e),t)}function sa(e,t,n){var r=t(e);return mn(e)?r:oa(r,n(e))}function Am(e){return sa(e,zr,Hr)}function Cm(e){return sa(e,Zr,ia)}var Kr=Tt(je,"DataView"),Gr=Tt(je,"Promise"),Yr=Tt(je,"Set"),Xr=Tt(je,"WeakMap"),aa="[object Map]",Pm="[object Object]",ca="[object Promise]",la="[object Set]",ua="[object WeakMap]",da="[object DataView]",Mm=wt(Kr),Dm=wt(hn),Om=wt(Gr),Vm=wt(Yr),Fm=wt(Xr),Ge=vt;(Kr&&Ge(new Kr(new ArrayBuffer(1)))!=da||hn&&Ge(new hn)!=aa||Gr&&Ge(Gr.resolve())!=ca||Yr&&Ge(new Yr)!=la||Xr&&Ge(new Xr)!=ua)&&(Ge=function(e){var t=vt(e),n=t==Pm?e.constructor:void 0,r=n?wt(n):"";if(r)switch(r){case Mm:return da;case Dm:return aa;case Om:return ca;case Vm:return la;case Fm:return ua}return t});var km=Object.prototype,Im=km.hasOwnProperty;function Nm(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Im.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var fa=je.Uint8Array;function qr(e){var t=new e.constructor(e.byteLength);return new fa(t).set(new fa(e)),t}function Lm(e,t){var n=t?qr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Rm=/\w*$/;function _m(e){var t=new e.constructor(e.source,Rm.exec(e));return t.lastIndex=e.lastIndex,t}var ha=nt?nt.prototype:void 0,pa=ha?ha.valueOf:void 0;function jm(e){return pa?Object(pa.call(e)):{}}function Bm(e,t){var n=t?qr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Um="[object Boolean]",$m="[object Date]",Wm="[object Map]",zm="[object Number]",Zm="[object RegExp]",Hm="[object Set]",Km="[object String]",Gm="[object Symbol]",Ym="[object ArrayBuffer]",Xm="[object DataView]",qm="[object Float32Array]",Qm="[object Float64Array]",Jm="[object Int8Array]",eg="[object Int16Array]",tg="[object Int32Array]",ng="[object Uint8Array]",rg="[object Uint8ClampedArray]",og="[object Uint16Array]",ig="[object Uint32Array]";function sg(e,t,n){var r=e.constructor;switch(t){case Ym:return qr(e);case Um:case $m:return new r(+e);case Xm:return Lm(e,n);case qm:case Qm:case Jm:case eg:case tg:case ng:case rg:case og:case ig:return Bm(e,n);case Wm:return new r;case zm:case Km:return new r(e);case Zm:return _m(e);case Hm:return new r;case Gm:return jm(e)}}var ma=Object.create,ag=function(){function e(){}return function(t){if(!fn(t))return{};if(ma)return ma(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function cg(e){return typeof e.constructor=="function"&&!Wr(e)?ag(jr(e)):{}}var lg="[object Map]";function ug(e){return bt(e)&&Ge(e)==lg}var ga=Bt&&Bt.isMap,dg=ga?Ur(ga):ug,fg="[object Set]";function hg(e){return bt(e)&&Ge(e)==fg}var ya=Bt&&Bt.isSet,pg=ya?Ur(ya):hg,mg=1,gg=2,yg=4,va="[object Arguments]",vg="[object Array]",bg="[object Boolean]",wg="[object Date]",Tg="[object Error]",ba="[object Function]",Eg="[object GeneratorFunction]",xg="[object Map]",Sg="[object Number]",wa="[object Object]",Ag="[object RegExp]",Cg="[object Set]",Pg="[object String]",Mg="[object Symbol]",Dg="[object WeakMap]",Og="[object ArrayBuffer]",Vg="[object DataView]",Fg="[object Float32Array]",kg="[object Float64Array]",Ig="[object Int8Array]",Ng="[object Int16Array]",Lg="[object Int32Array]",Rg="[object Uint8Array]",_g="[object Uint8ClampedArray]",jg="[object Uint16Array]",Bg="[object Uint32Array]",X={};X[va]=X[vg]=X[Og]=X[Vg]=X[bg]=X[wg]=X[Fg]=X[kg]=X[Ig]=X[Ng]=X[Lg]=X[xg]=X[Sg]=X[wa]=X[Ag]=X[Cg]=X[Pg]=X[Mg]=X[Rg]=X[_g]=X[jg]=X[Bg]=!0,X[Tg]=X[ba]=X[Dg]=!1;function yn(e,t,n,r,o,i){var s,a=t&mg,c=t&gg,l=t&yg;if(s!==void 0)return s;if(!fn(e))return e;var u=mn(e);if(u){if(s=Nm(e),!a)return ta(e,s)}else{var d=Ge(e),h=d==ba||d==Eg;if(Zs(e))return vm(e,a);if(d==wa||d==va||h&&!o){if(s=c||h?{}:cg(e),!a)return c?Sm(e,gm(s,e)):Em(e,dm(s,e))}else{if(!X[d])return o?e:{};s=sg(e,d,a)}}i||(i=new jt);var p=i.get(e);if(p)return p;i.set(e,s),pg(e)?e.forEach(function(g){s.add(yn(g,t,n,g,e,i))}):dg(e)&&e.forEach(function(g,v){s.set(v,yn(g,t,n,v,e,i))});var y=l?c?Cm:Am:c?Zr:zr,m=u?void 0:y(e);return gp(m||e,function(g,v){m&&(v=g,g=e[v]),js(s,v,yn(g,t,n,v,e,i))}),s}var Ug=1,$g=4;function vn(e){return yn(e,Ug|$g)}function Ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qr,Ea;function Wg(){if(Ea)return Qr;Ea=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function o(i,s){if(i===s)return!0;if(i&&s&&typeof i=="object"&&typeof s=="object"){var a=e(i),c=e(s),l,u,d;if(a&&c){if(u=i.length,u!=s.length)return!1;for(l=u;l--!==0;)if(!o(i[l],s[l]))return!1;return!0}if(a!=c)return!1;var h=i instanceof Date,p=s instanceof Date;if(h!=p)return!1;if(h&&p)return i.getTime()==s.getTime();var y=i instanceof RegExp,m=s instanceof RegExp;if(y!=m)return!1;if(y&&m)return i.toString()==s.toString();var g=t(i);if(u=g.length,u!==t(s).length)return!1;for(l=u;l--!==0;)if(!n.call(s,g[l]))return!1;if(r&&i instanceof Element&&s instanceof Element)return i===s;for(l=u;l--!==0;)if(d=g[l],!(d==="_owner"&&i.$$typeof)&&!o(i[d],s[d]))return!1;return!0}return i!==i&&s!==s}return Qr=function(s,a){try{return o(s,a)}catch(c){if(c.message&&c.message.match(/stack|recursion/i)||c.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",c.name,c.message),!1;throw c}},Qr}var zg=Wg();const ot=Ta(zg);var Zg=z.env.NODE_ENV==="production";function ae(e,t){if(!Zg){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var Hg=4;function xa(e){return yn(e,Hg)}function Sa(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Kg="[object Symbol]";function Jr(e){return typeof e=="symbol"||bt(e)&&vt(e)==Kg}var Gg="Expected a function";function eo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Gg);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(eo.Cache||rt),n}eo.Cache=rt;var Yg=500;function Xg(e){var t=eo(e,function(r){return n.size===Yg&&n.clear(),r}),n=t.cache;return t}var qg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qg=/\\(\\)?/g,Jg=Xg(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(qg,function(n,r,o,i){t.push(o?i.replace(Qg,"$1"):r||n)}),t});function e0(e){if(typeof e=="string"||Jr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Aa=nt?nt.prototype:void 0,Ca=Aa?Aa.toString:void 0;function Pa(e){if(typeof e=="string")return e;if(mn(e))return Sa(e,Pa)+"";if(Jr(e))return Ca?Ca.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function t0(e){return e==null?"":Pa(e)}function Ma(e){return mn(e)?Sa(e,e0):Jr(e)?[e]:ta(Jg(t0(e)))}var Zn={exports:{}},Z={};/** @license React v16.13.1
110
74
  * react-is.production.min.js
111
75
  *
112
76
  * Copyright (c) Facebook, Inc. and its affiliates.
113
77
  *
114
78
  * This source code is licensed under the MIT license found in the
115
79
  * LICENSE file in the root directory of this source tree.
116
- */var yc;function kv(){if(yc)return K;yc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var P=b.$$typeof;switch(P){case t:switch(b=b.type,b){case c:case l:case r:case i:case o:case d:return b;default:switch(b=b&&b.$$typeof,b){case a:case u:case y:case p:case s:return b;default:return P}}case n:return P}}}function C(b){return w(b)===l}return K.AsyncMode=c,K.ConcurrentMode=l,K.ContextConsumer=a,K.ContextProvider=s,K.Element=t,K.ForwardRef=u,K.Fragment=r,K.Lazy=y,K.Memo=p,K.Portal=n,K.Profiler=i,K.StrictMode=o,K.Suspense=d,K.isAsyncMode=function(b){return C(b)||w(b)===c},K.isConcurrentMode=C,K.isContextConsumer=function(b){return w(b)===a},K.isContextProvider=function(b){return w(b)===s},K.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},K.isForwardRef=function(b){return w(b)===u},K.isFragment=function(b){return w(b)===r},K.isLazy=function(b){return w(b)===y},K.isMemo=function(b){return w(b)===p},K.isPortal=function(b){return w(b)===n},K.isProfiler=function(b){return w(b)===i},K.isStrictMode=function(b){return w(b)===o},K.isSuspense=function(b){return w(b)===d},K.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===l||b===i||b===o||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===y||b.$$typeof===p||b.$$typeof===s||b.$$typeof===a||b.$$typeof===u||b.$$typeof===g||b.$$typeof===v||b.$$typeof===x||b.$$typeof===m)},K.typeOf=w,K}var H={},vc;function Fv(){return vc||(vc=1,z.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(I){return typeof I=="string"||typeof I=="function"||I===r||I===l||I===i||I===o||I===d||I===f||typeof I=="object"&&I!==null&&(I.$$typeof===y||I.$$typeof===p||I.$$typeof===s||I.$$typeof===a||I.$$typeof===u||I.$$typeof===g||I.$$typeof===v||I.$$typeof===x||I.$$typeof===m)}function C(I){if(typeof I=="object"&&I!==null){var on=I.$$typeof;switch(on){case t:var sn=I.type;switch(sn){case c:case l:case r:case i:case o:case d:return sn;default:var Mr=sn&&sn.$$typeof;switch(Mr){case a:case u:case y:case p:case s:return Mr;default:return on}}case n:return on}}}var b=c,P=l,A=a,M=s,R=t,U=u,oe=r,me=y,ie=p,L=n,Z=i,se=o,$=d,D=!1;function fe(I){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),we(I)||C(I)===c}function we(I){return C(I)===l}function Pe(I){return C(I)===a}function Ee(I){return C(I)===s}function Q(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function ce(I){return C(I)===u}function Me(I){return C(I)===r}function Ft(I){return C(I)===y}function te(I){return C(I)===p}function Rt(I){return C(I)===n}function Qe(I){return C(I)===i}function Je(I){return C(I)===o}function et(I){return C(I)===d}H.AsyncMode=b,H.ConcurrentMode=P,H.ContextConsumer=A,H.ContextProvider=M,H.Element=R,H.ForwardRef=U,H.Fragment=oe,H.Lazy=me,H.Memo=ie,H.Portal=L,H.Profiler=Z,H.StrictMode=se,H.Suspense=$,H.isAsyncMode=fe,H.isConcurrentMode=we,H.isContextConsumer=Pe,H.isContextProvider=Ee,H.isElement=Q,H.isForwardRef=ce,H.isFragment=Me,H.isLazy=Ft,H.isMemo=te,H.isPortal=Rt,H.isProfiler=Qe,H.isStrictMode=Je,H.isSuspense=et,H.isValidElementType=w,H.typeOf=C}()),H}var bc;function Rv(){return bc||(bc=1,z.env.NODE_ENV==="production"?or.exports=kv():or.exports=Fv()),or.exports}var vo,wc;function Iv(){if(wc)return vo;wc=1;var e=Rv(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(y,m,g){if(typeof m!="string"){if(f){var v=d(m);v&&v!==f&&p(y,v,g)}var x=c(m);l&&(x=x.concat(l(m)));for(var w=s(y),C=s(m),b=0;b<x.length;++b){var P=x[b];if(!n[P]&&!(g&&g[P])&&!(C&&C[P])&&!(w&&w[P])){var A=u(m,P);try{a(y,P,A)}catch{}}}}return y}return vo=p,vo}var Nv=Iv();const Vv=lc(Nv);function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}function Tc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function lt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ec(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ir=E.createContext(void 0);ir.displayName="FormikContext";var Lv=ir.Provider,_v=ir.Consumer;function xt(){var e=E.useContext(ir);return e||(z.env.NODE_ENV!=="production"?ae(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):ae()),e}var xc=function(t){return Array.isArray(t)&&t.length===0},pe=function(t){return typeof t=="function"},zt=function(t){return t!==null&&typeof t=="object"},jv=function(t){return String(Math.floor(Number(t)))===t},bo=function(t){return Object.prototype.toString.call(t)==="[object String]"},wo=function(t){return E.Children.count(t)===0},To=function(t){return zt(t)&&pe(t.then)};function Bv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function J(e,t,n,r){r===void 0&&(r=0);for(var o=gc(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function Be(e,t,n){for(var r=dc(e),o=r,i=0,s=gc(t);i<s.length-1;i++){var a=s[i],c=J(e,s.slice(0,i+1));if(c&&(zt(c)||Array.isArray(c)))o=o[a]=dc(c);else{var l=s[i+1];o=o[a]=jv(l)&&Number(l)>=0?[]:{}}}return(i===0?e:o)[s[i]]===n?e:(n===void 0?delete o[s[i]]:o[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function Sc(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],a=e[s];zt(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},Sc(a,t,n,r[s])):r[s]=t}return r}function Uv(e,t){switch(t.type){case"SET_VALUES":return G({},e,{values:t.payload});case"SET_TOUCHED":return G({},e,{touched:t.payload});case"SET_ERRORS":return ct(e.errors,t.payload)?e:G({},e,{errors:t.payload});case"SET_STATUS":return G({},e,{status:t.payload});case"SET_ISSUBMITTING":return G({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return G({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return G({},e,{values:Be(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return G({},e,{touched:Be(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return G({},e,{errors:Be(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return G({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return G({},e,{touched:Sc(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return G({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return G({},e,{isSubmitting:!1});default:return e}}var St={},sr={};function $v(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,s=i===void 0?!1:i,a=e.isInitialValid,c=e.enableReinitialize,l=c===void 0?!1:c,u=e.onSubmit,d=lt(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=G({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:u},d),p=E.useRef(f.initialValues),y=E.useRef(f.initialErrors||St),m=E.useRef(f.initialTouched||sr),g=E.useRef(f.initialStatus),v=E.useRef(!1),x=E.useRef({});z.env.NODE_ENV!=="production"&&E.useEffect(function(){typeof a>"u"||(z.env.NODE_ENV!=="production"?ae(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):ae())},[]),E.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var w=E.useState(0),C=w[1],b=E.useRef({values:gn(f.initialValues),errors:gn(f.initialErrors)||St,touched:gn(f.initialTouched)||sr,status:gn(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),P=b.current,A=E.useCallback(function(S){var O=b.current;b.current=Uv(O,S),O!==b.current&&C(function(N){return N+1})},[]),M=E.useCallback(function(S,O){return new Promise(function(N,V){var B=f.validate(S,O);B==null?N(St):To(B)?B.then(function(W){N(W||St)},function(W){z.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),V(W)}):N(B)})},[f.validate]),R=E.useCallback(function(S,O){var N=f.validationSchema,V=pe(N)?N(O):N,B=O&&V.validateAt?V.validateAt(O,S):Kv(S,V);return new Promise(function(W,ye){B.then(function(){W(St)},function(We){We.name==="ValidationError"?W(zv(We)):(z.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",We),ye(We))})})},[f.validationSchema]),U=E.useCallback(function(S,O){return new Promise(function(N){return N(x.current[S].validate(O))})},[]),oe=E.useCallback(function(S){var O=Object.keys(x.current).filter(function(V){return pe(x.current[V].validate)}),N=O.length>0?O.map(function(V){return U(V,J(S,V))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(N).then(function(V){return V.reduce(function(B,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&(B=Be(B,O[ye],W)),B},{})})},[U]),me=E.useCallback(function(S){return Promise.all([oe(S),f.validationSchema?R(S):{},f.validate?M(S):{}]).then(function(O){var N=O[0],V=O[1],B=O[2],W=eo.all([N,V,B],{arrayMerge:Hv});return W})},[f.validate,f.validationSchema,oe,M,R]),ie=De(function(S){return S===void 0&&(S=P.values),A({type:"SET_ISVALIDATING",payload:!0}),me(S).then(function(O){return v.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:O})),O})});E.useEffect(function(){s&&v.current===!0&&ct(p.current,f.initialValues)&&ie(p.current)},[s,ie]);var L=E.useCallback(function(S){var O=S&&S.values?S.values:p.current,N=S&&S.errors?S.errors:y.current?y.current:f.initialErrors||{},V=S&&S.touched?S.touched:m.current?m.current:f.initialTouched||{},B=S&&S.status?S.status:g.current?g.current:f.initialStatus;p.current=O,y.current=N,m.current=V,g.current=B;var W=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!S&&!!S.isSubmitting,errors:N,touched:V,status:B,values:O,isValidating:!!S&&!!S.isValidating,submitCount:S&&S.submitCount&&typeof S.submitCount=="number"?S.submitCount:0}})};if(f.onReset){var ye=f.onReset(P.values,on);To(ye)?ye.then(W):W()}else W()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);E.useEffect(function(){v.current===!0&&!ct(p.current,f.initialValues)&&l&&(p.current=f.initialValues,L(),s&&ie(p.current))},[l,f.initialValues,L,s,ie]),E.useEffect(function(){l&&v.current===!0&&!ct(y.current,f.initialErrors)&&(y.current=f.initialErrors||St,A({type:"SET_ERRORS",payload:f.initialErrors||St}))},[l,f.initialErrors]),E.useEffect(function(){l&&v.current===!0&&!ct(m.current,f.initialTouched)&&(m.current=f.initialTouched||sr,A({type:"SET_TOUCHED",payload:f.initialTouched||sr}))},[l,f.initialTouched]),E.useEffect(function(){l&&v.current===!0&&!ct(g.current,f.initialStatus)&&(g.current=f.initialStatus,A({type:"SET_STATUS",payload:f.initialStatus}))},[l,f.initialStatus,f.initialTouched]);var Z=De(function(S){if(x.current[S]&&pe(x.current[S].validate)){var O=J(P.values,S),N=x.current[S].validate(O);return To(N)?(A({type:"SET_ISVALIDATING",payload:!0}),N.then(function(V){return V}).then(function(V){A({type:"SET_FIELD_ERROR",payload:{field:S,value:V}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:S,value:N}}),Promise.resolve(N))}else if(f.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),R(P.values,S).then(function(V){return V}).then(function(V){A({type:"SET_FIELD_ERROR",payload:{field:S,value:J(V,S)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),se=E.useCallback(function(S,O){var N=O.validate;x.current[S]={validate:N}},[]),$=E.useCallback(function(S){delete x.current[S]},[]),D=De(function(S,O){A({type:"SET_TOUCHED",payload:S});var N=O===void 0?o:O;return N?ie(P.values):Promise.resolve()}),fe=E.useCallback(function(S){A({type:"SET_ERRORS",payload:S})},[]),we=De(function(S,O){var N=pe(S)?S(P.values):S;A({type:"SET_VALUES",payload:N});var V=O===void 0?n:O;return V?ie(N):Promise.resolve()}),Pe=E.useCallback(function(S,O){A({type:"SET_FIELD_ERROR",payload:{field:S,value:O}})},[]),Ee=De(function(S,O,N){A({type:"SET_FIELD_VALUE",payload:{field:S,value:O}});var V=N===void 0?n:N;return V?ie(Be(P.values,S,O)):Promise.resolve()}),Q=E.useCallback(function(S,O){var N=O,V=S,B;if(!bo(S)){S.persist&&S.persist();var W=S.target?S.target:S.currentTarget,ye=W.type,We=W.name,es=W.id,ts=W.value,px=W.checked,mx=W.outerHTML,Yd=W.options,gx=W.multiple;N=O||We||es,!N&&z.env.NODE_ENV!=="production"&&Ac({htmlContent:mx,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),V=/number|range/.test(ye)?(B=parseFloat(ts),isNaN(B)?"":B):/checkbox/.test(ye)?Yv(J(P.values,N),px,ts):Yd&&gx?Gv(Yd):ts}N&&Ee(N,V)},[Ee,P.values]),ce=De(function(S){if(bo(S))return function(O){return Q(O,S)};Q(S)}),Me=De(function(S,O,N){O===void 0&&(O=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:S,value:O}});var V=N===void 0?o:N;return V?ie(P.values):Promise.resolve()}),Ft=E.useCallback(function(S,O){S.persist&&S.persist();var N=S.target,V=N.name,B=N.id,W=N.outerHTML,ye=O||V||B;!ye&&z.env.NODE_ENV!=="production"&&Ac({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Me(ye,!0)},[Me]),te=De(function(S){if(bo(S))return function(O){return Ft(O,S)};Ft(S)}),Rt=E.useCallback(function(S){pe(S)?A({type:"SET_FORMIK_STATE",payload:S}):A({type:"SET_FORMIK_STATE",payload:function(){return S}})},[]),Qe=E.useCallback(function(S){A({type:"SET_STATUS",payload:S})},[]),Je=E.useCallback(function(S){A({type:"SET_ISSUBMITTING",payload:S})},[]),et=De(function(){return A({type:"SUBMIT_ATTEMPT"}),ie().then(function(S){var O=S instanceof Error,N=!O&&Object.keys(S).length===0;if(N){var V;try{if(V=sn(),V===void 0)return}catch(B){throw B}return Promise.resolve(V).then(function(B){return v.current&&A({type:"SUBMIT_SUCCESS"}),B}).catch(function(B){if(v.current)throw A({type:"SUBMIT_FAILURE"}),B})}else if(v.current&&(A({type:"SUBMIT_FAILURE"}),O))throw S})}),I=De(function(S){if(S&&S.preventDefault&&pe(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&pe(S.stopPropagation)&&S.stopPropagation(),z.env.NODE_ENV!=="production"&&typeof document<"u"){var O=Bv();O!==null&&O instanceof HTMLButtonElement&&(O.attributes&&O.attributes.getNamedItem("type")||(z.env.NODE_ENV!=="production"?ae(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):ae()))}et().catch(function(N){console.warn("Warning: An unhandled error was caught from submitForm()",N)})}),on={resetForm:L,validateForm:ie,validateField:Z,setErrors:fe,setFieldError:Pe,setFieldTouched:Me,setFieldValue:Ee,setStatus:Qe,setSubmitting:Je,setTouched:D,setValues:we,setFormikState:Rt,submitForm:et},sn=De(function(){return u(P.values,on)}),Mr=De(function(S){S&&S.preventDefault&&pe(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&pe(S.stopPropagation)&&S.stopPropagation(),L()}),lx=E.useCallback(function(S){return{value:J(P.values,S),error:J(P.errors,S),touched:!!J(P.touched,S),initialValue:J(p.current,S),initialTouched:!!J(m.current,S),initialError:J(y.current,S)}},[P.errors,P.touched,P.values]),ux=E.useCallback(function(S){return{setValue:function(N,V){return Ee(S,N,V)},setTouched:function(N,V){return Me(S,N,V)},setError:function(N){return Pe(S,N)}}},[Ee,Me,Pe]),dx=E.useCallback(function(S){var O=zt(S),N=O?S.name:S,V=J(P.values,N),B={name:N,value:V,onChange:ce,onBlur:te};if(O){var W=S.type,ye=S.value,We=S.as,es=S.multiple;W==="checkbox"?ye===void 0?B.checked=!!V:(B.checked=!!(Array.isArray(V)&&~V.indexOf(ye)),B.value=ye):W==="radio"?(B.checked=V===ye,B.value=ye):We==="select"&&es&&(B.value=B.value||[],B.multiple=!0)}return B},[te,ce,P.values]),Ji=E.useMemo(function(){return!ct(p.current,P.values)},[p.current,P.values]),fx=E.useMemo(function(){return typeof a<"u"?Ji?P.errors&&Object.keys(P.errors).length===0:a!==!1&&pe(a)?a(f):a:P.errors&&Object.keys(P.errors).length===0},[a,Ji,P.errors,f]),hx=G({},P,{initialValues:p.current,initialErrors:y.current,initialTouched:m.current,initialStatus:g.current,handleBlur:te,handleChange:ce,handleReset:Mr,handleSubmit:I,resetForm:L,setErrors:fe,setFormikState:Rt,setFieldTouched:Me,setFieldValue:Ee,setFieldError:Pe,setStatus:Qe,setSubmitting:Je,setTouched:D,setValues:we,submitForm:et,validateForm:ie,validateField:Z,isValid:fx,dirty:Ji,unregisterField:$,registerField:se,getFieldProps:dx,getFieldMeta:lx,getFieldHelpers:ux,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return hx}function Wv(e){var t=$v(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return E.useImperativeHandle(i,function(){return t}),z.env.NODE_ENV!=="production"&&E.useEffect(function(){e.render&&(z.env.NODE_ENV!=="production"?ae(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):ae())},[]),E.createElement(Lv,{value:t},n?E.createElement(n,t):o?o(t):r?pe(r)?r(t):wo(r)?null:E.Children.only(r):null)}function Ac(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
80
+ */var Da;function n0(){if(Da)return Z;Da=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case t:switch(w=w.type,w){case c:case l:case r:case i:case o:case d:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case y:case p:case s:return w;default:return P}}case n:return P}}}function C(w){return T(w)===l}return Z.AsyncMode=c,Z.ConcurrentMode=l,Z.ContextConsumer=a,Z.ContextProvider=s,Z.Element=t,Z.ForwardRef=u,Z.Fragment=r,Z.Lazy=y,Z.Memo=p,Z.Portal=n,Z.Profiler=i,Z.StrictMode=o,Z.Suspense=d,Z.isAsyncMode=function(w){return C(w)||T(w)===c},Z.isConcurrentMode=C,Z.isContextConsumer=function(w){return T(w)===a},Z.isContextProvider=function(w){return T(w)===s},Z.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Z.isForwardRef=function(w){return T(w)===u},Z.isFragment=function(w){return T(w)===r},Z.isLazy=function(w){return T(w)===y},Z.isMemo=function(w){return T(w)===p},Z.isPortal=function(w){return T(w)===n},Z.isProfiler=function(w){return T(w)===i},Z.isStrictMode=function(w){return T(w)===o},Z.isSuspense=function(w){return T(w)===d},Z.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===l||w===i||w===o||w===d||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===p||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===g||w.$$typeof===v||w.$$typeof===x||w.$$typeof===m)},Z.typeOf=T,Z}var H={},Oa;function r0(){return Oa||(Oa=1,z.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(I){return typeof I=="string"||typeof I=="function"||I===r||I===l||I===i||I===o||I===d||I===h||typeof I=="object"&&I!==null&&(I.$$typeof===y||I.$$typeof===p||I.$$typeof===s||I.$$typeof===a||I.$$typeof===u||I.$$typeof===g||I.$$typeof===v||I.$$typeof===x||I.$$typeof===m)}function C(I){if(typeof I=="object"&&I!==null){var sn=I.$$typeof;switch(sn){case t:var an=I.type;switch(an){case c:case l:case r:case i:case o:case d:return an;default:var Dr=an&&an.$$typeof;switch(Dr){case a:case u:case y:case p:case s:return Dr;default:return sn}}case n:return sn}}}var w=c,P=l,A=a,M=s,k=t,U=u,oe=r,me=y,ie=p,R=n,Y=i,se=o,$=d,D=!1;function fe(I){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),we(I)||C(I)===c}function we(I){return C(I)===l}function Pe(I){return C(I)===a}function Ee(I){return C(I)===s}function Q(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function ce(I){return C(I)===u}function Me(I){return C(I)===r}function kt(I){return C(I)===y}function te(I){return C(I)===p}function It(I){return C(I)===n}function Qe(I){return C(I)===i}function Je(I){return C(I)===o}function et(I){return C(I)===d}H.AsyncMode=w,H.ConcurrentMode=P,H.ContextConsumer=A,H.ContextProvider=M,H.Element=k,H.ForwardRef=U,H.Fragment=oe,H.Lazy=me,H.Memo=ie,H.Portal=R,H.Profiler=Y,H.StrictMode=se,H.Suspense=$,H.isAsyncMode=fe,H.isConcurrentMode=we,H.isContextConsumer=Pe,H.isContextProvider=Ee,H.isElement=Q,H.isForwardRef=ce,H.isFragment=Me,H.isLazy=kt,H.isMemo=te,H.isPortal=It,H.isProfiler=Qe,H.isStrictMode=Je,H.isSuspense=et,H.isValidElementType=T,H.typeOf=C}()),H}var Va;function o0(){return Va||(Va=1,z.env.NODE_ENV==="production"?Zn.exports=n0():Zn.exports=r0()),Zn.exports}var to,Fa;function i0(){if(Fa)return to;Fa=1;var e=o0(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;function p(y,m,g){if(typeof m!="string"){if(h){var v=d(m);v&&v!==h&&p(y,v,g)}var x=c(m);l&&(x=x.concat(l(m)));for(var T=s(y),C=s(m),w=0;w<x.length;++w){var P=x[w];if(!n[P]&&!(g&&g[P])&&!(C&&C[P])&&!(T&&T[P])){var A=u(m,P);try{a(y,P,A)}catch{}}}}return y}return to=p,to}var s0=i0();const a0=Ta(s0);function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}function ka(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function it(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ia(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Hn=E.createContext(void 0);Hn.displayName="FormikContext";var c0=Hn.Provider,l0=Hn.Consumer;function xt(){var e=E.useContext(Hn);return e||(z.env.NODE_ENV!=="production"?ae(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):ae()),e}var Na=function(t){return Array.isArray(t)&&t.length===0},pe=function(t){return typeof t=="function"},Ut=function(t){return t!==null&&typeof t=="object"},u0=function(t){return String(Math.floor(Number(t)))===t},no=function(t){return Object.prototype.toString.call(t)==="[object String]"},ro=function(t){return E.Children.count(t)===0},oo=function(t){return Ut(t)&&pe(t.then)};function d0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function J(e,t,n,r){r===void 0&&(r=0);for(var o=Ma(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function Be(e,t,n){for(var r=xa(e),o=r,i=0,s=Ma(t);i<s.length-1;i++){var a=s[i],c=J(e,s.slice(0,i+1));if(c&&(Ut(c)||Array.isArray(c)))o=o[a]=xa(c);else{var l=s[i+1];o=o[a]=u0(l)&&Number(l)>=0?[]:{}}}return(i===0?e:o)[s[i]]===n?e:(n===void 0?delete o[s[i]]:o[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function La(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],a=e[s];Ut(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},La(a,t,n,r[s])):r[s]=t}return r}function f0(e,t){switch(t.type){case"SET_VALUES":return G({},e,{values:t.payload});case"SET_TOUCHED":return G({},e,{touched:t.payload});case"SET_ERRORS":return ot(e.errors,t.payload)?e:G({},e,{errors:t.payload});case"SET_STATUS":return G({},e,{status:t.payload});case"SET_ISSUBMITTING":return G({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return G({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return G({},e,{values:Be(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return G({},e,{touched:Be(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return G({},e,{errors:Be(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return G({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return G({},e,{touched:La(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return G({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return G({},e,{isSubmitting:!1});default:return e}}var St={},Kn={};function h0(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,s=i===void 0?!1:i,a=e.isInitialValid,c=e.enableReinitialize,l=c===void 0?!1:c,u=e.onSubmit,d=it(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=G({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:u},d),p=E.useRef(h.initialValues),y=E.useRef(h.initialErrors||St),m=E.useRef(h.initialTouched||Kn),g=E.useRef(h.initialStatus),v=E.useRef(!1),x=E.useRef({});z.env.NODE_ENV!=="production"&&E.useEffect(function(){typeof a>"u"||(z.env.NODE_ENV!=="production"?ae(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):ae())},[]),E.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var T=E.useState(0),C=T[1],w=E.useRef({values:vn(h.initialValues),errors:vn(h.initialErrors)||St,touched:vn(h.initialTouched)||Kn,status:vn(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),P=w.current,A=E.useCallback(function(S){var O=w.current;w.current=f0(O,S),O!==w.current&&C(function(N){return N+1})},[]),M=E.useCallback(function(S,O){return new Promise(function(N,L){var B=h.validate(S,O);B==null?N(St):oo(B)?B.then(function(W){N(W||St)},function(W){z.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),L(W)}):N(B)})},[h.validate]),k=E.useCallback(function(S,O){var N=h.validationSchema,L=pe(N)?N(O):N,B=O&&L.validateAt?L.validateAt(O,S):g0(S,L);return new Promise(function(W,ye){B.then(function(){W(St)},function(We){We.name==="ValidationError"?W(m0(We)):(z.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",We),ye(We))})})},[h.validationSchema]),U=E.useCallback(function(S,O){return new Promise(function(N){return N(x.current[S].validate(O))})},[]),oe=E.useCallback(function(S){var O=Object.keys(x.current).filter(function(L){return pe(x.current[L].validate)}),N=O.length>0?O.map(function(L){return U(L,J(S,L))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(N).then(function(L){return L.reduce(function(B,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&(B=Be(B,O[ye],W)),B},{})})},[U]),me=E.useCallback(function(S){return Promise.all([oe(S),h.validationSchema?k(S):{},h.validate?M(S):{}]).then(function(O){var N=O[0],L=O[1],B=O[2],W=_r.all([N,L,B],{arrayMerge:y0});return W})},[h.validate,h.validationSchema,oe,M,k]),ie=De(function(S){return S===void 0&&(S=P.values),A({type:"SET_ISVALIDATING",payload:!0}),me(S).then(function(O){return v.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:O})),O})});E.useEffect(function(){s&&v.current===!0&&ot(p.current,h.initialValues)&&ie(p.current)},[s,ie]);var R=E.useCallback(function(S){var O=S&&S.values?S.values:p.current,N=S&&S.errors?S.errors:y.current?y.current:h.initialErrors||{},L=S&&S.touched?S.touched:m.current?m.current:h.initialTouched||{},B=S&&S.status?S.status:g.current?g.current:h.initialStatus;p.current=O,y.current=N,m.current=L,g.current=B;var W=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!S&&!!S.isSubmitting,errors:N,touched:L,status:B,values:O,isValidating:!!S&&!!S.isValidating,submitCount:S&&S.submitCount&&typeof S.submitCount=="number"?S.submitCount:0}})};if(h.onReset){var ye=h.onReset(P.values,sn);oo(ye)?ye.then(W):W()}else W()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);E.useEffect(function(){v.current===!0&&!ot(p.current,h.initialValues)&&l&&(p.current=h.initialValues,R(),s&&ie(p.current))},[l,h.initialValues,R,s,ie]),E.useEffect(function(){l&&v.current===!0&&!ot(y.current,h.initialErrors)&&(y.current=h.initialErrors||St,A({type:"SET_ERRORS",payload:h.initialErrors||St}))},[l,h.initialErrors]),E.useEffect(function(){l&&v.current===!0&&!ot(m.current,h.initialTouched)&&(m.current=h.initialTouched||Kn,A({type:"SET_TOUCHED",payload:h.initialTouched||Kn}))},[l,h.initialTouched]),E.useEffect(function(){l&&v.current===!0&&!ot(g.current,h.initialStatus)&&(g.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))},[l,h.initialStatus,h.initialTouched]);var Y=De(function(S){if(x.current[S]&&pe(x.current[S].validate)){var O=J(P.values,S),N=x.current[S].validate(O);return oo(N)?(A({type:"SET_ISVALIDATING",payload:!0}),N.then(function(L){return L}).then(function(L){A({type:"SET_FIELD_ERROR",payload:{field:S,value:L}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:S,value:N}}),Promise.resolve(N))}else if(h.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),k(P.values,S).then(function(L){return L}).then(function(L){A({type:"SET_FIELD_ERROR",payload:{field:S,value:J(L,S)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),se=E.useCallback(function(S,O){var N=O.validate;x.current[S]={validate:N}},[]),$=E.useCallback(function(S){delete x.current[S]},[]),D=De(function(S,O){A({type:"SET_TOUCHED",payload:S});var N=O===void 0?o:O;return N?ie(P.values):Promise.resolve()}),fe=E.useCallback(function(S){A({type:"SET_ERRORS",payload:S})},[]),we=De(function(S,O){var N=pe(S)?S(P.values):S;A({type:"SET_VALUES",payload:N});var L=O===void 0?n:O;return L?ie(N):Promise.resolve()}),Pe=E.useCallback(function(S,O){A({type:"SET_FIELD_ERROR",payload:{field:S,value:O}})},[]),Ee=De(function(S,O,N){A({type:"SET_FIELD_VALUE",payload:{field:S,value:O}});var L=N===void 0?n:N;return L?ie(Be(P.values,S,O)):Promise.resolve()}),Q=E.useCallback(function(S,O){var N=O,L=S,B;if(!no(S)){S.persist&&S.persist();var W=S.target?S.target:S.currentTarget,ye=W.type,We=W.name,ns=W.id,rs=W.value,sx=W.checked,ax=W.outerHTML,hf=W.options,cx=W.multiple;N=O||We||ns,!N&&z.env.NODE_ENV!=="production"&&Ra({htmlContent:ax,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),L=/number|range/.test(ye)?(B=parseFloat(rs),isNaN(B)?"":B):/checkbox/.test(ye)?b0(J(P.values,N),sx,rs):hf&&cx?v0(hf):rs}N&&Ee(N,L)},[Ee,P.values]),ce=De(function(S){if(no(S))return function(O){return Q(O,S)};Q(S)}),Me=De(function(S,O,N){O===void 0&&(O=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:S,value:O}});var L=N===void 0?o:N;return L?ie(P.values):Promise.resolve()}),kt=E.useCallback(function(S,O){S.persist&&S.persist();var N=S.target,L=N.name,B=N.id,W=N.outerHTML,ye=O||L||B;!ye&&z.env.NODE_ENV!=="production"&&Ra({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Me(ye,!0)},[Me]),te=De(function(S){if(no(S))return function(O){return kt(O,S)};kt(S)}),It=E.useCallback(function(S){pe(S)?A({type:"SET_FORMIK_STATE",payload:S}):A({type:"SET_FORMIK_STATE",payload:function(){return S}})},[]),Qe=E.useCallback(function(S){A({type:"SET_STATUS",payload:S})},[]),Je=E.useCallback(function(S){A({type:"SET_ISSUBMITTING",payload:S})},[]),et=De(function(){return A({type:"SUBMIT_ATTEMPT"}),ie().then(function(S){var O=S instanceof Error,N=!O&&Object.keys(S).length===0;if(N){var L;try{if(L=an(),L===void 0)return}catch(B){throw B}return Promise.resolve(L).then(function(B){return v.current&&A({type:"SUBMIT_SUCCESS"}),B}).catch(function(B){if(v.current)throw A({type:"SUBMIT_FAILURE"}),B})}else if(v.current&&(A({type:"SUBMIT_FAILURE"}),O))throw S})}),I=De(function(S){if(S&&S.preventDefault&&pe(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&pe(S.stopPropagation)&&S.stopPropagation(),z.env.NODE_ENV!=="production"&&typeof document<"u"){var O=d0();O!==null&&O instanceof HTMLButtonElement&&(O.attributes&&O.attributes.getNamedItem("type")||(z.env.NODE_ENV!=="production"?ae(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):ae()))}et().catch(function(N){console.warn("Warning: An unhandled error was caught from submitForm()",N)})}),sn={resetForm:R,validateForm:ie,validateField:Y,setErrors:fe,setFieldError:Pe,setFieldTouched:Me,setFieldValue:Ee,setStatus:Qe,setSubmitting:Je,setTouched:D,setValues:we,setFormikState:It,submitForm:et},an=De(function(){return u(P.values,sn)}),Dr=De(function(S){S&&S.preventDefault&&pe(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&pe(S.stopPropagation)&&S.stopPropagation(),R()}),tx=E.useCallback(function(S){return{value:J(P.values,S),error:J(P.errors,S),touched:!!J(P.touched,S),initialValue:J(p.current,S),initialTouched:!!J(m.current,S),initialError:J(y.current,S)}},[P.errors,P.touched,P.values]),nx=E.useCallback(function(S){return{setValue:function(N,L){return Ee(S,N,L)},setTouched:function(N,L){return Me(S,N,L)},setError:function(N){return Pe(S,N)}}},[Ee,Me,Pe]),rx=E.useCallback(function(S){var O=Ut(S),N=O?S.name:S,L=J(P.values,N),B={name:N,value:L,onChange:ce,onBlur:te};if(O){var W=S.type,ye=S.value,We=S.as,ns=S.multiple;W==="checkbox"?ye===void 0?B.checked=!!L:(B.checked=!!(Array.isArray(L)&&~L.indexOf(ye)),B.value=ye):W==="radio"?(B.checked=L===ye,B.value=ye):We==="select"&&ns&&(B.value=B.value||[],B.multiple=!0)}return B},[te,ce,P.values]),ts=E.useMemo(function(){return!ot(p.current,P.values)},[p.current,P.values]),ox=E.useMemo(function(){return typeof a<"u"?ts?P.errors&&Object.keys(P.errors).length===0:a!==!1&&pe(a)?a(h):a:P.errors&&Object.keys(P.errors).length===0},[a,ts,P.errors,h]),ix=G({},P,{initialValues:p.current,initialErrors:y.current,initialTouched:m.current,initialStatus:g.current,handleBlur:te,handleChange:ce,handleReset:Dr,handleSubmit:I,resetForm:R,setErrors:fe,setFormikState:It,setFieldTouched:Me,setFieldValue:Ee,setFieldError:Pe,setStatus:Qe,setSubmitting:Je,setTouched:D,setValues:we,submitForm:et,validateForm:ie,validateField:Y,isValid:ox,dirty:ts,unregisterField:$,registerField:se,getFieldProps:rx,getFieldMeta:tx,getFieldHelpers:nx,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return ix}function p0(e){var t=h0(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return E.useImperativeHandle(i,function(){return t}),z.env.NODE_ENV!=="production"&&E.useEffect(function(){e.render&&(z.env.NODE_ENV!=="production"?ae(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):ae())},[]),E.createElement(c0,{value:t},n?E.createElement(n,t):o?o(t):r?pe(r)?r(t):ro(r)?null:E.Children.only(r):null)}function Ra(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
117
81
  Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+n+`
118
- `)}function zv(e){var t={};if(e.inner){if(e.inner.length===0)return Be(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var s=i;J(t,s.path)||(t=Be(t,s.path,s.message))}}return t}function Kv(e,t,n,r){n===void 0&&(n=!1);var o=Eo(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function Eo(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||Ta(o)?Eo(o):o!==""?o:void 0}):Ta(e[r])?t[r]=Eo(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function Hv(e,t,n){var r=e.slice();return t.forEach(function(i,s){if(typeof r[s]>"u"){var a=n.clone!==!1,c=a&&n.isMergeableObject(i);r[s]=c?eo(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=eo(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function Gv(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Yv(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var Zv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function De(e){var t=E.useRef(e);return Zv(function(){t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function yn(e){var t=xt(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=zt(e),c=a?e:{name:e},l=c.name,u=c.validate;E.useEffect(function(){return l&&i(l,{validate:u}),function(){l&&s(l)}},[i,s,l,u]),z.env.NODE_ENV!=="production"&&(t||(z.env.NODE_ENV!=="production"?ae(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):ae())),l||(z.env.NODE_ENV!=="production"?ae(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):ae());var d=E.useMemo(function(){return o(l)},[o,l]);return[n(c),r(l),d]}function xo(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,c=lt(e,["validate","name","render","children","as","component","className"]),l=xt(),u=lt(l,["validate","validationSchema"]);z.env.NODE_ENV!=="production"&&E.useEffect(function(){r&&(z.env.NODE_ENV!=="production"?ae(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):ae()),i&&o&&pe(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):ae()),s&&o&&pe(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):ae()),r&&o&&!wo(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):ae())},[]);var d=u.registerField,f=u.unregisterField;E.useEffect(function(){return d(n,{validate:t}),function(){f(n)}},[d,f,n,t]);var p=u.getFieldProps(G({name:n},c)),y=u.getFieldMeta(n),m={field:p,form:u};if(r)return r(G({},m,{meta:y}));if(pe(o))return o(G({},m,{meta:y}));if(s){if(typeof s=="string"){var g=c.innerRef,v=lt(c,["innerRef"]);return E.createElement(s,G({ref:g},p,v,{className:a}),o)}return E.createElement(s,G({field:p,form:u},c,{className:a}),o)}var x=i||"input";if(typeof x=="string"){var w=c.innerRef,C=lt(c,["innerRef"]);return E.createElement(x,G({ref:w},p,C,{className:a}),o)}return E.createElement(x,G({},p,c,{className:a}),o)}var Xv=E.forwardRef(function(e,t){var n=e.action,r=lt(e,["action"]),o=n??"#",i=xt(),s=i.handleReset,a=i.handleSubmit;return E.createElement("form",G({onSubmit:a,ref:t,onReset:s,action:o},r))});Xv.displayName="Form";function qv(e){var t=function(o){return E.createElement(_v,null,function(i){return i||(z.env.NODE_ENV!=="production"?ae(!1,"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: "+e.name):ae()),E.createElement(e,G({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",Vv(t,e)}var Qv=function(t,n,r){var o=At(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},Jv=function(t,n,r){var o=At(t),i=o[n];return o[n]=o[r],o[r]=i,o},So=function(t,n,r){var o=At(t);return o.splice(n,0,r),o},eb=function(t,n,r){var o=At(t);return o[n]=r,o},At=function(t){if(t){if(Array.isArray(t))return[].concat(t);var n=Object.keys(t).map(function(r){return parseInt(r)}).reduce(function(r,o){return o>r?o:r},0);return Array.from(G({},t,{length:n+1}))}else return[]},Cc=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||zt(o)){var i=At(o);return r(i)}return o}},tb=function(e){Tc(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,s,a){var c=o.props,l=c.name,u=c.formik.setFormikState;u(function(d){var f=Cc(a,i),p=Cc(s,i),y=Be(d.values,l,i(J(d.values,l))),m=a?f(J(d.errors,l)):void 0,g=s?p(J(d.touched,l)):void 0;return xc(m)&&(m=void 0),xc(g)&&(g=void 0),G({},d,{values:y,errors:a?Be(d.errors,l,m):d.errors,touched:s?Be(d.touched,l,g):d.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(At(s),[gn(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(a){return Jv(a,i,s)},!0,!0)},o.handleSwap=function(i,s){return function(){return o.swap(i,s)}},o.move=function(i,s){return o.updateArrayField(function(a){return Qv(a,i,s)},!0,!0)},o.handleMove=function(i,s){return function(){return o.move(i,s)}},o.insert=function(i,s){return o.updateArrayField(function(a){return So(a,i,s)},function(a){return So(a,i,null)},function(a){return So(a,i,null)})},o.handleInsert=function(i,s){return function(){return o.insert(i,s)}},o.replace=function(i,s){return o.updateArrayField(function(a){return eb(a,i,s)},!1,!1)},o.handleReplace=function(i,s){return function(){return o.replace(i,s)}},o.unshift=function(i){var s=-1;return o.updateArrayField(function(a){var c=a?[i].concat(a):[i];return s=c.length,c},function(a){return a?[null].concat(a):[null]},function(a){return a?[null].concat(a):[null]}),s},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(Ec(o)),o.pop=o.pop.bind(Ec(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!ct(J(o.formik.values,o.name),J(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(s){var a=s?At(s):[];return i||(i=a[o]),pe(a.splice)&&a.splice(o,1),pe(a.every)&&a.every(function(c){return c===void 0})?[]:a},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var s=i.slice();return o||(o=s&&s.pop&&s.pop()),s},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,a=i.render,c=i.children,l=i.name,u=i.formik,d=lt(u,["validate","validationSchema"]),f=G({},o,{form:d,name:l});return s?E.createElement(s,f):a?a(f):c?typeof c=="function"?c(f):wo(c)?null:E.Children.only(c):null},t}(E.Component);tb.defaultProps={validateOnChange:!0};var nb=function(e){Tc(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(o){return J(this.props.formik.errors,this.props.name)!==J(o.formik.errors,this.props.name)||J(this.props.formik.touched,this.props.name)!==J(o.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(o).length},n.render=function(){var o=this.props,i=o.component,s=o.formik,a=o.render,c=o.children,l=o.name,u=lt(o,["component","formik","render","children","name"]),d=J(s.touched,l),f=J(s.errors,l);return d&&f?a?pe(a)?a(f):null:c?pe(c)?c(f):null:i?E.createElement(i,u,f):f:null},t}(E.Component),Ao=qv(nb);const Pc=E.createContext({}),ar=()=>E.useContext(Pc),rb="w-full",Co="flex ml-5 mt-2 text-xs text-feedback-danger-200";function ob({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:n,isDisabled:r,...o}){const{isSubmitting:i,dirty:s,isValid:a}=xt(),{isForcedDirty:c,onNavigationEvent:l}=ar(),u=f=>{l(()=>o.onClick)},d=E.useMemo(()=>!!(r||e&&i||t&&!s||t&&typeof c=="boolean"&&!c||n&&!a),[e,t,r,i,c,s,a,n]);return T.jsx(Nr,{...o,isDisabled:d,onClick:o.type!=="submit"&&(s||typeof c<"u"&&c)?u:o.onClick})}const Po=E.createContext({});function Mo(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Do=typeof window<"u",Mc=Do?E.useLayoutEffect:E.useEffect,cr=E.createContext(null);function Oo(e,t){e.indexOf(t)===-1&&e.push(t)}function ko(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ze=(e,t,n)=>n>t?t:n<e?e:n;function Fo(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Kt=()=>{},Xe=()=>{};z.env.NODE_ENV!=="production"&&(Kt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Fo(t,n))},Xe=(e,t,n)=>{if(!e)throw new Error(Fo(t,n))});const qe={},Dc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Oc(e){return typeof e=="object"&&e!==null}const kc=e=>/^0[^.\s]+$/u.test(e);function Ro(e){let t;return()=>(t===void 0&&(t=e()),t)}const Oe=e=>e,ib=(e,t)=>n=>t(e(n)),vn=(...e)=>e.reduce(ib),bn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Io{constructor(){this.subscriptions=[]}add(t){return Oo(this.subscriptions,t),()=>ko(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ne=e=>e*1e3,Ue=e=>e/1e3;function Fc(e,t){return t?e*(1e3/t):0}const Rc=new Set;function No(e,t,n){e||Rc.has(t)||(console.warn(Fo(t,n)),Rc.add(t))}const Ic=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sb=1e-7,ab=12;function cb(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Ic(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>sb&&++a<ab);return s}function wn(e,t,n,r){if(e===t&&n===r)return Oe;const o=i=>cb(i,0,1,e,n);return i=>i===0||i===1?i:Ic(o(i),t,r)}const Nc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Vc=e=>t=>1-e(1-t),Lc=wn(.33,1.53,.69,.99),Vo=Vc(Lc),_c=Nc(Vo),jc=e=>(e*=2)<1?.5*Vo(e):.5*(2-Math.pow(2,-10*(e-1))),Lo=e=>1-Math.sin(Math.acos(e)),Bc=Vc(Lo),Uc=Nc(Lo),lb=wn(.42,0,1,1),ub=wn(0,0,.58,1),$c=wn(.42,0,.58,1),db=e=>Array.isArray(e)&&typeof e[0]!="number",Wc=e=>Array.isArray(e)&&typeof e[0]=="number",zc={linear:Oe,easeIn:lb,easeInOut:$c,easeOut:ub,circIn:Lo,circInOut:Uc,circOut:Bc,backIn:Vo,backInOut:_c,backOut:Lc,anticipate:jc},fb=e=>typeof e=="string",Kc=e=>{if(Wc(e)){Xe(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return wn(t,n,r,o)}else if(fb(e))return Xe(zc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),zc[e];return e},lr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hb(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,d=!1,f=!1)=>{const y=f&&o?n:r;return d&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,i&&(i=!1,l.process(u))}};return l}const pb=40;function Hc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=lr.reduce((w,C)=>(w[C]=hb(i),w),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:y}=s,m=()=>{const w=qe.useManualTiming?o.timestamp:performance.now();n=!1,qe.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,pb),1)),o.timestamp=w,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),d.process(o),f.process(o),p.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:lr.reduce((w,C)=>{const b=s[C];return w[C]=(P,A=!1,M=!1)=>(n||g(),b.schedule(P,A,M)),w},{}),cancel:w=>{for(let C=0;C<lr.length;C++)s[lr[C]].cancel(w)},state:o,steps:s}}const{schedule:ee,cancel:ut,state:ve,steps:_o}=Hc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Oe,!0);let ur;function mb(){ur=void 0}const Ae={now:()=>(ur===void 0&&Ae.set(ve.isProcessing||qe.useManualTiming?ve.timestamp:performance.now()),ur),set:e=>{ur=e,queueMicrotask(mb)}},Gc=e=>t=>typeof t=="string"&&t.startsWith(e),jo=Gc("--"),gb=Gc("var(--"),Bo=e=>gb(e)?yb.test(e.split("/*")[0].trim()):!1,yb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ht={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tn={...Ht,transform:e=>Ze(0,1,e)},dr={...Ht,default:1},En=e=>Math.round(e*1e5)/1e5,Uo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vb(e){return e==null}const bb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$o=(e,t)=>n=>!!(typeof n=="string"&&bb.test(n)&&n.startsWith(e)||t&&!vb(n)&&Object.prototype.hasOwnProperty.call(n,t)),Yc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Uo);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},wb=e=>Ze(0,255,e),Wo={...Ht,transform:e=>Math.round(wb(e))},Ct={test:$o("rgb","red"),parse:Yc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wo.transform(e)+", "+Wo.transform(t)+", "+Wo.transform(n)+", "+En(Tn.transform(r))+")"};function Tb(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const zo={test:$o("#"),parse:Tb,transform:Ct.transform},xn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),dt=xn("deg"),$e=xn("%"),_=xn("px"),Eb=xn("vh"),xb=xn("vw"),Zc={...$e,parse:e=>$e.parse(e)/100,transform:e=>$e.transform(e*100)},Gt={test:$o("hsl","hue"),parse:Yc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$e.transform(En(t))+", "+$e.transform(En(n))+", "+En(Tn.transform(r))+")"},de={test:e=>Ct.test(e)||zo.test(e)||Gt.test(e),parse:e=>Ct.test(e)?Ct.parse(e):Gt.test(e)?Gt.parse(e):zo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ct.transform(e):Gt.transform(e),getAnimatableNone:e=>{const t=de.parse(e);return t.alpha=0,de.transform(t)}},Sb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ab(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Uo))==null?void 0:t.length)||0)+(((n=e.match(Sb))==null?void 0:n.length)||0)>0}const Xc="number",qc="color",Cb="var",Pb="var(",Qc="${}",Mb=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Sn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Mb,c=>(de.test(c)?(r.color.push(i),o.push(qc),n.push(de.parse(c))):c.startsWith(Pb)?(r.var.push(i),o.push(Cb),n.push(c)):(r.number.push(i),o.push(Xc),n.push(parseFloat(c))),++i,Qc)).split(Qc);return{values:n,split:a,indexes:r,types:o}}function Jc(e){return Sn(e).values}function el(e){const{split:t,types:n}=Sn(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===Xc?i+=En(o[s]):a===qc?i+=de.transform(o[s]):i+=o[s]}return i}}const Db=e=>typeof e=="number"?0:de.test(e)?de.getAnimatableNone(e):e;function Ob(e){const t=Jc(e);return el(e)(t.map(Db))}const ft={test:Ab,parse:Jc,createTransformer:el,getAnimatableNone:Ob};function Ko(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kb({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=Ko(c,a,e+1/3),i=Ko(c,a,e),s=Ko(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function fr(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,Ho=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Fb=[zo,Ct,Gt],Rb=e=>Fb.find(t=>t.test(e));function tl(e){const t=Rb(e);if(Kt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Gt&&(n=kb(n)),n}const nl=(e,t)=>{const n=tl(e),r=tl(t);if(!n||!r)return fr(e,t);const o={...n};return i=>(o.red=Ho(n.red,r.red,i),o.green=Ho(n.green,r.green,i),o.blue=Ho(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),Ct.transform(o))},Go=new Set(["none","hidden"]);function Ib(e,t){return Go.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Nb(e,t){return n=>ne(e,t,n)}function Yo(e){return typeof e=="number"?Nb:typeof e=="string"?Bo(e)?fr:de.test(e)?nl:_b:Array.isArray(e)?rl:typeof e=="object"?de.test(e)?nl:Vb:fr}function rl(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Yo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Vb(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Yo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function Lb(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const _b=(e,t)=>{const n=ft.createTransformer(t),r=Sn(e),o=Sn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Go.has(e)&&!o.values.length||Go.has(t)&&!r.values.length?Ib(e,t):vn(rl(Lb(r,o),o.values),n):(Kt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),fr(e,t))};function ol(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):Yo(e)(e,t)}const jb=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ee.update(t,n),stop:()=>ut(t),now:()=>ve.isProcessing?ve.timestamp:Ae.now()}},il=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},hr=2e4;function Zo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hr;)t+=n,r=e.next(t);return t>=hr?1/0:t}function Bb(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Zo(r),hr);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ue(o)}}const Ub=5;function sl(e,t,n){const r=Math.max(t-Ub,0);return Fc(n-e(r),t-r)}const re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},al=.001;function $b({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;Kt(e<=Ne(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ze(re.minDamping,re.maxDamping,s),e=Ze(re.minDuration,re.maxDuration,Ue(e)),s<1?(o=l=>{const u=l*s,d=u*e,f=u-n,p=Xo(l,s),y=Math.exp(-d);return al-f/p*y},i=l=>{const d=l*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-d),m=Xo(Math.pow(l,2),s);return(-o(l)+al>0?-1:1)*((f-p)*y)/m}):(o=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=zb(o,i,a);if(e=Ne(e),isNaN(c))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Wb=12;function zb(e,t,n){let r=n;for(let o=1;o<Wb;o++)r=r-e(r)/t(r);return r}function Xo(e,t){return e*Math.sqrt(1-t*t)}const Kb=["duration","bounce"],Hb=["stiffness","damping","mass"];function cl(e,t){return t.some(n=>e[n]!==void 0)}function Gb(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!cl(e,Hb)&&cl(e,Kb))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ze(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=$b(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function pr(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Gb({...n,velocity:-Ue(n.velocity||0)}),y=f||0,m=l/(2*Math.sqrt(c*u)),g=s-i,v=Ue(Math.sqrt(c/u)),x=Math.abs(g)<5;r||(r=x?re.restSpeed.granular:re.restSpeed.default),o||(o=x?re.restDelta.granular:re.restDelta.default);let w;if(m<1){const b=Xo(v,m);w=P=>{const A=Math.exp(-m*v*P);return s-A*((y+m*v*g)/b*Math.sin(b*P)+g*Math.cos(b*P))}}else if(m===1)w=b=>s-Math.exp(-v*b)*(g+(y+v*g)*b);else{const b=v*Math.sqrt(m*m-1);w=P=>{const A=Math.exp(-m*v*P),M=Math.min(b*P,300);return s-A*((y+m*v*g)*Math.sinh(M)+b*g*Math.cosh(M))/b}}const C={calculatedDuration:p&&d||null,next:b=>{const P=w(b);if(p)a.done=b>=d;else{let A=b===0?y:0;m<1&&(A=b===0?Ne(y):sl(w,b,P));const M=Math.abs(A)<=r,R=Math.abs(s-P)<=o;a.done=M&&R}return a.value=a.done?s:P,a},toString:()=>{const b=Math.min(Zo(C),hr),P=il(A=>C.next(b*A).value,b,30);return b+"ms "+P},toTransition:()=>{}};return C}pr.applyToOptions=e=>{const t=Bb(e,100,pr);return e.ease=t.ease,e.duration=Ne(t.duration),e.type="keyframes",e};function qo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=M=>a!==void 0&&M<a||c!==void 0&&M>c,y=M=>a===void 0?c:c===void 0||Math.abs(a-M)<Math.abs(c-M)?a:c;let m=n*t;const g=d+m,v=s===void 0?g:s(g);v!==g&&(m=v-d);const x=M=>-m*Math.exp(-M/r),w=M=>v+x(M),C=M=>{const R=x(M),U=w(M);f.done=Math.abs(R)<=l,f.value=f.done?v:U};let b,P;const A=M=>{p(f.value)&&(b=M,P=pr({keyframes:[f.value,y(f.value)],velocity:sl(w,M,f.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:M=>{let R=!1;return!P&&b===void 0&&(R=!0,C(M),A(M)),b!==void 0&&M>=b?P.next(M-b):(!R&&C(M),f)}}}function Yb(e,t,n){const r=[],o=n||qe.mix||ol,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||Oe:t;a=vn(c,a)}r.push(a)}return r}function Zb(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Xe(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Yb(t,r,o),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=bn(e[d],e[d+1],u);return a[d](f)};return n?u=>l(Ze(e[0],e[i-1],u)):l}function Xb(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=bn(0,t,r);e.push(ne(n,1,o))}}function qb(e){const t=[0];return Xb(t,e.length-1),t}function Qb(e,t){return e.map(n=>n*t)}function Jb(e,t){return e.map(()=>t||$c).splice(0,e.length-1)}function Yt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=db(r)?r.map(Kc):Kc(r),i={done:!1,value:t[0]},s=Qb(n&&n.length===t.length?n:qb(t),e),a=Zb(s,t,{ease:Array.isArray(o)?o:Jb(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const e0=e=>e!==null;function Qo(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(e0),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const t0={decay:qo,inertia:qo,tween:Yt,keyframes:Yt,spring:pr};function ll(e){typeof e.type=="string"&&(e.type=t0[e.type])}class Jo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const n0=e=>e/100;class ei extends Jo{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ll(t);const{type:n=Yt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Yt;z.env.NODE_ENV!=="production"&&c!==Yt&&Xe(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Yt&&typeof a[0]!="number"&&(this.mixKeyframes=vn(n0,ol(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Zo(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,C=r;if(d){const M=Math.min(this.currentTime,o)/a;let R=Math.floor(M),U=M%1;!U&&M>=1&&(U=1),U===1&&R--,R=Math.min(R,d+1),!!(R%2)&&(f==="reverse"?(U=1-U,p&&(U-=p/a)):f==="mirror"&&(C=s)),w=Ze(0,1,U)*a}const b=x?{done:!1,value:u[0]}:C.next(w);i&&(b.value=i(b.value));let{done:P}=b;!x&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&y!==qo&&(b.value=Qo(u,this.options,g,this.speed)),m&&m(b.value),A&&this.finish(),b}then(t,n){return this.finished.then(t,n)}get duration(){return Ue(this.calculatedDuration)}get time(){return Ue(this.currentTime)}set time(t){var n;t=Ne(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ae.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ue(this.currentTime))}play(){var o,i;if(this.isStopped)return;const{driver:t=jb,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(i=(o=this.options).onPlay)==null||i.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ae.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function r0(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Pt=e=>e*180/Math.PI,ti=e=>{const t=Pt(Math.atan2(e[1],e[0]));return ni(t)},o0={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ti,rotateZ:ti,skewX:e=>Pt(Math.atan(e[1])),skewY:e=>Pt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ni=e=>(e=e%360,e<0&&(e+=360),e),ul=ti,dl=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fl=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),i0={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dl,scaleY:fl,scale:e=>(dl(e)+fl(e))/2,rotateX:e=>ni(Pt(Math.atan2(e[6],e[5]))),rotateY:e=>ni(Pt(Math.atan2(-e[2],e[0]))),rotateZ:ul,rotate:ul,skewX:e=>Pt(Math.atan(e[4])),skewY:e=>Pt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ri(e){return e.includes("scale")?1:0}function oi(e,t){if(!e||e==="none")return ri(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=i0,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=o0,o=a}if(!o)return ri(t);const i=r[t],s=o[1].split(",").map(a0);return typeof i=="function"?i(s):s[i]}const s0=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return oi(n,t)};function a0(e){return parseFloat(e.trim())}const Zt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xt=new Set(Zt),hl=e=>e===Ht||e===_,c0=new Set(["x","y","z"]),l0=Zt.filter(e=>!c0.has(e));function u0(e){const t=[];return l0.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>oi(t,"x"),y:(e,{transform:t})=>oi(t,"y")};Mt.translateX=Mt.x,Mt.translateY=Mt.y;const Dt=new Set;let ii=!1,si=!1,ai=!1;function pl(){if(si){const e=Array.from(Dt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=u0(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}si=!1,ii=!1,Dt.forEach(e=>e.complete(ai)),Dt.clear()}function ml(){Dt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(si=!0)})}function d0(){ai=!0,ml(),pl(),ai=!1}class ci{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Dt.add(this),ii||(ii=!0,ee.read(ml),ee.resolveKeyframes(pl))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}r0(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dt.delete(this)}cancel(){this.state==="scheduled"&&(Dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const f0=e=>e.startsWith("--");function h0(e,t,n){f0(t)?e.style.setProperty(t,n):e.style[t]=n}const p0=Ro(()=>window.ScrollTimeline!==void 0),m0={};function g0(e,t){const n=Ro(e);return()=>m0[t]??n()}const gl=g0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),An=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:An([0,.65,.55,1]),circOut:An([.55,0,1,.45]),backIn:An([.31,.01,.66,-.59]),backOut:An([.33,1.53,.69,.99])};function vl(e,t){if(e)return typeof e=="function"?gl()?il(e,t):"ease-out":Wc(e)?An(e):Array.isArray(e)?e.map(n=>vl(n,t)||yl.easeOut):yl[e]}function y0(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const d=vl(a,o);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),e.animate(u,f)}function bl(e){return typeof e=="function"&&"applyToOptions"in e}function v0({type:e,...t}){return bl(e)&&gl()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class b0 extends Jo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Xe(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=v0(t);this.animation=y0(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Qo(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):h0(n,r,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ue(Number(t))}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ne(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&p0()?(this.animation.timeline=t,Oe):n(this)}}const wl={anticipate:jc,backInOut:_c,circInOut:Uc};function w0(e){return e in wl}function T0(e){typeof e.ease=="string"&&w0(e.ease)&&(e.ease=wl[e.ease])}const Tl=10;class E0 extends b0{constructor(t){T0(t),ll(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new ei({...s,autoplay:!1}),c=Ne(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Tl).value,a.sample(c).value,Tl),a.stop()}}const El=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ft.test(e)||e==="0")&&!e.startsWith("url("));function x0(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function S0(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=El(o,t),a=El(i,t);return Kt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:x0(e)||(n==="spring"||bl(n))&&r}function li(e){e.duration=0,e.type}const A0=new Set(["opacity","clipPath","filter","transform"]),C0=Ro(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function P0(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return C0()&&n&&A0.has(n)&&(n!=="transform"||!l)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const M0=40;class D0 extends Jo{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:c,motionValue:l,element:u,...d}){var y;super(),this.stop=()=>{var m,g;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=Ae.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:c,motionValue:l,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||ci;this.keyframeResolver=new p(a,(m,g,v)=>this.onKeyframesResolved(m,g,f,!v),c,l,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=Ae.now(),S0(t,i,s,a)||((qe.instantAnimations||!c)&&(u==null||u(Qo(t,r,n))),t[0]=t[t.length-1],li(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>M0?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&P0(f)?new E0({...f,element:f.motionValue.owner.current}):new ei(f);p.finished.then(()=>this.notifyFinished()).catch(Oe),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),d0()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const O0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function k0(e){const t=O0.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const F0=4;function xl(e,t,n=1){Xe(n<=F0,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=k0(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Dc(s)?parseFloat(s):s}return Bo(o)?xl(o,t,n+1):o}function ui(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Sl=new Set(["width","height","top","left","right","bottom",...Zt]),R0={test:e=>e==="auto",parse:e=>e},Al=e=>t=>t.test(e),Cl=[Ht,_,$e,dt,xb,Eb,R0],Pl=e=>Cl.find(Al(e));function I0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kc(e):!0}const N0=new Set(["brightness","contrast","saturate","opacity"]);function V0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Uo)||[];if(!r)return e;const o=n.replace(r,"");let i=N0.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const L0=/\b([a-z-]*)\(.*?\)/gu,di={...ft,getAnimatableNone:e=>{const t=e.match(L0);return t?t.map(V0).join(" "):e}},Ml={...Ht,transform:Math.round},fi={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,backgroundPositionX:_,backgroundPositionY:_,...{rotate:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scale:dr,scaleX:dr,scaleY:dr,scaleZ:dr,skew:dt,skewX:dt,skewY:dt,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:Tn,originX:Zc,originY:Zc,originZ:_},zIndex:Ml,fillOpacity:Tn,strokeOpacity:Tn,numOctaves:Ml},_0={...fi,color:de,backgroundColor:de,outlineColor:de,fill:de,stroke:de,borderColor:de,borderTopColor:de,borderRightColor:de,borderBottomColor:de,borderLeftColor:de,filter:di,WebkitFilter:di},Dl=e=>_0[e];function Ol(e,t){let n=Dl(e);return n!==di&&(n=ft),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j0=new Set(["auto","none","0"]);function B0(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!j0.has(i)&&Sn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Ol(n,o)}class U0 extends ci{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),Bo(l))){const u=xl(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Sl.has(r)||t.length!==2)return;const[o,i]=t,s=Pl(o),a=Pl(i);if(s!==a)if(hl(s)&&hl(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Mt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||I0(t[o]))&&r.push(o);r.length&&B0(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Mt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Mt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function $0(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=(n==null?void 0:n[e])??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const kl=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Fl(e){return Oc(e)&&"offsetHeight"in e}const Rl=30,W0=e=>!isNaN(parseFloat(e));class z0{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const o=Ae.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=W0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return z.env.NODE_ENV!=="production"&&No(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Io);const r=this.events[t].add(n);return t==="change"?()=>{r(),ee.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Rl)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Rl);return Fc(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qt(e,t){return new z0(e,t)}const{schedule:hi}=Hc(queueMicrotask,!1),Ve={x:!1,y:!1};function Il(){return Ve.x||Ve.y}function K0(e){return e==="x"||e==="y"?Ve[e]?null:(Ve[e]=!0,()=>{Ve[e]=!1}):Ve.x||Ve.y?null:(Ve.x=Ve.y=!0,()=>{Ve.x=Ve.y=!1})}function Nl(e,t){const n=$0(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Vl(e){return!(e.pointerType==="touch"||Il())}function H0(e,t,n={}){const[r,o,i]=Nl(e,n),s=a=>{if(!Vl(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Vl(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Ll=(e,t)=>t?e===t?!0:Ll(e,t.parentElement):!1,pi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,G0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Y0(e){return G0.has(e.tagName)||e.tabIndex!==-1}const mr=new WeakSet;function _l(e){return t=>{t.key==="Enter"&&e(t)}}function mi(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Z0=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_l(()=>{if(mr.has(n))return;mi(n,"down");const o=_l(()=>{mi(n,"up")}),i=()=>mi(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function jl(e){return pi(e)&&!Il()}function X0(e,t,n={}){const[r,o,i]=Nl(e,n),s=a=>{const c=a.currentTarget;if(!jl(a))return;mr.add(c);const l=t(c,a),u=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),mr.has(c)&&mr.delete(c),jl(p)&&typeof l=="function"&&l(p,{success:y})},d=p=>{u(p,c===window||c===document||n.useGlobalTarget||Ll(c,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Fl(a)&&(a.addEventListener("focus",l=>Z0(l,o)),!Y0(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Bl(e){return Oc(e)&&"ownerSVGElement"in e}function q0(e){return Bl(e)&&e.tagName==="svg"}const Te=e=>!!(e&&e.getVelocity),Q0=[...Cl,de,ft],J0=e=>Q0.find(Al(e)),gi=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class e1 extends h.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=Fl(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function t1({children:e,isPresent:t,anchorX:n,root:r}){const o=E.useId(),i=E.useRef(null),s=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=E.useContext(gi);return E.useInsertionEffect(()=>{const{width:c,height:l,top:u,left:d,right:f}=s.current;if(t||!i.current||!c||!l)return;const p=n==="left"?`left: ${d}`:`right: ${f}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const m=r??document.head;return m.appendChild(y),y.sheet&&y.sheet.insertRule(`
82
+ `)}function m0(e){var t={};if(e.inner){if(e.inner.length===0)return Be(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var s=i;J(t,s.path)||(t=Be(t,s.path,s.message))}}return t}function g0(e,t,n,r){n===void 0&&(n=!1);var o=io(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function io(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||ks(o)?io(o):o!==""?o:void 0}):ks(e[r])?t[r]=io(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function y0(e,t,n){var r=e.slice();return t.forEach(function(i,s){if(typeof r[s]>"u"){var a=n.clone!==!1,c=a&&n.isMergeableObject(i);r[s]=c?_r(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=_r(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function v0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function b0(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var w0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function De(e){var t=E.useRef(e);return w0(function(){t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function bn(e){var t=xt(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=Ut(e),c=a?e:{name:e},l=c.name,u=c.validate;E.useEffect(function(){return l&&i(l,{validate:u}),function(){l&&s(l)}},[i,s,l,u]),z.env.NODE_ENV!=="production"&&(t||(z.env.NODE_ENV!=="production"?ae(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):ae())),l||(z.env.NODE_ENV!=="production"?ae(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):ae());var d=E.useMemo(function(){return o(l)},[o,l]);return[n(c),r(l),d]}function so(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,c=it(e,["validate","name","render","children","as","component","className"]),l=xt(),u=it(l,["validate","validationSchema"]);z.env.NODE_ENV!=="production"&&E.useEffect(function(){r&&(z.env.NODE_ENV!=="production"?ae(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):ae()),i&&o&&pe(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):ae()),s&&o&&pe(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):ae()),r&&o&&!ro(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):ae())},[]);var d=u.registerField,h=u.unregisterField;E.useEffect(function(){return d(n,{validate:t}),function(){h(n)}},[d,h,n,t]);var p=u.getFieldProps(G({name:n},c)),y=u.getFieldMeta(n),m={field:p,form:u};if(r)return r(G({},m,{meta:y}));if(pe(o))return o(G({},m,{meta:y}));if(s){if(typeof s=="string"){var g=c.innerRef,v=it(c,["innerRef"]);return E.createElement(s,G({ref:g},p,v,{className:a}),o)}return E.createElement(s,G({field:p,form:u},c,{className:a}),o)}var x=i||"input";if(typeof x=="string"){var T=c.innerRef,C=it(c,["innerRef"]);return E.createElement(x,G({ref:T},p,C,{className:a}),o)}return E.createElement(x,G({},p,c,{className:a}),o)}var T0=E.forwardRef(function(e,t){var n=e.action,r=it(e,["action"]),o=n??"#",i=xt(),s=i.handleReset,a=i.handleSubmit;return E.createElement("form",G({onSubmit:a,ref:t,onReset:s,action:o},r))});T0.displayName="Form";function E0(e){var t=function(o){return E.createElement(l0,null,function(i){return i||(z.env.NODE_ENV!=="production"?ae(!1,"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: "+e.name):ae()),E.createElement(e,G({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",a0(t,e)}var x0=function(t,n,r){var o=At(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},S0=function(t,n,r){var o=At(t),i=o[n];return o[n]=o[r],o[r]=i,o},ao=function(t,n,r){var o=At(t);return o.splice(n,0,r),o},A0=function(t,n,r){var o=At(t);return o[n]=r,o},At=function(t){if(t){if(Array.isArray(t))return[].concat(t);var n=Object.keys(t).map(function(r){return parseInt(r)}).reduce(function(r,o){return o>r?o:r},0);return Array.from(G({},t,{length:n+1}))}else return[]},_a=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||Ut(o)){var i=At(o);return r(i)}return o}},C0=function(e){ka(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,s,a){var c=o.props,l=c.name,u=c.formik.setFormikState;u(function(d){var h=_a(a,i),p=_a(s,i),y=Be(d.values,l,i(J(d.values,l))),m=a?h(J(d.errors,l)):void 0,g=s?p(J(d.touched,l)):void 0;return Na(m)&&(m=void 0),Na(g)&&(g=void 0),G({},d,{values:y,errors:a?Be(d.errors,l,m):d.errors,touched:s?Be(d.touched,l,g):d.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(At(s),[vn(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(a){return S0(a,i,s)},!0,!0)},o.handleSwap=function(i,s){return function(){return o.swap(i,s)}},o.move=function(i,s){return o.updateArrayField(function(a){return x0(a,i,s)},!0,!0)},o.handleMove=function(i,s){return function(){return o.move(i,s)}},o.insert=function(i,s){return o.updateArrayField(function(a){return ao(a,i,s)},function(a){return ao(a,i,null)},function(a){return ao(a,i,null)})},o.handleInsert=function(i,s){return function(){return o.insert(i,s)}},o.replace=function(i,s){return o.updateArrayField(function(a){return A0(a,i,s)},!1,!1)},o.handleReplace=function(i,s){return function(){return o.replace(i,s)}},o.unshift=function(i){var s=-1;return o.updateArrayField(function(a){var c=a?[i].concat(a):[i];return s=c.length,c},function(a){return a?[null].concat(a):[null]},function(a){return a?[null].concat(a):[null]}),s},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(Ia(o)),o.pop=o.pop.bind(Ia(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!ot(J(o.formik.values,o.name),J(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(s){var a=s?At(s):[];return i||(i=a[o]),pe(a.splice)&&a.splice(o,1),pe(a.every)&&a.every(function(c){return c===void 0})?[]:a},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var s=i.slice();return o||(o=s&&s.pop&&s.pop()),s},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,a=i.render,c=i.children,l=i.name,u=i.formik,d=it(u,["validate","validationSchema"]),h=G({},o,{form:d,name:l});return s?E.createElement(s,h):a?a(h):c?typeof c=="function"?c(h):ro(c)?null:E.Children.only(c):null},t}(E.Component);C0.defaultProps={validateOnChange:!0};var P0=function(e){ka(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(o){return J(this.props.formik.errors,this.props.name)!==J(o.formik.errors,this.props.name)||J(this.props.formik.touched,this.props.name)!==J(o.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(o).length},n.render=function(){var o=this.props,i=o.component,s=o.formik,a=o.render,c=o.children,l=o.name,u=it(o,["component","formik","render","children","name"]),d=J(s.touched,l),h=J(s.errors,l);return d&&h?a?pe(a)?a(h):null:c?pe(c)?c(h):null:i?E.createElement(i,u,h):h:null},t}(E.Component),co=E0(P0);const ja=E.createContext({}),Gn=()=>E.useContext(ja),M0="w-full",lo="flex ml-5 mt-2 text-xs text-feedback-danger-200";function D0({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:n,isDisabled:r,...o}){const{isSubmitting:i,dirty:s,isValid:a}=xt(),{isForcedDirty:c,onNavigationEvent:l}=Gn(),u=h=>{l(()=>o.onClick)},d=E.useMemo(()=>!!(r||e&&i||t&&!s||t&&typeof c=="boolean"&&!c||n&&!a),[e,t,r,i,c,s,a,n]);return b.jsx(ln,{...o,isDisabled:d,onClick:o.type!=="submit"&&(s||typeof c<"u"&&c)?u:o.onClick})}const uo=E.createContext({});function fo(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const ho=typeof window<"u",Ba=ho?E.useLayoutEffect:E.useEffect,Yn=E.createContext(null);function po(e,t){e.indexOf(t)===-1&&e.push(t)}function mo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ye=(e,t,n)=>n>t?t:n<e?e:n;function go(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let $t=()=>{},Xe=()=>{};z.env.NODE_ENV!=="production"&&($t=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(go(t,n))},Xe=(e,t,n)=>{if(!e)throw new Error(go(t,n))});const qe={},Ua=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function $a(e){return typeof e=="object"&&e!==null}const Wa=e=>/^0[^.\s]+$/u.test(e);function yo(e){let t;return()=>(t===void 0&&(t=e()),t)}const Oe=e=>e,O0=(e,t)=>n=>t(e(n)),wn=(...e)=>e.reduce(O0),Tn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class vo{constructor(){this.subscriptions=[]}add(t){return po(this.subscriptions,t),()=>mo(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ke=e=>e*1e3,Ue=e=>e/1e3;function za(e,t){return t?e*(1e3/t):0}const Za=new Set;function bo(e,t,n){e||Za.has(t)||(console.warn(go(t,n)),Za.add(t))}const Ha=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,V0=1e-7,F0=12;function k0(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Ha(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>V0&&++a<F0);return s}function En(e,t,n,r){if(e===t&&n===r)return Oe;const o=i=>k0(i,0,1,e,n);return i=>i===0||i===1?i:Ha(o(i),t,r)}const Ka=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ga=e=>t=>1-e(1-t),Ya=En(.33,1.53,.69,.99),wo=Ga(Ya),Xa=Ka(wo),qa=e=>(e*=2)<1?.5*wo(e):.5*(2-Math.pow(2,-10*(e-1))),To=e=>1-Math.sin(Math.acos(e)),Qa=Ga(To),Ja=Ka(To),I0=En(.42,0,1,1),N0=En(0,0,.58,1),ec=En(.42,0,.58,1),L0=e=>Array.isArray(e)&&typeof e[0]!="number",tc=e=>Array.isArray(e)&&typeof e[0]=="number",nc={linear:Oe,easeIn:I0,easeInOut:ec,easeOut:N0,circIn:To,circInOut:Ja,circOut:Qa,backIn:wo,backInOut:Xa,backOut:Ya,anticipate:qa},R0=e=>typeof e=="string",rc=e=>{if(tc(e)){Xe(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return En(t,n,r,o)}else if(R0(e))return Xe(nc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),nc[e];return e},Xn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _0(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,d=!1,h=!1)=>{const y=h&&o?n:r;return d&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,i&&(i=!1,l.process(u))}};return l}const j0=40;function oc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Xn.reduce((T,C)=>(T[C]=_0(i),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:h,render:p,postRender:y}=s,m=()=>{const T=qe.useManualTiming?o.timestamp:performance.now();n=!1,qe.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(T-o.timestamp,j0),1)),o.timestamp=T,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),d.process(o),h.process(o),p.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:Xn.reduce((T,C)=>{const w=s[C];return T[C]=(P,A=!1,M=!1)=>(n||g(),w.schedule(P,A,M)),T},{}),cancel:T=>{for(let C=0;C<Xn.length;C++)s[Xn[C]].cancel(T)},state:o,steps:s}}const{schedule:ee,cancel:st,state:ve,steps:Eo}=oc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Oe,!0);let qn;function B0(){qn=void 0}const Se={now:()=>(qn===void 0&&Se.set(ve.isProcessing||qe.useManualTiming?ve.timestamp:performance.now()),qn),set:e=>{qn=e,queueMicrotask(B0)}},ic=e=>t=>typeof t=="string"&&t.startsWith(e),xo=ic("--"),U0=ic("var(--"),So=e=>U0(e)?$0.test(e.split("/*")[0].trim()):!1,$0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Wt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xn={...Wt,transform:e=>Ye(0,1,e)},Qn={...Wt,default:1},Sn=e=>Math.round(e*1e5)/1e5,Ao=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function W0(e){return e==null}const z0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Co=(e,t)=>n=>!!(typeof n=="string"&&z0.test(n)&&n.startsWith(e)||t&&!W0(n)&&Object.prototype.hasOwnProperty.call(n,t)),sc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Ao);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Z0=e=>Ye(0,255,e),Po={...Wt,transform:e=>Math.round(Z0(e))},Ct={test:Co("rgb","red"),parse:sc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Po.transform(e)+", "+Po.transform(t)+", "+Po.transform(n)+", "+Sn(xn.transform(r))+")"};function H0(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Mo={test:Co("#"),parse:H0,transform:Ct.transform},An=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),at=An("deg"),$e=An("%"),_=An("px"),K0=An("vh"),G0=An("vw"),ac={...$e,parse:e=>$e.parse(e)/100,transform:e=>$e.transform(e*100)},zt={test:Co("hsl","hue"),parse:sc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$e.transform(Sn(t))+", "+$e.transform(Sn(n))+", "+Sn(xn.transform(r))+")"},de={test:e=>Ct.test(e)||Mo.test(e)||zt.test(e),parse:e=>Ct.test(e)?Ct.parse(e):zt.test(e)?zt.parse(e):Mo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ct.transform(e):zt.transform(e),getAnimatableNone:e=>{const t=de.parse(e);return t.alpha=0,de.transform(t)}},Y0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function X0(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ao))==null?void 0:t.length)||0)+(((n=e.match(Y0))==null?void 0:n.length)||0)>0}const cc="number",lc="color",q0="var",Q0="var(",uc="${}",J0=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Cn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(J0,c=>(de.test(c)?(r.color.push(i),o.push(lc),n.push(de.parse(c))):c.startsWith(Q0)?(r.var.push(i),o.push(q0),n.push(c)):(r.number.push(i),o.push(cc),n.push(parseFloat(c))),++i,uc)).split(uc);return{values:n,split:a,indexes:r,types:o}}function dc(e){return Cn(e).values}function fc(e){const{split:t,types:n}=Cn(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===cc?i+=Sn(o[s]):a===lc?i+=de.transform(o[s]):i+=o[s]}return i}}const ey=e=>typeof e=="number"?0:de.test(e)?de.getAnimatableNone(e):e;function ty(e){const t=dc(e);return fc(e)(t.map(ey))}const ct={test:X0,parse:dc,createTransformer:fc,getAnimatableNone:ty};function Do(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ny({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=Do(c,a,e+1/3),i=Do(c,a,e),s=Do(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Jn(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,Oo=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},ry=[Mo,Ct,zt],oy=e=>ry.find(t=>t.test(e));function hc(e){const t=oy(e);if($t(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===zt&&(n=ny(n)),n}const pc=(e,t)=>{const n=hc(e),r=hc(t);if(!n||!r)return Jn(e,t);const o={...n};return i=>(o.red=Oo(n.red,r.red,i),o.green=Oo(n.green,r.green,i),o.blue=Oo(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),Ct.transform(o))},Vo=new Set(["none","hidden"]);function iy(e,t){return Vo.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sy(e,t){return n=>ne(e,t,n)}function Fo(e){return typeof e=="number"?sy:typeof e=="string"?So(e)?Jn:de.test(e)?pc:ly:Array.isArray(e)?mc:typeof e=="object"?de.test(e)?pc:ay:Jn}function mc(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Fo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function ay(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Fo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function cy(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const ly=(e,t)=>{const n=ct.createTransformer(t),r=Cn(e),o=Cn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Vo.has(e)&&!o.values.length||Vo.has(t)&&!r.values.length?iy(e,t):wn(mc(cy(r,o),o.values),n):($t(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Jn(e,t))};function gc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):Fo(e)(e,t)}const uy=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ee.update(t,n),stop:()=>st(t),now:()=>ve.isProcessing?ve.timestamp:Se.now()}},yc=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},er=2e4;function ko(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<er;)t+=n,r=e.next(t);return t>=er?1/0:t}function dy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(ko(r),er);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ue(o)}}const fy=5;function vc(e,t,n){const r=Math.max(t-fy,0);return za(n-e(r),t-r)}const re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},bc=.001;function hy({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;$t(e<=ke(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ye(re.minDamping,re.maxDamping,s),e=Ye(re.minDuration,re.maxDuration,Ue(e)),s<1?(o=l=>{const u=l*s,d=u*e,h=u-n,p=Io(l,s),y=Math.exp(-d);return bc-h/p*y},i=l=>{const d=l*s*e,h=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-d),m=Io(Math.pow(l,2),s);return(-o(l)+bc>0?-1:1)*((h-p)*y)/m}):(o=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=my(o,i,a);if(e=ke(e),isNaN(c))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const py=12;function my(e,t,n){let r=n;for(let o=1;o<py;o++)r=r-e(r)/t(r);return r}function Io(e,t){return e*Math.sqrt(1-t*t)}const gy=["duration","bounce"],yy=["stiffness","damping","mass"];function wc(e,t){return t.some(n=>e[n]!==void 0)}function vy(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!wc(e,yy)&&wc(e,gy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ye(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=hy(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function tr(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:h,isResolvedFromDuration:p}=vy({...n,velocity:-Ue(n.velocity||0)}),y=h||0,m=l/(2*Math.sqrt(c*u)),g=s-i,v=Ue(Math.sqrt(c/u)),x=Math.abs(g)<5;r||(r=x?re.restSpeed.granular:re.restSpeed.default),o||(o=x?re.restDelta.granular:re.restDelta.default);let T;if(m<1){const w=Io(v,m);T=P=>{const A=Math.exp(-m*v*P);return s-A*((y+m*v*g)/w*Math.sin(w*P)+g*Math.cos(w*P))}}else if(m===1)T=w=>s-Math.exp(-v*w)*(g+(y+v*g)*w);else{const w=v*Math.sqrt(m*m-1);T=P=>{const A=Math.exp(-m*v*P),M=Math.min(w*P,300);return s-A*((y+m*v*g)*Math.sinh(M)+w*g*Math.cosh(M))/w}}const C={calculatedDuration:p&&d||null,next:w=>{const P=T(w);if(p)a.done=w>=d;else{let A=w===0?y:0;m<1&&(A=w===0?ke(y):vc(T,w,P));const M=Math.abs(A)<=r,k=Math.abs(s-P)<=o;a.done=M&&k}return a.value=a.done?s:P,a},toString:()=>{const w=Math.min(ko(C),er),P=yc(A=>C.next(w*A).value,w,30);return w+"ms "+P},toTransition:()=>{}};return C}tr.applyToOptions=e=>{const t=dy(e,100,tr);return e.ease=t.ease,e.duration=ke(t.duration),e.type="keyframes",e};function No({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=M=>a!==void 0&&M<a||c!==void 0&&M>c,y=M=>a===void 0?c:c===void 0||Math.abs(a-M)<Math.abs(c-M)?a:c;let m=n*t;const g=d+m,v=s===void 0?g:s(g);v!==g&&(m=v-d);const x=M=>-m*Math.exp(-M/r),T=M=>v+x(M),C=M=>{const k=x(M),U=T(M);h.done=Math.abs(k)<=l,h.value=h.done?v:U};let w,P;const A=M=>{p(h.value)&&(w=M,P=tr({keyframes:[h.value,y(h.value)],velocity:vc(T,M,h.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:M=>{let k=!1;return!P&&w===void 0&&(k=!0,C(M),A(M)),w!==void 0&&M>=w?P.next(M-w):(!k&&C(M),h)}}}function by(e,t,n){const r=[],o=n||qe.mix||gc,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||Oe:t;a=wn(c,a)}r.push(a)}return r}function wy(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Xe(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=by(t,r,o),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=Tn(e[d],e[d+1],u);return a[d](h)};return n?u=>l(Ye(e[0],e[i-1],u)):l}function Ty(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Tn(0,t,r);e.push(ne(n,1,o))}}function Ey(e){const t=[0];return Ty(t,e.length-1),t}function xy(e,t){return e.map(n=>n*t)}function Sy(e,t){return e.map(()=>t||ec).splice(0,e.length-1)}function Zt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=L0(r)?r.map(rc):rc(r),i={done:!1,value:t[0]},s=xy(n&&n.length===t.length?n:Ey(t),e),a=wy(s,t,{ease:Array.isArray(o)?o:Sy(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const Ay=e=>e!==null;function Lo(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Ay),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Cy={decay:No,inertia:No,tween:Zt,keyframes:Zt,spring:tr};function Tc(e){typeof e.type=="string"&&(e.type=Cy[e.type])}class Ro{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Py=e=>e/100;class _o extends Ro{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Se.now()&&this.tick(Se.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Tc(t);const{type:n=Zt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Zt;z.env.NODE_ENV!=="production"&&c!==Zt&&Xe(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Zt&&typeof a[0]!="number"&&(this.mixKeyframes=wn(Py,gc(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=ko(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let T=this.currentTime,C=r;if(d){const M=Math.min(this.currentTime,o)/a;let k=Math.floor(M),U=M%1;!U&&M>=1&&(U=1),U===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(h==="reverse"?(U=1-U,p&&(U-=p/a)):h==="mirror"&&(C=s)),T=Ye(0,1,U)*a}const w=x?{done:!1,value:u[0]}:C.next(T);i&&(w.value=i(w.value));let{done:P}=w;!x&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&y!==No&&(w.value=Lo(u,this.options,g,this.speed)),m&&m(w.value),A&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return Ue(this.calculatedDuration)}get time(){return Ue(this.currentTime)}set time(t){var n;t=ke(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Se.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ue(this.currentTime))}play(){var o,i;if(this.isStopped)return;const{driver:t=uy,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(i=(o=this.options).onPlay)==null||i.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Se.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function My(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Pt=e=>e*180/Math.PI,jo=e=>{const t=Pt(Math.atan2(e[1],e[0]));return Bo(t)},Dy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:jo,rotateZ:jo,skewX:e=>Pt(Math.atan(e[1])),skewY:e=>Pt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bo=e=>(e=e%360,e<0&&(e+=360),e),Ec=jo,xc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Sc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Oy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xc,scaleY:Sc,scale:e=>(xc(e)+Sc(e))/2,rotateX:e=>Bo(Pt(Math.atan2(e[6],e[5]))),rotateY:e=>Bo(Pt(Math.atan2(-e[2],e[0]))),rotateZ:Ec,rotate:Ec,skewX:e=>Pt(Math.atan(e[4])),skewY:e=>Pt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Uo(e){return e.includes("scale")?1:0}function $o(e,t){if(!e||e==="none")return Uo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Oy,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Dy,o=a}if(!o)return Uo(t);const i=r[t],s=o[1].split(",").map(Fy);return typeof i=="function"?i(s):s[i]}const Vy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return $o(n,t)};function Fy(e){return parseFloat(e.trim())}const Ht=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kt=new Set(Ht),Ac=e=>e===Wt||e===_,ky=new Set(["x","y","z"]),Iy=Ht.filter(e=>!ky.has(e));function Ny(e){const t=[];return Iy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>$o(t,"x"),y:(e,{transform:t})=>$o(t,"y")};Mt.translateX=Mt.x,Mt.translateY=Mt.y;const Dt=new Set;let Wo=!1,zo=!1,Zo=!1;function Cc(){if(zo){const e=Array.from(Dt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Ny(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zo=!1,Wo=!1,Dt.forEach(e=>e.complete(Zo)),Dt.clear()}function Pc(){Dt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zo=!0)})}function Ly(){Zo=!0,Pc(),Cc(),Zo=!1}class Ho{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Dt.add(this),Wo||(Wo=!0,ee.read(Pc),ee.resolveKeyframes(Cc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}My(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dt.delete(this)}cancel(){this.state==="scheduled"&&(Dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ry=e=>e.startsWith("--");function _y(e,t,n){Ry(t)?e.style.setProperty(t,n):e.style[t]=n}const jy=yo(()=>window.ScrollTimeline!==void 0),By={};function Uy(e,t){const n=yo(e);return()=>By[t]??n()}const Mc=Uy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pn([0,.65,.55,1]),circOut:Pn([.55,0,1,.45]),backIn:Pn([.31,.01,.66,-.59]),backOut:Pn([.33,1.53,.69,.99])};function Oc(e,t){if(e)return typeof e=="function"?Mc()?yc(e,t):"ease-out":tc(e)?Pn(e):Array.isArray(e)?e.map(n=>Oc(n,t)||Dc.easeOut):Dc[e]}function $y(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const d=Oc(a,o);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),e.animate(u,h)}function Vc(e){return typeof e=="function"&&"applyToOptions"in e}function Wy({type:e,...t}){return Vc(e)&&Mc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zy extends Ro{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Xe(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Wy(t);this.animation=$y(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Lo(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):_y(n,r,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ue(Number(t))}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ke(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&jy()?(this.animation.timeline=t,Oe):n(this)}}const Fc={anticipate:qa,backInOut:Xa,circInOut:Ja};function Zy(e){return e in Fc}function Hy(e){typeof e.ease=="string"&&Zy(e.ease)&&(e.ease=Fc[e.ease])}const kc=10;class Ky extends zy{constructor(t){Hy(t),Tc(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new _o({...s,autoplay:!1}),c=ke(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-kc).value,a.sample(c).value,kc),a.stop()}}const Ic=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ct.test(e)||e==="0")&&!e.startsWith("url("));function Gy(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Yy(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Ic(o,t),a=Ic(i,t);return $t(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:Gy(e)||(n==="spring"||Vc(n))&&r}function Ko(e){e.duration=0,e.type}const Xy=new Set(["opacity","clipPath","filter","transform"]),qy=yo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qy(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return qy()&&n&&Xy.has(n)&&(n!=="transform"||!l)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const Jy=40;class ev extends Ro{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:c,motionValue:l,element:u,...d}){var y;super(),this.stop=()=>{var m,g;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=Se.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:c,motionValue:l,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||Ho;this.keyframeResolver=new p(a,(m,g,v)=>this.onKeyframesResolved(m,g,h,!v),c,l,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=Se.now(),Yy(t,i,s,a)||((qe.instantAnimations||!c)&&(u==null||u(Lo(t,r,n))),t[0]=t[t.length-1],Ko(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Jy?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&Qy(h)?new Ky({...h,element:h.motionValue.owner.current}):new _o(h);p.finished.then(()=>this.notifyFinished()).catch(Oe),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Ly()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const tv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nv(e){const t=tv.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const rv=4;function Nc(e,t,n=1){Xe(n<=rv,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=nv(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Ua(s)?parseFloat(s):s}return So(o)?Nc(o,t,n+1):o}function Go(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Lc=new Set(["width","height","top","left","right","bottom",...Ht]),ov={test:e=>e==="auto",parse:e=>e},Rc=e=>t=>t.test(e),_c=[Wt,_,$e,at,G0,K0,ov],jc=e=>_c.find(Rc(e));function iv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Wa(e):!0}const sv=new Set(["brightness","contrast","saturate","opacity"]);function av(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ao)||[];if(!r)return e;const o=n.replace(r,"");let i=sv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const cv=/\b([a-z-]*)\(.*?\)/gu,Yo={...ct,getAnimatableNone:e=>{const t=e.match(cv);return t?t.map(av).join(" "):e}},Bc={...Wt,transform:Math.round},Xo={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,backgroundPositionX:_,backgroundPositionY:_,...{rotate:at,rotateX:at,rotateY:at,rotateZ:at,scale:Qn,scaleX:Qn,scaleY:Qn,scaleZ:Qn,skew:at,skewX:at,skewY:at,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:xn,originX:ac,originY:ac,originZ:_},zIndex:Bc,fillOpacity:xn,strokeOpacity:xn,numOctaves:Bc},lv={...Xo,color:de,backgroundColor:de,outlineColor:de,fill:de,stroke:de,borderColor:de,borderTopColor:de,borderRightColor:de,borderBottomColor:de,borderLeftColor:de,filter:Yo,WebkitFilter:Yo},Uc=e=>lv[e];function $c(e,t){let n=Uc(e);return n!==Yo&&(n=ct),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const uv=new Set(["auto","none","0"]);function dv(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!uv.has(i)&&Cn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=$c(n,o)}class fv extends Ho{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),So(l))){const u=Nc(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Lc.has(r)||t.length!==2)return;const[o,i]=t,s=jc(o),a=jc(i);if(s!==a)if(Ac(s)&&Ac(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Mt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||iv(t[o]))&&r.push(o);r.length&&dv(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Mt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Mt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function hv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=(n==null?void 0:n[e])??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Wc=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function zc(e){return $a(e)&&"offsetHeight"in e}const Zc=30,pv=e=>!isNaN(parseFloat(e));class mv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const o=Se.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Se.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return z.env.NODE_ENV!=="production"&&bo(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new vo);const r=this.events[t].add(n);return t==="change"?()=>{r(),ee.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Se.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zc);return za(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Gt(e,t){return new mv(e,t)}const{schedule:qo}=oc(queueMicrotask,!1),Ie={x:!1,y:!1};function Hc(){return Ie.x||Ie.y}function gv(e){return e==="x"||e==="y"?Ie[e]?null:(Ie[e]=!0,()=>{Ie[e]=!1}):Ie.x||Ie.y?null:(Ie.x=Ie.y=!0,()=>{Ie.x=Ie.y=!1})}function Kc(e,t){const n=hv(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Gc(e){return!(e.pointerType==="touch"||Hc())}function yv(e,t,n={}){const[r,o,i]=Kc(e,n),s=a=>{if(!Gc(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Gc(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Yc=(e,t)=>t?e===t?!0:Yc(e,t.parentElement):!1,Qo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,vv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bv(e){return vv.has(e.tagName)||e.tabIndex!==-1}const nr=new WeakSet;function Xc(e){return t=>{t.key==="Enter"&&e(t)}}function Jo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const wv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xc(()=>{if(nr.has(n))return;Jo(n,"down");const o=Xc(()=>{Jo(n,"up")}),i=()=>Jo(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function qc(e){return Qo(e)&&!Hc()}function Tv(e,t,n={}){const[r,o,i]=Kc(e,n),s=a=>{const c=a.currentTarget;if(!qc(a))return;nr.add(c);const l=t(c,a),u=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),nr.has(c)&&nr.delete(c),qc(p)&&typeof l=="function"&&l(p,{success:y})},d=p=>{u(p,c===window||c===document||n.useGlobalTarget||Yc(c,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),zc(a)&&(a.addEventListener("focus",l=>wv(l,o)),!bv(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Qc(e){return $a(e)&&"ownerSVGElement"in e}function Ev(e){return Qc(e)&&e.tagName==="svg"}const Te=e=>!!(e&&e.getVelocity),xv=[..._c,de,ct],Sv=e=>xv.find(Rc(e)),ei=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Av extends f.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=zc(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Cv({children:e,isPresent:t,anchorX:n,root:r}){const o=E.useId(),i=E.useRef(null),s=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=E.useContext(ei);return E.useInsertionEffect(()=>{const{width:c,height:l,top:u,left:d,right:h}=s.current;if(t||!i.current||!c||!l)return;const p=n==="left"?`left: ${d}`:`right: ${h}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const m=r??document.head;return m.appendChild(y),y.sheet&&y.sheet.insertRule(`
119
83
  [data-motion-pop-id="${o}"] {
120
84
  position: absolute !important;
121
85
  width: ${c}px !important;
@@ -123,7 +87,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
123
87
  ${p}px !important;
124
88
  top: ${u}px !important;
125
89
  }
126
- `),()=>{m.contains(y)&&m.removeChild(y)}},[t]),T.jsx(e1,{isPresent:t,childRef:i,sizeRef:s,children:h.cloneElement(e,{ref:i})})}const n1=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:c})=>{const l=Mo(r1),u=E.useId();let d=!0,f=E.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:p=>{l.set(p,!0);for(const y of l.values())if(!y)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,r]);return i&&d&&(f={...f}),E.useMemo(()=>{l.forEach((p,y)=>l.set(y,!1))},[n]),h.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=T.jsx(t1,{isPresent:n,anchorX:a,root:c,children:e})),T.jsx(cr.Provider,{value:f,children:e})};function r1(){return new Map}function Ul(e=!0){const t=E.useContext(cr);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=E.useId();E.useEffect(()=>{if(e)return o(i)},[e]);const s=E.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const gr=e=>e.key||"";function $l(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const o1=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:c})=>{const[l,u]=Ul(s),d=E.useMemo(()=>$l(e),[e]),f=s&&!l?[]:d.map(gr),p=E.useRef(!0),y=E.useRef(d),m=Mo(()=>new Map),[g,v]=E.useState(d),[x,w]=E.useState(d);Mc(()=>{p.current=!1,y.current=d;for(let P=0;P<x.length;P++){const A=gr(x[P]);f.includes(A)?m.delete(A):m.get(A)!==!0&&m.set(A,!1)}},[x,f.length,f.join("-")]);const C=[];if(d!==g){let P=[...d];for(let A=0;A<x.length;A++){const M=x[A],R=gr(M);f.includes(R)||(P.splice(A,0,M),C.push(M))}return i==="wait"&&C.length&&(P=C),w($l(P)),v(d),null}z.env.NODE_ENV!=="production"&&i==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:b}=E.useContext(Po);return T.jsx(T.Fragment,{children:x.map(P=>{const A=gr(P),M=s&&!l?!1:d===x||f.includes(A),R=()=>{if(m.has(A))m.set(A,!0);else return;let U=!0;m.forEach(oe=>{oe||(U=!1)}),U&&(b==null||b(),w(y.current),s&&(u==null||u()),r&&r())};return T.jsx(n1,{isPresent:M,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:M?void 0:R,anchorX:a,children:P},A)})})},Wl=E.createContext({strict:!1}),zl={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Qt={};for(const e in zl)Qt[e]={isEnabled:t=>zl[e].some(n=>!!t[n])};function i1(e){for(const t in e)Qt[t]={...Qt[t],...e[t]}}const s1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function yr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||s1.has(e)}let Kl=e=>!yr(e);function a1(e){typeof e=="function"&&(Kl=t=>t.startsWith("on")?!yr(t):e(t))}try{a1(require("@emotion/is-prop-valid").default)}catch{}function c1(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Kl(o)||n===!0&&yr(o)||!t&&!yr(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const vr=E.createContext({});function br(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Cn(e){return typeof e=="string"||Array.isArray(e)}const yi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vi=["initial",...yi];function wr(e){return br(e.animate)||vi.some(t=>Cn(e[t]))}function Hl(e){return!!(wr(e)||e.variants)}function l1(e,t){if(wr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Cn(n)?n:void 0,animate:Cn(r)?r:void 0}}return e.inherit!==!1?t:{}}function u1(e){const{initial:t,animate:n}=l1(e,E.useContext(vr));return E.useMemo(()=>({initial:t,animate:n}),[Gl(t),Gl(n)])}function Gl(e){return Array.isArray(e)?e.join(" "):e}const Pn={};function d1(e){for(const t in e)Pn[t]=e[t],jo(t)&&(Pn[t].isCSSVariable=!0)}function Yl(e,{layout:t,layoutId:n}){return Xt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Pn[e]||e==="opacity")}const f1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},h1=Zt.length;function p1(e,t,n){let r="",o=!0;for(let i=0;i<h1;i++){const s=Zt[i],a=e[s];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(s.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=kl(a,fi[s]);if(!c){o=!1;const u=f1[s]||s;r+=`${u}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function bi(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const c in t){const l=t[c];if(Xt.has(c)){s=!0;continue}else if(jo(c)){o[c]=l;continue}else{const u=kl(l,fi[c]);c.startsWith("origin")?(a=!0,i[c]=u):r[c]=u}}if(t.transform||(s||n?r.transform=p1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=i;r.transformOrigin=`${c} ${l} ${u}`}}const wi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Zl(e,t,n){for(const r in t)!Te(t[r])&&!Yl(r,n)&&(e[r]=t[r])}function m1({transformTemplate:e},t){return E.useMemo(()=>{const n=wi();return bi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function g1(e,t){const n=e.style||{},r={};return Zl(r,n,e),Object.assign(r,m1(e,t)),r}function y1(e,t){const n={},r=g1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const v1={offset:"stroke-dashoffset",array:"stroke-dasharray"},b1={offset:"strokeDashoffset",array:"strokeDasharray"};function w1(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?v1:b1;e[i.offset]=_.transform(-r);const s=_.transform(t),a=_.transform(n);e[i.array]=`${s} ${a}`}function Xl(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},c,l,u){if(bi(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&w1(d,o,i,s,!1)}const ql=()=>({...wi(),attrs:{}}),Ql=e=>typeof e=="string"&&e.toLowerCase()==="svg";function T1(e,t,n,r){const o=E.useMemo(()=>{const i=ql();return Xl(i,t,Ql(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Zl(i,e.style,e),o.style={...i,...o.style}}return o}const E1=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ti(e){return typeof e!="string"||e.includes("-")?!1:!!(E1.indexOf(e)>-1||/[A-Z]/u.test(e))}function x1(e,t,n,{latestValues:r},o,i=!1){const a=(Ti(e)?T1:y1)(t,r,o,e),c=c1(t,typeof e=="string",i),l=e!==E.Fragment?{...c,...a,ref:n}:{},{children:u}=t,d=E.useMemo(()=>Te(u)?u.get():u,[u]);return E.createElement(e,{...l,children:d})}function Jl(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ei(e,t,n,r){if(typeof t=="function"){const[o,i]=Jl(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Jl(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Tr(e){return Te(e)?e.get():e}function S1({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:A1(n,r,o,e),renderState:t()}}function A1(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Tr(i[f]);let{initial:s,animate:a}=e;const c=wr(e),l=Hl(e);t&&l&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!br(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const y=Ei(e,f[p]);if(y){const{transitionEnd:m,transition:g,...v}=y;for(const x in v){let w=v[x];if(Array.isArray(w)){const C=u?w.length-1:0;w=w[C]}w!==null&&(o[x]=w)}for(const x in m)o[x]=m[x]}}}return o}const eu=e=>(t,n)=>{const r=E.useContext(vr),o=E.useContext(cr),i=()=>S1(e,t,r,o);return n?i():Mo(i)};function xi(e,t,n){var i;const{style:r}=e,o={};for(const s in r)(Te(r[s])||t.style&&Te(t.style[s])||Yl(s,e)||((i=n==null?void 0:n.getValue(s))==null?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const C1=eu({scrapeMotionValuesFromProps:xi,createRenderState:wi});function tu(e,t,n){const r=xi(e,t,n);for(const o in e)if(Te(e[o])||Te(t[o])){const i=Zt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const P1=eu({scrapeMotionValuesFromProps:tu,createRenderState:ql}),M1=Symbol.for("motionComponentSymbol");function Jt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function D1(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Jt(n)&&(n.current=r))},[t])}const Si=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),nu="data-"+Si("framerAppearId"),ru=E.createContext({});function O1(e,t,n,r,o){var m,g;const{visualElement:i}=E.useContext(vr),s=E.useContext(Wl),a=E.useContext(cr),c=E.useContext(gi).reducedMotion,l=E.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=l.current,d=E.useContext(ru);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&k1(l.current,n,o,d);const f=E.useRef(!1);E.useInsertionEffect(()=>{u&&f.current&&u.update(n,a)});const p=n[nu],y=E.useRef(!!p&&!((m=window.MotionHandoffIsComplete)!=null&&m.call(window,p))&&((g=window.MotionHasOptimisedAnimation)==null?void 0:g.call(window,p)));return Mc(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),y.current&&u.animationState&&u.animationState.animateChanges())}),E.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,p)}),y.current=!1),u.enteringChildren=void 0)}),u}function k1(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ou(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Jt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function ou(e){if(e)return e.options.allowProjection!==!1?e.projection:ou(e.parent)}function Ai(e,{forwardMotionProps:t=!1}={},n,r){n&&i1(n);const o=Ti(e)?P1:C1;function i(a,c){let l;const u={...E.useContext(gi),...a,layoutId:F1(a)},{isStatic:d}=u,f=u1(a),p=o(a,d);if(!d&&Do){R1(u,n);const y=I1(u);l=y.MeasureLayout,f.visualElement=O1(e,p,u,r,y.ProjectionNode)}return T.jsxs(vr.Provider,{value:f,children:[l&&f.visualElement?T.jsx(l,{visualElement:f.visualElement,...u}):null,x1(e,a,D1(p,f.visualElement,c),p,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=E.forwardRef(i);return s[M1]=e,s}function F1({layoutId:e}){const t=E.useContext(Po).id;return t&&e!==void 0?t+"-"+e:e}function R1(e,t){const n=E.useContext(Wl).strict;if(z.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Kt(!1,r,"lazy-strict-mode"):Xe(!1,r,"lazy-strict-mode")}}function I1(e){const{drag:t,layout:n}=Qt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function N1(e,t){if(typeof Proxy>"u")return Ai;const n=new Map,r=(i,s)=>Ai(i,s,e,t),o=(i,s)=>(z.env.NODE_ENV!=="production"&&No(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,Ai(s,void 0,e,t)),n.get(s))})}function iu({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function V1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function L1(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ci(e){return e===void 0||e===1}function Pi({scale:e,scaleX:t,scaleY:n}){return!Ci(e)||!Ci(t)||!Ci(n)}function Ot(e){return Pi(e)||su(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function su(e){return au(e.x)||au(e.y)}function au(e){return e&&e!=="0%"}function Er(e,t,n){const r=e-n,o=t*r;return n+o}function cu(e,t,n,r,o){return o!==void 0&&(e=Er(e,o,r)),Er(e,n,r)+t}function Mi(e,t=0,n=1,r,o){e.min=cu(e.min,t,n,r,o),e.max=cu(e.max,t,n,r,o)}function lu(e,{x:t,y:n}){Mi(e.x,t.translate,t.scale,t.originPoint),Mi(e.y,n.translate,n.scale,n.originPoint)}const uu=.999999999999,du=1.0000000000001;function _1(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&tn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,lu(e,s)),r&&Ot(i.latestValues)&&tn(e,i.latestValues))}t.x<du&&t.x>uu&&(t.x=1),t.y<du&&t.y>uu&&(t.y=1)}function en(e,t){e.min=e.min+t,e.max=e.max+t}function fu(e,t,n,r,o=.5){const i=ne(e.min,e.max,o);Mi(e,t,n,i,r)}function tn(e,t){fu(e.x,t.x,t.scaleX,t.scale,t.originX),fu(e.y,t.y,t.scaleY,t.scale,t.originY)}function hu(e,t){return iu(L1(e.getBoundingClientRect(),t))}function j1(e,t,n){const r=hu(e,n),{scroll:o}=t;return o&&(en(r.x,o.offset.x),en(r.y,o.offset.y)),r}const pu=()=>({translate:0,scale:1,origin:0,originPoint:0}),nn=()=>({x:pu(),y:pu()}),mu=()=>({min:0,max:0}),ue=()=>({x:mu(),y:mu()}),Di={current:null},gu={current:!1};function B1(){if(gu.current=!0,!!Do)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Di.current=e.matches;e.addEventListener("change",t),t()}else Di.current=!1}const U1=new WeakMap;function $1(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Te(o))e.addValue(r,o);else if(Te(i))e.addValue(r,qt(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,qt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class W1{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ci,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Ae.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,ee.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=wr(n),this.isVariantNode=Hl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];c[f]!==void 0&&Te(p)&&p.set(c[f])}}mount(t){var n;this.current=t,U1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),gu.current||B1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Di.current,z.env.NODE_ENV!=="production"&&No(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),ut(this.notifyUpdate),ut(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Xt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ee.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Qt){const n=Qt[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yu.length;r++){const o=yu[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=$1(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=qt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Dc(r)||kc(r))?r=parseFloat(r):!J0(r)&&ft.test(n)&&(r=Ol(t,n)),this.setBaseTarget(t,Te(r)?r.get():r)),Te(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Ei(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Te(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Io),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){hi.render(this.render)}}class vu extends W1{constructor(){super(...arguments),this.KeyframeResolver=U0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function bu(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o==null||o.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function z1(e){return window.getComputedStyle(e)}class K1 extends vu{constructor(){super(...arguments),this.type="html",this.renderInstance=bu}readValueFromInstance(t,n){var r;if(Xt.has(n))return(r=this.projection)!=null&&r.isProjecting?ri(n):s0(t,n);{const o=z1(t),i=(jo(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return hu(t,n)}build(t,n,r){bi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return xi(t,n,r)}}const wu=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function H1(e,t,n,r){bu(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(wu.has(o)?o:Si(o),t.attrs[o])}class G1 extends vu{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xt.has(n)){const r=Dl(n);return r&&r.default||0}return n=wu.has(n)?n:Si(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return tu(t,n,r)}build(t,n,r){Xl(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){H1(t,n,r,o)}mount(t){this.isSVGTag=Ql(t.tagName),super.mount(t)}}const Y1=(e,t)=>Ti(e)?new G1(t):new K1(t,{allowProjection:e!==E.Fragment});function rn(e,t,n){const r=e.getProps();return Ei(r,t,n!==void 0?n:r.custom,e)}const Oi=e=>Array.isArray(e);function Z1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qt(n))}function X1(e){return Oi(e)?e[e.length-1]||0:e}function q1(e,t){const n=rn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=X1(i[s]);Z1(e,s,a)}}function Q1(e){return!!(Te(e)&&e.add)}function ki(e,t){const n=e.getValue("willChange");if(Q1(n))return n.add(t);if(!n&&qe.WillChange){const r=new qe.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Tu(e){return e.props[nu]}const J1=e=>e!==null;function ew(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(J1),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const tw={type:"spring",stiffness:500,damping:25,restSpeed:10},nw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rw={type:"keyframes",duration:.8},ow={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iw=(e,{keyframes:t})=>t.length>2?rw:Xt.has(e)?e.startsWith("scale")?nw(t[1]):tw:ow;function sw({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Fi=(e,t,n,r={},o,i)=>s=>{const a=ui(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Ne(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};sw(a)||Object.assign(u,iw(e,u)),u.duration&&(u.duration=Ne(u.duration)),u.repeatDelay&&(u.repeatDelay=Ne(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(li(u),u.delay===0&&(d=!0)),(qe.instantAnimations||qe.skipAnimations)&&(d=!0,li(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=ew(u.keyframes,a);if(f!==void 0){ee.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new ei(u):new D0(u)};function aw({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Eu(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const c=[],l=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),f=a[u];if(f===void 0||l&&aw(l,u))continue;const p={delay:n,...ui(i||{},u)},y=d.get();if(y!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===y&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const v=Tu(e);if(v){const x=window.MotionHandoffAnimation(v,u,ee);x!==null&&(p.startTime=x,m=!0)}}ki(e,u),d.start(Fi(u,d,f,e.shouldReduceMotion&&Sl.has(u)?{type:!1}:p,e,m));const g=d.animation;g&&c.push(g)}return s&&Promise.all(c).then(()=>{ee.update(()=>{s&&q1(e,s)})}),c}function xu(e,t,n,r=0,o=1){const i=Array.from(e).sort((l,u)=>l.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Ri(e,t,n={}){var c;const r=rn(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Eu(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=o;return cw(e,t,l,u,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function cw(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(Ri(c,t,{...s,delay:n+(typeof r=="function"?0:r)+xu(e.variantChildren,c,r,o,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function lw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Ri(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Ri(e,t,n);else{const o=typeof t=="function"?rn(e,t,n.custom):t;r=Promise.all(Eu(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Su(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const uw=vi.length;function Au(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Au(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<uw;n++){const r=vi[n],o=e.props[r];(Cn(o)||o===!1)&&(t[r]=o)}return t}const dw=[...yi].reverse(),fw=yi.length;function hw(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lw(e,n,r)))}function pw(e){let t=hw(e),n=Cu(),r=!0;const o=c=>(l,u)=>{var f;const d=rn(e,u,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:y,...m}=d;l={...l,...m,...y}}return l};function i(c){t=c(e)}function s(c){const{props:l}=e,u=Au(e.parent)||{},d=[],f=new Set;let p={},y=1/0;for(let g=0;g<fw;g++){const v=dw[g],x=n[v],w=l[v]!==void 0?l[v]:u[v],C=Cn(w),b=v===c?x.isActive:null;b===!1&&(y=g);let P=w===u[v]&&w!==l[v]&&C;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...p},!x.isActive&&b===null||!w&&!x.prevProp||br(w)||typeof w=="boolean")continue;const A=mw(x.prevProp,w);let M=A||v===c&&x.isActive&&!P&&C||g>y&&C,R=!1;const U=Array.isArray(w)?w:[w];let oe=U.reduce(o(v),{});b===!1&&(oe={});const{prevResolvedValues:me={}}=x,ie={...me,...oe},L=$=>{M=!0,f.has($)&&(R=!0,f.delete($)),x.needsAnimating[$]=!0;const D=e.getValue($);D&&(D.liveStyle=!1)};for(const $ in ie){const D=oe[$],fe=me[$];if(p.hasOwnProperty($))continue;let we=!1;Oi(D)&&Oi(fe)?we=!Su(D,fe):we=D!==fe,we?D!=null?L($):f.add($):D!==void 0&&f.has($)?L($):x.protectedKeys[$]=!0}x.prevProp=w,x.prevResolvedValues=oe,x.isActive&&(p={...p,...oe}),r&&e.blockInitialAnimation&&(M=!1);const Z=P&&A;M&&(!Z||R)&&d.push(...U.map($=>{const D={type:v};if(typeof $=="string"&&r&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:fe}=e,we=rn(fe,$);if(fe.enteringChildren&&we){const{delayChildren:Pe}=we.transition||{};D.delay=xu(fe.enteringChildren,e,Pe)}}return{animation:$,options:D}}))}if(f.size){const g={};if(typeof l.initial!="boolean"){const v=rn(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(g.transition=v.transition)}f.forEach(v=>{const x=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),g[v]=x??null}),d.push({animation:g})}let m=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(c,l){var d;if(n[c].isActive===l)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(c,l)}),n[c].isActive=l;const u=s(c);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Cu(),r=!0}}}function mw(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Su(t,e):!1}function kt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cu(){return{animate:kt(!0),whileInView:kt(),whileHover:kt(),whileTap:kt(),whileDrag:kt(),whileFocus:kt(),exit:kt()}}class ht{constructor(t){this.isMounted=!1,this.node=t}update(){}}class gw extends ht{constructor(t){super(t),t.animationState||(t.animationState=pw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();br(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let yw=0;class vw extends ht{constructor(){super(...arguments),this.id=yw++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const bw={animation:{Feature:gw},exit:{Feature:vw}};function Mn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Dn(e){return{point:{x:e.pageX,y:e.pageY}}}const ww=e=>t=>pi(t)&&e(t,Dn(t));function On(e,t,n,r){return Mn(e,t,ww(n),r)}const Pu=1e-4,Tw=1-Pu,Ew=1+Pu,Mu=.01,xw=0-Mu,Sw=0+Mu;function xe(e){return e.max-e.min}function Aw(e,t,n){return Math.abs(e-t)<=n}function Du(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=xe(n)/xe(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Tw&&e.scale<=Ew||isNaN(e.scale))&&(e.scale=1),(e.translate>=xw&&e.translate<=Sw||isNaN(e.translate))&&(e.translate=0)}function kn(e,t,n,r){Du(e.x,t.x,n.x,r?r.originX:void 0),Du(e.y,t.y,n.y,r?r.originY:void 0)}function Ou(e,t,n){e.min=n.min+t.min,e.max=e.min+xe(t)}function Cw(e,t,n){Ou(e.x,t.x,n.x),Ou(e.y,t.y,n.y)}function ku(e,t,n){e.min=t.min-n.min,e.max=e.min+xe(t)}function Fn(e,t,n){ku(e.x,t.x,n.x),ku(e.y,t.y,n.y)}function ke(e){return[e("x"),e("y")]}const Fu=({current:e})=>e?e.ownerDocument.defaultView:null,Ru=(e,t)=>Math.abs(e-t);function Pw(e,t){const n=Ru(e.x,t.x),r=Ru(e.y,t.y);return Math.sqrt(n**2+r**2)}class Iu{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Ni(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=Pw(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!y)return;const{point:m}=f,{timestamp:g}=ve;this.history.push({...m,timestamp:g});const{onStart:v,onMove:x}=this.handlers;p||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ii(p,this.transformPagePoint),ee.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:y,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ni(f.type==="pointercancel"?this.lastMoveEventInfo:Ii(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,v),m&&m(f,v)},!pi(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=Dn(t),c=Ii(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=ve;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Ni(c,this.history)),this.removeListeners=vn(On(this.contextWindow,"pointermove",this.handlePointerMove),On(this.contextWindow,"pointerup",this.handlePointerUp),On(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ut(this.updatePoint)}}function Ii(e,t){return t?{point:t(e.point)}:e}function Nu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ni({point:e},t){return{point:e,delta:Nu(e,Vu(t)),offset:Nu(e,Mw(t)),velocity:Dw(t,.1)}}function Mw(e){return e[0]}function Vu(e){return e[e.length-1]}function Dw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Vu(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ne(t)));)n--;if(!r)return{x:0,y:0};const i=Ue(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ow(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ne(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Lu(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function kw(e,{top:t,left:n,bottom:r,right:o}){return{x:Lu(e.x,n,o),y:Lu(e.y,t,r)}}function _u(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Fw(e,t){return{x:_u(e.x,t.x),y:_u(e.y,t.y)}}function Rw(e,t){let n=.5;const r=xe(e),o=xe(t);return o>r?n=bn(t.min,t.max-r,e.min):r>o&&(n=bn(e.min,e.max-o,t.min)),Ze(0,1,n)}function Iw(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Vi=.35;function Nw(e=Vi){return e===!1?e=0:e===!0&&(e=Vi),{x:ju(e,"left","right"),y:ju(e,"top","bottom")}}function ju(e,t,n){return{min:Bu(e,t),max:Bu(e,n)}}function Bu(e,t){return typeof e=="number"?e:e[t]||0}const Vw=new WeakMap;class Lw{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ue(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Dn(d).point)},s=(d,f)=>{const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=K0(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ke(v=>{let x=this.getAxisMotionValue(v).get()||0;if($e.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const C=w.layout.layoutBox[v];C&&(x=xe(C)*(parseFloat(x)/100))}}this.originPoint[v]=x}),m&&ee.postRender(()=>m(d,f)),ki(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:m,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=f;if(y&&this.currentDirection===null){this.currentDirection=_w(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),g&&g(d,f)},c=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>ke(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Iu(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Fu(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&ee.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!xr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Ow(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,o=this.constraints;t&&Jt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=kw(r.layoutBox,t):this.constraints=!1,this.elastic=Nw(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ke(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Iw(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Jt(t))return!1;const r=t.current;Xe(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=j1(r,o.root,this.visualElement.getTransformPagePoint());let s=Fw(o.layout.layoutBox,i);if(n){const a=n(V1(s));this.hasMutatedConstraints=!!a,a&&(s=iu(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=ke(u=>{if(!xr(u,n,this.currentDirection))return;let d=c&&c[u]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ki(this.visualElement,t),r.start(Fi(t,r,0,n,this.visualElement,!1))}stopAnimation(){ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ke(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ke(n=>{const{drag:r}=this.getProps();if(!xr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Jt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ke(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();o[s]=Rw({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ke(s=>{if(!xr(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(ne(c,l,o[s]))})}addListeners(){if(!this.visualElement.current)return;Vw.set(this.visualElement,this);const t=this.visualElement.current,n=On(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Jt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ee.read(r);const s=Mn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(ke(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Vi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function xr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _w(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jw extends ht{constructor(t){super(t),this.removeGroupControls=Oe,this.removeListeners=Oe,this.controls=new Lw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Uu=e=>(t,n)=>{e&&ee.postRender(()=>e(t,n))};class Bw extends ht{constructor(){super(...arguments),this.removePointerDownListener=Oe}onPointerDown(t){this.session=new Iu(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fu(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Uu(t),onStart:Uu(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ee.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=On(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Sr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $u(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Rn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;const n=$u(e,t.target.x),r=$u(e,t.target.y);return`${n}% ${r}%`}},Uw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ft.parse(e);if(o.length>5)return r;const i=ft.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=c;const l=ne(a,c,.5);return typeof o[2+s]=="number"&&(o[2+s]/=l),typeof o[3+s]=="number"&&(o[3+s]/=l),i(o)}};let Li=!1;class $w extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;d1(Ww),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Li&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Sr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Li=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ee.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),hi.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Li=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wu(e){const[t,n]=Ul(),r=E.useContext(Po);return T.jsx($w,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(ru),isPresent:t,safeToRemove:n})}const Ww={borderRadius:{...Rn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rn,borderTopRightRadius:Rn,borderBottomLeftRadius:Rn,borderBottomRightRadius:Rn,boxShadow:Uw};function zw(e,t,n){const r=Te(e)?e:qt(e);return r.start(Fi("",r,t,n)),r.animation}const Kw=(e,t)=>e.depth-t.depth;class Hw{constructor(){this.children=[],this.isDirty=!1}add(t){Oo(this.children,t),this.isDirty=!0}remove(t){ko(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Kw),this.isDirty=!1,this.children.forEach(t)}}function Gw(e,t){const n=Ae.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(ut(r),e(i-t))};return ee.setup(r,!0),()=>ut(r)}const zu=["TopLeft","TopRight","BottomLeft","BottomRight"],Yw=zu.length,Ku=e=>typeof e=="string"?parseFloat(e):e,Hu=e=>typeof e=="number"||_.test(e);function Zw(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity??1,Xw(r)),e.opacityExit=ne(t.opacity??1,0,qw(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let s=0;s<Yw;s++){const a=`border${zu[s]}Radius`;let c=Gu(t,a),l=Gu(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Hu(c)===Hu(l)?(e[a]=Math.max(ne(Ku(c),Ku(l),r),0),($e.test(l)||$e.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function Gu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Xw=Yu(0,.5,Bc),qw=Yu(.5,.95,Oe);function Yu(e,t,n){return r=>r<e?0:r>t?1:n(bn(e,t,r))}function Zu(e,t){e.min=t.min,e.max=t.max}function Fe(e,t){Zu(e.x,t.x),Zu(e.y,t.y)}function Xu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function qu(e,t,n,r,o){return e-=t,e=Er(e,1/n,r),o!==void 0&&(e=Er(e,1/o,r)),e}function Qw(e,t=0,n=1,r=.5,o,i=e,s=e){if($e.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=qu(e.min,t,n,a,o),e.max=qu(e.max,t,n,a,o)}function Qu(e,t,[n,r,o],i,s){Qw(e,t[n],t[r],t[o],t.scale,i,s)}const Jw=["x","scaleX","originX"],eT=["y","scaleY","originY"];function Ju(e,t,n,r){Qu(e.x,t,Jw,n?n.x:void 0,r?r.x:void 0),Qu(e.y,t,eT,n?n.y:void 0,r?r.y:void 0)}function ed(e){return e.translate===0&&e.scale===1}function td(e){return ed(e.x)&&ed(e.y)}function nd(e,t){return e.min===t.min&&e.max===t.max}function tT(e,t){return nd(e.x,t.x)&&nd(e.y,t.y)}function rd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function od(e,t){return rd(e.x,t.x)&&rd(e.y,t.y)}function id(e){return xe(e.x)/xe(e.y)}function sd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nT{constructor(){this.members=[]}add(t){Oo(this.members,t),t.scheduleRender()}remove(t){if(ko(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rT(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:p,skewY:y}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const _i=["","X","Y","Z"],oT=1e3;let iT=0;function ji(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ad(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Tu(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ee,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ad(r)}function cd({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=iT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(cT),this.nodes.forEach(fT),this.nodes.forEach(hT),this.nodes.forEach(lT)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Hw)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Io),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const c=this.eventHandlers.get(s);c&&c.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Bl(s)&&!q0(s),this.instance=s;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;ee.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=Gw(f,250),Sr.hasAnimatedSinceResize&&(Sr.hasAnimatedSinceResize=!1,this.nodes.forEach(dd)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||l.getDefaultTransition()||vT,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=l.getProps(),v=!this.targetLayout||!od(this.targetLayout,p),x=!d&&f;if(this.options.layoutRoot||this.resumeFrom||x||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...ui(y,"layout"),onPlay:m,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,x)}else d||dd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ut(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(pT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ad(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ld);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ud);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(dT),this.nodes.forEach(sT),this.nodes.forEach(aT)):this.nodes.forEach(ud),this.clearAllSnapshots();const a=Ae.now();ve.delta=Ze(0,1e3/60,a-ve.timestamp),ve.timestamp=a,ve.isProcessing=!0,_o.update.process(ve),_o.preRender.process(ve),_o.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,hi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uT),this.sharedNodes.forEach(mT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xe(this.snapshot.measuredBox.x)&&!xe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!td(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&this.instance&&(a||Ot(this.latestValues)||u)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return s&&(c=this.removeTransform(c)),bT(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:s}=this.options;if(!s)return ue();const a=s.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(wT))){const{scroll:u}=this.root;u&&(en(a.x,u.offset.x),en(a.y,u.offset.y))}return a}removeElementScroll(s){var c;const a=ue();if(Fe(a,s),(c=this.scroll)!=null&&c.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Fe(a,s),en(a.x,d.offset.x),en(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const c=ue();Fe(c,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&tn(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ot(u.latestValues)&&tn(c,u.latestValues)}return Ot(this.latestValues)&&tn(c,this.latestValues),c}removeTransform(s){const a=ue();Fe(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Ot(l.latestValues))continue;Pi(l.latestValues)&&l.updateSnapshot();const u=ue(),d=l.measurePageBox();Fe(u,d),Ju(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Ot(this.latestValues)&&Ju(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=ve.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Fn(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Fe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Cw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Fe(this.target,this.layout.layoutBox),lu(this.target,this.targetDelta)):Fe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Fn(this.relativeTargetOrigin,this.target,p.target),Fe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Pi(this.parent.latestValues)||su(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var y;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ve.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;Fe(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;_1(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ue());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xu(this.prevProjectionDelta.x,this.projectionDelta.x),Xu(this.prevProjectionDelta.y,this.projectionDelta.y)),kn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!sd(this.projectionDelta.x,this.prevProjectionDelta.x)||!sd(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nn(),this.projectionDelta=nn(),this.projectionDeltaWithTransform=nn()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=nn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=ue(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,g=this.getStack(),v=!g||g.members.length<=1,x=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(yT));this.animationProgress=0;let w;this.mixTargetDelta=C=>{const b=C/1e3;fd(d.x,s.x,b),fd(d.y,s.y,b),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gT(this.relativeTarget,this.relativeTargetOrigin,f,b),w&&tT(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ue()),Fe(w,this.relativeTarget)),m&&(this.animationValues=u,Zw(u,l,this.latestValues,b,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,c,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(l=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||l.stop(),this.pendingAnimation&&(ut(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ee.update(()=>{Sr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qt(0)),this.currentAnimation=zw(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=s;if(!(!a||!c||!l)){if(this!==s&&this.layout&&l&&yd(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||ue();const d=xe(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+d;const f=xe(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+f}Fe(a,c),tn(a,u),kn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new nT),this.sharedNodes.get(s).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&ji("z",s,l,this.animationValues);for(let u=0;u<_i.length;u++)ji(`rotate${_i[u]}`,s,l,this.animationValues),ji(`skew${_i[u]}`,s,l,this.animationValues);s.render();for(const u in l)s.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Tr(a==null?void 0:a.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Tr(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ot(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let d=rT(this.projectionDeltaWithTransform,this.treeScale,u);c&&(d=c(u,d)),s.transform=d;const{x:f,y:p}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,l.animationValues?s.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in Pn){if(u[y]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:v}=Pn[y],x=d==="none"?u[y]:m(u[y],l);if(g){const w=g.length;for(let C=0;C<w;C++)s[g[C]]=x}else v?this.options.visualElement.renderState.vars[y]=x:s[y]=x}this.options.layoutId&&(s.pointerEvents=l===this?Tr(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(ld),this.root.sharedNodes.clear()}}}function sT(e){e.updateLayout()}function aT(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?ke(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],p=xe(f);f.min=r[d].min,f.max=f.min+p}):yd(i,t.layoutBox,r)&&ke(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],p=xe(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=nn();kn(a,r,t.layoutBox);const c=nn();s?kn(c,e.applyTransform(o,!0),t.measuredBox):kn(c,r,t.layoutBox);const l=!td(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const y=ue();Fn(y,t.layoutBox,f.layoutBox);const m=ue();Fn(m,r,p.layoutBox),od(y,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function cT(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function lT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uT(e){e.clearSnapshot()}function ld(e){e.clearMeasurements()}function ud(e){e.isLayoutDirty=!1}function dT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fT(e){e.resolveTargetDelta()}function hT(e){e.calcProjection()}function pT(e){e.resetSkewAndRotation()}function mT(e){e.removeLeadSnapshot()}function fd(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hd(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function gT(e,t,n,r){hd(e.x,t.x,n.x,r),hd(e.y,t.y,n.y,r)}function yT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vT={duration:.45,ease:[.4,0,.1,1]},pd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),md=pd("applewebkit/")&&!pd("chrome/")?Math.round:Oe;function gd(e){e.min=md(e.min),e.max=md(e.max)}function bT(e){gd(e.x),gd(e.y)}function yd(e,t,n){return e==="position"||e==="preserve-aspect"&&!Aw(id(t),id(n),.2)}function wT(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const TT=cd({attachResizeListener:(e,t)=>Mn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bi={current:void 0},vd=cd({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bi.current){const e=new TT({});e.mount(window),e.setOptions({layoutScroll:!0}),Bi.current=e}return Bi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ET={pan:{Feature:Bw},drag:{Feature:jw,ProjectionNode:vd,MeasureLayout:Wu}};function bd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&ee.postRender(()=>i(t,Dn(t)))}class xT extends ht{mount(){const{current:t}=this.node;t&&(this.unmount=H0(t,(n,r)=>(bd(this.node,r,"Start"),o=>bd(this.node,o,"End"))))}unmount(){}}class ST extends ht{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vn(Mn(this.node.current,"focus",()=>this.onFocus()),Mn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function wd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&ee.postRender(()=>i(t,Dn(t)))}class AT extends ht{mount(){const{current:t}=this.node;t&&(this.unmount=X0(t,(n,r)=>(wd(this.node,r,"Start"),(o,{success:i})=>wd(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ui=new WeakMap,$i=new WeakMap,CT=e=>{const t=Ui.get(e.target);t&&t(e)},PT=e=>{e.forEach(CT)};function MT({root:e,...t}){const n=e||document;$i.has(n)||$i.set(n,{});const r=$i.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(PT,{root:e,...t})),r[o]}function DT(e,t,n){const r=MT(t);return Ui.set(e,n),r.observe(e),()=>{Ui.delete(e),r.unobserve(e)}}const OT={some:0,all:1};class kT extends ht{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:OT[o]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return DT(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(FT(t,n))&&this.startObserver()}unmount(){}}function FT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const RT={...bw,...{inView:{Feature:kT},tap:{Feature:AT},focus:{Feature:ST},hover:{Feature:xT}},...ET,...{layout:{ProjectionNode:vd,MeasureLayout:Wu}}},Wi=N1(RT,Y1),IT="flex flex-col relative w-full cursor-text",NT=`
90
+ `),()=>{m.contains(y)&&m.removeChild(y)}},[t]),b.jsx(Av,{isPresent:t,childRef:i,sizeRef:s,children:f.cloneElement(e,{ref:i})})}const Pv=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:c})=>{const l=fo(Mv),u=E.useId();let d=!0,h=E.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:p=>{l.set(p,!0);for(const y of l.values())if(!y)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,r]);return i&&d&&(h={...h}),E.useMemo(()=>{l.forEach((p,y)=>l.set(y,!1))},[n]),f.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=b.jsx(Cv,{isPresent:n,anchorX:a,root:c,children:e})),b.jsx(Yn.Provider,{value:h,children:e})};function Mv(){return new Map}function Jc(e=!0){const t=E.useContext(Yn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=E.useId();E.useEffect(()=>{if(e)return o(i)},[e]);const s=E.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const rr=e=>e.key||"";function el(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const Dv=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:c})=>{const[l,u]=Jc(s),d=E.useMemo(()=>el(e),[e]),h=s&&!l?[]:d.map(rr),p=E.useRef(!0),y=E.useRef(d),m=fo(()=>new Map),[g,v]=E.useState(d),[x,T]=E.useState(d);Ba(()=>{p.current=!1,y.current=d;for(let P=0;P<x.length;P++){const A=rr(x[P]);h.includes(A)?m.delete(A):m.get(A)!==!0&&m.set(A,!1)}},[x,h.length,h.join("-")]);const C=[];if(d!==g){let P=[...d];for(let A=0;A<x.length;A++){const M=x[A],k=rr(M);h.includes(k)||(P.splice(A,0,M),C.push(M))}return i==="wait"&&C.length&&(P=C),T(el(P)),v(d),null}z.env.NODE_ENV!=="production"&&i==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:w}=E.useContext(uo);return b.jsx(b.Fragment,{children:x.map(P=>{const A=rr(P),M=s&&!l?!1:d===x||h.includes(A),k=()=>{if(m.has(A))m.set(A,!0);else return;let U=!0;m.forEach(oe=>{oe||(U=!1)}),U&&(w==null||w(),T(y.current),s&&(u==null||u()),r&&r())};return b.jsx(Pv,{isPresent:M,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:M?void 0:k,anchorX:a,children:P},A)})})},tl=E.createContext({strict:!1}),nl={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Yt={};for(const e in nl)Yt[e]={isEnabled:t=>nl[e].some(n=>!!t[n])};function Ov(e){for(const t in e)Yt[t]={...Yt[t],...e[t]}}const Vv=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function or(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Vv.has(e)}let rl=e=>!or(e);function Fv(e){typeof e=="function"&&(rl=t=>t.startsWith("on")?!or(t):e(t))}try{Fv(require("@emotion/is-prop-valid").default)}catch{}function kv(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(rl(o)||n===!0&&or(o)||!t&&!or(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const ir=E.createContext({});function sr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Mn(e){return typeof e=="string"||Array.isArray(e)}const ti=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ni=["initial",...ti];function ar(e){return sr(e.animate)||ni.some(t=>Mn(e[t]))}function ol(e){return!!(ar(e)||e.variants)}function Iv(e,t){if(ar(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Mn(n)?n:void 0,animate:Mn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Nv(e){const{initial:t,animate:n}=Iv(e,E.useContext(ir));return E.useMemo(()=>({initial:t,animate:n}),[il(t),il(n)])}function il(e){return Array.isArray(e)?e.join(" "):e}const Dn={};function Lv(e){for(const t in e)Dn[t]=e[t],xo(t)&&(Dn[t].isCSSVariable=!0)}function sl(e,{layout:t,layoutId:n}){return Kt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Dn[e]||e==="opacity")}const Rv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_v=Ht.length;function jv(e,t,n){let r="",o=!0;for(let i=0;i<_v;i++){const s=Ht[i],a=e[s];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(s.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=Wc(a,Xo[s]);if(!c){o=!1;const u=Rv[s]||s;r+=`${u}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function ri(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const c in t){const l=t[c];if(Kt.has(c)){s=!0;continue}else if(xo(c)){o[c]=l;continue}else{const u=Wc(l,Xo[c]);c.startsWith("origin")?(a=!0,i[c]=u):r[c]=u}}if(t.transform||(s||n?r.transform=jv(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=i;r.transformOrigin=`${c} ${l} ${u}`}}const oi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function al(e,t,n){for(const r in t)!Te(t[r])&&!sl(r,n)&&(e[r]=t[r])}function Bv({transformTemplate:e},t){return E.useMemo(()=>{const n=oi();return ri(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Uv(e,t){const n=e.style||{},r={};return al(r,n,e),Object.assign(r,Bv(e,t)),r}function $v(e,t){const n={},r=Uv(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Wv={offset:"stroke-dashoffset",array:"stroke-dasharray"},zv={offset:"strokeDashoffset",array:"strokeDasharray"};function Zv(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Wv:zv;e[i.offset]=_.transform(-r);const s=_.transform(t),a=_.transform(n);e[i.array]=`${s} ${a}`}function cl(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},c,l,u){if(ri(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&Zv(d,o,i,s,!1)}const ll=()=>({...oi(),attrs:{}}),ul=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Hv(e,t,n,r){const o=E.useMemo(()=>{const i=ll();return cl(i,t,ul(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};al(i,e.style,e),o.style={...i,...o.style}}return o}const Kv=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ii(e){return typeof e!="string"||e.includes("-")?!1:!!(Kv.indexOf(e)>-1||/[A-Z]/u.test(e))}function Gv(e,t,n,{latestValues:r},o,i=!1){const a=(ii(e)?Hv:$v)(t,r,o,e),c=kv(t,typeof e=="string",i),l=e!==E.Fragment?{...c,...a,ref:n}:{},{children:u}=t,d=E.useMemo(()=>Te(u)?u.get():u,[u]);return E.createElement(e,{...l,children:d})}function dl(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function si(e,t,n,r){if(typeof t=="function"){const[o,i]=dl(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=dl(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function cr(e){return Te(e)?e.get():e}function Yv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Xv(n,r,o,e),renderState:t()}}function Xv(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=cr(i[h]);let{initial:s,animate:a}=e;const c=ar(e),l=ol(e);t&&l&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!sr(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const y=si(e,h[p]);if(y){const{transitionEnd:m,transition:g,...v}=y;for(const x in v){let T=v[x];if(Array.isArray(T)){const C=u?T.length-1:0;T=T[C]}T!==null&&(o[x]=T)}for(const x in m)o[x]=m[x]}}}return o}const fl=e=>(t,n)=>{const r=E.useContext(ir),o=E.useContext(Yn),i=()=>Yv(e,t,r,o);return n?i():fo(i)};function ai(e,t,n){var i;const{style:r}=e,o={};for(const s in r)(Te(r[s])||t.style&&Te(t.style[s])||sl(s,e)||((i=n==null?void 0:n.getValue(s))==null?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const qv=fl({scrapeMotionValuesFromProps:ai,createRenderState:oi});function hl(e,t,n){const r=ai(e,t,n);for(const o in e)if(Te(e[o])||Te(t[o])){const i=Ht.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Qv=fl({scrapeMotionValuesFromProps:hl,createRenderState:ll}),Jv=Symbol.for("motionComponentSymbol");function Xt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function e1(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Xt(n)&&(n.current=r))},[t])}const ci=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pl="data-"+ci("framerAppearId"),ml=E.createContext({});function t1(e,t,n,r,o){var m,g;const{visualElement:i}=E.useContext(ir),s=E.useContext(tl),a=E.useContext(Yn),c=E.useContext(ei).reducedMotion,l=E.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=l.current,d=E.useContext(ml);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&n1(l.current,n,o,d);const h=E.useRef(!1);E.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const p=n[pl],y=E.useRef(!!p&&!((m=window.MotionHandoffIsComplete)!=null&&m.call(window,p))&&((g=window.MotionHasOptimisedAnimation)==null?void 0:g.call(window,p)));return Ba(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),y.current&&u.animationState&&u.animationState.animateChanges())}),E.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,p)}),y.current=!1),u.enteringChildren=void 0)}),u}function n1(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gl(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Xt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function gl(e){if(e)return e.options.allowProjection!==!1?e.projection:gl(e.parent)}function li(e,{forwardMotionProps:t=!1}={},n,r){n&&Ov(n);const o=ii(e)?Qv:qv;function i(a,c){let l;const u={...E.useContext(ei),...a,layoutId:r1(a)},{isStatic:d}=u,h=Nv(a),p=o(a,d);if(!d&&ho){o1(u,n);const y=i1(u);l=y.MeasureLayout,h.visualElement=t1(e,p,u,r,y.ProjectionNode)}return b.jsxs(ir.Provider,{value:h,children:[l&&h.visualElement?b.jsx(l,{visualElement:h.visualElement,...u}):null,Gv(e,a,e1(p,h.visualElement,c),p,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=E.forwardRef(i);return s[Jv]=e,s}function r1({layoutId:e}){const t=E.useContext(uo).id;return t&&e!==void 0?t+"-"+e:e}function o1(e,t){const n=E.useContext(tl).strict;if(z.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?$t(!1,r,"lazy-strict-mode"):Xe(!1,r,"lazy-strict-mode")}}function i1(e){const{drag:t,layout:n}=Yt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function s1(e,t){if(typeof Proxy>"u")return li;const n=new Map,r=(i,s)=>li(i,s,e,t),o=(i,s)=>(z.env.NODE_ENV!=="production"&&bo(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,li(s,void 0,e,t)),n.get(s))})}function yl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function a1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function c1(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ui(e){return e===void 0||e===1}function di({scale:e,scaleX:t,scaleY:n}){return!ui(e)||!ui(t)||!ui(n)}function Ot(e){return di(e)||vl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vl(e){return bl(e.x)||bl(e.y)}function bl(e){return e&&e!=="0%"}function lr(e,t,n){const r=e-n,o=t*r;return n+o}function wl(e,t,n,r,o){return o!==void 0&&(e=lr(e,o,r)),lr(e,n,r)+t}function fi(e,t=0,n=1,r,o){e.min=wl(e.min,t,n,r,o),e.max=wl(e.max,t,n,r,o)}function Tl(e,{x:t,y:n}){fi(e.x,t.translate,t.scale,t.originPoint),fi(e.y,n.translate,n.scale,n.originPoint)}const El=.999999999999,xl=1.0000000000001;function l1(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Qt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Tl(e,s)),r&&Ot(i.latestValues)&&Qt(e,i.latestValues))}t.x<xl&&t.x>El&&(t.x=1),t.y<xl&&t.y>El&&(t.y=1)}function qt(e,t){e.min=e.min+t,e.max=e.max+t}function Sl(e,t,n,r,o=.5){const i=ne(e.min,e.max,o);fi(e,t,n,i,r)}function Qt(e,t){Sl(e.x,t.x,t.scaleX,t.scale,t.originX),Sl(e.y,t.y,t.scaleY,t.scale,t.originY)}function Al(e,t){return yl(c1(e.getBoundingClientRect(),t))}function u1(e,t,n){const r=Al(e,n),{scroll:o}=t;return o&&(qt(r.x,o.offset.x),qt(r.y,o.offset.y)),r}const Cl=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jt=()=>({x:Cl(),y:Cl()}),Pl=()=>({min:0,max:0}),ue=()=>({x:Pl(),y:Pl()}),hi={current:null},Ml={current:!1};function d1(){if(Ml.current=!0,!!ho)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hi.current=e.matches;e.addEventListener("change",t),t()}else hi.current=!1}const f1=new WeakMap;function h1(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Te(o))e.addValue(r,o);else if(Te(i))e.addValue(r,Gt(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Gt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Dl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class p1{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ho,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Se.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ee.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=ar(n),this.isVariantNode=ol(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];c[h]!==void 0&&Te(p)&&p.set(c[h])}}mount(t){var n;this.current=t,f1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),Ml.current||d1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hi.current,z.env.NODE_ENV!=="production"&&bo(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),st(this.notifyUpdate),st(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Kt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ee.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Yt){const n=Yt[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Dl.length;r++){const o=Dl[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=h1(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Gt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Ua(r)||Wa(r))?r=parseFloat(r):!Sv(r)&&ct.test(n)&&(r=$c(t,n)),this.setBaseTarget(t,Te(r)?r.get():r)),Te(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=si(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Te(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new vo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){qo.render(this.render)}}class Ol extends p1{constructor(){super(...arguments),this.KeyframeResolver=fv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Vl(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o==null||o.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function m1(e){return window.getComputedStyle(e)}class g1 extends Ol{constructor(){super(...arguments),this.type="html",this.renderInstance=Vl}readValueFromInstance(t,n){var r;if(Kt.has(n))return(r=this.projection)!=null&&r.isProjecting?Uo(n):Vy(t,n);{const o=m1(t),i=(xo(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Al(t,n)}build(t,n,r){ri(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ai(t,n,r)}}const Fl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function y1(e,t,n,r){Vl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Fl.has(o)?o:ci(o),t.attrs[o])}class v1 extends Ol{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Kt.has(n)){const r=Uc(n);return r&&r.default||0}return n=Fl.has(n)?n:ci(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hl(t,n,r)}build(t,n,r){cl(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){y1(t,n,r,o)}mount(t){this.isSVGTag=ul(t.tagName),super.mount(t)}}const b1=(e,t)=>ii(e)?new v1(t):new g1(t,{allowProjection:e!==E.Fragment});function en(e,t,n){const r=e.getProps();return si(r,t,n!==void 0?n:r.custom,e)}const pi=e=>Array.isArray(e);function w1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gt(n))}function T1(e){return pi(e)?e[e.length-1]||0:e}function E1(e,t){const n=en(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=T1(i[s]);w1(e,s,a)}}function x1(e){return!!(Te(e)&&e.add)}function mi(e,t){const n=e.getValue("willChange");if(x1(n))return n.add(t);if(!n&&qe.WillChange){const r=new qe.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function kl(e){return e.props[pl]}const S1=e=>e!==null;function A1(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(S1),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const C1={type:"spring",stiffness:500,damping:25,restSpeed:10},P1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),M1={type:"keyframes",duration:.8},D1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},O1=(e,{keyframes:t})=>t.length>2?M1:Kt.has(e)?e.startsWith("scale")?P1(t[1]):C1:D1;function V1({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const gi=(e,t,n,r={},o,i)=>s=>{const a=Go(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-ke(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};V1(a)||Object.assign(u,O1(e,u)),u.duration&&(u.duration=ke(u.duration)),u.repeatDelay&&(u.repeatDelay=ke(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ko(u),u.delay===0&&(d=!0)),(qe.instantAnimations||qe.skipAnimations)&&(d=!0,Ko(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=A1(u.keyframes,a);if(h!==void 0){ee.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new _o(u):new ev(u)};function F1({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Il(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const c=[],l=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||l&&F1(l,u))continue;const p={delay:n,...Go(i||{},u)},y=d.get();if(y!==void 0&&!d.isAnimating&&!Array.isArray(h)&&h===y&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const v=kl(e);if(v){const x=window.MotionHandoffAnimation(v,u,ee);x!==null&&(p.startTime=x,m=!0)}}mi(e,u),d.start(gi(u,d,h,e.shouldReduceMotion&&Lc.has(u)?{type:!1}:p,e,m));const g=d.animation;g&&c.push(g)}return s&&Promise.all(c).then(()=>{ee.update(()=>{s&&E1(e,s)})}),c}function Nl(e,t,n,r=0,o=1){const i=Array.from(e).sort((l,u)=>l.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function yi(e,t,n={}){var c;const r=en(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Il(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=o;return k1(e,t,l,u,d,h,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function k1(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(yi(c,t,{...s,delay:n+(typeof r=="function"?0:r)+Nl(e.variantChildren,c,r,o,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function I1(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>yi(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=yi(e,t,n);else{const o=typeof t=="function"?en(e,t,n.custom):t;r=Promise.all(Il(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ll(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const N1=ni.length;function Rl(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Rl(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<N1;n++){const r=ni[n],o=e.props[r];(Mn(o)||o===!1)&&(t[r]=o)}return t}const L1=[...ti].reverse(),R1=ti.length;function _1(e){return t=>Promise.all(t.map(({animation:n,options:r})=>I1(e,n,r)))}function j1(e){let t=_1(e),n=_l(),r=!0;const o=c=>(l,u)=>{var h;const d=en(e,u,c==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:p,transitionEnd:y,...m}=d;l={...l,...m,...y}}return l};function i(c){t=c(e)}function s(c){const{props:l}=e,u=Rl(e.parent)||{},d=[],h=new Set;let p={},y=1/0;for(let g=0;g<R1;g++){const v=L1[g],x=n[v],T=l[v]!==void 0?l[v]:u[v],C=Mn(T),w=v===c?x.isActive:null;w===!1&&(y=g);let P=T===u[v]&&T!==l[v]&&C;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...p},!x.isActive&&w===null||!T&&!x.prevProp||sr(T)||typeof T=="boolean")continue;const A=B1(x.prevProp,T);let M=A||v===c&&x.isActive&&!P&&C||g>y&&C,k=!1;const U=Array.isArray(T)?T:[T];let oe=U.reduce(o(v),{});w===!1&&(oe={});const{prevResolvedValues:me={}}=x,ie={...me,...oe},R=$=>{M=!0,h.has($)&&(k=!0,h.delete($)),x.needsAnimating[$]=!0;const D=e.getValue($);D&&(D.liveStyle=!1)};for(const $ in ie){const D=oe[$],fe=me[$];if(p.hasOwnProperty($))continue;let we=!1;pi(D)&&pi(fe)?we=!Ll(D,fe):we=D!==fe,we?D!=null?R($):h.add($):D!==void 0&&h.has($)?R($):x.protectedKeys[$]=!0}x.prevProp=T,x.prevResolvedValues=oe,x.isActive&&(p={...p,...oe}),r&&e.blockInitialAnimation&&(M=!1);const Y=P&&A;M&&(!Y||k)&&d.push(...U.map($=>{const D={type:v};if(typeof $=="string"&&r&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:fe}=e,we=en(fe,$);if(fe.enteringChildren&&we){const{delayChildren:Pe}=we.transition||{};D.delay=Nl(fe.enteringChildren,e,Pe)}}return{animation:$,options:D}}))}if(h.size){const g={};if(typeof l.initial!="boolean"){const v=en(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(g.transition=v.transition)}h.forEach(v=>{const x=e.getBaseTarget(v),T=e.getValue(v);T&&(T.liveStyle=!0),g[v]=x??null}),d.push({animation:g})}let m=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(c,l){var d;if(n[c].isActive===l)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(c,l)}),n[c].isActive=l;const u=s(c);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=_l(),r=!0}}}function B1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ll(t,e):!1}function Vt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _l(){return{animate:Vt(!0),whileInView:Vt(),whileHover:Vt(),whileTap:Vt(),whileDrag:Vt(),whileFocus:Vt(),exit:Vt()}}class lt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class U1 extends lt{constructor(t){super(t),t.animationState||(t.animationState=j1(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();sr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let $1=0;class W1 extends lt{constructor(){super(...arguments),this.id=$1++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const z1={animation:{Feature:U1},exit:{Feature:W1}};function On(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Vn(e){return{point:{x:e.pageX,y:e.pageY}}}const Z1=e=>t=>Qo(t)&&e(t,Vn(t));function Fn(e,t,n,r){return On(e,t,Z1(n),r)}const jl=1e-4,H1=1-jl,K1=1+jl,Bl=.01,G1=0-Bl,Y1=0+Bl;function xe(e){return e.max-e.min}function X1(e,t,n){return Math.abs(e-t)<=n}function Ul(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=xe(n)/xe(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=H1&&e.scale<=K1||isNaN(e.scale))&&(e.scale=1),(e.translate>=G1&&e.translate<=Y1||isNaN(e.translate))&&(e.translate=0)}function kn(e,t,n,r){Ul(e.x,t.x,n.x,r?r.originX:void 0),Ul(e.y,t.y,n.y,r?r.originY:void 0)}function $l(e,t,n){e.min=n.min+t.min,e.max=e.min+xe(t)}function q1(e,t,n){$l(e.x,t.x,n.x),$l(e.y,t.y,n.y)}function Wl(e,t,n){e.min=t.min-n.min,e.max=e.min+xe(t)}function In(e,t,n){Wl(e.x,t.x,n.x),Wl(e.y,t.y,n.y)}function Ve(e){return[e("x"),e("y")]}const zl=({current:e})=>e?e.ownerDocument.defaultView:null,Zl=(e,t)=>Math.abs(e-t);function Q1(e,t){const n=Zl(e.x,t.x),r=Zl(e.y,t.y);return Math.sqrt(n**2+r**2)}class Hl{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=bi(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=Q1(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!y)return;const{point:m}=h,{timestamp:g}=ve;this.history.push({...m,timestamp:g});const{onStart:v,onMove:x}=this.handlers;p||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=vi(p,this.transformPagePoint),ee.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:y,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=bi(h.type==="pointercancel"?this.lastMoveEventInfo:vi(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(h,v),m&&m(h,v)},!Qo(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=Vn(t),c=vi(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=ve;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,bi(c,this.history)),this.removeListeners=wn(Fn(this.contextWindow,"pointermove",this.handlePointerMove),Fn(this.contextWindow,"pointerup",this.handlePointerUp),Fn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),st(this.updatePoint)}}function vi(e,t){return t?{point:t(e.point)}:e}function Kl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bi({point:e},t){return{point:e,delta:Kl(e,Gl(t)),offset:Kl(e,J1(t)),velocity:eb(t,.1)}}function J1(e){return e[0]}function Gl(e){return e[e.length-1]}function eb(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Gl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ke(t)));)n--;if(!r)return{x:0,y:0};const i=Ue(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function tb(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ne(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Yl(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function nb(e,{top:t,left:n,bottom:r,right:o}){return{x:Yl(e.x,n,o),y:Yl(e.y,t,r)}}function Xl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function rb(e,t){return{x:Xl(e.x,t.x),y:Xl(e.y,t.y)}}function ob(e,t){let n=.5;const r=xe(e),o=xe(t);return o>r?n=Tn(t.min,t.max-r,e.min):r>o&&(n=Tn(e.min,e.max-o,t.min)),Ye(0,1,n)}function ib(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wi=.35;function sb(e=wi){return e===!1?e=0:e===!0&&(e=wi),{x:ql(e,"left","right"),y:ql(e,"top","bottom")}}function ql(e,t,n){return{min:Ql(e,t),max:Ql(e,n)}}function Ql(e,t){return typeof e=="number"?e:e[t]||0}const ab=new WeakMap;class cb{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ue(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Vn(d).point)},s=(d,h)=>{const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=gv(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ve(v=>{let x=this.getAxisMotionValue(v).get()||0;if($e.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const C=T.layout.layoutBox[v];C&&(x=xe(C)*(parseFloat(x)/100))}}this.originPoint[v]=x}),m&&ee.postRender(()=>m(d,h)),mi(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:m,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=h;if(y&&this.currentDirection===null){this.currentDirection=lb(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),g&&g(d,h)},c=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>Ve(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)==null?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Hl(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:zl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&ee.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ur(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=tb(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,o=this.constraints;t&&Xt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=nb(r.layoutBox,t):this.constraints=!1,this.elastic=sb(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ve(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=ib(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xt(t))return!1;const r=t.current;Xe(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=u1(r,o.root,this.visualElement.getTransformPagePoint());let s=rb(o.layout.layoutBox,i);if(n){const a=n(a1(s));this.hasMutatedConstraints=!!a,a&&(s=yl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Ve(u=>{if(!ur(u,n,this.currentDirection))return;let d=c&&c[u]||{};s&&(d={min:0,max:0});const h=o?200:1e6,p=o?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return mi(this.visualElement,t),r.start(gi(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ve(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ve(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ve(n=>{const{drag:r}=this.getProps();if(!ur(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ve(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();o[s]=ob({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ve(s=>{if(!ur(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(ne(c,l,o[s]))})}addListeners(){if(!this.visualElement.current)return;ab.set(this.visualElement,this);const t=this.visualElement.current,n=Fn(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Xt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ee.read(r);const s=On(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Ve(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=wi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ur(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function lb(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ub extends lt{constructor(t){super(t),this.removeGroupControls=Oe,this.removeListeners=Oe,this.controls=new cb(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Jl=e=>(t,n)=>{e&&ee.postRender(()=>e(t,n))};class db extends lt{constructor(){super(...arguments),this.removePointerDownListener=Oe}onPointerDown(t){this.session=new Hl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Jl(t),onStart:Jl(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ee.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Fn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const dr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;const n=eu(e,t.target.x),r=eu(e,t.target.y);return`${n}% ${r}%`}},fb={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ct.parse(e);if(o.length>5)return r;const i=ct.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=c;const l=ne(a,c,.5);return typeof o[2+s]=="number"&&(o[2+s]/=l),typeof o[3+s]=="number"&&(o[3+s]/=l),i(o)}};let Ti=!1;class hb extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Lv(pb),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Ti&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),dr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Ti=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ee.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),qo.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Ti=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tu(e){const[t,n]=Jc(),r=E.useContext(uo);return b.jsx(hb,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(ml),isPresent:t,safeToRemove:n})}const pb={borderRadius:{...Nn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nn,borderTopRightRadius:Nn,borderBottomLeftRadius:Nn,borderBottomRightRadius:Nn,boxShadow:fb};function mb(e,t,n){const r=Te(e)?e:Gt(e);return r.start(gi("",r,t,n)),r.animation}const gb=(e,t)=>e.depth-t.depth;class yb{constructor(){this.children=[],this.isDirty=!1}add(t){po(this.children,t),this.isDirty=!0}remove(t){mo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gb),this.isDirty=!1,this.children.forEach(t)}}function vb(e,t){const n=Se.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(st(r),e(i-t))};return ee.setup(r,!0),()=>st(r)}const nu=["TopLeft","TopRight","BottomLeft","BottomRight"],bb=nu.length,ru=e=>typeof e=="string"?parseFloat(e):e,ou=e=>typeof e=="number"||_.test(e);function wb(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity??1,Tb(r)),e.opacityExit=ne(t.opacity??1,0,Eb(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let s=0;s<bb;s++){const a=`border${nu[s]}Radius`;let c=iu(t,a),l=iu(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||ou(c)===ou(l)?(e[a]=Math.max(ne(ru(c),ru(l),r),0),($e.test(l)||$e.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function iu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Tb=su(0,.5,Qa),Eb=su(.5,.95,Oe);function su(e,t,n){return r=>r<e?0:r>t?1:n(Tn(e,t,r))}function au(e,t){e.min=t.min,e.max=t.max}function Fe(e,t){au(e.x,t.x),au(e.y,t.y)}function cu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function lu(e,t,n,r,o){return e-=t,e=lr(e,1/n,r),o!==void 0&&(e=lr(e,1/o,r)),e}function xb(e,t=0,n=1,r=.5,o,i=e,s=e){if($e.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=lu(e.min,t,n,a,o),e.max=lu(e.max,t,n,a,o)}function uu(e,t,[n,r,o],i,s){xb(e,t[n],t[r],t[o],t.scale,i,s)}const Sb=["x","scaleX","originX"],Ab=["y","scaleY","originY"];function du(e,t,n,r){uu(e.x,t,Sb,n?n.x:void 0,r?r.x:void 0),uu(e.y,t,Ab,n?n.y:void 0,r?r.y:void 0)}function fu(e){return e.translate===0&&e.scale===1}function hu(e){return fu(e.x)&&fu(e.y)}function pu(e,t){return e.min===t.min&&e.max===t.max}function Cb(e,t){return pu(e.x,t.x)&&pu(e.y,t.y)}function mu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gu(e,t){return mu(e.x,t.x)&&mu(e.y,t.y)}function yu(e){return xe(e.x)/xe(e.y)}function vu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Pb{constructor(){this.members=[]}add(t){po(this.members,t),t.scheduleRender()}remove(t){if(mo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Mb(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:h,skewX:p,skewY:y}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Ei=["","X","Y","Z"],Db=1e3;let Ob=0;function xi(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function bu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=kl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ee,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bu(r)}function wu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Ob++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(kb),this.nodes.forEach(Rb),this.nodes.forEach(_b),this.nodes.forEach(Ib)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new yb)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new vo),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const c=this.eventHandlers.get(s);c&&c.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Qc(s)&&!Ev(s),this.instance=s;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;ee.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=vb(h,250),dr.hasAnimatedSinceResize&&(dr.hasAnimatedSinceResize=!1,this.nodes.forEach(xu)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||l.getDefaultTransition()||Wb,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=l.getProps(),v=!this.targetLayout||!gu(this.targetLayout,p),x=!d&&h;if(this.options.layoutRoot||this.resumeFrom||x||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Go(y,"layout"),onPlay:m,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,x)}else d||xu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),st(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(jb),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&bu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Tu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Eu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Lb),this.nodes.forEach(Vb),this.nodes.forEach(Fb)):this.nodes.forEach(Eu),this.clearAllSnapshots();const a=Se.now();ve.delta=Ye(0,1e3/60,a-ve.timestamp),ve.timestamp=a,ve.isProcessing=!0,Eo.update.process(ve),Eo.preRender.process(ve),Eo.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nb),this.sharedNodes.forEach(Bb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xe(this.snapshot.measuredBox.x)&&!xe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!hu(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&this.instance&&(a||Ot(this.latestValues)||u)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return s&&(c=this.removeTransform(c)),zb(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:s}=this.options;if(!s)return ue();const a=s.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(Zb))){const{scroll:u}=this.root;u&&(qt(a.x,u.offset.x),qt(a.y,u.offset.y))}return a}removeElementScroll(s){var c;const a=ue();if(Fe(a,s),(c=this.scroll)!=null&&c.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&Fe(a,s),qt(a.x,d.offset.x),qt(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const c=ue();Fe(c,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Qt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ot(u.latestValues)&&Qt(c,u.latestValues)}return Ot(this.latestValues)&&Qt(c,this.latestValues),c}removeTransform(s){const a=ue();Fe(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Ot(l.latestValues))continue;di(l.latestValues)&&l.updateSnapshot();const u=ue(),d=l.measurePageBox();Fe(u,d),du(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Ot(this.latestValues)&&du(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=ve.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),In(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Fe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),q1(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Fe(this.target,this.layout.layoutBox),Tl(this.target,this.targetDelta)):Fe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),In(this.relativeTargetOrigin,this.target,p.target),Fe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||di(this.parent.latestValues)||vl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var y;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ve.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;Fe(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;l1(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ue());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cu(this.prevProjectionDelta.x,this.projectionDelta.x),cu(this.prevProjectionDelta.y,this.projectionDelta.y)),kn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!vu(this.projectionDelta.x,this.prevProjectionDelta.x)||!vu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Jt(),this.projectionDelta=Jt(),this.projectionDeltaWithTransform=Jt()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=Jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ue(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,g=this.getStack(),v=!g||g.members.length<=1,x=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some($b));this.animationProgress=0;let T;this.mixTargetDelta=C=>{const w=C/1e3;Su(d.x,s.x,w),Su(d.y,s.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(In(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ub(this.relativeTarget,this.relativeTargetOrigin,h,w),T&&Cb(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=ue()),Fe(T,this.relativeTarget)),m&&(this.animationValues=u,wb(u,l,this.latestValues,w,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,c,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(l=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||l.stop(),this.pendingAnimation&&(st(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ee.update(()=>{dr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Gt(0)),this.currentAnimation=mb(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Db),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=s;if(!(!a||!c||!l)){if(this!==s&&this.layout&&l&&Du(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||ue();const d=xe(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+d;const h=xe(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+h}Fe(a,c),Qt(a,u),kn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Pb),this.sharedNodes.get(s).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&xi("z",s,l,this.animationValues);for(let u=0;u<Ei.length;u++)xi(`rotate${Ei[u]}`,s,l,this.animationValues),xi(`skew${Ei[u]}`,s,l,this.animationValues);s.render();for(const u in l)s.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=cr(a==null?void 0:a.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=cr(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ot(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let d=Mb(this.projectionDeltaWithTransform,this.treeScale,u);c&&(d=c(u,d)),s.transform=d;const{x:h,y:p}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,l.animationValues?s.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in Dn){if(u[y]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:v}=Dn[y],x=d==="none"?u[y]:m(u[y],l);if(g){const T=g.length;for(let C=0;C<T;C++)s[g[C]]=x}else v?this.options.visualElement.renderState.vars[y]=x:s[y]=x}this.options.layoutId&&(s.pointerEvents=l===this?cr(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Tu),this.root.sharedNodes.clear()}}}function Vb(e){e.updateLayout()}function Fb(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?Ve(d=>{const h=s?t.measuredBox[d]:t.layoutBox[d],p=xe(h);h.min=r[d].min,h.max=h.min+p}):Du(i,t.layoutBox,r)&&Ve(d=>{const h=s?t.measuredBox[d]:t.layoutBox[d],p=xe(r[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Jt();kn(a,r,t.layoutBox);const c=Jt();s?kn(c,e.applyTransform(o,!0),t.measuredBox):kn(c,r,t.layoutBox);const l=!hu(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const y=ue();In(y,t.layoutBox,h.layoutBox);const m=ue();In(m,r,p.layoutBox),gu(y,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function kb(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ib(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Nb(e){e.clearSnapshot()}function Tu(e){e.clearMeasurements()}function Eu(e){e.isLayoutDirty=!1}function Lb(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Rb(e){e.resolveTargetDelta()}function _b(e){e.calcProjection()}function jb(e){e.resetSkewAndRotation()}function Bb(e){e.removeLeadSnapshot()}function Su(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Au(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function Ub(e,t,n,r){Au(e.x,t.x,n.x,r),Au(e.y,t.y,n.y,r)}function $b(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Wb={duration:.45,ease:[.4,0,.1,1]},Cu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Pu=Cu("applewebkit/")&&!Cu("chrome/")?Math.round:Oe;function Mu(e){e.min=Pu(e.min),e.max=Pu(e.max)}function zb(e){Mu(e.x),Mu(e.y)}function Du(e,t,n){return e==="position"||e==="preserve-aspect"&&!X1(yu(t),yu(n),.2)}function Zb(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Hb=wu({attachResizeListener:(e,t)=>On(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Si={current:void 0},Ou=wu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Si.current){const e=new Hb({});e.mount(window),e.setOptions({layoutScroll:!0}),Si.current=e}return Si.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Kb={pan:{Feature:db},drag:{Feature:ub,ProjectionNode:Ou,MeasureLayout:tu}};function Vu(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&ee.postRender(()=>i(t,Vn(t)))}class Gb extends lt{mount(){const{current:t}=this.node;t&&(this.unmount=yv(t,(n,r)=>(Vu(this.node,r,"Start"),o=>Vu(this.node,o,"End"))))}unmount(){}}class Yb extends lt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=wn(On(this.node.current,"focus",()=>this.onFocus()),On(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Fu(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&ee.postRender(()=>i(t,Vn(t)))}class Xb extends lt{mount(){const{current:t}=this.node;t&&(this.unmount=Tv(t,(n,r)=>(Fu(this.node,r,"Start"),(o,{success:i})=>Fu(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ai=new WeakMap,Ci=new WeakMap,qb=e=>{const t=Ai.get(e.target);t&&t(e)},Qb=e=>{e.forEach(qb)};function Jb({root:e,...t}){const n=e||document;Ci.has(n)||Ci.set(n,{});const r=Ci.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Qb,{root:e,...t})),r[o]}function ew(e,t,n){const r=Jb(t);return Ai.set(e,n),r.observe(e),()=>{Ai.delete(e),r.unobserve(e)}}const tw={some:0,all:1};class nw extends lt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:tw[o]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=l?u:d;h&&h(c)};return ew(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(rw(t,n))&&this.startObserver()}unmount(){}}function rw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ow={...z1,...{inView:{Feature:nw},tap:{Feature:Xb},focus:{Feature:Yb},hover:{Feature:Gb}},...Kb,...{layout:{ProjectionNode:Ou,MeasureLayout:tu}}},Pi=s1(ow,b1),iw="flex flex-col relative w-full cursor-text",sw=`
127
91
  peer transition-all
128
92
  px-4 pt-4 pb-2 border border-solid rounded outline-none
129
93
  border-gray-200 bg-white text-base-black text-base
@@ -136,7 +100,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
136
100
  data-[has-error=true]:border-feedback-danger-200
137
101
  data-[is-loading=true]:animate-pulse
138
102
  data-[has-prefix-icon=true]:pl-10
139
- `,VT=`
103
+ `,aw=`
140
104
  text-xs text-gray-400 px-4 ml-1 w-[125%]
141
105
  absolute top-3 origin-top-left text-ellipsis overflow-hidden
142
106
  scale-75 duration-300 text-nowrap
@@ -161,7 +125,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
161
125
 
162
126
  peer-focus:peer-data-[has-prefix-icon=true]:ml-7
163
127
  peer-focus:peer-data-[has-prefix-icon=true]:w-[calc(125%-24px)]
164
- `,LT="h-4 w-4 absolute left-4 top-1/2 -translate-y-1/2",_T="h-4 w-4 absolute right-4 top-1/2 -translate-y-1/2";function Td({name:e,label:t,type:n="text",isDisabled:r,maxLength:o=255,prefixIcon:i,suffixIcon:s,className:a,fieldClassName:c,onChange:l,onFocus:u,onBlur:d}){const{isLoading:f}=ar(),{isSubmitting:p}=xt(),[y,m]=yn(e),g=w=>{typeof l<"u"&&l(w),y.onChange(w)},v=w=>{typeof u<"u"&&u(w)},x=w=>{typeof d<"u"&&d(w),y.onBlur(w)};return T.jsxs("div",{className:mt(IT,a||""),children:[T.jsx(xo,{className:mt(NT,c||""),type:n,id:e,name:e,placeholder:t,...n==="text"?{maxLength:o}:{max:o},disabled:f||r||p,"data-is-loading":f,"data-has-error":!!m.error&&m.touched,"data-has-prefix-icon":!!i,"data-1p-ignore":!0,onChange:g,onFocus:v,onBlur:x}),T.jsx(Wi.label,{htmlFor:e,className:VT,children:t}),typeof i<"u"&&T.jsx(i,{className:LT}),typeof s<"u"&&T.jsx(s,{className:_T}),T.jsx(Ao,{name:e,component:"span",className:Co},`error-${e}`)]})}const jT="flex flex-col relative w-full cursor-text",BT=`
128
+ `,cw="h-4 w-4 absolute left-4 top-1/2 -translate-y-1/2",lw="h-4 w-4 absolute right-4 top-1/2 -translate-y-1/2";function ku({name:e,label:t,type:n="text",isDisabled:r,maxLength:o=255,prefixIcon:i,suffixIcon:s,className:a,fieldClassName:c,onChange:l,onFocus:u,onBlur:d}){const{isLoading:h}=Gn(),{isSubmitting:p}=xt(),[y,m]=bn(e),g=T=>{typeof l<"u"&&l(T),y.onChange(T)},v=T=>{typeof u<"u"&&u(T)},x=T=>{typeof d<"u"&&d(T),y.onBlur(T)};return b.jsxs("div",{className:gt(iw,a||""),children:[b.jsx(so,{className:gt(sw,c||""),type:n,id:e,name:e,placeholder:t,...n==="text"?{maxLength:o}:{max:o},disabled:h||r||p,"data-is-loading":h,"data-has-error":!!m.error&&m.touched,"data-has-prefix-icon":!!i,"data-1p-ignore":!0,onChange:g,onFocus:v,onBlur:x}),b.jsx(Pi.label,{htmlFor:e,className:aw,children:t}),typeof i<"u"&&b.jsx(i,{className:cw}),typeof s<"u"&&b.jsx(s,{className:lw}),b.jsx(co,{name:e,component:"span",className:lo},`error-${e}`)]})}const uw="flex flex-col relative w-full cursor-text",dw=`
165
129
  flex transition-all grow resize-none
166
130
  px-4 pt-6 pb-1.5 border border-solid rounded outline-none
167
131
  border-gray-200 bg-white text-black
@@ -174,11 +138,11 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
174
138
  data-[is-loading=true]:animate-pulse
175
139
  data-[has-prefix-icon=true]:pl-10
176
140
  data-[has-max-length=true]:pb-10
177
- `,UT=`
141
+ `,fw=`
178
142
  p-0 relative peer text-sm placeholder:text-transparent bg-transparent
179
143
  max-h-56 min-h-14 w-full border-0 appearance-none
180
144
  focus:outline-none resize-none
181
- `,$T=`
145
+ `,hw=`
182
146
  text-sm text-gray-400
183
147
  absolute top-4 origin-top-left
184
148
  scale-75 duration-300
@@ -193,27 +157,27 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
193
157
  peer-focus:scale-75
194
158
  peer-focus:-translate-y-2
195
159
  peer-data-[has-prefix-icon=true]:mx-10
196
- `,WT=`
160
+ `,pw=`
197
161
  h-4 w-4
198
162
  absolute left-4 top-1/2 -translate-y-1/2
199
- `,zT=`
163
+ `,mw=`
200
164
  text-sm text-gray-400
201
165
  absolute bottom-3.5 right-8 origin-bottom-right
202
- `;function KT({name:e,label:t,isDisabled:n,maxLength:r,rows:o=1,grow:i=!0,prefixIcon:s,className:a,onChange:c}){const{isLoading:l}=ar(),{isSubmitting:u}=xt(),d=E.useRef(null),[f,p,y]=yn(e);E.useEffect(()=>{!i||!d||d.current&&(d.current.style.height="0px",d.current.style.height=`${d.current.scrollHeight}px`)},[i,d,f.value]);const m=v=>{typeof c<"u"&&c(v),f.onChange(v)},g=()=>{var v;(v=d.current)==null||v.focus()};return T.jsxs("div",{className:`${jT} ${a||""}`,children:[T.jsxs("div",{className:BT,"data-is-loading":l,"data-has-prefix-icon":!!s,"data-has-max-length":!!r,onClick:g,children:[T.jsx(xo,{innerRef:d,component:"textarea",rows:o,className:UT,id:e,name:e,placeholder:t,maxLength:r,disabled:l||n||u,onChange:m,"data-1p-ignore":!0}),T.jsx(Wi.label,{htmlFor:e,className:$T,children:t}),typeof s<"u"&&T.jsx(s,{className:WT}),!!r&&T.jsx("div",{className:zT,children:`${p.value.length} / ${r}`})]}),T.jsx(Ao,{name:e,component:"span",className:Co},`error-${e}`)]})}const HT="pr-10 truncate",GT=`
166
+ `;function gw({name:e,label:t,isDisabled:n,maxLength:r,rows:o=1,grow:i=!0,prefixIcon:s,className:a,onChange:c}){const{isLoading:l}=Gn(),{isSubmitting:u}=xt(),d=E.useRef(null),[h,p,y]=bn(e);E.useEffect(()=>{!i||!d||d.current&&(d.current.style.height="0px",d.current.style.height=`${d.current.scrollHeight}px`)},[i,d,h.value]);const m=v=>{typeof c<"u"&&c(v),h.onChange(v)},g=()=>{var v;(v=d.current)==null||v.focus()};return b.jsxs("div",{className:`${uw} ${a||""}`,children:[b.jsxs("div",{className:dw,"data-is-loading":l,"data-has-prefix-icon":!!s,"data-has-max-length":!!r,onClick:g,children:[b.jsx(so,{innerRef:d,component:"textarea",rows:o,className:fw,id:e,name:e,placeholder:t,maxLength:r,disabled:l||n||u,onChange:m,"data-1p-ignore":!0}),b.jsx(Pi.label,{htmlFor:e,className:hw,children:t}),typeof s<"u"&&b.jsx(s,{className:pw}),!!r&&b.jsx("div",{className:mw,children:`${p.value.length} / ${r}`})]}),b.jsx(co,{name:e,component:"span",className:lo},`error-${e}`)]})}const yw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),f.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),vw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),f.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),bw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),f.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),ww=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z",opacity:"0.2"}),f.createElement("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z"}))]]),Tw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),f.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),Ew=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),f.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),xw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),f.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Sw=E.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ut=f.forwardRef((e,t)=>{const{alt:n,color:r,size:o,weight:i,mirrored:s,children:a,weights:c,...l}=e,{color:u="currentColor",size:d,weight:h="regular",mirrored:p=!1,...y}=f.useContext(Sw);return f.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:o??d,height:o??d,fill:r??u,viewBox:"0 0 256 256",transform:s||p?"scale(-1, 1)":void 0,...y,...l},!!n&&f.createElement("title",null,n),a,c.get(i??h))});ut.displayName="IconBase";const Iu=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:yw}));Iu.displayName="CaretLeftIcon";const Nu=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:vw}));Nu.displayName="CaretRightIcon";const Lu=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:bw}));Lu.displayName="CheckIcon";const Ru=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:ww}));Ru.displayName="SlidersIcon";const _u=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:Tw}));_u.displayName="SpinnerIcon";const fr=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:Ew}));fr.displayName="XIcon";const ju=f.forwardRef((e,t)=>f.createElement(ut,{ref:t,...e,weights:xw}));ju.displayName="XCircleIcon";const Aw="pr-10 truncate",Cw=`
203
167
  border-0 p-0 cursor-pointer
204
168
  absolute top-1/2 -translate-y-1/2
205
169
  right-4 bg-transparent
206
- `,YT=`
170
+ `,Pw=`
207
171
  h-4 w-4
208
- `,ZT=`
172
+ `,Mw=`
209
173
  animate-spin h-4 w-4
210
174
  absolute top-4 right-9
211
- `;function Ed({name:e,label:t,isLoading:n,isDisabled:r,maxLength:o=255,prefixIcon:i,suffixIcon:s,className:a,onChange:c,onClear:l,onFocus:u,onBlur:d}){const[,f,p]=yn(e),y=g=>{typeof c<"u"&&c(g)},m=()=>{p.setValue(""),typeof c<"u"&&c({target:{value:""}}),typeof l<"u"&&l()};return T.jsxs(T.Fragment,{children:[T.jsx(Td,{name:e,label:t,isDisabled:r,maxLength:o,prefixIcon:i,suffixIcon:s,className:a,fieldClassName:HT,onChange:y,onFocus:u,onBlur:d}),n&&T.jsx(da,{className:ZT}),!!f.value&&T.jsx("button",{type:"button",className:GT,onClick:m,children:T.jsx(qn,{className:YT})})]})}const XT=`
175
+ `;function Bu({name:e,label:t,isLoading:n,isDisabled:r,maxLength:o=255,prefixIcon:i,suffixIcon:s,className:a,onChange:c,onClear:l,onFocus:u,onBlur:d}){const[,h,p]=bn(e),y=g=>{typeof c<"u"&&c(g)},m=()=>{p.setValue(""),typeof c<"u"&&c({target:{value:""}}),typeof l<"u"&&l()};return b.jsxs(b.Fragment,{children:[b.jsx(ku,{name:e,label:t,isDisabled:r,maxLength:o,prefixIcon:i,suffixIcon:s,className:a,fieldClassName:Aw,onChange:y,onFocus:u,onBlur:d}),n&&b.jsx(_u,{className:Mw}),!!h.value&&b.jsx("button",{type:"button",className:Cw,onClick:m,children:b.jsx(fr,{className:Pw})})]})}const Dw=`
212
176
  group/checkbox
213
177
 
214
178
  data-[is-disabled=true]:pointer-events-none
215
179
  data-[is-disabled=true]:cursor-default
216
- `,qT=`
180
+ `,Ow=`
217
181
  w-5 h-5 rounded-md bg-white
218
182
  peer relative shrink-0
219
183
  appearance-none transition-colors
@@ -228,7 +192,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
228
192
  disabled:border-neutral-300
229
193
  disabled:checked:bg-neutral-300
230
194
  data-[has-error=true]:border-feedback-danger-200
231
- `,QT=`
195
+ `,Vw=`
232
196
  text-sm text-neutral-400 font-normal
233
197
  transition-colors
234
198
  group-hover/checkbox:text-base-black
@@ -237,25 +201,114 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
237
201
  group-data-[is-disabled=true]/checkbox:text-neutral-300
238
202
 
239
203
  flex gap-2 cursor-pointer
240
- `,JT="absolute w-4 h-4 ml-0.5 mt-0.5 hidden peer-checked:block fill-white";function eE({name:e,label:t,className:n,fieldClassName:r,isDisabled:o,onChange:i,onFocus:s}){const{isLoading:a}=ar(),{isSubmitting:c}=xt(),[l,u]=yn(e),d=p=>{typeof i<"u"&&i(p),l.onChange(p)},f=p=>{typeof s<"u"&&s(p)};return T.jsxs("div",{className:mt(XT,n||""),"data-is-disabled":o,children:[T.jsxs("label",{className:QT,children:[T.jsx(xo,{type:"checkbox",name:e,className:mt(qT,r||""),onChange:d,onFocus:f,"data-has-error":!!u.error&&u.touched,disabled:a||o||c}),t&&T.jsx(T.Fragment,{children:t}),T.jsx(ua,{className:JT,size:20})]}),T.jsx(Ao,{name:e,component:"span",className:Co},`error-${e}`)]})}const tE="relative",nE="relative",rE=`
204
+ `,Fw="absolute w-4 h-4 ml-0.5 mt-0.5 hidden peer-checked:block fill-white";function kw({name:e,label:t,className:n,fieldClassName:r,isDisabled:o,onChange:i,onFocus:s}){const{isLoading:a}=Gn(),{isSubmitting:c}=xt(),[l,u]=bn(e),d=p=>{typeof i<"u"&&i(p),l.onChange(p)},h=p=>{typeof s<"u"&&s(p)};return b.jsxs("div",{className:gt(Dw,n||""),"data-is-disabled":o,children:[b.jsxs("label",{className:Vw,children:[b.jsx(so,{type:"checkbox",name:e,className:gt(Ow,r||""),onChange:d,onFocus:h,"data-has-error":!!u.error&&u.touched,disabled:a||o||c}),t&&b.jsx(b.Fragment,{children:t}),b.jsx(Lu,{className:Fw,size:20})]}),b.jsx(co,{name:e,component:"span",className:lo},`error-${e}`)]})}const Iw="relative",Nw="relative",Lw=`
241
205
  absolute top-0 left-0 right-0
242
206
  list-none px-0 py-1 mt-1
243
207
  rounded-lg overflow-hidden
244
208
  bg-white shadow-multi-2sm rounded-lg
245
- `,oE=`
209
+ `,Rw=`
246
210
  py-2.5 px-4 cursor-pointer transition-all
247
211
  bg-white hover:bg-primary-10 hover:font-medium hover:text-black
248
- `,iE=`
212
+ `,_w=`
249
213
  absolute top-0 left-0 right-0 bottom-0
250
214
  px-4 flex items-center pointer-events-none
251
215
  text-gray-800
252
216
 
253
217
  data-[has-prefix-icon="true"]:pl-10
254
- `;function sE({name:e,label:t,options:n=[],selectedLabel:r,isLoading:o,isDisabled:i,clearOnSelect:s=!0,maxLength:a=255,prefixIcon:c,suffixIcon:l,className:u,onChange:d,onClear:f,onFocus:p,onBlur:y,onSelect:m}){const[g,v]=E.useState(!1),[x,,w]=yn(e),C=()=>{const R=n.length>0;g!==R&&v(R)};E.useEffect(()=>{C()},[n,C]);const b=E.useMemo(()=>r&&s&&!g&&!x.value,[r,s,g,x.value]),P=R=>{C(),typeof p<"u"&&p(R)},A=R=>{setTimeout(()=>{v(!1),typeof r>"u"&&s&&w.setValue(""),typeof d<"u"&&d({target:{value:""}}),typeof y<"u"&&y(R)},250)},M=R=>U=>{typeof m<"u"&&m(R),v(!1),s?w.setValue(""):w.setValue(R)};return T.jsxs("div",{className:tE,tabIndex:0,children:[T.jsx(Ed,{name:e,label:b?"":t,isLoading:o,isDisabled:i,maxLength:a,prefixIcon:c,suffixIcon:g?void 0:l,className:u,onChange:d,onClear:f,onBlur:A,onFocus:P}),b&&s&&T.jsx("div",{className:iE,"data-has-prefix-icon":!!c,children:r}),g&&T.jsx("div",{className:nE,children:T.jsx("ul",{className:rE,children:n.map(R=>T.jsx("li",{className:oE,onClick:M(R.value),children:R.label},R.key))})})]})}function aE({isLoading:e=!1,enableReinitialize:t=!0,initialValues:n,validationSchema:r,validateOnMount:o=!1,isForcedDirty:i,onSubmit:s,className:a,children:c}){const[l,u]=E.useState(null),d=p=>{u(p)},f=(p,y)=>{typeof s<"u"?s(p).finally(()=>{y.setSubmitting(!1)}):y.setSubmitting(!1)};return T.jsx(Pc.Provider,{value:{isLoading:e,isForcedDirty:i,onNavigationEvent:d},children:T.jsx(Wv,{enableReinitialize:t,initialValues:n,validationSchema:r,validateOnMount:o,onSubmit:f,children:p=>T.jsx("form",{onSubmit:p.handleSubmit,className:`${rb} ${a||""}`,children:c})})})}const cE=Object.freeze(Object.defineProperty({__proto__:null,Button:ob,Checkbox:eE,Input:Td,Root:aE,Search:Ed,SearchAndSelect:sE,Textarea:KT},Symbol.toStringTag,{value:"Module"}));function Ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function lE(e){const t=e+"CollectionProvider",[n,r]=Vr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:v}=m,x=E.useRef(null),w=E.useRef(new Map).current;return T.jsx(o,{scope:g,itemMap:w,collectionRef:x,children:v})};s.displayName=t;const a=e+"CollectionSlot",c=Ln(a),l=E.forwardRef((m,g)=>{const{scope:v,children:x}=m,w=i(a,v),C=Se(g,w.collectionRef);return T.jsx(c,{ref:C,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=Ln(u),p=E.forwardRef((m,g)=>{const{scope:v,children:x,...w}=m,C=E.useRef(null),b=Se(g,C),P=i(u,v);return E.useEffect(()=>(P.itemMap.set(C,{ref:C,...w}),()=>void P.itemMap.delete(C))),T.jsx(f,{[d]:"",ref:b,children:x})});p.displayName=u;function y(m){const g=i(e+"CollectionConsumer",m);return E.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((P,A)=>w.indexOf(P.ref.current)-w.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},y,r]}var uE="DismissableLayer",zi="dismissableLayer.update",dE="dismissableLayer.pointerDownOutside",fE="dismissableLayer.focusOutside",xd,Sd=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ad=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=h.useContext(Sd),[u,d]=h.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=h.useState({}),y=Se(t,A=>d(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),x=u?m.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,b=pE(A=>{const M=A.target,R=[...l.branches].some(U=>U.contains(M));!C||R||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},f),P=mE(A=>{const M=A.target;[...l.branches].some(U=>U.contains(M))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},f);return Ss(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},f),h.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(xd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Pd(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xd)}},[u,f,n,l]),h.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Pd())},[u,l]),h.useEffect(()=>{const A=()=>p({});return document.addEventListener(zi,A),()=>document.removeEventListener(zi,A)},[]),T.jsx(ge.div,{...c,ref:y,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,b.onPointerDownCapture)})});Ad.displayName=uE;var hE="DismissableLayerBranch",Cd=h.forwardRef((e,t)=>{const n=h.useContext(Sd),r=h.useRef(null),o=Se(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),T.jsx(ge.div,{...e,ref:o})});Cd.displayName=hE;function pE(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Md(dE,n,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);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function mE(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Md(fE,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pd(){const e=new CustomEvent(zi);document.dispatchEvent(e)}function Md(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?_r(o,i):o.dispatchEvent(i)}var gE=Ad,yE=Cd;function vE(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Dd=e=>{const{present:t,children:n}=e,r=bE(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=Se(r.ref,wE(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Dd.displayName="Presence";function bE(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),i=h.useRef("none"),s=e?"mounted":"unmounted",[a,c]=vE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const l=Ar(r.current);i.current=a==="mounted"?l:"none"},[a]),rt(()=>{const l=r.current,u=o.current;if(u!==e){const f=i.current,p=Ar(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),rt(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=Ar(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},f=p=>{p.target===t&&(i.current=Ar(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ar(e){return(e==null?void 0:e.animationName)||"none"}function wE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var TE=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"}),EE="VisuallyHidden",Ki=h.forwardRef((e,t)=>T.jsx(ge.span,{...e,ref:t,style:{...TE,...e.style}}));Ki.displayName=EE;var Hi="ToastProvider",[Gi,xE,SE]=lE("Toast"),[Od,Sx]=Vr("Toast",[SE]),[AE,Cr]=Od(Hi),kd=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,c]=h.useState(null),[l,u]=h.useState(0),d=h.useRef(!1),f=h.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Hi}\`. Expected non-empty \`string\`.`),T.jsx(Gi.Provider,{scope:t,children:T.jsx(AE,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange:c,onToastAdd:h.useCallback(()=>u(p=>p+1),[]),onToastRemove:h.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};kd.displayName=Hi;var Fd="ToastViewport",CE=["F8"],Yi="toast.viewportPause",Zi="toast.viewportResume",Rd=h.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=CE,label:o="Notifications ({hotkey})",...i}=e,s=Cr(Fd,n),a=xE(n),c=h.useRef(null),l=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=Se(t,d,s.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;h.useEffect(()=>{const g=v=>{var w;r.length!==0&&r.every(C=>v[C]||v.code===C)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r]),h.useEffect(()=>{const g=c.current,v=d.current;if(y&&g&&v){const x=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(Yi);v.dispatchEvent(P),s.isClosePausedRef.current=!0}},w=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(Zi);v.dispatchEvent(P),s.isClosePausedRef.current=!1}},C=P=>{!g.contains(P.relatedTarget)&&w()},b=()=>{g.contains(document.activeElement)||w()};return g.addEventListener("focusin",x),g.addEventListener("focusout",C),g.addEventListener("pointermove",x),g.addEventListener("pointerleave",b),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{g.removeEventListener("focusin",x),g.removeEventListener("focusout",C),g.removeEventListener("pointermove",x),g.removeEventListener("pointerleave",b),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[y,s.isClosePausedRef]);const m=h.useCallback(({tabbingDirection:g})=>{const x=a().map(w=>{const C=w.ref.current,b=[C,...jE(C)];return g==="forwards"?b:b.reverse()});return(g==="forwards"?x.reverse():x).flat()},[a]);return h.useEffect(()=>{const g=d.current;if(g){const v=x=>{var b,P,A;const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const M=document.activeElement,R=x.shiftKey;if(x.target===g&&R){(b=l.current)==null||b.focus();return}const me=m({tabbingDirection:R?"backwards":"forwards"}),ie=me.findIndex(L=>L===M);qi(me.slice(ie+1))?x.preventDefault():R?(P=l.current)==null||P.focus():(A=u.current)==null||A.focus()}};return g.addEventListener("keydown",v),()=>g.removeEventListener("keydown",v)}},[a,m]),T.jsxs(yE,{ref:c,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&T.jsx(Xi,{ref:l,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});qi(g)}}),T.jsx(Gi.Slot,{scope:n,children:T.jsx(ge.ol,{tabIndex:-1,...i,ref:f})}),y&&T.jsx(Xi,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});qi(g)}})]})});Rd.displayName=Fd;var Id="ToastFocusProxy",Xi=h.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Cr(Id,n);return T.jsx(Ki,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var l;const a=s.relatedTarget;!((l=i.viewport)!=null&&l.contains(a))&&r()}})});Xi.displayName=Id;var In="Toast",PE="toast.swipeStart",ME="toast.swipeMove",DE="toast.swipeCancel",OE="toast.swipeEnd",Nd=h.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,c]=xs({prop:r,defaultProp:o??!0,onChange:i,caller:In});return T.jsx(Dd,{present:n||a,children:T.jsx(RE,{open:a,...s,ref:t,onClose:()=>c(!1),onPause:Re(e.onPause),onResume:Re(e.onResume),onSwipeStart:Ce(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ce(e.onSwipeMove,l=>{const{x:u,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Ce(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ce(e.onSwipeEnd,l=>{const{x:u,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),c(!1)})})})});Nd.displayName=In;var[kE,FE]=Od(In,{onClose(){}}),RE=h.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...y}=e,m=Cr(In,n),[g,v]=h.useState(null),x=Se(t,L=>v(L)),w=h.useRef(null),C=h.useRef(null),b=o||m.duration,P=h.useRef(0),A=h.useRef(b),M=h.useRef(0),{onToastAdd:R,onToastRemove:U}=m,oe=Re(()=>{var Z;(g==null?void 0:g.contains(document.activeElement))&&((Z=m.viewport)==null||Z.focus()),s()}),me=h.useCallback(L=>{!L||L===1/0||(window.clearTimeout(M.current),P.current=new Date().getTime(),M.current=window.setTimeout(oe,L))},[oe]);h.useEffect(()=>{const L=m.viewport;if(L){const Z=()=>{me(A.current),l==null||l()},se=()=>{const $=new Date().getTime()-P.current;A.current=A.current-$,window.clearTimeout(M.current),c==null||c()};return L.addEventListener(Yi,se),L.addEventListener(Zi,Z),()=>{L.removeEventListener(Yi,se),L.removeEventListener(Zi,Z)}}},[m.viewport,b,c,l,me]),h.useEffect(()=>{i&&!m.isClosePausedRef.current&&me(b)},[i,b,m.isClosePausedRef,me]),h.useEffect(()=>(R(),()=>U()),[R,U]);const ie=h.useMemo(()=>g?Wd(g):null,[g]);return m.viewport?T.jsxs(T.Fragment,{children:[ie&&T.jsx(IE,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:ie}),T.jsx(kE,{scope:n,onClose:oe,children:os.createPortal(T.jsx(Gi.ItemSlot,{scope:n,children:T.jsx(gE,{asChild:!0,onEscapeKeyDown:Ce(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||oe(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:T.jsx(ge.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ce(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,oe()))}),onPointerDown:Ce(e.onPointerDown,L=>{L.button===0&&(w.current={x:L.clientX,y:L.clientY})}),onPointerMove:Ce(e.onPointerMove,L=>{if(!w.current)return;const Z=L.clientX-w.current.x,se=L.clientY-w.current.y,$=!!C.current,D=["left","right"].includes(m.swipeDirection),fe=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,we=D?fe(0,Z):0,Pe=D?0:fe(0,se),Ee=L.pointerType==="touch"?10:2,Q={x:we,y:Pe},ce={originalEvent:L,delta:Q};$?(C.current=Q,Pr(ME,d,ce,{discrete:!1})):zd(Q,m.swipeDirection,Ee)?(C.current=Q,Pr(PE,u,ce,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(Z)>Ee||Math.abs(se)>Ee)&&(w.current=null)}),onPointerUp:Ce(e.onPointerUp,L=>{const Z=C.current,se=L.target;if(se.hasPointerCapture(L.pointerId)&&se.releasePointerCapture(L.pointerId),C.current=null,w.current=null,Z){const $=L.currentTarget,D={originalEvent:L,delta:Z};zd(Z,m.swipeDirection,m.swipeThreshold)?Pr(OE,p,D,{discrete:!0}):Pr(DE,f,D,{discrete:!0}),$.addEventListener("click",fe=>fe.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),IE=e=>{const{__scopeToast:t,children:n,...r}=e,o=Cr(In,t),[i,s]=h.useState(!1),[a,c]=h.useState(!1);return LE(()=>s(!0)),h.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:T.jsx($r,{asChild:!0,children:T.jsx(Ki,{...r,children:i&&T.jsxs(T.Fragment,{children:[o.label," ",n]})})})},NE="ToastTitle",Vd=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return T.jsx(ge.div,{...r,ref:t})});Vd.displayName=NE;var VE="ToastDescription",Ld=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return T.jsx(ge.div,{...r,ref:t})});Ld.displayName=VE;var _d="ToastAction",jd=h.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?T.jsx($d,{altText:n,asChild:!0,children:T.jsx(Ud,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${_d}\`. Expected non-empty \`string\`.`),null)});jd.displayName=_d;var Bd="ToastClose",Ud=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=FE(Bd,n);return T.jsx($d,{asChild:!0,children:T.jsx(ge.button,{type:"button",...r,ref:t,onClick:Ce(e.onClick,o.onClose)})})});Ud.displayName=Bd;var $d=h.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return T.jsx(ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Wd(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),_E(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Wd(r))}}),t}function Pr(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?_r(o,i):o.dispatchEvent(i)}var zd=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function LE(e=()=>{}){const t=Re(e);rt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function _E(e){return e.nodeType===e.ELEMENT_NODE}function jE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qi(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var BE=kd,UE=Rd,$E=Nd,WE=Vd,zE=Ld,KE=jd;const HE=`
218
+ `;function jw({name:e,label:t,options:n=[],selectedLabel:r,isLoading:o,isDisabled:i,clearOnSelect:s=!0,maxLength:a=255,prefixIcon:c,suffixIcon:l,className:u,onChange:d,onClear:h,onFocus:p,onBlur:y,onSelect:m}){const[g,v]=E.useState(!1),[x,,T]=bn(e),C=()=>{const k=n.length>0;g!==k&&v(k)};E.useEffect(()=>{C()},[n,C]);const w=E.useMemo(()=>r&&s&&!g&&!x.value,[r,s,g,x.value]),P=k=>{C(),typeof p<"u"&&p(k)},A=k=>{setTimeout(()=>{v(!1),typeof r>"u"&&s&&T.setValue(""),typeof d<"u"&&d({target:{value:""}}),typeof y<"u"&&y(k)},250)},M=k=>U=>{typeof m<"u"&&m(k),v(!1),s?T.setValue(""):T.setValue(k)};return b.jsxs("div",{className:Iw,tabIndex:0,children:[b.jsx(Bu,{name:e,label:w?"":t,isLoading:o,isDisabled:i,maxLength:a,prefixIcon:c,suffixIcon:g?void 0:l,className:u,onChange:d,onClear:h,onBlur:A,onFocus:P}),w&&s&&b.jsx("div",{className:_w,"data-has-prefix-icon":!!c,children:r}),g&&b.jsx("div",{className:Nw,children:b.jsx("ul",{className:Lw,children:n.map(k=>b.jsx("li",{className:Rw,onClick:M(k.value),children:k.label},k.key))})})]})}function Bw({isLoading:e=!1,enableReinitialize:t=!0,initialValues:n,validationSchema:r,validateOnMount:o=!1,isForcedDirty:i,onSubmit:s,className:a,children:c}){const[l,u]=E.useState(null),d=p=>{u(p)},h=(p,y)=>{typeof s<"u"?s(p).finally(()=>{y.setSubmitting(!1)}):y.setSubmitting(!1)};return b.jsx(ja.Provider,{value:{isLoading:e,isForcedDirty:i,onNavigationEvent:d},children:b.jsx(p0,{enableReinitialize:t,initialValues:n,validationSchema:r,validateOnMount:o,onSubmit:h,children:p=>b.jsx("form",{onSubmit:p.handleSubmit,className:`${M0} ${a||""}`,children:c})})})}const Uw=Object.freeze(Object.defineProperty({__proto__:null,Button:D0,Checkbox:kw,Input:ku,Root:Bw,Search:Bu,SearchAndSelect:jw,Textarea:gw},Symbol.toStringTag,{value:"Module"})),Uu=E.createContext({}),Mi=()=>E.useContext(Uu);function $w({activeFilter:e,children:t}){const[n,r]=E.useState(!1);return b.jsx(Uu.Provider,{value:{activeFilter:e,isFiltersDialogOpen:n,setIsFiltersDialogOpen:r},children:t})}const Ww=`
219
+ flex flex-col
220
+ items-center justify-center
221
+ rounded-full
222
+ bg-white
223
+ text-gray-400
224
+ border border-gray-150
225
+ w-10 h-10
226
+ p-2
227
+ flex-none
228
+ transition-colors
229
+
230
+ hover:bg-primary-100
231
+ hover:text-base-white
232
+ hover:border-transparent
233
+ `,zw=`
234
+ h-4 w-4
235
+ text-inherit
236
+ inline-block
237
+ `,Zw=({label:e})=>{const{setIsFiltersDialogOpen:t}=Mi();return b.jsx("button",{"data-testid":"dialog-trigger",className:Ww,"aria-label":e||"All filters",onClick:()=>t(!0),children:b.jsx(Ru,{className:zw})})},Hw="relative overflow-hidden",Kw="h-full flex gap-x-2 items-center overflow-auto no-scrollbar outline-px focus:outline-primary-100 -outline-offset-2",$u="h-full hidden md:flex items-center w-16 absolute from-base-white via-base-white to-transparent",Gw=`${$u} justify-start left-0 bg-gradient-to-r pl-1`,Yw=`${$u} justify-end right-0 bg-gradient-to-l pr-1`,Wu="flex justify-center items-center border-2 border-gray-400 text-gray-400 rounded-full w-8 h-8 bg-base-white cursor-pointer hover:scale-110 hover:shadow-md transition-all",zu=50,Di=128;function Xw(e,t,n,r,o){var s;if(e||t===n||!(o!=null&&o.current)||!t||!r)return;const i=o.current.querySelector("li[data-active='true']");i&&((s=o.current)==null||s.scroll({left:i.offsetLeft-Di,behavior:"smooth"}))}const qw=({activeFilter:e,leftArrowAriaLabel:t,rightArrowAriaLabel:n,children:r})=>{const{isFiltersDialogOpen:o}=Mi(),[i,s]=E.useState(e),[a,c]=E.useState(o),[l,u]=E.useState(!1),[d,h]=E.useState(!0),p=E.useRef(null);E.useEffect(()=>{c(o)},[o]),E.useEffect(()=>{s(e)},[e]),E.useEffect(()=>{Xw(o,e,i,a,p)},[e,i,o,a]);const y=()=>{var v;(v=p.current)==null||v.scroll({left:p.current.scrollLeft-p.current.clientWidth+Di,behavior:"smooth"})},m=()=>{var v;(v=p.current)==null||v.scroll({left:p.current.scrollLeft+p.current.clientWidth-Di,behavior:"smooth"})},g=v=>{const x=zu,T=v.currentTarget.scrollWidth-v.currentTarget.offsetWidth-zu;v.currentTarget.scrollLeft>x&&!l?u(!0):v.currentTarget.scrollLeft<x&&l&&u(!1),v.currentTarget.scrollLeft<T&&!d?h(!0):v.currentTarget.scrollLeft>T&&d&&h(!1)};return b.jsx("div",{className:Hw,"data-testid":"scroll-list-container",children:b.jsxs("ul",{"data-testid":"scroll-list",className:Kw,ref:p,onScroll:g,tabIndex:0,children:[l&&b.jsx("li",{className:Gw,children:b.jsx("button",{"data-testid":"left-arrow-button",className:Wu,"aria-label":t||"Scroll left",onClick:y,children:b.jsx(Iu,{weight:"bold"})})}),r,d&&b.jsx("li",{className:Yw,children:b.jsx("button",{"data-testid":"right-arrow-button",className:Wu,"aria-label":n||"Scroll right",onClick:m,children:b.jsx(Nu,{weight:"bold"})})})]})})},Qw="group list-none",Jw=`
238
+ text-gray-400 flex items-center gap-x-2 border border-gray-150
239
+ h-10 px-5 rounded-full cursor-pointer transition-colors -outline-offset-2
240
+
241
+ hover:bg-primary-100
242
+ hover:text-base-white
243
+ hover:border-transparent
244
+
245
+ group-data-[active=true]:bg-primary-100
246
+ group-data-[active=true]:text-base-white
247
+ group-data-[active=true]:border-transparent
248
+ `,eT="w-5 h-5",tT="text-sm font-medium leading-5 text-nowrap";function nT({filter:e,label:t,icon:n,iconBackgroundColor:r,iconFillColor:o,isActive:i,onSelectFilter:s}){const a=()=>{s&&s(e)};return b.jsx("li",{className:Qw,"data-active":i,"data-testid":"filter-item","data-filter":e,children:b.jsxs("button",{onClick:a,className:Jw,"data-testid":"filter-item-button",children:[r&&o?b.jsx(xs,{element:b.jsx(n,{}),backgroundColor:r,fillColor:o}):b.jsx(n,{className:eT,"data-testid":"filter-item-icon"}),b.jsx("p",{className:tT,"data-testid":"filter-item-label",children:t})]})})}function dt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Zu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Hu(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Zu(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Zu(e[o],null)}}}}function Ae(...e){return f.useCallback(Hu(...e),e)}function rT(e,t){const n=f.createContext(t),r=i=>{const{children:s,...a}=i,c=f.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Oi(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];const l=d=>{var v;const{scope:h,children:p,...y}=d,m=((v=h==null?void 0:h[e])==null?void 0:v[c])||a,g=f.useMemo(()=>y,Object.values(y));return b.jsx(m.Provider,{value:g,children:p})};l.displayName=i+"Provider";function u(d,h){var m;const p=((m=h==null?void 0:h[e])==null?void 0:m[c])||a,y=f.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const o=()=>{const i=n.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,[r,oT(o,...t)]}function oT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ft=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},iT=f[" useId ".trim().toString()]||(()=>{}),sT=0;function Vi(e){const[t,n]=f.useState(iT());return ft(()=>{n(r=>r??String(sT++))},[e]),e||(t?`radix-${t}`:"")}var aT=f[" useInsertionEffect ".trim().toString()]||ft;function Ku({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=cT({defaultProp:t,onChange:n}),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(`${r} 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,r])}const l=f.useCallback(u=>{var d;if(a){const h=lT(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 cT({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return aT(()=>{i.current=t},[t]),f.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function lT(e){return typeof e=="function"}function hr(e){const t=uT(e),n=f.forwardRef((r,o)=>{const{children:i,...s}=r,a=f.Children.toArray(i),c=a.find(fT);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 b.jsx(t,{...s,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,u):null})}return b.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function uT(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const s=pT(o),a=hT(i,o.props);return o.type!==f.Fragment&&(a.ref=r?Hu(r,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dT=Symbol("radix.slottable");function fT(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dT}function hT(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function pT(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=mT.reduce((e,t)=>{const n=hr(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fi(e,t){e&&ss.flushSync(()=>e.dispatchEvent(t))}function Ne(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Gu(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var gT="DismissableLayer",ki="dismissableLayer.update",yT="dismissableLayer.pointerDownOutside",vT="dismissableLayer.focusOutside",Yu,Xu=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qu=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(Xu),[u,d]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=f.useState({}),y=Ae(t,A=>d(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),x=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,w=TT(A=>{const M=A.target,k=[...l.branches].some(U=>U.contains(M));!C||k||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},h),P=ET(A=>{const M=A.target;[...l.branches].some(U=>U.contains(M))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},h);return Gu(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Yu=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Qu(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Yu)}},[u,h,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Qu())},[u,l]),f.useEffect(()=>{const A=()=>p({});return document.addEventListener(ki,A),()=>document.removeEventListener(ki,A)},[]),b.jsx(ge.div,{...c,ref:y,style:{pointerEvents:T?C?"auto":"none":void 0,...e.style},onFocusCapture:dt(e.onFocusCapture,P.onFocusCapture),onBlurCapture:dt(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:dt(e.onPointerDownCapture,w.onPointerDownCapture)})});qu.displayName=gT;var bT="DismissableLayerBranch",wT=f.forwardRef((e,t)=>{const n=f.useContext(Xu),r=f.useRef(null),o=Ae(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(ge.div,{...e,ref:o})});wT.displayName=bT;function TT(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Ju(yT,n,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);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ET(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ju(vT,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Qu(){const e=new CustomEvent(ki);document.dispatchEvent(e)}function Ju(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fi(o,i):o.dispatchEvent(i)}var Ii="focusScope.autoFocusOnMount",Ni="focusScope.autoFocusOnUnmount",ed={bubbles:!1,cancelable:!0},xT="FocusScope",td=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=f.useState(null),l=Ne(o),u=Ne(i),d=f.useRef(null),h=Ae(t,m=>c(m)),p=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let m=function(T){if(p.paused||!a)return;const C=T.target;a.contains(C)?d.current=C:ht(d.current,{select:!0})},g=function(T){if(p.paused||!a)return;const C=T.relatedTarget;C!==null&&(a.contains(C)||ht(d.current,{select:!0}))},v=function(T){if(document.activeElement===document.body)for(const w of T)w.removedNodes.length>0&&ht(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const x=new MutationObserver(v);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),x.disconnect()}}},[r,a,p.paused]),f.useEffect(()=>{if(a){od.add(p);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(Ii,ed);a.addEventListener(Ii,l),a.dispatchEvent(v),v.defaultPrevented||(ST(DT(nd(a)),{select:!0}),document.activeElement===m&&ht(a))}return()=>{a.removeEventListener(Ii,l),setTimeout(()=>{const v=new CustomEvent(Ni,ed);a.addEventListener(Ni,u),a.dispatchEvent(v),v.defaultPrevented||ht(m??document.body,{select:!0}),a.removeEventListener(Ni,u),od.remove(p)},0)}}},[a,l,u,p]);const y=f.useCallback(m=>{if(!n&&!r||p.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(g&&v){const x=m.currentTarget,[T,C]=AT(x);T&&C?!m.shiftKey&&v===C?(m.preventDefault(),n&&ht(T,{select:!0})):m.shiftKey&&v===T&&(m.preventDefault(),n&&ht(C,{select:!0})):v===x&&m.preventDefault()}},[n,r,p.paused]);return b.jsx(ge.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});td.displayName=xT;function ST(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ht(r,{select:t}),document.activeElement!==n)return}function AT(e){const t=nd(e),n=rd(t,e),r=rd(t.reverse(),e);return[n,r]}function nd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rd(e,t){for(const n of e)if(!CT(n,{upTo:t}))return n}function CT(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 PT(e){return e instanceof HTMLInputElement&&"select"in e}function ht(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&PT(e)&&t&&e.select()}}var od=MT();function MT(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=id(e,t),e.unshift(t)},remove(t){var n;e=id(e,t),(n=e[0])==null||n.resume()}}}function id(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function DT(e){return e.filter(t=>t.tagName!=="A")}var OT="Portal",Li=f.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=f.useState(!1);ft(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?os.createPortal(b.jsx(ge.div,{...r,ref:t}),s):null});Li.displayName=OT;function VT(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var pr=e=>{const{present:t,children:n}=e,r=FT(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=Ae(r.ref,kT(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};pr.displayName="Presence";function FT(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=VT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=mr(r.current);i.current=a==="mounted"?l:"none"},[a]),ft(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=mr(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ft(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=mr(r.current).includes(p.animationName);if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=p=>{p.target===t&&(i.current=mr(r.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=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function mr(e){return(e==null?void 0:e.animationName)||"none"}function kT(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ri=0;function IT(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sd()),document.body.insertAdjacentElement("beforeend",e[1]??sd()),Ri++,()=>{Ri===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ri--}},[])}function sd(){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 pt=function(){return pt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},pt.apply(this,arguments)};function NT(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function LT(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var gr="right-scroll-bar-position",yr="width-before-scroll-bar",RT="with-scroll-bars-hidden",_T="--removed-body-scroll-bar-size";function _i(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jT(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var BT=typeof window<"u"?f.useLayoutEffect:f.useEffect,ad=new WeakMap;function UT(e,t){var n=jT(null,function(r){return e.forEach(function(o){return _i(o,r)})});return BT(function(){var r=ad.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||_i(a,null)}),i.forEach(function(a){o.has(a)||_i(a,s)})}ad.set(n,e)},[e]),n}var vr=function(){return vr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},vr.apply(this,arguments)};function $T(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}typeof SuppressedError=="function"&&SuppressedError;function WT(e){return e}function zT(e,t){t===void 0&&(t=WT);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var u=s;s=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){s.push(u),l()},filter:function(u){return s=s.filter(u),n}}}};return o}function ZT(e){e===void 0&&(e={});var t=zT(null);return t.options=vr({async:!0,ssr:!1},e),t}var cd=function(e){var t=e.sideCar,n=$T(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,vr({},n))};cd.isSideCarExport=!0;function HT(e,t){return e.useMedium(t),cd}var ld=ZT(),ji=function(){},br=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:ji,onWheelCapture:ji,onTouchMoveCapture:ji}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,y=e.inert,m=e.allowPinchZoom,g=e.as,v=g===void 0?"div":g,x=e.gapMode,T=NT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,w=UT([n,t]),P=pt(pt({},T),o);return f.createElement(f.Fragment,null,u&&f.createElement(C,{sideCar:ld,removeScrollBar:l,shards:d,noIsolation:p,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:x}),s?f.cloneElement(f.Children.only(a),pt(pt({},P),{ref:w})):f.createElement(v,pt({},P,{className:c,ref:w}),a))});br.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},br.classNames={fullWidth:yr,zeroRight:gr};var KT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function GT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=KT();return t&&e.setAttribute("nonce",t),e}function YT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=GT())&&(YT(t,n),XT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QT=function(){var e=qT();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ud=function(){var e=QT(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},JT={left:0,top:0,right:0,gap:0},Bi=function(e){return parseInt(e||"",10)||0},eE=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Bi(n),Bi(r),Bi(o)]},tE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return JT;var t=eE(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nE=ud(),tn="data-scroll-locked",rE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
249
+ .`.concat(RT,` {
250
+ overflow: hidden `).concat(r,`;
251
+ padding-right: `).concat(a,"px ").concat(r,`;
252
+ }
253
+ body[`).concat(tn,`] {
254
+ overflow: hidden `).concat(r,`;
255
+ overscroll-behavior: contain;
256
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
257
+ padding-left: `.concat(o,`px;
258
+ padding-top: `).concat(i,`px;
259
+ padding-right: `).concat(s,`px;
260
+ margin-left:0;
261
+ margin-top:0;
262
+ margin-right: `).concat(a,"px ").concat(r,`;
263
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
264
+ }
265
+
266
+ .`).concat(gr,` {
267
+ right: `).concat(a,"px ").concat(r,`;
268
+ }
269
+
270
+ .`).concat(yr,` {
271
+ margin-right: `).concat(a,"px ").concat(r,`;
272
+ }
273
+
274
+ .`).concat(gr," .").concat(gr,` {
275
+ right: 0 `).concat(r,`;
276
+ }
277
+
278
+ .`).concat(yr," .").concat(yr,` {
279
+ margin-right: 0 `).concat(r,`;
280
+ }
281
+
282
+ body[`).concat(tn,`] {
283
+ `).concat(_T,": ").concat(a,`px;
284
+ }
285
+ `)},dd=function(){var e=parseInt(document.body.getAttribute(tn)||"0",10);return isFinite(e)?e:0},oE=function(){f.useEffect(function(){return document.body.setAttribute(tn,(dd()+1).toString()),function(){var e=dd()-1;e<=0?document.body.removeAttribute(tn):document.body.setAttribute(tn,e.toString())}},[])},iE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;oE();var i=f.useMemo(function(){return tE(o)},[o]);return f.createElement(nE,{styles:rE(i,!t,o,n?"":"!important")})},Ui=!1;if(typeof window<"u")try{var wr=Object.defineProperty({},"passive",{get:function(){return Ui=!0,!0}});window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{Ui=!1}var nn=Ui?{passive:!1}:!1,sE=function(e){return e.tagName==="TEXTAREA"},fd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sE(e)&&n[t]==="visible")},aE=function(e){return fd(e,"overflowY")},cE=function(e){return fd(e,"overflowX")},hd=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=pd(e,r);if(o){var i=md(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},lE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},pd=function(e,t){return e==="v"?aE(t):cE(t)},md=function(e,t){return e==="v"?lE(t):uE(t)},dE=function(e,t){return e==="h"&&t==="rtl"?-1:1},fE=function(e,t,n,r,o){var i=dE(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,u=s>0,d=0,h=0;do{var p=md(e,a),y=p[0],m=p[1],g=p[2],v=m-g-i*y;(y||v)&&pd(e,a)&&(d+=v,h+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}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},Tr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gd=function(e){return[e.deltaX,e.deltaY]},yd=function(e){return e&&"current"in e?e.current:e},hE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pE=function(e){return`
286
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
287
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
288
+ `)},mE=0,rn=[];function gE(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(mE++)[0],i=f.useState(ud)[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 m=LT([e.lockRef.current],(e.shards||[]).map(yd),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var v=Tr(m),x=n.current,T="deltaX"in m?m.deltaX:x[0]-v[0],C="deltaY"in m?m.deltaY:x[1]-v[1],w,P=m.target,A=Math.abs(T)>Math.abs(C)?"h":"v";if("touches"in m&&A==="h"&&P.type==="range")return!1;var M=hd(A,P);if(!M)return!0;if(M?w=A:(w=A==="v"?"h":"v",M=hd(A,P)),!M)return!1;if(!r.current&&"changedTouches"in m&&(T||C)&&(r.current=w),!w)return!0;var k=r.current||w;return fE(k,g,m,k==="h"?T:C)},[]),c=f.useCallback(function(m){var g=m;if(!(!rn.length||rn[rn.length-1]!==i)){var v="deltaY"in g?gd(g):Tr(g),x=t.current.filter(function(w){return w.name===g.type&&(w.target===g.target||g.target===w.shadowParent)&&hE(w.delta,v)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var T=(s.current.shards||[]).map(yd).filter(Boolean).filter(function(w){return w.contains(g.target)}),C=T.length>0?a(g,T[0]):!s.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),l=f.useCallback(function(m,g,v,x){var T={name:m,delta:g,target:v,should:x,shadowParent:yE(v)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(C){return C!==T})},1)},[]),u=f.useCallback(function(m){n.current=Tr(m),r.current=void 0},[]),d=f.useCallback(function(m){l(m.type,gd(m),m.target,a(m,e.lockRef.current))},[]),h=f.useCallback(function(m){l(m.type,Tr(m),m.target,a(m,e.lockRef.current))},[]);f.useEffect(function(){return rn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,nn),document.addEventListener("touchmove",c,nn),document.addEventListener("touchstart",u,nn),function(){rn=rn.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,nn),document.removeEventListener("touchmove",c,nn),document.removeEventListener("touchstart",u,nn)}},[]);var p=e.removeScrollBar,y=e.inert;return f.createElement(f.Fragment,null,y?f.createElement(i,{styles:pE(o)}):null,p?f.createElement(iE,{gapMode:e.gapMode}):null)}function yE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vE=HT(ld,gE);var vd=f.forwardRef(function(e,t){return f.createElement(br,pt({},e,{ref:t,sideCar:vE}))});vd.classNames=br.classNames;var bE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},on=new WeakMap,Er=new WeakMap,xr={},$i=0,bd=function(e){return e&&(e.host||bd(e.parentNode))},wE=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=bd(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},TE=function(e,t,n,r){var o=wE(t,Array.isArray(e)?e:[e]);xr[n]||(xr[n]=new WeakMap);var i=xr[n],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 p=h.getAttribute(r),y=p!==null&&p!=="false",m=(on.get(h)||0)+1,g=(i.get(h)||0)+1;on.set(h,m),i.set(h,g),s.push(h),m===1&&y&&Er.set(h,!0),g===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return u(t),a.clear(),$i++,function(){s.forEach(function(d){var h=on.get(d)-1,p=i.get(d)-1;on.set(d,h),i.set(d,p),h||(Er.has(d)||d.removeAttribute(r),Er.delete(d)),p||d.removeAttribute(n)}),$i--,$i||(on=new WeakMap,on=new WeakMap,Er=new WeakMap,xr={})}},EE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=bE(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),TE(r,o,n,"aria-hidden")):function(){return null}},Sr="Dialog",[wd,px]=Oi(Sr),[xE,Le]=wd(Sr),Td=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=f.useRef(null),c=f.useRef(null),[l,u]=Ku({prop:r,defaultProp:o??!1,onChange:i,caller:Sr});return b.jsx(xE,{scope:t,triggerRef:a,contentRef:c,contentId:Vi(),titleId:Vi(),descriptionId:Vi(),open:l,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(d=>!d),[u]),modal:s,children:n})};Td.displayName=Sr;var Ed="DialogTrigger",SE=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Ed,n),i=Ae(t,o.triggerRef);return b.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Zi(o.open),...r,ref:i,onClick:dt(e.onClick,o.onOpenToggle)})});SE.displayName=Ed;var Wi="DialogPortal",[AE,xd]=wd(Wi,{forceMount:void 0}),Sd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Le(Wi,t);return b.jsx(AE,{scope:t,forceMount:n,children:f.Children.map(r,s=>b.jsx(pr,{present:n||i.open,children:b.jsx(Li,{asChild:!0,container:o,children:s})}))})};Sd.displayName=Wi;var Ar="DialogOverlay",Ad=f.forwardRef((e,t)=>{const n=xd(Ar,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Le(Ar,e.__scopeDialog);return i.modal?b.jsx(pr,{present:r||i.open,children:b.jsx(PE,{...o,ref:t})}):null});Ad.displayName=Ar;var CE=hr("DialogOverlay.RemoveScroll"),PE=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Ar,n);return b.jsx(vd,{as:CE,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(ge.div,{"data-state":Zi(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ft="DialogContent",Cd=f.forwardRef((e,t)=>{const n=xd(Ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Le(Ft,e.__scopeDialog);return b.jsx(pr,{present:r||i.open,children:i.modal?b.jsx(ME,{...o,ref:t}):b.jsx(DE,{...o,ref:t})})});Cd.displayName=Ft;var ME=f.forwardRef((e,t)=>{const n=Le(Ft,e.__scopeDialog),r=f.useRef(null),o=Ae(t,n.contentRef,r);return f.useEffect(()=>{const i=r.current;if(i)return EE(i)},[]),b.jsx(Pd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dt(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:dt(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:dt(e.onFocusOutside,i=>i.preventDefault())})}),DE=f.forwardRef((e,t)=>{const n=Le(Ft,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return b.jsx(Pd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Pd=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Le(Ft,n),c=f.useRef(null),l=Ae(t,c);return IT(),b.jsxs(b.Fragment,{children:[b.jsx(td,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(qu,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Zi(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(OE,{titleId:a.titleId}),b.jsx(FE,{contentRef:c,descriptionId:a.descriptionId})]})]})}),zi="DialogTitle",Md=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(zi,n);return b.jsx(ge.h2,{id:o.titleId,...r,ref:t})});Md.displayName=zi;var Dd="DialogDescription",Od=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Dd,n);return b.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});Od.displayName=Dd;var Vd="DialogClose",Fd=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Le(Vd,n);return b.jsx(ge.button,{type:"button",...r,ref:t,onClick:dt(e.onClick,()=>o.onOpenChange(!1))})});Fd.displayName=Vd;function Zi(e){return e?"open":"closed"}var kd="DialogTitleWarning",[mx,Id]=rT(kd,{contentName:Ft,titleName:zi,docsSlug:"dialog"}),OE=({titleId:e})=>{const t=Id(kd),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
289
+
290
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
291
+
292
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},VE="DialogDescriptionWarning",FE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Id(VE).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(r))},[r,e,t]),null},Nd=Td,Ld=Sd,Rd=Ad,_d=Cd,jd=Md,Bd=Od,kE=Fd;const IE="fixed top-0 left-0 right-0 bottom-0 z-20 opacity-40 bg-gray-400 rounded inset-0",NE=`
293
+ fixed top-0 left-0 h-full w-full
294
+
295
+ md:top-1/2 md:max-h-[475px] md:-translate-y-1/2
296
+ md:left-1/2 md:max-w-[600px] md:-translate-x-1/2
297
+
298
+ bg-base-white
299
+ py-6
300
+ z-30
301
+ `,LE="text-center font-semibold text-gray-800",RE="font-medium leading-6 text-gray-400 mt-8 mb-6 px-4",_E="absolute top-5 right-5",jE="h-8 w-8 text-gray-250 hover:text-gray-400 transition-colors",BE="h-full flex flex-col justify-between",UE="px-4 pb-4 flex flex-wrap gap-2 overflow-y-auto",$E="p-6 border-t border-gray-200 flex justify-between items-center",WE="md:w-52",zE=({title:e,description:t,applyLabel:n,resetLabel:r,onReset:o,onApply:i,onClose:s,children:a})=>{const{isFiltersDialogOpen:c,setIsFiltersDialogOpen:l}=Mi(),u=()=>{o(),l(!1)},d=()=>{i(),l(!1)},h=()=>{l(!1),typeof s=="function"&&s()};return b.jsx(Nd,{open:c,children:b.jsxs(Ld,{children:[b.jsx(Rd,{className:IE,"data-testid":"dialog-overlay"}),b.jsxs(_d,{className:NE,"data-testid":"dialog-content",children:[b.jsx(jd,{className:LE,"data-testid":"dialog-title",children:e}),b.jsx(kE,{className:_E,onClick:h,"data-testid":"dialog-close",children:b.jsx(ju,{className:jE})}),b.jsxs("div",{className:BE,"data-testid":"dialog-filters",children:[b.jsx(Bd,{className:RE,"data-testid":"dialog-description",children:t}),b.jsx("div",{className:UE,"data-testid":"dialog-filter-children",children:a}),b.jsxs("div",{className:$E,"data-testid":"dialog-footer",children:[b.jsx(ln,{variant:"ghost",onClick:u,"data-testid":"dialog-reset-button",children:r}),b.jsx(ln,{className:WE,onClick:d,"data-testid":"dialog-apply-button",children:n})]})]})]})]})})};function ZE(e){return b.jsx($w,{children:e.children})}const HE=Object.freeze(Object.defineProperty({__proto__:null,Dialog:zE,DialogTrigger:Zw,Filter:nT,Root:ZE,ScrollList:qw},Symbol.toStringTag,{value:"Module"})),KE="fixed inset-0 bg-black/50 data-[state=open]:animate-overlayShow z-10",GE=`
302
+ fixed left-1/2 top-1/2 z-10
303
+ -translate-x-1/2 -translate-y-1/2
304
+ shadow-lg focus:outline-none
305
+
306
+ data-[state=open]:animate-contentShow
307
+ `,YE="flex flex-col gap-y-6 whitespace-pre-line",XE="flex items-center justify-between m-0 text-2xl text-gray-800",qE="m-0",QE="h-8 w-8 cursor-pointer transition-colors hover:bg-gray-200 rounded-full flex items-center justify-center",JE="flex justify-end gap-2",e2=({title:e,description:t,isOpen:n,children:r,onClose:o})=>b.jsx(Nd,{open:n,children:b.jsxs(Ld,{children:[b.jsx(Rd,{className:KE}),b.jsx(_d,{className:GE,children:b.jsx(Es,{children:b.jsxs("div",{className:YE,children:[b.jsxs(jd,{className:XE,children:[b.jsx("span",{children:e}),b.jsx(fr,{size:32,className:QE,onClick:o})]}),b.jsx(Bd,{className:qE,children:t}),b.jsx("div",{className:JE,children:r})]})})})]})});function Ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function t2(e){const t=e+"CollectionProvider",[n,r]=Oi(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:v}=m,x=E.useRef(null),T=E.useRef(new Map).current;return b.jsx(o,{scope:g,itemMap:T,collectionRef:x,children:v})};s.displayName=t;const a=e+"CollectionSlot",c=hr(a),l=E.forwardRef((m,g)=>{const{scope:v,children:x}=m,T=i(a,v),C=Ae(g,T.collectionRef);return b.jsx(c,{ref:C,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=hr(u),p=E.forwardRef((m,g)=>{const{scope:v,children:x,...T}=m,C=E.useRef(null),w=Ae(g,C),P=i(u,v);return E.useEffect(()=>(P.itemMap.set(C,{ref:C,...T}),()=>void P.itemMap.delete(C))),b.jsx(h,{[d]:"",ref:w,children:x})});p.displayName=u;function y(m){const g=i(e+"CollectionConsumer",m);return E.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const T=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((P,A)=>T.indexOf(P.ref.current)-T.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},y,r]}var n2="DismissableLayer",Hi="dismissableLayer.update",r2="dismissableLayer.pointerDownOutside",o2="dismissableLayer.focusOutside",Ud,$d=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wd=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext($d),[u,d]=f.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=f.useState({}),y=Ae(t,A=>d(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),x=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,w=s2(A=>{const M=A.target,k=[...l.branches].some(U=>U.contains(M));!C||k||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},h),P=a2(A=>{const M=A.target;[...l.branches].some(U=>U.contains(M))||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},h);return Gu(A=>{x===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ud=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Zd(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ud)}},[u,h,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Zd())},[u,l]),f.useEffect(()=>{const A=()=>p({});return document.addEventListener(Hi,A),()=>document.removeEventListener(Hi,A)},[]),b.jsx(ge.div,{...c,ref:y,style:{pointerEvents:T?C?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,w.onPointerDownCapture)})});Wd.displayName=n2;var i2="DismissableLayerBranch",zd=f.forwardRef((e,t)=>{const n=f.useContext($d),r=f.useRef(null),o=Ae(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(ge.div,{...e,ref:o})});zd.displayName=i2;function s2(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Hd(r2,n,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);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function a2(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Hd(o2,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zd(){const e=new CustomEvent(Hi);document.dispatchEvent(e)}function Hd(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fi(o,i):o.dispatchEvent(i)}var c2=Wd,l2=zd;function u2(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Kd=e=>{const{present:t,children:n}=e,r=d2(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=Ae(r.ref,f2(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Kd.displayName="Presence";function d2(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=u2(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Cr(r.current);i.current=a==="mounted"?l:"none"},[a]),ft(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=Cr(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ft(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=Cr(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=p=>{p.target===t&&(i.current=Cr(r.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=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Cr(e){return(e==null?void 0:e.animationName)||"none"}function f2(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var h2=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"}),p2="VisuallyHidden",Ki=f.forwardRef((e,t)=>b.jsx(ge.span,{...e,ref:t,style:{...h2,...e.style}}));Ki.displayName=p2;var Gi="ToastProvider",[Yi,m2,g2]=t2("Toast"),[Gd,gx]=Oi("Toast",[g2]),[y2,Pr]=Gd(Gi),Yd=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,c]=f.useState(null),[l,u]=f.useState(0),d=f.useRef(!1),h=f.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Gi}\`. Expected non-empty \`string\`.`),b.jsx(Yi.Provider,{scope:t,children:b.jsx(y2,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange:c,onToastAdd:f.useCallback(()=>u(p=>p+1),[]),onToastRemove:f.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:s})})};Yd.displayName=Gi;var Xd="ToastViewport",v2=["F8"],Xi="toast.viewportPause",qi="toast.viewportResume",qd=f.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=v2,label:o="Notifications ({hotkey})",...i}=e,s=Pr(Xd,n),a=m2(n),c=f.useRef(null),l=f.useRef(null),u=f.useRef(null),d=f.useRef(null),h=Ae(t,d,s.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;f.useEffect(()=>{const g=v=>{var T;r.length!==0&&r.every(C=>v[C]||v.code===C)&&((T=d.current)==null||T.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r]),f.useEffect(()=>{const g=c.current,v=d.current;if(y&&g&&v){const x=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(Xi);v.dispatchEvent(P),s.isClosePausedRef.current=!0}},T=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(qi);v.dispatchEvent(P),s.isClosePausedRef.current=!1}},C=P=>{!g.contains(P.relatedTarget)&&T()},w=()=>{g.contains(document.activeElement)||T()};return g.addEventListener("focusin",x),g.addEventListener("focusout",C),g.addEventListener("pointermove",x),g.addEventListener("pointerleave",w),window.addEventListener("blur",x),window.addEventListener("focus",T),()=>{g.removeEventListener("focusin",x),g.removeEventListener("focusout",C),g.removeEventListener("pointermove",x),g.removeEventListener("pointerleave",w),window.removeEventListener("blur",x),window.removeEventListener("focus",T)}}},[y,s.isClosePausedRef]);const m=f.useCallback(({tabbingDirection:g})=>{const x=a().map(T=>{const C=T.ref.current,w=[C,...V2(C)];return g==="forwards"?w:w.reverse()});return(g==="forwards"?x.reverse():x).flat()},[a]);return f.useEffect(()=>{const g=d.current;if(g){const v=x=>{var w,P,A;const T=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!T){const M=document.activeElement,k=x.shiftKey;if(x.target===g&&k){(w=l.current)==null||w.focus();return}const me=m({tabbingDirection:k?"backwards":"forwards"}),ie=me.findIndex(R=>R===M);Ji(me.slice(ie+1))?x.preventDefault():k?(P=l.current)==null||P.focus():(A=u.current)==null||A.focus()}};return g.addEventListener("keydown",v),()=>g.removeEventListener("keydown",v)}},[a,m]),b.jsxs(l2,{ref:c,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&b.jsx(Qi,{ref:l,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});Ji(g)}}),b.jsx(Yi.Slot,{scope:n,children:b.jsx(ge.ol,{tabIndex:-1,...i,ref:h})}),y&&b.jsx(Qi,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});Ji(g)}})]})});qd.displayName=Xd;var Qd="ToastFocusProxy",Qi=f.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Pr(Qd,n);return b.jsx(Ki,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var l;const a=s.relatedTarget;!((l=i.viewport)!=null&&l.contains(a))&&r()}})});Qi.displayName=Qd;var Ln="Toast",b2="toast.swipeStart",w2="toast.swipeMove",T2="toast.swipeCancel",E2="toast.swipeEnd",Jd=f.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,c]=Ku({prop:r,defaultProp:o??!0,onChange:i,caller:Ln});return b.jsx(Kd,{present:n||a,children:b.jsx(A2,{open:a,...s,ref:t,onClose:()=>c(!1),onPause:Ne(e.onPause),onResume:Ne(e.onResume),onSwipeStart:Ce(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ce(e.onSwipeMove,l=>{const{x:u,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Ce(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ce(e.onSwipeEnd,l=>{const{x:u,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),c(!1)})})})});Jd.displayName=Ln;var[x2,S2]=Gd(Ln,{onClose(){}}),A2=f.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:p,...y}=e,m=Pr(Ln,n),[g,v]=f.useState(null),x=Ae(t,R=>v(R)),T=f.useRef(null),C=f.useRef(null),w=o||m.duration,P=f.useRef(0),A=f.useRef(w),M=f.useRef(0),{onToastAdd:k,onToastRemove:U}=m,oe=Ne(()=>{var Y;(g==null?void 0:g.contains(document.activeElement))&&((Y=m.viewport)==null||Y.focus()),s()}),me=f.useCallback(R=>{!R||R===1/0||(window.clearTimeout(M.current),P.current=new Date().getTime(),M.current=window.setTimeout(oe,R))},[oe]);f.useEffect(()=>{const R=m.viewport;if(R){const Y=()=>{me(A.current),l==null||l()},se=()=>{const $=new Date().getTime()-P.current;A.current=A.current-$,window.clearTimeout(M.current),c==null||c()};return R.addEventListener(Xi,se),R.addEventListener(qi,Y),()=>{R.removeEventListener(Xi,se),R.removeEventListener(qi,Y)}}},[m.viewport,w,c,l,me]),f.useEffect(()=>{i&&!m.isClosePausedRef.current&&me(w)},[i,w,m.isClosePausedRef,me]),f.useEffect(()=>(k(),()=>U()),[k,U]);const ie=f.useMemo(()=>g?cf(g):null,[g]);return m.viewport?b.jsxs(b.Fragment,{children:[ie&&b.jsx(C2,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:ie}),b.jsx(x2,{scope:n,onClose:oe,children:ss.createPortal(b.jsx(Yi.ItemSlot,{scope:n,children:b.jsx(c2,{asChild:!0,onEscapeKeyDown:Ce(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||oe(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(ge.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ce(e.onKeyDown,R=>{R.key==="Escape"&&(a==null||a(R.nativeEvent),R.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,oe()))}),onPointerDown:Ce(e.onPointerDown,R=>{R.button===0&&(T.current={x:R.clientX,y:R.clientY})}),onPointerMove:Ce(e.onPointerMove,R=>{if(!T.current)return;const Y=R.clientX-T.current.x,se=R.clientY-T.current.y,$=!!C.current,D=["left","right"].includes(m.swipeDirection),fe=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,we=D?fe(0,Y):0,Pe=D?0:fe(0,se),Ee=R.pointerType==="touch"?10:2,Q={x:we,y:Pe},ce={originalEvent:R,delta:Q};$?(C.current=Q,Mr(w2,d,ce,{discrete:!1})):lf(Q,m.swipeDirection,Ee)?(C.current=Q,Mr(b2,u,ce,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(Y)>Ee||Math.abs(se)>Ee)&&(T.current=null)}),onPointerUp:Ce(e.onPointerUp,R=>{const Y=C.current,se=R.target;if(se.hasPointerCapture(R.pointerId)&&se.releasePointerCapture(R.pointerId),C.current=null,T.current=null,Y){const $=R.currentTarget,D={originalEvent:R,delta:Y};lf(Y,m.swipeDirection,m.swipeThreshold)?Mr(E2,p,D,{discrete:!0}):Mr(T2,h,D,{discrete:!0}),$.addEventListener("click",fe=>fe.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),C2=e=>{const{__scopeToast:t,children:n,...r}=e,o=Pr(Ln,t),[i,s]=f.useState(!1),[a,c]=f.useState(!1);return D2(()=>s(!0)),f.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:b.jsx(Li,{asChild:!0,children:b.jsx(Ki,{...r,children:i&&b.jsxs(b.Fragment,{children:[o.label," ",n]})})})},P2="ToastTitle",ef=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(ge.div,{...r,ref:t})});ef.displayName=P2;var M2="ToastDescription",tf=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(ge.div,{...r,ref:t})});tf.displayName=M2;var nf="ToastAction",rf=f.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?b.jsx(af,{altText:n,asChild:!0,children:b.jsx(sf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${nf}\`. Expected non-empty \`string\`.`),null)});rf.displayName=nf;var of="ToastClose",sf=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=S2(of,n);return b.jsx(af,{asChild:!0,children:b.jsx(ge.button,{type:"button",...r,ref:t,onClick:Ce(e.onClick,o.onClose)})})});sf.displayName=of;var af=f.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return b.jsx(ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cf(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),O2(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...cf(r))}}),t}function Mr(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fi(o,i):o.dispatchEvent(i)}var lf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function D2(e=()=>{}){const t=Ne(e);ft(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function O2(e){return e.nodeType===e.ELEMENT_NODE}function V2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ji(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var F2=Yd,k2=qd,I2=Jd,N2=ef,L2=tf,R2=rf;const _2=`
255
308
  fixed z-10 top-6
256
309
  w-[80%] left-[10%]
257
310
  md:w-[60%] md:left-[20%]
258
- `,GE="relative",YE="flex-1",ZE="font-medium text-base",XE="text-sm font-normal align-left",qE="h-5 w-5",QE="border-none bg-transparent cursor-pointer p-0",JE=`
311
+ `,j2="relative",B2="flex-1",U2="font-medium text-base",$2="text-sm font-normal align-left",W2="h-5 w-5",z2="border-none bg-transparent cursor-pointer p-0",Z2=`
259
312
  group rounded-lg my-2 p-4
260
313
  flex items-start justify-between gap-x-2 md:gap-x-3
261
314
 
@@ -263,7 +316,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
263
316
  data-[variant="success"]:bg-feedback-success-50
264
317
  data-[variant="information"]:bg-feedback-info-50
265
318
  data-[variant="warning"]:bg-feedback-warning-50
266
- `,ex="text-primary-100 ml-1",tx=`
319
+ `,H2="text-primary-100 ml-1",K2=`
267
320
  h-10 w-10 p-2 pl-2.5
268
321
  rounded-lg flex items-center justify-between
269
322
 
@@ -275,4 +328,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
275
328
  group-data-[variant="success"]:bg-feedback-success-100
276
329
  group-data-[variant="information"]:bg-feedback-info-100
277
330
  group-data-[variant="warning"]:bg-feedback-warning-100
278
- `,Kd=({toasts:e,onClose:t})=>T.jsx("div",{className:HE,children:T.jsx(o1,{children:e.map(n=>T.jsx(Wi.div,{className:GE,initial:{translateY:-25,opacity:0},animate:{translateY:0,opacity:1},exit:{translateY:-25,opacity:0},transition:{duration:.2},children:T.jsxs(BE,{swipeDirection:"right",children:[T.jsxs($E,{className:JE,"data-variant":n.variant,duration:n.timeout||5e3,children:[T.jsx(WE,{children:T.jsx("div",{className:tx,"data-variant":n.variant})}),T.jsxs(zE,{className:YE,children:[T.jsx("div",{className:ZE,children:n.title}),T.jsxs("div",{className:XE,children:[n.description,n.action&&n.actionCallback&&T.jsx("button",{onClick:n.actionCallback,className:ex,children:n.action})]})]}),T.jsx(KE,{asChild:!0,altText:"Close Toast Alert",children:t&&T.jsx("button",{className:QE,onClick:()=>n.id&&t(n.id),type:"button",children:T.jsx(qn,{className:qE})})})]}),T.jsx(UE,{})]})},n.id))})}),be=[];for(let e=0;e<256;++e)be.push((e+256).toString(16).slice(1));function nx(e,t=0){return(be[e[t+0]]+be[e[t+1]]+be[e[t+2]]+be[e[t+3]]+"-"+be[e[t+4]]+be[e[t+5]]+"-"+be[e[t+6]]+be[e[t+7]]+"-"+be[e[t+8]]+be[e[t+9]]+"-"+be[e[t+10]]+be[e[t+11]]+be[e[t+12]]+be[e[t+13]]+be[e[t+14]]+be[e[t+15]]).toLowerCase()}let Qi;const rx=new Uint8Array(16);function ox(){if(!Qi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Qi=crypto.getRandomValues.bind(crypto)}return Qi(rx)}const Hd={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ix(e,t,n){var o;e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??ox();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,nx(r)}function sx(e,t,n){return Hd.randomUUID?Hd.randomUUID():ix(e)}const Gd=E.createContext({toastAlerts:[],openToastAlert:()=>{},closeToastAlerts:()=>{}}),ax=()=>E.useContext(Gd),cx=({children:e})=>{const[t,n]=E.useState([]),r=i=>n(s=>s.filter(a=>a.id!==i)),o=({title:i,description:s,metadata:a,variant:c,action:l,actionCallback:u,timeout:d=5e3})=>{const f=`${sx()}`;n(p=>[...p,{id:f,title:i,description:s,metadata:a,timeout:d,variant:c,action:l,actionCallback:u}]),setTimeout(()=>r(f),d)};return T.jsxs(Gd.Provider,{value:{toastAlerts:t,openToastAlert:o,closeToastAlerts:r},children:[e,T.jsx(Kd,{toasts:t,onClose:r})]})};Y.Button=Nr,Y.Card=ws,Y.Form=cE,Y.Modal=Ap,Y.ToastAlerts=Kd,Y.ToastAlertsProvider=cx,Y.useToastAlerts=ax,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
331
+ `,uf=({toasts:e,onClose:t})=>b.jsx("div",{className:_2,children:b.jsx(Dv,{children:e.map(n=>b.jsx(Pi.div,{className:j2,initial:{translateY:-25,opacity:0},animate:{translateY:0,opacity:1},exit:{translateY:-25,opacity:0},transition:{duration:.2},children:b.jsxs(F2,{swipeDirection:"right",children:[b.jsxs(I2,{className:Z2,"data-variant":n.variant,duration:n.timeout||5e3,children:[b.jsx(N2,{children:b.jsx("div",{className:K2,"data-variant":n.variant})}),b.jsxs(L2,{className:B2,children:[b.jsx("div",{className:U2,children:n.title}),b.jsxs("div",{className:$2,children:[n.description,n.action&&n.actionCallback&&b.jsx("button",{onClick:n.actionCallback,className:H2,children:n.action})]})]}),b.jsx(R2,{asChild:!0,altText:"Close Toast Alert",children:t&&b.jsx("button",{className:z2,onClick:()=>n.id&&t(n.id),type:"button",children:b.jsx(fr,{className:W2})})})]}),b.jsx(k2,{})]})},n.id))})}),be=[];for(let e=0;e<256;++e)be.push((e+256).toString(16).slice(1));function G2(e,t=0){return(be[e[t+0]]+be[e[t+1]]+be[e[t+2]]+be[e[t+3]]+"-"+be[e[t+4]]+be[e[t+5]]+"-"+be[e[t+6]]+be[e[t+7]]+"-"+be[e[t+8]]+be[e[t+9]]+"-"+be[e[t+10]]+be[e[t+11]]+be[e[t+12]]+be[e[t+13]]+be[e[t+14]]+be[e[t+15]]).toLowerCase()}let es;const Y2=new Uint8Array(16);function X2(){if(!es){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");es=crypto.getRandomValues.bind(crypto)}return es(Y2)}const df={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function q2(e,t,n){var o;e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??X2();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,G2(r)}function Q2(e,t,n){return df.randomUUID?df.randomUUID():q2(e)}const ff=E.createContext({toastAlerts:[],openToastAlert:()=>{},closeToastAlerts:()=>{}}),J2=()=>E.useContext(ff),ex=({children:e})=>{const[t,n]=E.useState([]),r=i=>n(s=>s.filter(a=>a.id!==i)),o=({title:i,description:s,metadata:a,variant:c,action:l,actionCallback:u,timeout:d=5e3})=>{const h=`${Q2()}`;n(p=>[...p,{id:h,title:i,description:s,metadata:a,timeout:d,variant:c,action:l,actionCallback:u}]),setTimeout(()=>r(h),d)};return b.jsxs(ff.Provider,{value:{toastAlerts:t,openToastAlert:o,closeToastAlerts:r},children:[e,b.jsx(uf,{toasts:t,onClose:r})]})};K.Button=ln,K.Card=Es,K.ColorIcon=xs,K.Form=Uw,K.HorizontalScrollFilters=HE,K.Modal=e2,K.ToastAlerts=uf,K.ToastAlertsProvider=ex,K.useToastAlerts=J2,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});