@local-logic/design-system 0.7.21 → 0.7.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(Y,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],P):(Y=typeof globalThis<"u"?globalThis:Y||self,P(Y.LocalLogicDesignSystem={},Y.jsxRuntime,Y.React,Y.ReactDOM))})(this,function(Y,P,x,go){"use strict";function yo(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 m=yo(x),Fu=yo(go),or="-",Iu=e=>{const t=_u(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(or);return a[0]===""&&a.length!==1&&a.shift(),vo(a,t)||Nu(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},vo=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?vo(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(or);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},bo=/^\[(.+)\]$/,Nu=e=>{if(bo.test(e)){const t=bo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},_u=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)sr(n[i],r,i,t);return r},sr=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:wo(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(Lu(i)){sr(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{sr(s,wo(t,o),n,r)})})},wo=(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},Lu=e=>e.isThemeGetter,ju=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}},ar="!",cr=":",Bu=cr.length,Uu=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,a=0,c=0,l;for(let g=0;g<i.length;g++){let p=i[g];if(s===0&&a===0){if(p===cr){o.push(i.slice(c,g)),c=g+Bu;continue}if(p==="/"){l=g;continue}}p==="["?s++:p==="]"?s--:p==="("?a++:p===")"&&a--}const u=o.length===0?i:i.substring(c),f=$u(u),d=f!==u,h=l&&l>c?l-c:void 0;return{modifiers:o,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const i=t+cr,o=r;r=s=>s.startsWith(i)?o(s.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},$u=e=>e.endsWith(ar)?e.substring(0,e.length-1):e.startsWith(ar)?e.substring(1):e,zu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(s=>{s[0]==="["||t[s]?(i.push(...o.sort(),s),o=[]):o.push(s)}),i.push(...o.sort()),i}},Wu=e=>({cache:ju(e.cacheSize),parseClassName:Uu(e),sortModifiers:zu(e),...Iu(e)}),Gu=/\s+/,Hu=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(Gu);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:f,modifiers:d,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:p}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let y=!!p,v=r(y?g.substring(0,p):g);if(!v){if(!y){c=u+(c.length>0?" "+c:c);continue}if(v=r(g),!v){c=u+(c.length>0?" "+c:c);continue}y=!1}const S=o(d).join(":"),T=h?S+ar:S,A=T+v;if(s.includes(A))continue;s.push(A);const b=i(v,y);for(let C=0;C<b.length;++C){const M=b[C];s.push(T+M)}c=u+(c.length>0?" "+c:c)}return c};function Ku(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=To(t))&&(r&&(r+=" "),r+=n);return r}const To=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=To(e[r]))&&(n&&(n+=" "),n+=t);return n};function Yu(e,...t){let n,r,i,o=s;function s(c){const l=t.reduce((u,f)=>f(u),e());return n=Wu(l),r=n.cache.get,i=n.cache.set,o=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=Hu(c,n);return i(c,u),u}return function(){return o(Ku.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},xo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,So=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zu=/^\d+\/\d+$/,Xu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qu=/\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$/,Ju=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ed=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xt=e=>Zu.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),He=e=>!!e&&Number.isInteger(Number(e)),lr=e=>e.endsWith("%")&&L(e.slice(0,-1)),Ie=e=>Xu.test(e),td=()=>!0,nd=e=>qu.test(e)&&!Ju.test(e),Eo=()=>!1,rd=e=>Qu.test(e),id=e=>ed.test(e),od=e=>!O(e)&&!k(e),sd=e=>St(e,Do,Eo),O=e=>xo.test(e),rt=e=>St(e,Oo,nd),ur=e=>St(e,dd,L),Ao=e=>St(e,Po,Eo),ad=e=>St(e,Mo,id),xn=e=>St(e,ko,rd),k=e=>So.test(e),Kt=e=>Et(e,Oo),cd=e=>Et(e,fd),Co=e=>Et(e,Po),ld=e=>Et(e,Do),ud=e=>Et(e,Mo),Sn=e=>Et(e,ko,!0),St=(e,t,n)=>{const r=xo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Et=(e,t,n=!1)=>{const r=So.exec(e);return r?r[1]?t(r[1]):n:!1},Po=e=>e==="position"||e==="percentage",Mo=e=>e==="image"||e==="url",Do=e=>e==="length"||e==="size"||e==="bg-size",Oo=e=>e==="length",dd=e=>e==="number",fd=e=>e==="family-name",ko=e=>e==="shadow",Yt=Yu(()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),i=ie("tracking"),o=ie("leading"),s=ie("breakpoint"),a=ie("container"),c=ie("spacing"),l=ie("radius"),u=ie("shadow"),f=ie("inset-shadow"),d=ie("text-shadow"),h=ie("drop-shadow"),g=ie("blur"),p=ie("perspective"),y=ie("aspect"),v=ie("ease"),S=ie("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...A(),k,O],C=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],E=()=>[k,O,c],N=()=>[xt,"full","auto",...E()],K=()=>[He,"none","subgrid",k,O],he=()=>["auto",{span:["full",He,k,O]},He,k,O],Pe=()=>[He,"auto",k,O],ae=()=>["auto","min","max","fr",k,O],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Te=()=>["start","end","center","stretch","center-safe","end-safe"],me=()=>["auto",...E()],W=()=>[xt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],R=()=>[e,k,O],Me=()=>[...A(),Co,Ao,{position:[k,O]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$e=()=>["auto","cover","contain",ld,sd,{size:[k,O]}],Se=()=>[lr,Kt,rt],re=()=>["","none","full",l,k,O],se=()=>["",L,Kt,rt],ge=()=>["solid","dashed","dotted","double"],wt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[L,lr,Co,Ao],Tt=()=>["","none",g,k,O],ze=()=>["none",L,k,O],We=()=>["none",L,k,O],Ge=()=>[L,k,O],V=()=>[xt,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ie],breakpoint:[Ie],color:[td],container:[Ie],"drop-shadow":[Ie],ease:["in","out","in-out"],font:[od],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ie],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ie],shadow:[Ie],spacing:["px",L],text:[Ie],"text-shadow":[Ie],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xt,O,k,y]}],container:["container"],columns:[{columns:[L,O,k,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:b()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[He,"auto",k,O]}],basis:[{basis:[xt,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,xt,"auto","initial","none",O]}],grow:[{grow:["",L,k,O]}],shrink:[{shrink:["",L,k,O]}],order:[{order:[He,"first","last","none",k,O]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":Pe()}],"col-end":[{"col-end":Pe()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":Pe()}],"row-end":[{"row-end":Pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...Te(),"normal"]}],"justify-self":[{"justify-self":["auto",...Te()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...Te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Te(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...Te(),"baseline"]}],"place-self":[{"place-self":["auto",...Te()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:me()}],mx:[{mx:me()}],my:[{my:me()}],ms:[{ms:me()}],me:[{me:me()}],mt:[{mt:me()}],mr:[{mr:me()}],mb:[{mb:me()}],ml:[{ml:me()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[a,"screen",...W()]}],"min-w":[{"min-w":[a,"screen","none",...W()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,Kt,rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,k,ur]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",lr,O]}],"font-family":[{font:[cd,O,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:[i,k,O]}],"line-clamp":[{"line-clamp":[L,"none",k,ur]}],leading:[{leading:[o,...E()]}],"list-image":[{"list-image":["none",k,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",k,rt]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[L,"auto",k,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,O]}],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",k,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Me()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:$e()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},He,k,O],radial:["",k,O],conic:[He,k,O]},ud,ad]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:Se()}],"gradient-via-pos":[{via:Se()}],"gradient-to-pos":[{to:Se()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,k,O]}],"outline-w":[{outline:["",L,Kt,rt]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,Sn,xn]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",f,Sn,xn]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[L,rt]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",d,Sn,xn]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[L,k,O]}],"mix-blend":[{"mix-blend":[...wt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":wt()}],"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":[L]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[k,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[L]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Me()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:$e()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,O]}],filter:[{filter:["","none",k,O]}],blur:[{blur:Tt()}],brightness:[{brightness:[L,k,O]}],contrast:[{contrast:[L,k,O]}],"drop-shadow":[{"drop-shadow":["","none",h,Sn,xn]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",L,k,O]}],"hue-rotate":[{"hue-rotate":[L,k,O]}],invert:[{invert:["",L,k,O]}],saturate:[{saturate:[L,k,O]}],sepia:[{sepia:["",L,k,O]}],"backdrop-filter":[{"backdrop-filter":["","none",k,O]}],"backdrop-blur":[{"backdrop-blur":Tt()}],"backdrop-brightness":[{"backdrop-brightness":[L,k,O]}],"backdrop-contrast":[{"backdrop-contrast":[L,k,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,k,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,k,O]}],"backdrop-invert":[{"backdrop-invert":["",L,k,O]}],"backdrop-opacity":[{"backdrop-opacity":[L,k,O]}],"backdrop-saturate":[{"backdrop-saturate":[L,k,O]}],"backdrop-sepia":[{"backdrop-sepia":["",L,k,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",k,O]}],ease:[{ease:["linear","initial",v,k,O]}],delay:[{delay:[L,k,O]}],animate:[{animate:["none",S,k,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,k,O]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:We()}],"scale-x":[{"scale-x":We()}],"scale-y":[{"scale-y":We()}],"scale-z":[{"scale-z":We()}],"scale-3d":["scale-3d"],skew:[{skew:Ge()}],"skew-x":[{"skew-x":Ge()}],"skew-y":[{"skew-y":Ge()}],transform:[{transform:[k,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",k,O]}],"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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",k,O]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[L,Kt,rt,ur]}],stroke:[{stroke:["none",...R()]}],"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"]}}),hd=`
1
+ (function(Z,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],A):(Z=typeof globalThis<"u"?globalThis:Z||self,A(Z.LocalLogicDesignSystem={},Z.jsxRuntime,Z.React,Z.ReactDOM))})(this,function(Z,A,x,yo){"use strict";function vo(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 p=vo(x),Iu=vo(yo),ar="-",Nu=e=>{const t=_u(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(ar);return a[0]===""&&a.length!==1&&a.shift(),bo(a,t)||Lu(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},bo=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?bo(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(ar);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},wo=/^\[(.+)\]$/,Lu=e=>{if(wo.test(e)){const t=wo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},_u=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)cr(n[i],r,i,t);return r},cr=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:To(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(ju(i)){cr(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{cr(s,To(t,o),n,r)})})},To=(e,t)=>{let n=e;return t.split(ar).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ju=e=>e.isThemeGetter,Bu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}},lr="!",ur=":",$u=ur.length,Uu=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,a=0,c=0,l;for(let g=0;g<i.length;g++){let m=i[g];if(s===0&&a===0){if(m===ur){o.push(i.slice(c,g)),c=g+$u;continue}if(m==="/"){l=g;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=o.length===0?i:i.substring(c),f=zu(u),d=f!==u,h=l&&l>c?l-c:void 0;return{modifiers:o,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const i=t+ur,o=r;r=s=>s.startsWith(i)?o(s.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},zu=e=>e.endsWith(lr)?e.substring(0,e.length-1):e.startsWith(lr)?e.substring(1):e,Wu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(s=>{s[0]==="["||t[s]?(i.push(...o.sort(),s),o=[]):o.push(s)}),i.push(...o.sort()),i}},Gu=e=>({cache:Bu(e.cacheSize),parseClassName:Uu(e),sortModifiers:Wu(e),...Nu(e)}),Hu=/\s+/,Ku=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(Hu);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:f,modifiers:d,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let y=!!m,v=r(y?g.substring(0,m):g);if(!v){if(!y){c=u+(c.length>0?" "+c:c);continue}if(v=r(g),!v){c=u+(c.length>0?" "+c:c);continue}y=!1}const E=o(d).join(":"),T=h?E+lr:E,C=T+v;if(s.includes(C))continue;s.push(C);const b=i(v,y);for(let P=0;P<b.length;++P){const M=b[P];s.push(T+M)}c=u+(c.length>0?" "+c:c)}return c};function Zu(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=xo(t))&&(r&&(r+=" "),r+=n);return r}const xo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=xo(e[r]))&&(n&&(n+=" "),n+=t);return n};function Yu(e,...t){let n,r,i,o=s;function s(c){const l=t.reduce((u,f)=>f(u),e());return n=Gu(l),r=n.cache.get,i=n.cache.set,o=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=Ku(c,n);return i(c,u),u}return function(){return o(Zu.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Eo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,So=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xu=/^\d+\/\d+$/,qu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ju=/\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$/,Qu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ed=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,td=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,St=e=>Xu.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),He=e=>!!e&&Number.isInteger(Number(e)),dr=e=>e.endsWith("%")&&_(e.slice(0,-1)),Ie=e=>qu.test(e),nd=()=>!0,rd=e=>Ju.test(e)&&!Qu.test(e),Ao=()=>!1,id=e=>ed.test(e),od=e=>td.test(e),sd=e=>!k(e)&&!O(e),ad=e=>At(e,ko,Ao),k=e=>Eo.test(e),rt=e=>At(e,Oo,rd),fr=e=>At(e,fd,_),Co=e=>At(e,Mo,Ao),cd=e=>At(e,Do,od),En=e=>At(e,Vo,id),O=e=>So.test(e),Zt=e=>Ct(e,Oo),ld=e=>Ct(e,hd),Po=e=>Ct(e,Mo),ud=e=>Ct(e,ko),dd=e=>Ct(e,Do),Sn=e=>Ct(e,Vo,!0),At=(e,t,n)=>{const r=Eo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ct=(e,t,n=!1)=>{const r=So.exec(e);return r?r[1]?t(r[1]):n:!1},Mo=e=>e==="position"||e==="percentage",Do=e=>e==="image"||e==="url",ko=e=>e==="length"||e==="size"||e==="bg-size",Oo=e=>e==="length",fd=e=>e==="number",hd=e=>e==="family-name",Vo=e=>e==="shadow",it=Yu(()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),i=ie("tracking"),o=ie("leading"),s=ie("breakpoint"),a=ie("container"),c=ie("spacing"),l=ie("radius"),u=ie("shadow"),f=ie("inset-shadow"),d=ie("text-shadow"),h=ie("drop-shadow"),g=ie("blur"),m=ie("perspective"),y=ie("aspect"),v=ie("ease"),E=ie("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"],b=()=>[...C(),O,k],P=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],S=()=>[O,k,c],N=()=>[St,"full","auto",...S()],K=()=>[He,"none","subgrid",O,k],he=()=>["auto",{span:["full",He,O,k]},He,O,k],Pe=()=>[He,"auto",O,k],ae=()=>["auto","min","max","fr",O,k],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Te=()=>["start","end","center","stretch","center-safe","end-safe"],me=()=>["auto",...S()],W=()=>[St,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],V=()=>[e,O,k],Me=()=>[...C(),Po,Co,{position:[O,k]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ue=()=>["auto","cover","contain",ud,ad,{size:[O,k]}],Ee=()=>[dr,Zt,rt],re=()=>["","none","full",l,O,k],se=()=>["",_,Zt,rt],ge=()=>["solid","dashed","dotted","double"],xt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[_,dr,Po,Co],Et=()=>["","none",g,O,k],ze=()=>["none",_,O,k],We=()=>["none",_,O,k],Ge=()=>[_,O,k],F=()=>[St,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ie],breakpoint:[Ie],color:[nd],container:[Ie],"drop-shadow":[Ie],ease:["in","out","in-out"],font:[sd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ie],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ie],shadow:[Ie],spacing:["px",_],text:[Ie],"text-shadow":[Ie],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",St,k,O,y]}],container:["container"],columns:[{columns:[_,k,O,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:b()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[He,"auto",O,k]}],basis:[{basis:[St,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,St,"auto","initial","none",k]}],grow:[{grow:["",_,O,k]}],shrink:[{shrink:["",_,O,k]}],order:[{order:[He,"first","last","none",O,k]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":Pe()}],"col-end":[{"col-end":Pe()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":Pe()}],"row-end":[{"row-end":Pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...Te(),"normal"]}],"justify-self":[{"justify-self":["auto",...Te()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...Te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Te(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...Te(),"baseline"]}],"place-self":[{"place-self":["auto",...Te()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:me()}],mx:[{mx:me()}],my:[{my:me()}],ms:[{ms:me()}],me:[{me:me()}],mt:[{mt:me()}],mr:[{mr:me()}],mb:[{mb:me()}],ml:[{ml:me()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[a,"screen",...W()]}],"min-w":[{"min-w":[a,"screen","none",...W()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,Zt,rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,O,fr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dr,k]}],"font-family":[{font:[ld,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:[i,O,k]}],"line-clamp":[{"line-clamp":[_,"none",O,fr]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",O,k]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",O,rt]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[_,"auto",O,k]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,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",O,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:Me()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:Ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},He,O,k],radial:["",O,k],conic:[He,O,k]},dd,cd]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_,O,k]}],"outline-w":[{outline:["",_,Zt,rt]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",u,Sn,En]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",f,Sn,En]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[_,rt]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",d,Sn,En]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[_,O,k]}],"mix-blend":[{"mix-blend":[...xt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xt()}],"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":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[O,k]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"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":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Me()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:Ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,k]}],filter:[{filter:["","none",O,k]}],blur:[{blur:Et()}],brightness:[{brightness:[_,O,k]}],contrast:[{contrast:[_,O,k]}],"drop-shadow":[{"drop-shadow":["","none",h,Sn,En]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",_,O,k]}],"hue-rotate":[{"hue-rotate":[_,O,k]}],invert:[{invert:["",_,O,k]}],saturate:[{saturate:[_,O,k]}],sepia:[{sepia:["",_,O,k]}],"backdrop-filter":[{"backdrop-filter":["","none",O,k]}],"backdrop-blur":[{"backdrop-blur":Et()}],"backdrop-brightness":[{"backdrop-brightness":[_,O,k]}],"backdrop-contrast":[{"backdrop-contrast":[_,O,k]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,O,k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,O,k]}],"backdrop-invert":[{"backdrop-invert":["",_,O,k]}],"backdrop-opacity":[{"backdrop-opacity":[_,O,k]}],"backdrop-saturate":[{"backdrop-saturate":[_,O,k]}],"backdrop-sepia":[{"backdrop-sepia":["",_,O,k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,k]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",O,k]}],ease:[{ease:["linear","initial",v,O,k]}],delay:[{delay:[_,O,k]}],animate:[{animate:["none",E,O,k]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,O,k]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:We()}],"scale-x":[{"scale-x":We()}],"scale-y":[{"scale-y":We()}],"scale-z":[{"scale-z":We()}],"scale-3d":["scale-3d"],skew:[{skew:Ge()}],"skew-x":[{"skew-x":Ge()}],"skew-y":[{"skew-y":Ge()}],transform:[{transform:[O,k,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"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",O,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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,k]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[_,Zt,rt,fr]}],stroke:[{stroke:["none",...V()]}],"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"]}}),pd=`
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
- `,Ro="h-6 w-6",dr=x.forwardRef(({children:e,className:t="",variant:n="primary",size:r="small",prefixIcon:i,suffixIcon:o,isDisabled:s=!1,inverse:a=!1,onClick:c,type:l="button",...u},f)=>{const d=h=>{c&&c(h)};return P.jsxs("button",{onClick:d,className:Yt(hd,t),disabled:s,"data-variant":n,"data-size":r,"data-inverse":a,...u,children:[i&&x.cloneElement(i,{...i.props,className:Yt(Ro,i.props.className)}),e,o&&x.cloneElement(o,{...o.props,className:Yt(Ro,o.props.className)})]})});dr.displayName="Button";const pd=`
47
+ `,Fo="h-6 w-6",hr=x.forwardRef(({children:e,className:t="",variant:n="primary",size:r="small",prefixIcon:i,suffixIcon:o,isDisabled:s=!1,inverse:a=!1,onClick:c,type:l="button",...u},f)=>{const d=h=>{c&&c(h)};return A.jsxs("button",{onClick:d,className:it(pd,t),disabled:s,"data-variant":n,"data-size":r,"data-inverse":a,...u,children:[i&&x.cloneElement(i,{...i.props,className:it(Fo,i.props.className)}),e,o&&x.cloneElement(o,{...o.props,className:it(Fo,o.props.className)})]})});hr.displayName="Button";const md=`
48
48
  font-sans
49
49
  rounded-lg p-9 relative
50
50
  border border-solid border-gray-150
@@ -52,16 +52,16 @@
52
52
 
53
53
  bg-white
54
54
  text-gray-400
55
- `,md=`
55
+ `,gd=`
56
56
  bg-cover bg-center
57
57
  w-full
58
58
  h-60
59
- `;function Vo({children:e,imageSRC:t}){return P.jsxs("div",{className:pd,children:[t&&P.jsx("div",{className:md,style:{backgroundImage:`url("${t}")`}}),e]})}function Ke(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Fo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Io(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Fo(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Fo(e[i],null)}}}}function it(...e){return m.useCallback(Io(...e),e)}function gd(e,t){const n=m.createContext(t),r=o=>{const{children:s,...a}=o,c=m.useMemo(()=>a,Object.values(a));return P.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function i(o){const s=m.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function yd(e,t=[]){let n=[];function r(o,s){const a=m.createContext(s),c=n.length;n=[...n,s];const l=f=>{var v;const{scope:d,children:h,...g}=f,p=((v=d==null?void 0:d[e])==null?void 0:v[c])||a,y=m.useMemo(()=>g,Object.values(g));return P.jsx(p.Provider,{value:y,children:h})};l.displayName=o+"Provider";function u(f,d){var p;const h=((p=d==null?void 0:d[e])==null?void 0:p[c])||a,g=m.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[l,u]}const i=()=>{const o=n.map(s=>m.createContext(s));return function(a){const c=(a==null?void 0:a[e])||o;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[r,vd(i,...t)]}function vd(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(o)[`__scope${l}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var En=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},bd=m.useId||(()=>{}),wd=0;function fr(e){const[t,n]=m.useState(bd());return En(()=>{n(r=>r??String(wd++))},[e]),e||(t?`radix-${t}`:"")}function ot(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Td({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=xd({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=ot(n),c=m.useCallback(l=>{if(o){const f=typeof l=="function"?l(e):l;f!==e&&a(f)}else i(l)},[o,e,i,a]);return[s,c]}function xd({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,i=m.useRef(r),o=ot(t);return m.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var hr=m.forwardRef((e,t)=>{const{children:n,...r}=e,i=m.Children.toArray(n),o=i.find(Ed);if(o){const s=o.props.children,a=i.map(c=>c===o?m.Children.count(s)>1?m.Children.only(null):m.isValidElement(s)?s.props.children:null:c);return P.jsx(pr,{...r,ref:t,children:m.isValidElement(s)?m.cloneElement(s,void 0,a):null})}return P.jsx(pr,{...r,ref:t,children:n})});hr.displayName="Slot";var pr=m.forwardRef((e,t)=>{const{children:n,...r}=e;if(m.isValidElement(n)){const i=Cd(n),o=Ad(r,n.props);return n.type!==m.Fragment&&(o.ref=t?Io(t,i):i),m.cloneElement(n,o)}return m.Children.count(n)>1?m.Children.only(null):null});pr.displayName="SlotClone";var Sd=({children:e})=>P.jsx(P.Fragment,{children:e});function Ed(e){return m.isValidElement(e)&&e.type===Sd}function Ad(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Cd(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Pd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ne=Pd.reduce((e,t)=>{const n=m.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?hr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Md(e,t){e&&Fu.flushSync(()=>e.dispatchEvent(t))}function Dd(e,t=globalThis==null?void 0:globalThis.document){const n=ot(e);m.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Od="DismissableLayer",mr="dismissableLayer.update",kd="dismissableLayer.pointerDownOutside",Rd="dismissableLayer.focusOutside",No,_o=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lo=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...c}=e,l=m.useContext(_o),[u,f]=m.useState(null),d=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),g=it(t,M=>f(M)),p=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(y),S=u?p.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,A=S>=v,b=Id(M=>{const E=M.target,N=[...l.branches].some(K=>K.contains(E));!A||N||(i==null||i(M),s==null||s(M),M.defaultPrevented||a==null||a())},d),C=Nd(M=>{const E=M.target;[...l.branches].some(K=>K.contains(E))||(o==null||o(M),s==null||s(M),M.defaultPrevented||a==null||a())},d);return Dd(M=>{S===l.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&a&&(M.preventDefault(),a()))},d),m.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(No=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),jo(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=No)}},[u,d,n,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),jo())},[u,l]),m.useEffect(()=>{const M=()=>h({});return document.addEventListener(mr,M),()=>document.removeEventListener(mr,M)},[]),P.jsx(Ne.div,{...c,ref:g,style:{pointerEvents:T?A?"auto":"none":void 0,...e.style},onFocusCapture:Ke(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ke(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ke(e.onPointerDownCapture,b.onPointerDownCapture)})});Lo.displayName=Od;var Vd="DismissableLayerBranch",Fd=m.forwardRef((e,t)=>{const n=m.useContext(_o),r=m.useRef(null),i=it(t,r);return m.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),P.jsx(Ne.div,{...e,ref:i})});Fd.displayName=Vd;function Id(e,t=globalThis==null?void 0:globalThis.document){const n=ot(e),r=m.useRef(!1),i=m.useRef(()=>{});return m.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let c=function(){Bo(kd,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Nd(e,t=globalThis==null?void 0:globalThis.document){const n=ot(e),r=m.useRef(!1);return m.useEffect(()=>{const i=o=>{o.target&&!r.current&&Bo(Rd,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jo(){const e=new CustomEvent(mr);document.dispatchEvent(e)}function Bo(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Md(i,o):i.dispatchEvent(o)}var gr="focusScope.autoFocusOnMount",yr="focusScope.autoFocusOnUnmount",Uo={bubbles:!1,cancelable:!0},_d="FocusScope",$o=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,c]=m.useState(null),l=ot(i),u=ot(o),f=m.useRef(null),d=it(t,p=>c(p)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let p=function(T){if(h.paused||!a)return;const A=T.target;a.contains(A)?f.current=A:Ye(f.current,{select:!0})},y=function(T){if(h.paused||!a)return;const A=T.relatedTarget;A!==null&&(a.contains(A)||Ye(f.current,{select:!0}))},v=function(T){if(document.activeElement===document.body)for(const b of T)b.removedNodes.length>0&&Ye(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",y);const S=new MutationObserver(v);return a&&S.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",y),S.disconnect()}}},[r,a,h.paused]),m.useEffect(()=>{if(a){Go.add(h);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(gr,Uo);a.addEventListener(gr,l),a.dispatchEvent(v),v.defaultPrevented||(Ld(zd(zo(a)),{select:!0}),document.activeElement===p&&Ye(a))}return()=>{a.removeEventListener(gr,l),setTimeout(()=>{const v=new CustomEvent(yr,Uo);a.addEventListener(yr,u),a.dispatchEvent(v),v.defaultPrevented||Ye(p??document.body,{select:!0}),a.removeEventListener(yr,u),Go.remove(h)},0)}}},[a,l,u,h]);const g=m.useCallback(p=>{if(!n&&!r||h.paused)return;const y=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(y&&v){const S=p.currentTarget,[T,A]=jd(S);T&&A?!p.shiftKey&&v===A?(p.preventDefault(),n&&Ye(T,{select:!0})):p.shiftKey&&v===T&&(p.preventDefault(),n&&Ye(A,{select:!0})):v===S&&p.preventDefault()}},[n,r,h.paused]);return P.jsx(Ne.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});$o.displayName=_d;function Ld(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ye(r,{select:t}),document.activeElement!==n)return}function jd(e){const t=zo(e),n=Wo(t,e),r=Wo(t.reverse(),e);return[n,r]}function zo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Wo(e,t){for(const n of e)if(!Bd(n,{upTo:t}))return n}function Bd(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 Ud(e){return e instanceof HTMLInputElement&&"select"in e}function Ye(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ud(e)&&t&&e.select()}}var Go=$d();function $d(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ho(e,t),e.unshift(t)},remove(t){var n;e=Ho(e,t),(n=e[0])==null||n.resume()}}}function Ho(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zd(e){return e.filter(t=>t.tagName!=="A")}var Wd="Portal",Ko=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=m.useState(!1);En(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?go.createPortal(P.jsx(Ne.div,{...r,ref:t}),s):null});Ko.displayName=Wd;function Gd(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var An=e=>{const{present:t,children:n}=e,r=Hd(t),i=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),o=it(r.ref,Kd(i));return typeof n=="function"||r.isPresent?m.cloneElement(i,{ref:o}):null};An.displayName="Presence";function Hd(e){const[t,n]=m.useState(),r=m.useRef({}),i=m.useRef(e),o=m.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Gd(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=Cn(r.current);o.current=a==="mounted"?l:"none"},[a]),En(()=>{const l=r.current,u=i.current;if(u!==e){const d=o.current,h=Cn(l);e?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),En(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,f=h=>{const p=Cn(r.current).includes(h.animationName);if(h.target===t&&p&&(c("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},d=h=>{h.target===t&&(o.current=Cn(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Cn(e){return(e==null?void 0:e.animationName)||"none"}function Kd(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vr=0;function Yd(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yo()),document.body.insertAdjacentElement("beforeend",e[1]??Yo()),vr++,()=>{vr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vr--}},[])}function Yo(){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 De=function(){return De=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},De.apply(this,arguments)};function Zo(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Zd(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Pn="right-scroll-bar-position",Mn="width-before-scroll-bar",Xd="with-scroll-bars-hidden",qd="--removed-body-scroll-bar-size";function br(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Jd(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Qd=typeof window<"u"?m.useLayoutEffect:m.useEffect,Xo=new WeakMap;function ef(e,t){var n=Jd(null,function(r){return e.forEach(function(i){return br(i,r)})});return Qd(function(){var r=Xo.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||br(a,null)}),o.forEach(function(a){i.has(a)||br(a,s)})}Xo.set(n,e)},[e]),n}function tf(e){return e}function nf(e,t){t===void 0&&(t=tf);var n=[],r=!1,i={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(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var c=function(){var u=s;s=[],u.forEach(o)},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 i}function rf(e){e===void 0&&(e={});var t=nf(null);return t.options=De({async:!0,ssr:!1},e),t}var qo=function(e){var t=e.sideCar,n=Zo(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 m.createElement(r,De({},n))};qo.isSideCarExport=!0;function of(e,t){return e.useMedium(t),qo}var Jo=rf(),wr=function(){},Dn=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:wr,onWheelCapture:wr,onTouchMoveCapture:wr}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,h=e.noIsolation,g=e.inert,p=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,S=e.gapMode,T=Zo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=d,b=ef([n,t]),C=De(De({},T),i);return m.createElement(m.Fragment,null,u&&m.createElement(A,{sideCar:Jo,removeScrollBar:l,shards:f,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!p,lockRef:n,gapMode:S}),s?m.cloneElement(m.Children.only(a),De(De({},C),{ref:b})):m.createElement(v,De({},C,{className:c,ref:b}),a))});Dn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Dn.classNames={fullWidth:Mn,zeroRight:Pn};var Qo=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qo();return t&&e.setAttribute("nonce",t),e}function af(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var lf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=sf())&&(af(t,n),cf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uf=function(){var e=lf();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},df=function(){var e=uf(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},ff={left:0,top:0,right:0,gap:0},Tr=function(e){return parseInt(e||"",10)||0},hf=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Tr(n),Tr(r),Tr(i)]},pf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ff;var t=hf(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])}},mf=df(),At="data-scroll-locked",gf=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
60
- .`.concat(Xd,` {
59
+ `;function Ro({children:e,imageSRC:t}){return A.jsxs("div",{className:md,children:[t&&A.jsx("div",{className:gd,style:{backgroundImage:`url("${t}")`}}),e]})}function Ke(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Io(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function No(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Io(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Io(e[i],null)}}}}function ot(...e){return p.useCallback(No(...e),e)}function yd(e,t){const n=p.createContext(t),r=o=>{const{children:s,...a}=o,c=p.useMemo(()=>a,Object.values(a));return A.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function i(o){const s=p.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function vd(e,t=[]){let n=[];function r(o,s){const a=p.createContext(s),c=n.length;n=[...n,s];const l=f=>{var v;const{scope:d,children:h,...g}=f,m=((v=d==null?void 0:d[e])==null?void 0:v[c])||a,y=p.useMemo(()=>g,Object.values(g));return A.jsx(m.Provider,{value:y,children:h})};l.displayName=o+"Provider";function u(f,d){var m;const h=((m=d==null?void 0:d[e])==null?void 0:m[c])||a,g=p.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[l,u]}const i=()=>{const o=n.map(s=>p.createContext(s));return function(a){const c=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[r,bd(i,...t)]}function bd(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(o)[`__scope${l}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var An=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},wd=p.useId||(()=>{}),Td=0;function pr(e){const[t,n]=p.useState(wd());return An(()=>{n(r=>r??String(Td++))},[e]),e||(t?`radix-${t}`:"")}function st(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function xd({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=Ed({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=st(n),c=p.useCallback(l=>{if(o){const f=typeof l=="function"?l(e):l;f!==e&&a(f)}else i(l)},[o,e,i,a]);return[s,c]}function Ed({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,i=p.useRef(r),o=st(t);return p.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var mr=p.forwardRef((e,t)=>{const{children:n,...r}=e,i=p.Children.toArray(n),o=i.find(Ad);if(o){const s=o.props.children,a=i.map(c=>c===o?p.Children.count(s)>1?p.Children.only(null):p.isValidElement(s)?s.props.children:null:c);return A.jsx(gr,{...r,ref:t,children:p.isValidElement(s)?p.cloneElement(s,void 0,a):null})}return A.jsx(gr,{...r,ref:t,children:n})});mr.displayName="Slot";var gr=p.forwardRef((e,t)=>{const{children:n,...r}=e;if(p.isValidElement(n)){const i=Pd(n),o=Cd(r,n.props);return n.type!==p.Fragment&&(o.ref=t?No(t,i):i),p.cloneElement(n,o)}return p.Children.count(n)>1?p.Children.only(null):null});gr.displayName="SlotClone";var Sd=({children:e})=>A.jsx(A.Fragment,{children:e});function Ad(e){return p.isValidElement(e)&&e.type===Sd}function Cd(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Pd(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Md=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ne=Md.reduce((e,t)=>{const n=p.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?mr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),A.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Dd(e,t){e&&Iu.flushSync(()=>e.dispatchEvent(t))}function kd(e,t=globalThis==null?void 0:globalThis.document){const n=st(e);p.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Od="DismissableLayer",yr="dismissableLayer.update",Vd="dismissableLayer.pointerDownOutside",Fd="dismissableLayer.focusOutside",Lo,_o=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jo=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...c}=e,l=p.useContext(_o),[u,f]=p.useState(null),d=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=p.useState({}),g=ot(t,M=>f(M)),m=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(y),E=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,C=E>=v,b=Nd(M=>{const S=M.target,N=[...l.branches].some(K=>K.contains(S));!C||N||(i==null||i(M),s==null||s(M),M.defaultPrevented||a==null||a())},d),P=Ld(M=>{const S=M.target;[...l.branches].some(K=>K.contains(S))||(o==null||o(M),s==null||s(M),M.defaultPrevented||a==null||a())},d);return kd(M=>{E===l.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&a&&(M.preventDefault(),a()))},d),p.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Lo=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Bo(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Lo)}},[u,d,n,l]),p.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Bo())},[u,l]),p.useEffect(()=>{const M=()=>h({});return document.addEventListener(yr,M),()=>document.removeEventListener(yr,M)},[]),A.jsx(Ne.div,{...c,ref:g,style:{pointerEvents:T?C?"auto":"none":void 0,...e.style},onFocusCapture:Ke(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Ke(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Ke(e.onPointerDownCapture,b.onPointerDownCapture)})});jo.displayName=Od;var Rd="DismissableLayerBranch",Id=p.forwardRef((e,t)=>{const n=p.useContext(_o),r=p.useRef(null),i=ot(t,r);return p.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),A.jsx(Ne.div,{...e,ref:i})});Id.displayName=Rd;function Nd(e,t=globalThis==null?void 0:globalThis.document){const n=st(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let c=function(){$o(Vd,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ld(e,t=globalThis==null?void 0:globalThis.document){const n=st(e),r=p.useRef(!1);return p.useEffect(()=>{const i=o=>{o.target&&!r.current&&$o(Fd,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bo(){const e=new CustomEvent(yr);document.dispatchEvent(e)}function $o(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Dd(i,o):i.dispatchEvent(o)}var vr="focusScope.autoFocusOnMount",br="focusScope.autoFocusOnUnmount",Uo={bubbles:!1,cancelable:!0},_d="FocusScope",zo=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,c]=p.useState(null),l=st(i),u=st(o),f=p.useRef(null),d=ot(t,m=>c(m)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let m=function(T){if(h.paused||!a)return;const C=T.target;a.contains(C)?f.current=C:Ze(f.current,{select:!0})},y=function(T){if(h.paused||!a)return;const C=T.relatedTarget;C!==null&&(a.contains(C)||Ze(f.current,{select:!0}))},v=function(T){if(document.activeElement===document.body)for(const b of T)b.removedNodes.length>0&&Ze(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const E=new MutationObserver(v);return a&&E.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),E.disconnect()}}},[r,a,h.paused]),p.useEffect(()=>{if(a){Ho.add(h);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(vr,Uo);a.addEventListener(vr,l),a.dispatchEvent(v),v.defaultPrevented||(jd(Wd(Wo(a)),{select:!0}),document.activeElement===m&&Ze(a))}return()=>{a.removeEventListener(vr,l),setTimeout(()=>{const v=new CustomEvent(br,Uo);a.addEventListener(br,u),a.dispatchEvent(v),v.defaultPrevented||Ze(m??document.body,{select:!0}),a.removeEventListener(br,u),Ho.remove(h)},0)}}},[a,l,u,h]);const g=p.useCallback(m=>{if(!n&&!r||h.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(y&&v){const E=m.currentTarget,[T,C]=Bd(E);T&&C?!m.shiftKey&&v===C?(m.preventDefault(),n&&Ze(T,{select:!0})):m.shiftKey&&v===T&&(m.preventDefault(),n&&Ze(C,{select:!0})):v===E&&m.preventDefault()}},[n,r,h.paused]);return A.jsx(Ne.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});zo.displayName=_d;function jd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ze(r,{select:t}),document.activeElement!==n)return}function Bd(e){const t=Wo(e),n=Go(t,e),r=Go(t.reverse(),e);return[n,r]}function Wo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Go(e,t){for(const n of e)if(!$d(n,{upTo:t}))return n}function $d(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 Ud(e){return e instanceof HTMLInputElement&&"select"in e}function Ze(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ud(e)&&t&&e.select()}}var Ho=zd();function zd(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ko(e,t),e.unshift(t)},remove(t){var n;e=Ko(e,t),(n=e[0])==null||n.resume()}}}function Ko(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Wd(e){return e.filter(t=>t.tagName!=="A")}var Gd="Portal",Zo=p.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=p.useState(!1);An(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?yo.createPortal(A.jsx(Ne.div,{...r,ref:t}),s):null});Zo.displayName=Gd;function Hd(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Cn=e=>{const{present:t,children:n}=e,r=Kd(t),i=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),o=ot(r.ref,Zd(i));return typeof n=="function"||r.isPresent?p.cloneElement(i,{ref:o}):null};Cn.displayName="Presence";function Kd(e){const[t,n]=p.useState(),r=p.useRef({}),i=p.useRef(e),o=p.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Hd(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const l=Pn(r.current);o.current=a==="mounted"?l:"none"},[a]),An(()=>{const l=r.current,u=i.current;if(u!==e){const d=o.current,h=Pn(l);e?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),An(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,f=h=>{const m=Pn(r.current).includes(h.animationName);if(h.target===t&&m&&(c("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},d=h=>{h.target===t&&(o.current=Pn(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Pn(e){return(e==null?void 0:e.animationName)||"none"}function Zd(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wr=0;function Yd(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yo()),document.body.insertAdjacentElement("beforeend",e[1]??Yo()),wr++,()=>{wr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wr--}},[])}function Yo(){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 De=function(){return De=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},De.apply(this,arguments)};function Xo(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Xd(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Mn="right-scroll-bar-position",Dn="width-before-scroll-bar",qd="with-scroll-bars-hidden",Jd="--removed-body-scroll-bar-size";function Tr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Qd(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var ef=typeof window<"u"?p.useLayoutEffect:p.useEffect,qo=new WeakMap;function tf(e,t){var n=Qd(null,function(r){return e.forEach(function(i){return Tr(i,r)})});return ef(function(){var r=qo.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||Tr(a,null)}),o.forEach(function(a){i.has(a)||Tr(a,s)})}qo.set(n,e)},[e]),n}function nf(e){return e}function rf(e,t){t===void 0&&(t=nf);var n=[],r=!1,i={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(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var c=function(){var u=s;s=[],u.forEach(o)},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 i}function of(e){e===void 0&&(e={});var t=rf(null);return t.options=De({async:!0,ssr:!1},e),t}var Jo=function(e){var t=e.sideCar,n=Xo(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 p.createElement(r,De({},n))};Jo.isSideCarExport=!0;function sf(e,t){return e.useMedium(t),Jo}var Qo=of(),xr=function(){},kn=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:xr,onWheelCapture:xr,onTouchMoveCapture:xr}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,h=e.noIsolation,g=e.inert,m=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,E=e.gapMode,T=Xo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,b=tf([n,t]),P=De(De({},T),i);return p.createElement(p.Fragment,null,u&&p.createElement(C,{sideCar:Qo,removeScrollBar:l,shards:f,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:E}),s?p.cloneElement(p.Children.only(a),De(De({},P),{ref:b})):p.createElement(v,De({},P,{className:c,ref:b}),a))});kn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},kn.classNames={fullWidth:Dn,zeroRight:Mn};var es=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function af(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=es();return t&&e.setAttribute("nonce",t),e}function cf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=af())&&(cf(t,n),lf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},df=function(){var e=uf();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ff=function(){var e=df(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},hf={left:0,top:0,right:0,gap:0},Er=function(e){return parseInt(e||"",10)||0},pf=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Er(n),Er(r),Er(i)]},mf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hf;var t=pf(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])}},gf=ff(),Pt="data-scroll-locked",yf=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
60
+ .`.concat(qd,` {
61
61
  overflow: hidden `).concat(r,`;
62
62
  padding-right: `).concat(a,"px ").concat(r,`;
63
63
  }
64
- body[`).concat(At,`] {
64
+ body[`).concat(Pt,`] {
65
65
  overflow: hidden `).concat(r,`;
66
66
  overscroll-behavior: contain;
67
67
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -74,55 +74,55 @@
74
74
  `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
75
75
  }
76
76
 
77
- .`).concat(Pn,` {
77
+ .`).concat(Mn,` {
78
78
  right: `).concat(a,"px ").concat(r,`;
79
79
  }
80
80
 
81
- .`).concat(Mn,` {
81
+ .`).concat(Dn,` {
82
82
  margin-right: `).concat(a,"px ").concat(r,`;
83
83
  }
84
84
 
85
- .`).concat(Pn," .").concat(Pn,` {
85
+ .`).concat(Mn," .").concat(Mn,` {
86
86
  right: 0 `).concat(r,`;
87
87
  }
88
88
 
89
- .`).concat(Mn," .").concat(Mn,` {
89
+ .`).concat(Dn," .").concat(Dn,` {
90
90
  margin-right: 0 `).concat(r,`;
91
91
  }
92
92
 
93
- body[`).concat(At,`] {
94
- `).concat(qd,": ").concat(a,`px;
93
+ body[`).concat(Pt,`] {
94
+ `).concat(Jd,": ").concat(a,`px;
95
95
  }
96
- `)},es=function(){var e=parseInt(document.body.getAttribute(At)||"0",10);return isFinite(e)?e:0},yf=function(){m.useEffect(function(){return document.body.setAttribute(At,(es()+1).toString()),function(){var e=es()-1;e<=0?document.body.removeAttribute(At):document.body.setAttribute(At,e.toString())}},[])},vf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;yf();var o=m.useMemo(function(){return pf(i)},[i]);return m.createElement(mf,{styles:gf(o,!t,i,n?"":"!important")})};function bf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qo();return t&&e.setAttribute("nonce",t),e}function wf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=bf())&&(wf(t,n),Tf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Sf=function(){var e=xf();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ef=function(){var e=Sf(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},xr=!1;if(typeof window<"u")try{var On=Object.defineProperty({},"passive",{get:function(){return xr=!0,!0}});window.addEventListener("test",On,On),window.removeEventListener("test",On,On)}catch{xr=!1}var Ct=xr?{passive:!1}:!1,Af=function(e){return e.tagName==="TEXTAREA"},ts=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Af(e)&&n[t]==="visible")},Cf=function(e){return ts(e,"overflowY")},Pf=function(e){return ts(e,"overflowX")},ns=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=rs(e,r);if(i){var o=is(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Mf=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Df=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},rs=function(e,t){return e==="v"?Cf(t):Pf(t)},is=function(e,t){return e==="v"?Mf(t):Df(t)},Of=function(e,t){return e==="h"&&t==="rtl"?-1:1},kf=function(e,t,n,r,i){var o=Of(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,c=t.contains(a),l=!1,u=s>0,f=0,d=0;do{var h=is(e,a),g=h[0],p=h[1],y=h[2],v=p-y-o*g;(g||v)&&rs(e,a)&&(f+=v,d+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs(d)<1)&&(l=!0),l},kn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},os=function(e){return[e.deltaX,e.deltaY]},ss=function(e){return e&&"current"in e?e.current:e},Rf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vf=function(e){return`
96
+ `)},ts=function(){var e=parseInt(document.body.getAttribute(Pt)||"0",10);return isFinite(e)?e:0},vf=function(){p.useEffect(function(){return document.body.setAttribute(Pt,(ts()+1).toString()),function(){var e=ts()-1;e<=0?document.body.removeAttribute(Pt):document.body.setAttribute(Pt,e.toString())}},[])},bf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;vf();var o=p.useMemo(function(){return mf(i)},[i]);return p.createElement(gf,{styles:yf(o,!t,i,n?"":"!important")})};function wf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=es();return t&&e.setAttribute("nonce",t),e}function Tf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ef=function(){var e=0,t=null;return{add:function(n){e==0&&(t=wf())&&(Tf(t,n),xf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Sf=function(){var e=Ef();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Af=function(){var e=Sf(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Sr=!1;if(typeof window<"u")try{var On=Object.defineProperty({},"passive",{get:function(){return Sr=!0,!0}});window.addEventListener("test",On,On),window.removeEventListener("test",On,On)}catch{Sr=!1}var Mt=Sr?{passive:!1}:!1,Cf=function(e){return e.tagName==="TEXTAREA"},ns=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Cf(e)&&n[t]==="visible")},Pf=function(e){return ns(e,"overflowY")},Mf=function(e){return ns(e,"overflowX")},rs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=is(e,r);if(i){var o=os(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Df=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},kf=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},is=function(e,t){return e==="v"?Pf(t):Mf(t)},os=function(e,t){return e==="v"?Df(t):kf(t)},Of=function(e,t){return e==="h"&&t==="rtl"?-1:1},Vf=function(e,t,n,r,i){var o=Of(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,c=t.contains(a),l=!1,u=s>0,f=0,d=0;do{var h=os(e,a),g=h[0],m=h[1],y=h[2],v=m-y-o*g;(g||v)&&is(e,a)&&(f+=v,d+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs(d)<1)&&(l=!0),l},Vn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ss=function(e){return[e.deltaX,e.deltaY]},as=function(e){return e&&"current"in e?e.current:e},Ff=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Rf=function(e){return`
97
97
  .block-interactivity-`.concat(e,` {pointer-events: none;}
98
98
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
99
- `)},Ff=0,Pt=[];function If(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(Ff++)[0],o=m.useState(Ef)[0],s=m.useRef(e);m.useEffect(function(){s.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=Zd([e.lockRef.current],(e.shards||[]).map(ss),!0).filter(Boolean);return p.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(p,y){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var v=kn(p),S=n.current,T="deltaX"in p?p.deltaX:S[0]-v[0],A="deltaY"in p?p.deltaY:S[1]-v[1],b,C=p.target,M=Math.abs(T)>Math.abs(A)?"h":"v";if("touches"in p&&M==="h"&&C.type==="range")return!1;var E=ns(M,C);if(!E)return!0;if(E?b=M:(b=M==="v"?"h":"v",E=ns(M,C)),!E)return!1;if(!r.current&&"changedTouches"in p&&(T||A)&&(r.current=b),!b)return!0;var N=r.current||b;return kf(N,y,p,N==="h"?T:A)},[]),c=m.useCallback(function(p){var y=p;if(!(!Pt.length||Pt[Pt.length-1]!==o)){var v="deltaY"in y?os(y):kn(y),S=t.current.filter(function(b){return b.name===y.type&&(b.target===y.target||y.target===b.shadowParent)&&Rf(b.delta,v)})[0];if(S&&S.should){y.cancelable&&y.preventDefault();return}if(!S){var T=(s.current.shards||[]).map(ss).filter(Boolean).filter(function(b){return b.contains(y.target)}),A=T.length>0?a(y,T[0]):!s.current.noIsolation;A&&y.cancelable&&y.preventDefault()}}},[]),l=m.useCallback(function(p,y,v,S){var T={name:p,delta:y,target:v,should:S,shadowParent:Nf(v)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(A){return A!==T})},1)},[]),u=m.useCallback(function(p){n.current=kn(p),r.current=void 0},[]),f=m.useCallback(function(p){l(p.type,os(p),p.target,a(p,e.lockRef.current))},[]),d=m.useCallback(function(p){l(p.type,kn(p),p.target,a(p,e.lockRef.current))},[]);m.useEffect(function(){return Pt.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Ct),document.addEventListener("touchmove",c,Ct),document.addEventListener("touchstart",u,Ct),function(){Pt=Pt.filter(function(p){return p!==o}),document.removeEventListener("wheel",c,Ct),document.removeEventListener("touchmove",c,Ct),document.removeEventListener("touchstart",u,Ct)}},[]);var h=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(o,{styles:Vf(i)}):null,h?m.createElement(vf,{gapMode:e.gapMode}):null)}function Nf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _f=of(Jo,If);var as=m.forwardRef(function(e,t){return m.createElement(Dn,De({},e,{ref:t,sideCar:_f}))});as.classNames=Dn.classNames;var Lf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mt=new WeakMap,Rn=new WeakMap,Vn={},Sr=0,cs=function(e){return e&&(e.host||cs(e.parentNode))},jf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=cs(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})},Bf=function(e,t,n,r){var i=jf(t,Array.isArray(e)?e:[e]);Vn[n]||(Vn[n]=new WeakMap);var o=Vn[n],s=[],a=new Set,c=new Set(i),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};i.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))u(d);else try{var h=d.getAttribute(r),g=h!==null&&h!=="false",p=(Mt.get(d)||0)+1,y=(o.get(d)||0)+1;Mt.set(d,p),o.set(d,y),s.push(d),p===1&&g&&Rn.set(d,!0),y===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return u(t),a.clear(),Sr++,function(){s.forEach(function(f){var d=Mt.get(f)-1,h=o.get(f)-1;Mt.set(f,d),o.set(f,h),d||(Rn.has(f)||f.removeAttribute(r),Rn.delete(f)),h||f.removeAttribute(n)}),Sr--,Sr||(Mt=new WeakMap,Mt=new WeakMap,Rn=new WeakMap,Vn={})}},Uf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Lf(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Bf(r,i,n,"aria-hidden")):function(){return null}},Er="Dialog",[ls,J1]=yd(Er),[$f,Ee]=ls(Er),us=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=m.useRef(null),c=m.useRef(null),[l=!1,u]=Td({prop:r,defaultProp:i,onChange:o});return P.jsx($f,{scope:t,triggerRef:a,contentRef:c,contentId:fr(),titleId:fr(),descriptionId:fr(),open:l,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(f=>!f),[u]),modal:s,children:n})};us.displayName=Er;var ds="DialogTrigger",zf=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ee(ds,n),o=it(t,i.triggerRef);return P.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Pr(i.open),...r,ref:o,onClick:Ke(e.onClick,i.onOpenToggle)})});zf.displayName=ds;var Ar="DialogPortal",[Wf,fs]=ls(Ar,{forceMount:void 0}),hs=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=Ee(Ar,t);return P.jsx(Wf,{scope:t,forceMount:n,children:m.Children.map(r,s=>P.jsx(An,{present:n||o.open,children:P.jsx(Ko,{asChild:!0,container:i,children:s})}))})};hs.displayName=Ar;var Fn="DialogOverlay",ps=m.forwardRef((e,t)=>{const n=fs(Fn,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Ee(Fn,e.__scopeDialog);return o.modal?P.jsx(An,{present:r||o.open,children:P.jsx(Gf,{...i,ref:t})}):null});ps.displayName=Fn;var Gf=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ee(Fn,n);return P.jsx(as,{as:hr,allowPinchZoom:!0,shards:[i.contentRef],children:P.jsx(Ne.div,{"data-state":Pr(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),st="DialogContent",ms=m.forwardRef((e,t)=>{const n=fs(st,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Ee(st,e.__scopeDialog);return P.jsx(An,{present:r||o.open,children:o.modal?P.jsx(Hf,{...i,ref:t}):P.jsx(Kf,{...i,ref:t})})});ms.displayName=st;var Hf=m.forwardRef((e,t)=>{const n=Ee(st,e.__scopeDialog),r=m.useRef(null),i=it(t,n.contentRef,r);return m.useEffect(()=>{const o=r.current;if(o)return Uf(o)},[]),P.jsx(gs,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ke(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Ke(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:Ke(e.onFocusOutside,o=>o.preventDefault())})}),Kf=m.forwardRef((e,t)=>{const n=Ee(st,e.__scopeDialog),r=m.useRef(!1),i=m.useRef(!1);return P.jsx(gs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),gs=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=Ee(st,n),c=m.useRef(null),l=it(t,c);return Yd(),P.jsxs(P.Fragment,{children:[P.jsx($o,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:P.jsx(Lo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Pr(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),P.jsxs(P.Fragment,{children:[P.jsx(Zf,{titleId:a.titleId}),P.jsx(qf,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Cr="DialogTitle",ys=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ee(Cr,n);return P.jsx(Ne.h2,{id:i.titleId,...r,ref:t})});ys.displayName=Cr;var vs="DialogDescription",bs=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ee(vs,n);return P.jsx(Ne.p,{id:i.descriptionId,...r,ref:t})});bs.displayName=vs;var ws="DialogClose",Yf=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ee(ws,n);return P.jsx(Ne.button,{type:"button",...r,ref:t,onClick:Ke(e.onClick,()=>i.onOpenChange(!1))})});Yf.displayName=ws;function Pr(e){return e?"open":"closed"}var Ts="DialogTitleWarning",[Q1,xs]=gd(Ts,{contentName:st,titleName:Cr,docsSlug:"dialog"}),Zf=({titleId:e})=>{const t=xs(Ts),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
99
+ `)},If=0,Dt=[];function Nf(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),i=p.useState(If++)[0],o=p.useState(Af)[0],s=p.useRef(e);p.useEffect(function(){s.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=Xd([e.lockRef.current],(e.shards||[]).map(as),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var v=Vn(m),E=n.current,T="deltaX"in m?m.deltaX:E[0]-v[0],C="deltaY"in m?m.deltaY:E[1]-v[1],b,P=m.target,M=Math.abs(T)>Math.abs(C)?"h":"v";if("touches"in m&&M==="h"&&P.type==="range")return!1;var S=rs(M,P);if(!S)return!0;if(S?b=M:(b=M==="v"?"h":"v",S=rs(M,P)),!S)return!1;if(!r.current&&"changedTouches"in m&&(T||C)&&(r.current=b),!b)return!0;var N=r.current||b;return Vf(N,y,m,N==="h"?T:C)},[]),c=p.useCallback(function(m){var y=m;if(!(!Dt.length||Dt[Dt.length-1]!==o)){var v="deltaY"in y?ss(y):Vn(y),E=t.current.filter(function(b){return b.name===y.type&&(b.target===y.target||y.target===b.shadowParent)&&Ff(b.delta,v)})[0];if(E&&E.should){y.cancelable&&y.preventDefault();return}if(!E){var T=(s.current.shards||[]).map(as).filter(Boolean).filter(function(b){return b.contains(y.target)}),C=T.length>0?a(y,T[0]):!s.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),l=p.useCallback(function(m,y,v,E){var T={name:m,delta:y,target:v,should:E,shadowParent:Lf(v)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(C){return C!==T})},1)},[]),u=p.useCallback(function(m){n.current=Vn(m),r.current=void 0},[]),f=p.useCallback(function(m){l(m.type,ss(m),m.target,a(m,e.lockRef.current))},[]),d=p.useCallback(function(m){l(m.type,Vn(m),m.target,a(m,e.lockRef.current))},[]);p.useEffect(function(){return Dt.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Mt),document.addEventListener("touchmove",c,Mt),document.addEventListener("touchstart",u,Mt),function(){Dt=Dt.filter(function(m){return m!==o}),document.removeEventListener("wheel",c,Mt),document.removeEventListener("touchmove",c,Mt),document.removeEventListener("touchstart",u,Mt)}},[]);var h=e.removeScrollBar,g=e.inert;return p.createElement(p.Fragment,null,g?p.createElement(o,{styles:Rf(i)}):null,h?p.createElement(bf,{gapMode:e.gapMode}):null)}function Lf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _f=sf(Qo,Nf);var cs=p.forwardRef(function(e,t){return p.createElement(kn,De({},e,{ref:t,sideCar:_f}))});cs.classNames=kn.classNames;var jf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},kt=new WeakMap,Fn=new WeakMap,Rn={},Ar=0,ls=function(e){return e&&(e.host||ls(e.parentNode))},Bf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ls(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})},$f=function(e,t,n,r){var i=Bf(t,Array.isArray(e)?e:[e]);Rn[n]||(Rn[n]=new WeakMap);var o=Rn[n],s=[],a=new Set,c=new Set(i),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};i.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))u(d);else try{var h=d.getAttribute(r),g=h!==null&&h!=="false",m=(kt.get(d)||0)+1,y=(o.get(d)||0)+1;kt.set(d,m),o.set(d,y),s.push(d),m===1&&g&&Fn.set(d,!0),y===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return u(t),a.clear(),Ar++,function(){s.forEach(function(f){var d=kt.get(f)-1,h=o.get(f)-1;kt.set(f,d),o.set(f,h),d||(Fn.has(f)||f.removeAttribute(r),Fn.delete(f)),h||f.removeAttribute(n)}),Ar--,Ar||(kt=new WeakMap,kt=new WeakMap,Fn=new WeakMap,Rn={})}},Uf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=jf(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),$f(r,i,n,"aria-hidden")):function(){return null}},Cr="Dialog",[us,oT]=vd(Cr),[zf,Se]=us(Cr),ds=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=p.useRef(null),c=p.useRef(null),[l=!1,u]=xd({prop:r,defaultProp:i,onChange:o});return A.jsx(zf,{scope:t,triggerRef:a,contentRef:c,contentId:pr(),titleId:pr(),descriptionId:pr(),open:l,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(f=>!f),[u]),modal:s,children:n})};ds.displayName=Cr;var fs="DialogTrigger",Wf=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Se(fs,n),o=ot(t,i.triggerRef);return A.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Dr(i.open),...r,ref:o,onClick:Ke(e.onClick,i.onOpenToggle)})});Wf.displayName=fs;var Pr="DialogPortal",[Gf,hs]=us(Pr,{forceMount:void 0}),ps=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=Se(Pr,t);return A.jsx(Gf,{scope:t,forceMount:n,children:p.Children.map(r,s=>A.jsx(Cn,{present:n||o.open,children:A.jsx(Zo,{asChild:!0,container:i,children:s})}))})};ps.displayName=Pr;var In="DialogOverlay",ms=p.forwardRef((e,t)=>{const n=hs(In,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Se(In,e.__scopeDialog);return o.modal?A.jsx(Cn,{present:r||o.open,children:A.jsx(Hf,{...i,ref:t})}):null});ms.displayName=In;var Hf=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Se(In,n);return A.jsx(cs,{as:mr,allowPinchZoom:!0,shards:[i.contentRef],children:A.jsx(Ne.div,{"data-state":Dr(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),at="DialogContent",gs=p.forwardRef((e,t)=>{const n=hs(at,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Se(at,e.__scopeDialog);return A.jsx(Cn,{present:r||o.open,children:o.modal?A.jsx(Kf,{...i,ref:t}):A.jsx(Zf,{...i,ref:t})})});gs.displayName=at;var Kf=p.forwardRef((e,t)=>{const n=Se(at,e.__scopeDialog),r=p.useRef(null),i=ot(t,n.contentRef,r);return p.useEffect(()=>{const o=r.current;if(o)return Uf(o)},[]),A.jsx(ys,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ke(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Ke(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:Ke(e.onFocusOutside,o=>o.preventDefault())})}),Zf=p.forwardRef((e,t)=>{const n=Se(at,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return A.jsx(ys,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),ys=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=Se(at,n),c=p.useRef(null),l=ot(t,c);return Yd(),A.jsxs(A.Fragment,{children:[A.jsx(zo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:A.jsx(jo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Dr(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),A.jsxs(A.Fragment,{children:[A.jsx(Xf,{titleId:a.titleId}),A.jsx(Jf,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Mr="DialogTitle",vs=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Se(Mr,n);return A.jsx(Ne.h2,{id:i.titleId,...r,ref:t})});vs.displayName=Mr;var bs="DialogDescription",ws=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Se(bs,n);return A.jsx(Ne.p,{id:i.descriptionId,...r,ref:t})});ws.displayName=bs;var Ts="DialogClose",Yf=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Se(Ts,n);return A.jsx(Ne.button,{type:"button",...r,ref:t,onClick:Ke(e.onClick,()=>i.onOpenChange(!1))})});Yf.displayName=Ts;function Dr(e){return e?"open":"closed"}var xs="DialogTitleWarning",[sT,Es]=yd(xs,{contentName:at,titleName:Mr,docsSlug:"dialog"}),Xf=({titleId:e})=>{const t=Es(xs),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
100
100
 
101
101
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
102
102
 
103
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Xf="DialogDescriptionWarning",qf=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xs(Xf).contentName}}.`;return m.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Jf=us,Qf=hs,eh=ps,th=ms,nh=ys,rh=bs;const ih=new Map([["bold",m.createElement(m.Fragment,null,m.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",m.createElement(m.Fragment,null,m.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),m.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",m.createElement(m.Fragment,null,m.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",m.createElement(m.Fragment,null,m.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",m.createElement(m.Fragment,null,m.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",m.createElement(m.Fragment,null,m.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"}))]]),oh=new Map([["bold",m.createElement(m.Fragment,null,m.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",m.createElement(m.Fragment,null,m.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"}),m.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",m.createElement(m.Fragment,null,m.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",m.createElement(m.Fragment,null,m.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",m.createElement(m.Fragment,null,m.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",m.createElement(m.Fragment,null,m.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"}))]]),sh=x.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Mr=m.forwardRef((e,t)=>{const{alt:n,color:r,size:i,weight:o,mirrored:s,children:a,weights:c,...l}=e,{color:u="currentColor",size:f,weight:d="regular",mirrored:h=!1,...g}=m.useContext(sh);return m.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:i??f,height:i??f,fill:r??u,viewBox:"0 0 256 256",transform:s||h?"scale(-1, 1)":void 0,...g,...l},!!n&&m.createElement("title",null,n),a,c.get(o??d))});Mr.displayName="IconBase";const Ss=m.forwardRef((e,t)=>m.createElement(Mr,{ref:t,...e,weights:ih}));Ss.displayName="SpinnerIcon";const Dr=m.forwardRef((e,t)=>m.createElement(Mr,{ref:t,...e,weights:oh}));Dr.displayName="XIcon";const ah="fixed inset-0 bg-black/50 data-[state=open]:animate-overlayShow z-10",ch=`
103
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},qf="DialogDescriptionWarning",Jf=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Es(qf).contentName}}.`;return p.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Qf=ds,eh=ps,th=ms,nh=gs,rh=vs,ih=ws;const oh=new Map([["bold",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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"}),p.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",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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"}))]]),sh=new Map([["bold",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.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",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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"}))]]),ah=new Map([["bold",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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"}),p.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",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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",p.createElement(p.Fragment,null,p.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"}))]]),ch=x.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Nn=p.forwardRef((e,t)=>{const{alt:n,color:r,size:i,weight:o,mirrored:s,children:a,weights:c,...l}=e,{color:u="currentColor",size:f,weight:d="regular",mirrored:h=!1,...g}=p.useContext(ch);return p.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:i??f,height:i??f,fill:r??u,viewBox:"0 0 256 256",transform:s||h?"scale(-1, 1)":void 0,...g,...l},!!n&&p.createElement("title",null,n),a,c.get(o??d))});Nn.displayName="IconBase";const Ss=p.forwardRef((e,t)=>p.createElement(Nn,{ref:t,...e,weights:oh}));Ss.displayName="CheckIcon";const As=p.forwardRef((e,t)=>p.createElement(Nn,{ref:t,...e,weights:sh}));As.displayName="SpinnerIcon";const kr=p.forwardRef((e,t)=>p.createElement(Nn,{ref:t,...e,weights:ah}));kr.displayName="XIcon";const lh="fixed inset-0 bg-black/50 data-[state=open]:animate-overlayShow z-10",uh=`
104
104
  fixed left-1/2 top-1/2 z-10
105
105
  -translate-x-1/2 -translate-y-1/2
106
106
  shadow-lg focus:outline-none
107
107
 
108
108
  data-[state=open]:animate-contentShow
109
- `,lh="flex flex-col gap-y-6 whitespace-pre-line",uh="flex items-center justify-between m-0 text-2xl text-gray-800",dh="m-0",fh="h-8 w-8 cursor-pointer transition-colors hover:bg-gray-200 rounded-full flex items-center justify-center",hh="flex justify-end gap-2",ph=({title:e,description:t,isOpen:n,children:r,onClose:i})=>P.jsx(Jf,{open:n,children:P.jsxs(Qf,{children:[P.jsx(eh,{className:ah}),P.jsx(th,{className:ch,children:P.jsx(Vo,{children:P.jsxs("div",{className:lh,children:[P.jsxs(nh,{className:uh,children:[P.jsx("span",{children:e}),P.jsx(Dr,{size:32,className:fh,onClick:i})]}),P.jsx(rh,{className:dh,children:t}),P.jsx("div",{className:hh,children:r})]})})})]})});var mh=function(t){return gh(t)&&!yh(t)};function gh(e){return!!e&&typeof e=="object"}function yh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||wh(e)}var vh=typeof Symbol=="function"&&Symbol.for,bh=vh?Symbol.for("react.element"):60103;function wh(e){return e.$$typeof===bh}function Th(e){return Array.isArray(e)?[]:{}}function In(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zt(Th(e),e,t):e}function xh(e,t,n){return e.concat(t).map(function(r){return In(r,n)})}function Sh(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=In(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=In(t[i],n):r[i]=Zt(e[i],t[i],n)}),r}function Zt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||xh,n.isMergeableObject=n.isMergeableObject||mh;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Sh(e,t,n):In(t,n)}Zt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Zt(r,i,n)},{})};var Or=Zt,Es=typeof global=="object"&&global&&global.Object===Object&&global,Eh=typeof self=="object"&&self&&self.Object===Object&&self,Oe=Es||Eh||Function("return this")(),Ze=Oe.Symbol,As=Object.prototype,Ah=As.hasOwnProperty,Ch=As.toString,Xt=Ze?Ze.toStringTag:void 0;function Ph(e){var t=Ah.call(e,Xt),n=e[Xt];try{e[Xt]=void 0;var r=!0}catch{}var i=Ch.call(e);return r&&(t?e[Xt]=n:delete e[Xt]),i}var Mh=Object.prototype,Dh=Mh.toString;function Oh(e){return Dh.call(e)}var kh="[object Null]",Rh="[object Undefined]",Cs=Ze?Ze.toStringTag:void 0;function at(e){return e==null?e===void 0?Rh:kh:Cs&&Cs in Object(e)?Ph(e):Oh(e)}function Ps(e,t){return function(n){return e(t(n))}}var kr=Ps(Object.getPrototypeOf,Object);function ct(e){return e!=null&&typeof e=="object"}var Vh="[object Object]",Fh=Function.prototype,Ih=Object.prototype,Ms=Fh.toString,Nh=Ih.hasOwnProperty,_h=Ms.call(Object);function Ds(e){if(!ct(e)||at(e)!=Vh)return!1;var t=kr(e);if(t===null)return!0;var n=Nh.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ms.call(n)==_h}function Lh(){this.__data__=[],this.size=0}function Os(e,t){return e===t||e!==e&&t!==t}function Nn(e,t){for(var n=e.length;n--;)if(Os(e[n][0],t))return n;return-1}var jh=Array.prototype,Bh=jh.splice;function Uh(e){var t=this.__data__,n=Nn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Bh.call(t,n,1),--this.size,!0}function $h(e){var t=this.__data__,n=Nn(t,e);return n<0?void 0:t[n][1]}function zh(e){return Nn(this.__data__,e)>-1}function Wh(e,t){var n=this.__data__,r=Nn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function _e(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])}}_e.prototype.clear=Lh,_e.prototype.delete=Uh,_e.prototype.get=$h,_e.prototype.has=zh,_e.prototype.set=Wh;function Gh(){this.__data__=new _e,this.size=0}function Hh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Kh(e){return this.__data__.get(e)}function Yh(e){return this.__data__.has(e)}function qt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zh="[object AsyncFunction]",Xh="[object Function]",qh="[object GeneratorFunction]",Jh="[object Proxy]";function ks(e){if(!qt(e))return!1;var t=at(e);return t==Xh||t==qh||t==Zh||t==Jh}var Rr=Oe["__core-js_shared__"],Rs=function(){var e=/[^.]+$/.exec(Rr&&Rr.keys&&Rr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Qh(e){return!!Rs&&Rs in e}var ep=Function.prototype,tp=ep.toString;function lt(e){if(e!=null){try{return tp.call(e)}catch{}try{return e+""}catch{}}return""}var np=/[\\^$.*+?()[\]{}|]/g,rp=/^\[object .+?Constructor\]$/,ip=Function.prototype,op=Object.prototype,sp=ip.toString,ap=op.hasOwnProperty,cp=RegExp("^"+sp.call(ap).replace(np,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lp(e){if(!qt(e)||Qh(e))return!1;var t=ks(e)?cp:rp;return t.test(lt(e))}function up(e,t){return e==null?void 0:e[t]}function ut(e,t){var n=up(e,t);return lp(n)?n:void 0}var Jt=ut(Oe,"Map"),Qt=ut(Object,"create");function dp(){this.__data__=Qt?Qt(null):{},this.size=0}function fp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hp="__lodash_hash_undefined__",pp=Object.prototype,mp=pp.hasOwnProperty;function gp(e){var t=this.__data__;if(Qt){var n=t[e];return n===hp?void 0:n}return mp.call(t,e)?t[e]:void 0}var yp=Object.prototype,vp=yp.hasOwnProperty;function bp(e){var t=this.__data__;return Qt?t[e]!==void 0:vp.call(t,e)}var wp="__lodash_hash_undefined__";function Tp(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qt&&t===void 0?wp:t,this}function dt(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])}}dt.prototype.clear=dp,dt.prototype.delete=fp,dt.prototype.get=gp,dt.prototype.has=bp,dt.prototype.set=Tp;function xp(){this.size=0,this.__data__={hash:new dt,map:new(Jt||_e),string:new dt}}function Sp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _n(e,t){var n=e.__data__;return Sp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Ep(e){var t=_n(this,e).delete(e);return this.size-=t?1:0,t}function Ap(e){return _n(this,e).get(e)}function Cp(e){return _n(this,e).has(e)}function Pp(e,t){var n=_n(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Xe(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])}}Xe.prototype.clear=xp,Xe.prototype.delete=Ep,Xe.prototype.get=Ap,Xe.prototype.has=Cp,Xe.prototype.set=Pp;var Mp=200;function Dp(e,t){var n=this.__data__;if(n instanceof _e){var r=n.__data__;if(!Jt||r.length<Mp-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xe(r)}return n.set(e,t),this.size=n.size,this}function Dt(e){var t=this.__data__=new _e(e);this.size=t.size}Dt.prototype.clear=Gh,Dt.prototype.delete=Hh,Dt.prototype.get=Kh,Dt.prototype.has=Yh,Dt.prototype.set=Dp;function Op(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Vs=function(){try{var e=ut(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Fs(e,t,n){t=="__proto__"&&Vs?Vs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var kp=Object.prototype,Rp=kp.hasOwnProperty;function Is(e,t,n){var r=e[t];(!(Rp.call(e,t)&&Os(r,n))||n===void 0&&!(t in e))&&Fs(e,t,n)}function Ln(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=void 0;c===void 0&&(c=e[a]),i?Fs(n,a,c):Is(n,a,c)}return n}function Vp(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Fp="[object Arguments]";function Ns(e){return ct(e)&&at(e)==Fp}var _s=Object.prototype,Ip=_s.hasOwnProperty,Np=_s.propertyIsEnumerable,_p=Ns(function(){return arguments}())?Ns:function(e){return ct(e)&&Ip.call(e,"callee")&&!Np.call(e,"callee")},en=Array.isArray;function Lp(){return!1}var Ls=typeof Y=="object"&&Y&&!Y.nodeType&&Y,js=Ls&&typeof module=="object"&&module&&!module.nodeType&&module,jp=js&&js.exports===Ls,Bs=jp?Oe.Buffer:void 0,Bp=Bs?Bs.isBuffer:void 0,Us=Bp||Lp,Up=9007199254740991,$p=/^(?:0|[1-9]\d*)$/;function zp(e,t){var n=typeof e;return t=t??Up,!!t&&(n=="number"||n!="symbol"&&$p.test(e))&&e>-1&&e%1==0&&e<t}var Wp=9007199254740991;function $s(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wp}var Gp="[object Arguments]",Hp="[object Array]",Kp="[object Boolean]",Yp="[object Date]",Zp="[object Error]",Xp="[object Function]",qp="[object Map]",Jp="[object Number]",Qp="[object Object]",em="[object RegExp]",tm="[object Set]",nm="[object String]",rm="[object WeakMap]",im="[object ArrayBuffer]",om="[object DataView]",sm="[object Float32Array]",am="[object Float64Array]",cm="[object Int8Array]",lm="[object Int16Array]",um="[object Int32Array]",dm="[object Uint8Array]",fm="[object Uint8ClampedArray]",hm="[object Uint16Array]",pm="[object Uint32Array]",H={};H[sm]=H[am]=H[cm]=H[lm]=H[um]=H[dm]=H[fm]=H[hm]=H[pm]=!0,H[Gp]=H[Hp]=H[im]=H[Kp]=H[om]=H[Yp]=H[Zp]=H[Xp]=H[qp]=H[Jp]=H[Qp]=H[em]=H[tm]=H[nm]=H[rm]=!1;function mm(e){return ct(e)&&$s(e.length)&&!!H[at(e)]}function Vr(e){return function(t){return e(t)}}var zs=typeof Y=="object"&&Y&&!Y.nodeType&&Y,tn=zs&&typeof module=="object"&&module&&!module.nodeType&&module,gm=tn&&tn.exports===zs,Fr=gm&&Es.process,Ot=function(){try{var e=tn&&tn.require&&tn.require("util").types;return e||Fr&&Fr.binding&&Fr.binding("util")}catch{}}(),Ws=Ot&&Ot.isTypedArray,ym=Ws?Vr(Ws):mm,vm=Object.prototype,bm=vm.hasOwnProperty;function Gs(e,t){var n=en(e),r=!n&&_p(e),i=!n&&!r&&Us(e),o=!n&&!r&&!i&&ym(e),s=n||r||i||o,a=s?Vp(e.length,String):[],c=a.length;for(var l in e)(t||bm.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||zp(l,c)))&&a.push(l);return a}var wm=Object.prototype;function Ir(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||wm;return e===n}var Tm=Ps(Object.keys,Object),xm=Object.prototype,Sm=xm.hasOwnProperty;function Em(e){if(!Ir(e))return Tm(e);var t=[];for(var n in Object(e))Sm.call(e,n)&&n!="constructor"&&t.push(n);return t}function Hs(e){return e!=null&&$s(e.length)&&!ks(e)}function Nr(e){return Hs(e)?Gs(e):Em(e)}function Am(e,t){return e&&Ln(t,Nr(t),e)}function Cm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Pm=Object.prototype,Mm=Pm.hasOwnProperty;function Dm(e){if(!qt(e))return Cm(e);var t=Ir(e),n=[];for(var r in e)r=="constructor"&&(t||!Mm.call(e,r))||n.push(r);return n}function _r(e){return Hs(e)?Gs(e,!0):Dm(e)}function Om(e,t){return e&&Ln(t,_r(t),e)}var Ks=typeof Y=="object"&&Y&&!Y.nodeType&&Y,Ys=Ks&&typeof module=="object"&&module&&!module.nodeType&&module,km=Ys&&Ys.exports===Ks,Zs=km?Oe.Buffer:void 0,Xs=Zs?Zs.allocUnsafe:void 0;function Rm(e,t){if(t)return e.slice();var n=e.length,r=Xs?Xs(n):new e.constructor(n);return e.copy(r),r}function qs(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Vm(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Js(){return[]}var Fm=Object.prototype,Im=Fm.propertyIsEnumerable,Qs=Object.getOwnPropertySymbols,Lr=Qs?function(e){return e==null?[]:(e=Object(e),Vm(Qs(e),function(t){return Im.call(e,t)}))}:Js;function Nm(e,t){return Ln(e,Lr(e),t)}function ea(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var _m=Object.getOwnPropertySymbols,ta=_m?function(e){for(var t=[];e;)ea(t,Lr(e)),e=kr(e);return t}:Js;function Lm(e,t){return Ln(e,ta(e),t)}function na(e,t,n){var r=t(e);return en(e)?r:ea(r,n(e))}function jm(e){return na(e,Nr,Lr)}function Bm(e){return na(e,_r,ta)}var jr=ut(Oe,"DataView"),Br=ut(Oe,"Promise"),Ur=ut(Oe,"Set"),$r=ut(Oe,"WeakMap"),ra="[object Map]",Um="[object Object]",ia="[object Promise]",oa="[object Set]",sa="[object WeakMap]",aa="[object DataView]",$m=lt(jr),zm=lt(Jt),Wm=lt(Br),Gm=lt(Ur),Hm=lt($r),Le=at;(jr&&Le(new jr(new ArrayBuffer(1)))!=aa||Jt&&Le(new Jt)!=ra||Br&&Le(Br.resolve())!=ia||Ur&&Le(new Ur)!=oa||$r&&Le(new $r)!=sa)&&(Le=function(e){var t=at(e),n=t==Um?e.constructor:void 0,r=n?lt(n):"";if(r)switch(r){case $m:return aa;case zm:return ra;case Wm:return ia;case Gm:return oa;case Hm:return sa}return t});var Km=Object.prototype,Ym=Km.hasOwnProperty;function Zm(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Ym.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ca=Oe.Uint8Array;function zr(e){var t=new e.constructor(e.byteLength);return new ca(t).set(new ca(e)),t}function Xm(e,t){var n=t?zr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var qm=/\w*$/;function Jm(e){var t=new e.constructor(e.source,qm.exec(e));return t.lastIndex=e.lastIndex,t}var la=Ze?Ze.prototype:void 0,ua=la?la.valueOf:void 0;function Qm(e){return ua?Object(ua.call(e)):{}}function eg(e,t){var n=t?zr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var tg="[object Boolean]",ng="[object Date]",rg="[object Map]",ig="[object Number]",og="[object RegExp]",sg="[object Set]",ag="[object String]",cg="[object Symbol]",lg="[object ArrayBuffer]",ug="[object DataView]",dg="[object Float32Array]",fg="[object Float64Array]",hg="[object Int8Array]",pg="[object Int16Array]",mg="[object Int32Array]",gg="[object Uint8Array]",yg="[object Uint8ClampedArray]",vg="[object Uint16Array]",bg="[object Uint32Array]";function wg(e,t,n){var r=e.constructor;switch(t){case lg:return zr(e);case tg:case ng:return new r(+e);case ug:return Xm(e,n);case dg:case fg:case hg:case pg:case mg:case gg:case yg:case vg:case bg:return eg(e,n);case rg:return new r;case ig:case ag:return new r(e);case og:return Jm(e);case sg:return new r;case cg:return Qm(e)}}var da=Object.create,Tg=function(){function e(){}return function(t){if(!qt(t))return{};if(da)return da(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function xg(e){return typeof e.constructor=="function"&&!Ir(e)?Tg(kr(e)):{}}var Sg="[object Map]";function Eg(e){return ct(e)&&Le(e)==Sg}var fa=Ot&&Ot.isMap,Ag=fa?Vr(fa):Eg,Cg="[object Set]";function Pg(e){return ct(e)&&Le(e)==Cg}var ha=Ot&&Ot.isSet,Mg=ha?Vr(ha):Pg,Dg=1,Og=2,kg=4,pa="[object Arguments]",Rg="[object Array]",Vg="[object Boolean]",Fg="[object Date]",Ig="[object Error]",ma="[object Function]",Ng="[object GeneratorFunction]",_g="[object Map]",Lg="[object Number]",ga="[object Object]",jg="[object RegExp]",Bg="[object Set]",Ug="[object String]",$g="[object Symbol]",zg="[object WeakMap]",Wg="[object ArrayBuffer]",Gg="[object DataView]",Hg="[object Float32Array]",Kg="[object Float64Array]",Yg="[object Int8Array]",Zg="[object Int16Array]",Xg="[object Int32Array]",qg="[object Uint8Array]",Jg="[object Uint8ClampedArray]",Qg="[object Uint16Array]",ey="[object Uint32Array]",G={};G[pa]=G[Rg]=G[Wg]=G[Gg]=G[Vg]=G[Fg]=G[Hg]=G[Kg]=G[Yg]=G[Zg]=G[Xg]=G[_g]=G[Lg]=G[ga]=G[jg]=G[Bg]=G[Ug]=G[$g]=G[qg]=G[Jg]=G[Qg]=G[ey]=!0,G[Ig]=G[ma]=G[zg]=!1;function nn(e,t,n,r,i,o){var s,a=t&Dg,c=t&Og,l=t&kg;if(s!==void 0)return s;if(!qt(e))return e;var u=en(e);if(u){if(s=Zm(e),!a)return qs(e,s)}else{var f=Le(e),d=f==ma||f==Ng;if(Us(e))return Rm(e,a);if(f==ga||f==pa||d&&!i){if(s=c||d?{}:xg(e),!a)return c?Lm(e,Om(s,e)):Nm(e,Am(s,e))}else{if(!G[f])return i?e:{};s=wg(e,f,a)}}o||(o=new Dt);var h=o.get(e);if(h)return h;o.set(e,s),Mg(e)?e.forEach(function(y){s.add(nn(y,t,n,y,e,o))}):Ag(e)&&e.forEach(function(y,v){s.set(v,nn(y,t,n,v,e,o))});var g=l?c?Bm:jm:c?_r:Nr,p=u?void 0:g(e);return Op(p||e,function(y,v){p&&(v=y,y=e[v]),Is(s,v,nn(y,t,n,v,e,o))}),s}var ty=1,ny=4;function rn(e){return nn(e,ty|ny)}function ya(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wr,va;function ry(){if(va)return Wr;va=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function i(o,s){if(o===s)return!0;if(o&&s&&typeof o=="object"&&typeof s=="object"){var a=e(o),c=e(s),l,u,f;if(a&&c){if(u=o.length,u!=s.length)return!1;for(l=u;l--!==0;)if(!i(o[l],s[l]))return!1;return!0}if(a!=c)return!1;var d=o instanceof Date,h=s instanceof Date;if(d!=h)return!1;if(d&&h)return o.getTime()==s.getTime();var g=o instanceof RegExp,p=s instanceof RegExp;if(g!=p)return!1;if(g&&p)return o.toString()==s.toString();var y=t(o);if(u=y.length,u!==t(s).length)return!1;for(l=u;l--!==0;)if(!n.call(s,y[l]))return!1;if(r&&o instanceof Element&&s instanceof Element)return o===s;for(l=u;l--!==0;)if(f=y[l],!(f==="_owner"&&o.$$typeof)&&!i(o[f],s[f]))return!1;return!0}return o!==o&&s!==s}return Wr=function(s,a){try{return i(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}},Wr}var iy=ry();const qe=ya(iy);var oy=process.env.NODE_ENV==="production";function ee(e,t){if(!oy){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var sy=4;function ba(e){return nn(e,sy)}function wa(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ay="[object Symbol]";function Gr(e){return typeof e=="symbol"||ct(e)&&at(e)==ay}var cy="Expected a function";function Hr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(cy);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Hr.Cache||Xe),n}Hr.Cache=Xe;var ly=500;function uy(e){var t=Hr(e,function(r){return n.size===ly&&n.clear(),r}),n=t.cache;return t}var dy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fy=/\\(\\)?/g,hy=uy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(dy,function(n,r,i,o){t.push(i?o.replace(fy,"$1"):r||n)}),t});function py(e){if(typeof e=="string"||Gr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ta=Ze?Ze.prototype:void 0,xa=Ta?Ta.toString:void 0;function Sa(e){if(typeof e=="string")return e;if(en(e))return wa(e,Sa)+"";if(Gr(e))return xa?xa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function my(e){return e==null?"":Sa(e)}function Ea(e){return en(e)?wa(e,py):Gr(e)?[e]:qs(hy(my(e)))}var jn={exports:{}},U={};/** @license React v16.13.1
109
+ `,dh="flex flex-col gap-y-6 whitespace-pre-line",fh="flex items-center justify-between m-0 text-2xl text-gray-800",hh="m-0",ph="h-8 w-8 cursor-pointer transition-colors hover:bg-gray-200 rounded-full flex items-center justify-center",mh="flex justify-end gap-2",gh=({title:e,description:t,isOpen:n,children:r,onClose:i})=>A.jsx(Qf,{open:n,children:A.jsxs(eh,{children:[A.jsx(th,{className:lh}),A.jsx(nh,{className:uh,children:A.jsx(Ro,{children:A.jsxs("div",{className:dh,children:[A.jsxs(rh,{className:fh,children:[A.jsx("span",{children:e}),A.jsx(kr,{size:32,className:ph,onClick:i})]}),A.jsx(ih,{className:hh,children:t}),A.jsx("div",{className:mh,children:r})]})})})]})});var yh=function(t){return vh(t)&&!bh(t)};function vh(e){return!!e&&typeof e=="object"}function bh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||xh(e)}var wh=typeof Symbol=="function"&&Symbol.for,Th=wh?Symbol.for("react.element"):60103;function xh(e){return e.$$typeof===Th}function Eh(e){return Array.isArray(e)?[]:{}}function Ln(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Yt(Eh(e),e,t):e}function Sh(e,t,n){return e.concat(t).map(function(r){return Ln(r,n)})}function Ah(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=Ln(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=Ln(t[i],n):r[i]=Yt(e[i],t[i],n)}),r}function Yt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Sh,n.isMergeableObject=n.isMergeableObject||yh;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Ah(e,t,n):Ln(t,n)}Yt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Yt(r,i,n)},{})};var Or=Yt,Cs=typeof global=="object"&&global&&global.Object===Object&&global,Ch=typeof self=="object"&&self&&self.Object===Object&&self,ke=Cs||Ch||Function("return this")(),Ye=ke.Symbol,Ps=Object.prototype,Ph=Ps.hasOwnProperty,Mh=Ps.toString,Xt=Ye?Ye.toStringTag:void 0;function Dh(e){var t=Ph.call(e,Xt),n=e[Xt];try{e[Xt]=void 0;var r=!0}catch{}var i=Mh.call(e);return r&&(t?e[Xt]=n:delete e[Xt]),i}var kh=Object.prototype,Oh=kh.toString;function Vh(e){return Oh.call(e)}var Fh="[object Null]",Rh="[object Undefined]",Ms=Ye?Ye.toStringTag:void 0;function ct(e){return e==null?e===void 0?Rh:Fh:Ms&&Ms in Object(e)?Dh(e):Vh(e)}function Ds(e,t){return function(n){return e(t(n))}}var Vr=Ds(Object.getPrototypeOf,Object);function lt(e){return e!=null&&typeof e=="object"}var Ih="[object Object]",Nh=Function.prototype,Lh=Object.prototype,ks=Nh.toString,_h=Lh.hasOwnProperty,jh=ks.call(Object);function Os(e){if(!lt(e)||ct(e)!=Ih)return!1;var t=Vr(e);if(t===null)return!0;var n=_h.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ks.call(n)==jh}function Bh(){this.__data__=[],this.size=0}function Vs(e,t){return e===t||e!==e&&t!==t}function _n(e,t){for(var n=e.length;n--;)if(Vs(e[n][0],t))return n;return-1}var $h=Array.prototype,Uh=$h.splice;function zh(e){var t=this.__data__,n=_n(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Uh.call(t,n,1),--this.size,!0}function Wh(e){var t=this.__data__,n=_n(t,e);return n<0?void 0:t[n][1]}function Gh(e){return _n(this.__data__,e)>-1}function Hh(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 Le(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])}}Le.prototype.clear=Bh,Le.prototype.delete=zh,Le.prototype.get=Wh,Le.prototype.has=Gh,Le.prototype.set=Hh;function Kh(){this.__data__=new Le,this.size=0}function Zh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yh(e){return this.__data__.get(e)}function Xh(e){return this.__data__.has(e)}function qt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qh="[object AsyncFunction]",Jh="[object Function]",Qh="[object GeneratorFunction]",ep="[object Proxy]";function Fs(e){if(!qt(e))return!1;var t=ct(e);return t==Jh||t==Qh||t==qh||t==ep}var Fr=ke["__core-js_shared__"],Rs=function(){var e=/[^.]+$/.exec(Fr&&Fr.keys&&Fr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tp(e){return!!Rs&&Rs in e}var np=Function.prototype,rp=np.toString;function ut(e){if(e!=null){try{return rp.call(e)}catch{}try{return e+""}catch{}}return""}var ip=/[\\^$.*+?()[\]{}|]/g,op=/^\[object .+?Constructor\]$/,sp=Function.prototype,ap=Object.prototype,cp=sp.toString,lp=ap.hasOwnProperty,up=RegExp("^"+cp.call(lp).replace(ip,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dp(e){if(!qt(e)||tp(e))return!1;var t=Fs(e)?up:op;return t.test(ut(e))}function fp(e,t){return e==null?void 0:e[t]}function dt(e,t){var n=fp(e,t);return dp(n)?n:void 0}var Jt=dt(ke,"Map"),Qt=dt(Object,"create");function hp(){this.__data__=Qt?Qt(null):{},this.size=0}function pp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mp="__lodash_hash_undefined__",gp=Object.prototype,yp=gp.hasOwnProperty;function vp(e){var t=this.__data__;if(Qt){var n=t[e];return n===mp?void 0:n}return yp.call(t,e)?t[e]:void 0}var bp=Object.prototype,wp=bp.hasOwnProperty;function Tp(e){var t=this.__data__;return Qt?t[e]!==void 0:wp.call(t,e)}var xp="__lodash_hash_undefined__";function Ep(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qt&&t===void 0?xp:t,this}function ft(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])}}ft.prototype.clear=hp,ft.prototype.delete=pp,ft.prototype.get=vp,ft.prototype.has=Tp,ft.prototype.set=Ep;function Sp(){this.size=0,this.__data__={hash:new ft,map:new(Jt||Le),string:new ft}}function Ap(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function jn(e,t){var n=e.__data__;return Ap(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Cp(e){var t=jn(this,e).delete(e);return this.size-=t?1:0,t}function Pp(e){return jn(this,e).get(e)}function Mp(e){return jn(this,e).has(e)}function Dp(e,t){var n=jn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Xe(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])}}Xe.prototype.clear=Sp,Xe.prototype.delete=Cp,Xe.prototype.get=Pp,Xe.prototype.has=Mp,Xe.prototype.set=Dp;var kp=200;function Op(e,t){var n=this.__data__;if(n instanceof Le){var r=n.__data__;if(!Jt||r.length<kp-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xe(r)}return n.set(e,t),this.size=n.size,this}function Ot(e){var t=this.__data__=new Le(e);this.size=t.size}Ot.prototype.clear=Kh,Ot.prototype.delete=Zh,Ot.prototype.get=Yh,Ot.prototype.has=Xh,Ot.prototype.set=Op;function Vp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Is=function(){try{var e=dt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ns(e,t,n){t=="__proto__"&&Is?Is(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Fp=Object.prototype,Rp=Fp.hasOwnProperty;function Ls(e,t,n){var r=e[t];(!(Rp.call(e,t)&&Vs(r,n))||n===void 0&&!(t in e))&&Ns(e,t,n)}function Bn(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=void 0;c===void 0&&(c=e[a]),i?Ns(n,a,c):Ls(n,a,c)}return n}function Ip(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Np="[object Arguments]";function _s(e){return lt(e)&&ct(e)==Np}var js=Object.prototype,Lp=js.hasOwnProperty,_p=js.propertyIsEnumerable,jp=_s(function(){return arguments}())?_s:function(e){return lt(e)&&Lp.call(e,"callee")&&!_p.call(e,"callee")},en=Array.isArray;function Bp(){return!1}var Bs=typeof Z=="object"&&Z&&!Z.nodeType&&Z,$s=Bs&&typeof module=="object"&&module&&!module.nodeType&&module,$p=$s&&$s.exports===Bs,Us=$p?ke.Buffer:void 0,Up=Us?Us.isBuffer:void 0,zs=Up||Bp,zp=9007199254740991,Wp=/^(?:0|[1-9]\d*)$/;function Gp(e,t){var n=typeof e;return t=t??zp,!!t&&(n=="number"||n!="symbol"&&Wp.test(e))&&e>-1&&e%1==0&&e<t}var Hp=9007199254740991;function Ws(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hp}var Kp="[object Arguments]",Zp="[object Array]",Yp="[object Boolean]",Xp="[object Date]",qp="[object Error]",Jp="[object Function]",Qp="[object Map]",em="[object Number]",tm="[object Object]",nm="[object RegExp]",rm="[object Set]",im="[object String]",om="[object WeakMap]",sm="[object ArrayBuffer]",am="[object DataView]",cm="[object Float32Array]",lm="[object Float64Array]",um="[object Int8Array]",dm="[object Int16Array]",fm="[object Int32Array]",hm="[object Uint8Array]",pm="[object Uint8ClampedArray]",mm="[object Uint16Array]",gm="[object Uint32Array]",H={};H[cm]=H[lm]=H[um]=H[dm]=H[fm]=H[hm]=H[pm]=H[mm]=H[gm]=!0,H[Kp]=H[Zp]=H[sm]=H[Yp]=H[am]=H[Xp]=H[qp]=H[Jp]=H[Qp]=H[em]=H[tm]=H[nm]=H[rm]=H[im]=H[om]=!1;function ym(e){return lt(e)&&Ws(e.length)&&!!H[ct(e)]}function Rr(e){return function(t){return e(t)}}var Gs=typeof Z=="object"&&Z&&!Z.nodeType&&Z,tn=Gs&&typeof module=="object"&&module&&!module.nodeType&&module,vm=tn&&tn.exports===Gs,Ir=vm&&Cs.process,Vt=function(){try{var e=tn&&tn.require&&tn.require("util").types;return e||Ir&&Ir.binding&&Ir.binding("util")}catch{}}(),Hs=Vt&&Vt.isTypedArray,bm=Hs?Rr(Hs):ym,wm=Object.prototype,Tm=wm.hasOwnProperty;function Ks(e,t){var n=en(e),r=!n&&jp(e),i=!n&&!r&&zs(e),o=!n&&!r&&!i&&bm(e),s=n||r||i||o,a=s?Ip(e.length,String):[],c=a.length;for(var l in e)(t||Tm.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Gp(l,c)))&&a.push(l);return a}var xm=Object.prototype;function Nr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||xm;return e===n}var Em=Ds(Object.keys,Object),Sm=Object.prototype,Am=Sm.hasOwnProperty;function Cm(e){if(!Nr(e))return Em(e);var t=[];for(var n in Object(e))Am.call(e,n)&&n!="constructor"&&t.push(n);return t}function Zs(e){return e!=null&&Ws(e.length)&&!Fs(e)}function Lr(e){return Zs(e)?Ks(e):Cm(e)}function Pm(e,t){return e&&Bn(t,Lr(t),e)}function Mm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Dm=Object.prototype,km=Dm.hasOwnProperty;function Om(e){if(!qt(e))return Mm(e);var t=Nr(e),n=[];for(var r in e)r=="constructor"&&(t||!km.call(e,r))||n.push(r);return n}function _r(e){return Zs(e)?Ks(e,!0):Om(e)}function Vm(e,t){return e&&Bn(t,_r(t),e)}var Ys=typeof Z=="object"&&Z&&!Z.nodeType&&Z,Xs=Ys&&typeof module=="object"&&module&&!module.nodeType&&module,Fm=Xs&&Xs.exports===Ys,qs=Fm?ke.Buffer:void 0,Js=qs?qs.allocUnsafe:void 0;function Rm(e,t){if(t)return e.slice();var n=e.length,r=Js?Js(n):new e.constructor(n);return e.copy(r),r}function Qs(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Im(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function ea(){return[]}var Nm=Object.prototype,Lm=Nm.propertyIsEnumerable,ta=Object.getOwnPropertySymbols,jr=ta?function(e){return e==null?[]:(e=Object(e),Im(ta(e),function(t){return Lm.call(e,t)}))}:ea;function _m(e,t){return Bn(e,jr(e),t)}function na(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var jm=Object.getOwnPropertySymbols,ra=jm?function(e){for(var t=[];e;)na(t,jr(e)),e=Vr(e);return t}:ea;function Bm(e,t){return Bn(e,ra(e),t)}function ia(e,t,n){var r=t(e);return en(e)?r:na(r,n(e))}function $m(e){return ia(e,Lr,jr)}function Um(e){return ia(e,_r,ra)}var Br=dt(ke,"DataView"),$r=dt(ke,"Promise"),Ur=dt(ke,"Set"),zr=dt(ke,"WeakMap"),oa="[object Map]",zm="[object Object]",sa="[object Promise]",aa="[object Set]",ca="[object WeakMap]",la="[object DataView]",Wm=ut(Br),Gm=ut(Jt),Hm=ut($r),Km=ut(Ur),Zm=ut(zr),_e=ct;(Br&&_e(new Br(new ArrayBuffer(1)))!=la||Jt&&_e(new Jt)!=oa||$r&&_e($r.resolve())!=sa||Ur&&_e(new Ur)!=aa||zr&&_e(new zr)!=ca)&&(_e=function(e){var t=ct(e),n=t==zm?e.constructor:void 0,r=n?ut(n):"";if(r)switch(r){case Wm:return la;case Gm:return oa;case Hm:return sa;case Km:return aa;case Zm:return ca}return t});var Ym=Object.prototype,Xm=Ym.hasOwnProperty;function qm(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Xm.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ua=ke.Uint8Array;function Wr(e){var t=new e.constructor(e.byteLength);return new ua(t).set(new ua(e)),t}function Jm(e,t){var n=t?Wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Qm=/\w*$/;function eg(e){var t=new e.constructor(e.source,Qm.exec(e));return t.lastIndex=e.lastIndex,t}var da=Ye?Ye.prototype:void 0,fa=da?da.valueOf:void 0;function tg(e){return fa?Object(fa.call(e)):{}}function ng(e,t){var n=t?Wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rg="[object Boolean]",ig="[object Date]",og="[object Map]",sg="[object Number]",ag="[object RegExp]",cg="[object Set]",lg="[object String]",ug="[object Symbol]",dg="[object ArrayBuffer]",fg="[object DataView]",hg="[object Float32Array]",pg="[object Float64Array]",mg="[object Int8Array]",gg="[object Int16Array]",yg="[object Int32Array]",vg="[object Uint8Array]",bg="[object Uint8ClampedArray]",wg="[object Uint16Array]",Tg="[object Uint32Array]";function xg(e,t,n){var r=e.constructor;switch(t){case dg:return Wr(e);case rg:case ig:return new r(+e);case fg:return Jm(e,n);case hg:case pg:case mg:case gg:case yg:case vg:case bg:case wg:case Tg:return ng(e,n);case og:return new r;case sg:case lg:return new r(e);case ag:return eg(e);case cg:return new r;case ug:return tg(e)}}var ha=Object.create,Eg=function(){function e(){}return function(t){if(!qt(t))return{};if(ha)return ha(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Sg(e){return typeof e.constructor=="function"&&!Nr(e)?Eg(Vr(e)):{}}var Ag="[object Map]";function Cg(e){return lt(e)&&_e(e)==Ag}var pa=Vt&&Vt.isMap,Pg=pa?Rr(pa):Cg,Mg="[object Set]";function Dg(e){return lt(e)&&_e(e)==Mg}var ma=Vt&&Vt.isSet,kg=ma?Rr(ma):Dg,Og=1,Vg=2,Fg=4,ga="[object Arguments]",Rg="[object Array]",Ig="[object Boolean]",Ng="[object Date]",Lg="[object Error]",ya="[object Function]",_g="[object GeneratorFunction]",jg="[object Map]",Bg="[object Number]",va="[object Object]",$g="[object RegExp]",Ug="[object Set]",zg="[object String]",Wg="[object Symbol]",Gg="[object WeakMap]",Hg="[object ArrayBuffer]",Kg="[object DataView]",Zg="[object Float32Array]",Yg="[object Float64Array]",Xg="[object Int8Array]",qg="[object Int16Array]",Jg="[object Int32Array]",Qg="[object Uint8Array]",ey="[object Uint8ClampedArray]",ty="[object Uint16Array]",ny="[object Uint32Array]",G={};G[ga]=G[Rg]=G[Hg]=G[Kg]=G[Ig]=G[Ng]=G[Zg]=G[Yg]=G[Xg]=G[qg]=G[Jg]=G[jg]=G[Bg]=G[va]=G[$g]=G[Ug]=G[zg]=G[Wg]=G[Qg]=G[ey]=G[ty]=G[ny]=!0,G[Lg]=G[ya]=G[Gg]=!1;function nn(e,t,n,r,i,o){var s,a=t&Og,c=t&Vg,l=t&Fg;if(s!==void 0)return s;if(!qt(e))return e;var u=en(e);if(u){if(s=qm(e),!a)return Qs(e,s)}else{var f=_e(e),d=f==ya||f==_g;if(zs(e))return Rm(e,a);if(f==va||f==ga||d&&!i){if(s=c||d?{}:Sg(e),!a)return c?Bm(e,Vm(s,e)):_m(e,Pm(s,e))}else{if(!G[f])return i?e:{};s=xg(e,f,a)}}o||(o=new Ot);var h=o.get(e);if(h)return h;o.set(e,s),kg(e)?e.forEach(function(y){s.add(nn(y,t,n,y,e,o))}):Pg(e)&&e.forEach(function(y,v){s.set(v,nn(y,t,n,v,e,o))});var g=l?c?Um:$m:c?_r:Lr,m=u?void 0:g(e);return Vp(m||e,function(y,v){m&&(v=y,y=e[v]),Ls(s,v,nn(y,t,n,v,e,o))}),s}var ry=1,iy=4;function rn(e){return nn(e,ry|iy)}function ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gr,wa;function oy(){if(wa)return Gr;wa=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function i(o,s){if(o===s)return!0;if(o&&s&&typeof o=="object"&&typeof s=="object"){var a=e(o),c=e(s),l,u,f;if(a&&c){if(u=o.length,u!=s.length)return!1;for(l=u;l--!==0;)if(!i(o[l],s[l]))return!1;return!0}if(a!=c)return!1;var d=o instanceof Date,h=s instanceof Date;if(d!=h)return!1;if(d&&h)return o.getTime()==s.getTime();var g=o instanceof RegExp,m=s instanceof RegExp;if(g!=m)return!1;if(g&&m)return o.toString()==s.toString();var y=t(o);if(u=y.length,u!==t(s).length)return!1;for(l=u;l--!==0;)if(!n.call(s,y[l]))return!1;if(r&&o instanceof Element&&s instanceof Element)return o===s;for(l=u;l--!==0;)if(f=y[l],!(f==="_owner"&&o.$$typeof)&&!i(o[f],s[f]))return!1;return!0}return o!==o&&s!==s}return Gr=function(s,a){try{return i(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}},Gr}var sy=oy();const qe=ba(sy);var ay=process.env.NODE_ENV==="production";function ee(e,t){if(!ay){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var cy=4;function Ta(e){return nn(e,cy)}function xa(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ly="[object Symbol]";function Hr(e){return typeof e=="symbol"||lt(e)&&ct(e)==ly}var uy="Expected a function";function Kr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(uy);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Kr.Cache||Xe),n}Kr.Cache=Xe;var dy=500;function fy(e){var t=Kr(e,function(r){return n.size===dy&&n.clear(),r}),n=t.cache;return t}var hy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,py=/\\(\\)?/g,my=fy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hy,function(n,r,i,o){t.push(i?o.replace(py,"$1"):r||n)}),t});function gy(e){if(typeof e=="string"||Hr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ea=Ye?Ye.prototype:void 0,Sa=Ea?Ea.toString:void 0;function Aa(e){if(typeof e=="string")return e;if(en(e))return xa(e,Aa)+"";if(Hr(e))return Sa?Sa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function yy(e){return e==null?"":Aa(e)}function Ca(e){return en(e)?xa(e,gy):Hr(e)?[e]:Qs(my(yy(e)))}var $n={exports:{}},$={};/** @license React v16.13.1
110
110
  * react-is.production.min.js
111
111
  *
112
112
  * Copyright (c) Facebook, Inc. and its affiliates.
113
113
  *
114
114
  * This source code is licensed under the MIT license found in the
115
115
  * LICENSE file in the root directory of this source tree.
116
- */var Aa;function gy(){if(Aa)return U;Aa=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,i=e?Symbol.for("react.strict_mode"):60108,o=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,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(b){if(typeof b=="object"&&b!==null){var C=b.$$typeof;switch(C){case t:switch(b=b.type,b){case c:case l:case r:case o:case i:case f:return b;default:switch(b=b&&b.$$typeof,b){case a:case u:case g:case h:case s:return b;default:return C}}case n:return C}}}function A(b){return T(b)===l}return U.AsyncMode=c,U.ConcurrentMode=l,U.ContextConsumer=a,U.ContextProvider=s,U.Element=t,U.ForwardRef=u,U.Fragment=r,U.Lazy=g,U.Memo=h,U.Portal=n,U.Profiler=o,U.StrictMode=i,U.Suspense=f,U.isAsyncMode=function(b){return A(b)||T(b)===c},U.isConcurrentMode=A,U.isContextConsumer=function(b){return T(b)===a},U.isContextProvider=function(b){return T(b)===s},U.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},U.isForwardRef=function(b){return T(b)===u},U.isFragment=function(b){return T(b)===r},U.isLazy=function(b){return T(b)===g},U.isMemo=function(b){return T(b)===h},U.isPortal=function(b){return T(b)===n},U.isProfiler=function(b){return T(b)===o},U.isStrictMode=function(b){return T(b)===i},U.isSuspense=function(b){return T(b)===f},U.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===l||b===o||b===i||b===f||b===d||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===s||b.$$typeof===a||b.$$typeof===u||b.$$typeof===y||b.$$typeof===v||b.$$typeof===S||b.$$typeof===p)},U.typeOf=T,U}var $={};/** @license React v16.13.1
116
+ */var Pa;function vy(){if(Pa)return $;Pa=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,i=e?Symbol.for("react.strict_mode"):60108,o=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,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function T(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 o:case i:case f:return b;default:switch(b=b&&b.$$typeof,b){case a:case u:case g:case h:case s:return b;default:return P}}case n:return P}}}function C(b){return T(b)===l}return $.AsyncMode=c,$.ConcurrentMode=l,$.ContextConsumer=a,$.ContextProvider=s,$.Element=t,$.ForwardRef=u,$.Fragment=r,$.Lazy=g,$.Memo=h,$.Portal=n,$.Profiler=o,$.StrictMode=i,$.Suspense=f,$.isAsyncMode=function(b){return C(b)||T(b)===c},$.isConcurrentMode=C,$.isContextConsumer=function(b){return T(b)===a},$.isContextProvider=function(b){return T(b)===s},$.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},$.isForwardRef=function(b){return T(b)===u},$.isFragment=function(b){return T(b)===r},$.isLazy=function(b){return T(b)===g},$.isMemo=function(b){return T(b)===h},$.isPortal=function(b){return T(b)===n},$.isProfiler=function(b){return T(b)===o},$.isStrictMode=function(b){return T(b)===i},$.isSuspense=function(b){return T(b)===f},$.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===l||b===o||b===i||b===f||b===d||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===s||b.$$typeof===a||b.$$typeof===u||b.$$typeof===y||b.$$typeof===v||b.$$typeof===E||b.$$typeof===m)},$.typeOf=T,$}var U={};/** @license React v16.13.1
117
117
  * react-is.development.js
118
118
  *
119
119
  * Copyright (c) Facebook, Inc. and its affiliates.
120
120
  *
121
121
  * This source code is licensed under the MIT license found in the
122
122
  * LICENSE file in the root directory of this source tree.
123
- */var Ca;function yy(){return Ca||(Ca=1,process.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,i=e?Symbol.for("react.strict_mode"):60108,o=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,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(V){return typeof V=="string"||typeof V=="function"||V===r||V===l||V===o||V===i||V===f||V===d||typeof V=="object"&&V!==null&&(V.$$typeof===g||V.$$typeof===h||V.$$typeof===s||V.$$typeof===a||V.$$typeof===u||V.$$typeof===y||V.$$typeof===v||V.$$typeof===S||V.$$typeof===p)}function A(V){if(typeof V=="object"&&V!==null){var Gt=V.$$typeof;switch(Gt){case t:var Ht=V.type;switch(Ht){case c:case l:case r:case o:case i:case f:return Ht;default:var ir=Ht&&Ht.$$typeof;switch(ir){case a:case u:case g:case h:case s:return ir;default:return Gt}}case n:return Gt}}}var b=c,C=l,M=a,E=s,N=t,K=u,he=r,Pe=g,ae=h,pe=n,Te=o,me=i,W=f,R=!1;function Me(V){return R||(R=!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.")),xe(V)||A(V)===c}function xe(V){return A(V)===l}function $e(V){return A(V)===a}function Se(V){return A(V)===s}function re(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function se(V){return A(V)===u}function ge(V){return A(V)===r}function wt(V){return A(V)===g}function q(V){return A(V)===h}function Tt(V){return A(V)===n}function ze(V){return A(V)===o}function We(V){return A(V)===i}function Ge(V){return A(V)===f}$.AsyncMode=b,$.ConcurrentMode=C,$.ContextConsumer=M,$.ContextProvider=E,$.Element=N,$.ForwardRef=K,$.Fragment=he,$.Lazy=Pe,$.Memo=ae,$.Portal=pe,$.Profiler=Te,$.StrictMode=me,$.Suspense=W,$.isAsyncMode=Me,$.isConcurrentMode=xe,$.isContextConsumer=$e,$.isContextProvider=Se,$.isElement=re,$.isForwardRef=se,$.isFragment=ge,$.isLazy=wt,$.isMemo=q,$.isPortal=Tt,$.isProfiler=ze,$.isStrictMode=We,$.isSuspense=Ge,$.isValidElementType=T,$.typeOf=A}()),$}var Pa;function vy(){return Pa||(Pa=1,process.env.NODE_ENV==="production"?jn.exports=gy():jn.exports=yy()),jn.exports}var Kr,Ma;function by(){if(Ma)return Kr;Ma=1;var e=vy(),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},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function s(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;function h(g,p,y){if(typeof p!="string"){if(d){var v=f(p);v&&v!==d&&h(g,v,y)}var S=c(p);l&&(S=S.concat(l(p)));for(var T=s(g),A=s(p),b=0;b<S.length;++b){var C=S[b];if(!n[C]&&!(y&&y[C])&&!(A&&A[C])&&!(T&&T[C])){var M=u(p,C);try{a(g,C,M)}catch{}}}}return g}return Kr=h,Kr}var wy=by();const Ty=ya(wy);function z(){return z=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},z.apply(this,arguments)}function Da(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Je(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Oa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Bn=x.createContext(void 0);Bn.displayName="FormikContext";var xy=Bn.Provider,Sy=Bn.Consumer;function kt(){var e=x.useContext(Bn);return e||(process.env.NODE_ENV!=="production"?ee(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):ee()),e}var ka=function(t){return Array.isArray(t)&&t.length===0},oe=function(t){return typeof t=="function"},Rt=function(t){return t!==null&&typeof t=="object"},Ey=function(t){return String(Math.floor(Number(t)))===t},Yr=function(t){return Object.prototype.toString.call(t)==="[object String]"},Zr=function(t){return x.Children.count(t)===0},Xr=function(t){return Rt(t)&&oe(t.then)};function Ay(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 Z(e,t,n,r){r===void 0&&(r=0);for(var i=Ea(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function ke(e,t,n){for(var r=ba(e),i=r,o=0,s=Ea(t);o<s.length-1;o++){var a=s[o],c=Z(e,s.slice(0,o+1));if(c&&(Rt(c)||Array.isArray(c)))i=i[a]=ba(c);else{var l=s[o+1];i=i[a]=Ey(l)&&Number(l)>=0?[]:{}}}return(o===0?e:i)[s[o]]===n?e:(n===void 0?delete i[s[o]]:i[s[o]]=n,o===0&&n===void 0&&delete r[s[o]],r)}function Ra(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var s=o[i],a=e[s];Rt(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},Ra(a,t,n,r[s])):r[s]=t}return r}function Cy(e,t){switch(t.type){case"SET_VALUES":return z({},e,{values:t.payload});case"SET_TOUCHED":return z({},e,{touched:t.payload});case"SET_ERRORS":return qe(e.errors,t.payload)?e:z({},e,{errors:t.payload});case"SET_STATUS":return z({},e,{status:t.payload});case"SET_ISSUBMITTING":return z({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return z({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return z({},e,{values:ke(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return z({},e,{touched:ke(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return z({},e,{errors:ke(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return z({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return z({},e,{touched:Ra(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return z({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return z({},e,{isSubmitting:!1});default:return e}}var ft={},Un={};function Py(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,i=r===void 0?!0:r,o=e.validateOnMount,s=o===void 0?!1:o,a=e.isInitialValid,c=e.enableReinitialize,l=c===void 0?!1:c,u=e.onSubmit,f=Je(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),d=z({validateOnChange:n,validateOnBlur:i,validateOnMount:s,onSubmit:u},f),h=x.useRef(d.initialValues),g=x.useRef(d.initialErrors||ft),p=x.useRef(d.initialTouched||Un),y=x.useRef(d.initialStatus),v=x.useRef(!1),S=x.useRef({});process.env.NODE_ENV!=="production"&&x.useEffect(function(){typeof a>"u"||(process.env.NODE_ENV!=="production"?ee(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):ee())},[]),x.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var T=x.useState(0),A=T[1],b=x.useRef({values:rn(d.initialValues),errors:rn(d.initialErrors)||ft,touched:rn(d.initialTouched)||Un,status:rn(d.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=b.current,M=x.useCallback(function(w){var D=b.current;b.current=Cy(D,w),D!==b.current&&A(function(F){return F+1})},[]),E=x.useCallback(function(w,D){return new Promise(function(F,I){var j=d.validate(w,D);j==null?F(ft):Xr(j)?j.then(function(B){F(B||ft)},function(B){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",B),I(B)}):F(j)})},[d.validate]),N=x.useCallback(function(w,D){var F=d.validationSchema,I=oe(F)?F(D):F,j=D&&I.validateAt?I.validateAt(D,w):Oy(w,I);return new Promise(function(B,ce){j.then(function(){B(ft)},function(Fe){Fe.name==="ValidationError"?B(Dy(Fe)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Fe),ce(Fe))})})},[d.validationSchema]),K=x.useCallback(function(w,D){return new Promise(function(F){return F(S.current[w].validate(D))})},[]),he=x.useCallback(function(w){var D=Object.keys(S.current).filter(function(I){return oe(S.current[I].validate)}),F=D.length>0?D.map(function(I){return K(I,Z(w,I))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(F).then(function(I){return I.reduce(function(j,B,ce){return B==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||B&&(j=ke(j,D[ce],B)),j},{})})},[K]),Pe=x.useCallback(function(w){return Promise.all([he(w),d.validationSchema?N(w):{},d.validate?E(w):{}]).then(function(D){var F=D[0],I=D[1],j=D[2],B=Or.all([F,I,j],{arrayMerge:ky});return B})},[d.validate,d.validationSchema,he,E,N]),ae=ye(function(w){return w===void 0&&(w=C.values),M({type:"SET_ISVALIDATING",payload:!0}),Pe(w).then(function(D){return v.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:D})),D})});x.useEffect(function(){s&&v.current===!0&&qe(h.current,d.initialValues)&&ae(h.current)},[s,ae]);var pe=x.useCallback(function(w){var D=w&&w.values?w.values:h.current,F=w&&w.errors?w.errors:g.current?g.current:d.initialErrors||{},I=w&&w.touched?w.touched:p.current?p.current:d.initialTouched||{},j=w&&w.status?w.status:y.current?y.current:d.initialStatus;h.current=D,g.current=F,p.current=I,y.current=j;var B=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!w&&!!w.isSubmitting,errors:F,touched:I,status:j,values:D,isValidating:!!w&&!!w.isValidating,submitCount:w&&w.submitCount&&typeof w.submitCount=="number"?w.submitCount:0}})};if(d.onReset){var ce=d.onReset(C.values,Gt);Xr(ce)?ce.then(B):B()}else B()},[d.initialErrors,d.initialStatus,d.initialTouched,d.onReset]);x.useEffect(function(){v.current===!0&&!qe(h.current,d.initialValues)&&l&&(h.current=d.initialValues,pe(),s&&ae(h.current))},[l,d.initialValues,pe,s,ae]),x.useEffect(function(){l&&v.current===!0&&!qe(g.current,d.initialErrors)&&(g.current=d.initialErrors||ft,M({type:"SET_ERRORS",payload:d.initialErrors||ft}))},[l,d.initialErrors]),x.useEffect(function(){l&&v.current===!0&&!qe(p.current,d.initialTouched)&&(p.current=d.initialTouched||Un,M({type:"SET_TOUCHED",payload:d.initialTouched||Un}))},[l,d.initialTouched]),x.useEffect(function(){l&&v.current===!0&&!qe(y.current,d.initialStatus)&&(y.current=d.initialStatus,M({type:"SET_STATUS",payload:d.initialStatus}))},[l,d.initialStatus,d.initialTouched]);var Te=ye(function(w){if(S.current[w]&&oe(S.current[w].validate)){var D=Z(C.values,w),F=S.current[w].validate(D);return Xr(F)?(M({type:"SET_ISVALIDATING",payload:!0}),F.then(function(I){return I}).then(function(I){M({type:"SET_FIELD_ERROR",payload:{field:w,value:I}}),M({type:"SET_ISVALIDATING",payload:!1})})):(M({type:"SET_FIELD_ERROR",payload:{field:w,value:F}}),Promise.resolve(F))}else if(d.validationSchema)return M({type:"SET_ISVALIDATING",payload:!0}),N(C.values,w).then(function(I){return I}).then(function(I){M({type:"SET_FIELD_ERROR",payload:{field:w,value:Z(I,w)}}),M({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),me=x.useCallback(function(w,D){var F=D.validate;S.current[w]={validate:F}},[]),W=x.useCallback(function(w){delete S.current[w]},[]),R=ye(function(w,D){M({type:"SET_TOUCHED",payload:w});var F=D===void 0?i:D;return F?ae(C.values):Promise.resolve()}),Me=x.useCallback(function(w){M({type:"SET_ERRORS",payload:w})},[]),xe=ye(function(w,D){var F=oe(w)?w(C.values):w;M({type:"SET_VALUES",payload:F});var I=D===void 0?n:D;return I?ae(F):Promise.resolve()}),$e=x.useCallback(function(w,D){M({type:"SET_FIELD_ERROR",payload:{field:w,value:D}})},[]),Se=ye(function(w,D,F){M({type:"SET_FIELD_VALUE",payload:{field:w,value:D}});var I=F===void 0?n:F;return I?ae(ke(C.values,w,D)):Promise.resolve()}),re=x.useCallback(function(w,D){var F=D,I=w,j;if(!Yr(w)){w.persist&&w.persist();var B=w.target?w.target:w.currentTarget,ce=B.type,Fe=B.name,po=B.id,mo=B.value,Y1=B.checked,Z1=B.outerHTML,Vu=B.options,X1=B.multiple;F=D||Fe||po,!F&&process.env.NODE_ENV!=="production"&&Va({htmlContent:Z1,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),I=/number|range/.test(ce)?(j=parseFloat(mo),isNaN(j)?"":j):/checkbox/.test(ce)?Vy(Z(C.values,F),Y1,mo):Vu&&X1?Ry(Vu):mo}F&&Se(F,I)},[Se,C.values]),se=ye(function(w){if(Yr(w))return function(D){return re(D,w)};re(w)}),ge=ye(function(w,D,F){D===void 0&&(D=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:w,value:D}});var I=F===void 0?i:F;return I?ae(C.values):Promise.resolve()}),wt=x.useCallback(function(w,D){w.persist&&w.persist();var F=w.target,I=F.name,j=F.id,B=F.outerHTML,ce=D||I||j;!ce&&process.env.NODE_ENV!=="production"&&Va({htmlContent:B,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),ge(ce,!0)},[ge]),q=ye(function(w){if(Yr(w))return function(D){return wt(D,w)};wt(w)}),Tt=x.useCallback(function(w){oe(w)?M({type:"SET_FORMIK_STATE",payload:w}):M({type:"SET_FORMIK_STATE",payload:function(){return w}})},[]),ze=x.useCallback(function(w){M({type:"SET_STATUS",payload:w})},[]),We=x.useCallback(function(w){M({type:"SET_ISSUBMITTING",payload:w})},[]),Ge=ye(function(){return M({type:"SUBMIT_ATTEMPT"}),ae().then(function(w){var D=w instanceof Error,F=!D&&Object.keys(w).length===0;if(F){var I;try{if(I=Ht(),I===void 0)return}catch(j){throw j}return Promise.resolve(I).then(function(j){return v.current&&M({type:"SUBMIT_SUCCESS"}),j}).catch(function(j){if(v.current)throw M({type:"SUBMIT_FAILURE"}),j})}else if(v.current&&(M({type:"SUBMIT_FAILURE"}),D))throw w})}),V=ye(function(w){if(w&&w.preventDefault&&oe(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&oe(w.stopPropagation)&&w.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var D=Ay();D!==null&&D instanceof HTMLButtonElement&&(D.attributes&&D.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?ee(!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"`.'):ee()))}Ge().catch(function(F){console.warn("Warning: An unhandled error was caught from submitForm()",F)})}),Gt={resetForm:pe,validateForm:ae,validateField:Te,setErrors:Me,setFieldError:$e,setFieldTouched:ge,setFieldValue:Se,setStatus:ze,setSubmitting:We,setTouched:R,setValues:xe,setFormikState:Tt,submitForm:Ge},Ht=ye(function(){return u(C.values,Gt)}),ir=ye(function(w){w&&w.preventDefault&&oe(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&oe(w.stopPropagation)&&w.stopPropagation(),pe()}),z1=x.useCallback(function(w){return{value:Z(C.values,w),error:Z(C.errors,w),touched:!!Z(C.touched,w),initialValue:Z(h.current,w),initialTouched:!!Z(p.current,w),initialError:Z(g.current,w)}},[C.errors,C.touched,C.values]),W1=x.useCallback(function(w){return{setValue:function(F,I){return Se(w,F,I)},setTouched:function(F,I){return ge(w,F,I)},setError:function(F){return $e(w,F)}}},[Se,ge,$e]),G1=x.useCallback(function(w){var D=Rt(w),F=D?w.name:w,I=Z(C.values,F),j={name:F,value:I,onChange:se,onBlur:q};if(D){var B=w.type,ce=w.value,Fe=w.as,po=w.multiple;B==="checkbox"?ce===void 0?j.checked=!!I:(j.checked=!!(Array.isArray(I)&&~I.indexOf(ce)),j.value=ce):B==="radio"?(j.checked=I===ce,j.value=ce):Fe==="select"&&po&&(j.value=j.value||[],j.multiple=!0)}return j},[q,se,C.values]),ho=x.useMemo(function(){return!qe(h.current,C.values)},[h.current,C.values]),H1=x.useMemo(function(){return typeof a<"u"?ho?C.errors&&Object.keys(C.errors).length===0:a!==!1&&oe(a)?a(d):a:C.errors&&Object.keys(C.errors).length===0},[a,ho,C.errors,d]),K1=z({},C,{initialValues:h.current,initialErrors:g.current,initialTouched:p.current,initialStatus:y.current,handleBlur:q,handleChange:se,handleReset:ir,handleSubmit:V,resetForm:pe,setErrors:Me,setFormikState:Tt,setFieldTouched:ge,setFieldValue:Se,setFieldError:$e,setStatus:ze,setSubmitting:We,setTouched:R,setValues:xe,submitForm:Ge,validateForm:ae,validateField:Te,isValid:H1,dirty:ho,unregisterField:W,registerField:me,getFieldProps:G1,getFieldMeta:z1,getFieldHelpers:W1,validateOnBlur:i,validateOnChange:n,validateOnMount:s});return K1}function My(e){var t=Py(e),n=e.component,r=e.children,i=e.render,o=e.innerRef;return x.useImperativeHandle(o,function(){return t}),process.env.NODE_ENV!=="production"&&x.useEffect(function(){e.render&&(process.env.NODE_ENV!=="production"?ee(!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>"):ee())},[]),x.createElement(xy,{value:t},n?x.createElement(n,t):i?i(t):r?oe(r)?r(t):Zr(r)?null:x.Children.only(r):null)}function Va(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+`
123
+ */var Ma;function by(){return Ma||(Ma=1,process.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,i=e?Symbol.for("react.strict_mode"):60108,o=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,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function T(F){return typeof F=="string"||typeof F=="function"||F===r||F===l||F===o||F===i||F===f||F===d||typeof F=="object"&&F!==null&&(F.$$typeof===g||F.$$typeof===h||F.$$typeof===s||F.$$typeof===a||F.$$typeof===u||F.$$typeof===y||F.$$typeof===v||F.$$typeof===E||F.$$typeof===m)}function C(F){if(typeof F=="object"&&F!==null){var Ht=F.$$typeof;switch(Ht){case t:var Kt=F.type;switch(Kt){case c:case l:case r:case o:case i:case f:return Kt;default:var sr=Kt&&Kt.$$typeof;switch(sr){case a:case u:case g:case h:case s:return sr;default:return Ht}}case n:return Ht}}}var b=c,P=l,M=a,S=s,N=t,K=u,he=r,Pe=g,ae=h,pe=n,Te=o,me=i,W=f,V=!1;function Me(F){return V||(V=!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.")),xe(F)||C(F)===c}function xe(F){return C(F)===l}function Ue(F){return C(F)===a}function Ee(F){return C(F)===s}function re(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function se(F){return C(F)===u}function ge(F){return C(F)===r}function xt(F){return C(F)===g}function q(F){return C(F)===h}function Et(F){return C(F)===n}function ze(F){return C(F)===o}function We(F){return C(F)===i}function Ge(F){return C(F)===f}U.AsyncMode=b,U.ConcurrentMode=P,U.ContextConsumer=M,U.ContextProvider=S,U.Element=N,U.ForwardRef=K,U.Fragment=he,U.Lazy=Pe,U.Memo=ae,U.Portal=pe,U.Profiler=Te,U.StrictMode=me,U.Suspense=W,U.isAsyncMode=Me,U.isConcurrentMode=xe,U.isContextConsumer=Ue,U.isContextProvider=Ee,U.isElement=re,U.isForwardRef=se,U.isFragment=ge,U.isLazy=xt,U.isMemo=q,U.isPortal=Et,U.isProfiler=ze,U.isStrictMode=We,U.isSuspense=Ge,U.isValidElementType=T,U.typeOf=C}()),U}var Da;function wy(){return Da||(Da=1,process.env.NODE_ENV==="production"?$n.exports=vy():$n.exports=by()),$n.exports}var Zr,ka;function Ty(){if(ka)return Zr;ka=1;var e=wy(),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},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function s(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;function h(g,m,y){if(typeof m!="string"){if(d){var v=f(m);v&&v!==d&&h(g,v,y)}var E=c(m);l&&(E=E.concat(l(m)));for(var T=s(g),C=s(m),b=0;b<E.length;++b){var P=E[b];if(!n[P]&&!(y&&y[P])&&!(C&&C[P])&&!(T&&T[P])){var M=u(m,P);try{a(g,P,M)}catch{}}}}return g}return Zr=h,Zr}var xy=Ty();const Ey=ba(xy);function z(){return z=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},z.apply(this,arguments)}function Oa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Je(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Va(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Un=x.createContext(void 0);Un.displayName="FormikContext";var Sy=Un.Provider,Ay=Un.Consumer;function ht(){var e=x.useContext(Un);return e||(process.env.NODE_ENV!=="production"?ee(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):ee()),e}var Fa=function(t){return Array.isArray(t)&&t.length===0},oe=function(t){return typeof t=="function"},Ft=function(t){return t!==null&&typeof t=="object"},Cy=function(t){return String(Math.floor(Number(t)))===t},Yr=function(t){return Object.prototype.toString.call(t)==="[object String]"},Xr=function(t){return x.Children.count(t)===0},qr=function(t){return Ft(t)&&oe(t.then)};function Py(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 Y(e,t,n,r){r===void 0&&(r=0);for(var i=Ca(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function Oe(e,t,n){for(var r=Ta(e),i=r,o=0,s=Ca(t);o<s.length-1;o++){var a=s[o],c=Y(e,s.slice(0,o+1));if(c&&(Ft(c)||Array.isArray(c)))i=i[a]=Ta(c);else{var l=s[o+1];i=i[a]=Cy(l)&&Number(l)>=0?[]:{}}}return(o===0?e:i)[s[o]]===n?e:(n===void 0?delete i[s[o]]:i[s[o]]=n,o===0&&n===void 0&&delete r[s[o]],r)}function Ra(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var s=o[i],a=e[s];Ft(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},Ra(a,t,n,r[s])):r[s]=t}return r}function My(e,t){switch(t.type){case"SET_VALUES":return z({},e,{values:t.payload});case"SET_TOUCHED":return z({},e,{touched:t.payload});case"SET_ERRORS":return qe(e.errors,t.payload)?e:z({},e,{errors:t.payload});case"SET_STATUS":return z({},e,{status:t.payload});case"SET_ISSUBMITTING":return z({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return z({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return z({},e,{values:Oe(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return z({},e,{touched:Oe(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return z({},e,{errors:Oe(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return z({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return z({},e,{touched:Ra(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return z({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return z({},e,{isSubmitting:!1});default:return e}}var pt={},zn={};function Dy(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,i=r===void 0?!0:r,o=e.validateOnMount,s=o===void 0?!1:o,a=e.isInitialValid,c=e.enableReinitialize,l=c===void 0?!1:c,u=e.onSubmit,f=Je(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),d=z({validateOnChange:n,validateOnBlur:i,validateOnMount:s,onSubmit:u},f),h=x.useRef(d.initialValues),g=x.useRef(d.initialErrors||pt),m=x.useRef(d.initialTouched||zn),y=x.useRef(d.initialStatus),v=x.useRef(!1),E=x.useRef({});process.env.NODE_ENV!=="production"&&x.useEffect(function(){typeof a>"u"||(process.env.NODE_ENV!=="production"?ee(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):ee())},[]),x.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var T=x.useState(0),C=T[1],b=x.useRef({values:rn(d.initialValues),errors:rn(d.initialErrors)||pt,touched:rn(d.initialTouched)||zn,status:rn(d.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),P=b.current,M=x.useCallback(function(w){var D=b.current;b.current=My(D,w),D!==b.current&&C(function(R){return R+1})},[]),S=x.useCallback(function(w,D){return new Promise(function(R,I){var j=d.validate(w,D);j==null?R(pt):qr(j)?j.then(function(B){R(B||pt)},function(B){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",B),I(B)}):R(j)})},[d.validate]),N=x.useCallback(function(w,D){var R=d.validationSchema,I=oe(R)?R(D):R,j=D&&I.validateAt?I.validateAt(D,w):Vy(w,I);return new Promise(function(B,ce){j.then(function(){B(pt)},function(Re){Re.name==="ValidationError"?B(Oy(Re)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Re),ce(Re))})})},[d.validationSchema]),K=x.useCallback(function(w,D){return new Promise(function(R){return R(E.current[w].validate(D))})},[]),he=x.useCallback(function(w){var D=Object.keys(E.current).filter(function(I){return oe(E.current[I].validate)}),R=D.length>0?D.map(function(I){return K(I,Y(w,I))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(R).then(function(I){return I.reduce(function(j,B,ce){return B==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||B&&(j=Oe(j,D[ce],B)),j},{})})},[K]),Pe=x.useCallback(function(w){return Promise.all([he(w),d.validationSchema?N(w):{},d.validate?S(w):{}]).then(function(D){var R=D[0],I=D[1],j=D[2],B=Or.all([R,I,j],{arrayMerge:Fy});return B})},[d.validate,d.validationSchema,he,S,N]),ae=ye(function(w){return w===void 0&&(w=P.values),M({type:"SET_ISVALIDATING",payload:!0}),Pe(w).then(function(D){return v.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:D})),D})});x.useEffect(function(){s&&v.current===!0&&qe(h.current,d.initialValues)&&ae(h.current)},[s,ae]);var pe=x.useCallback(function(w){var D=w&&w.values?w.values:h.current,R=w&&w.errors?w.errors:g.current?g.current:d.initialErrors||{},I=w&&w.touched?w.touched:m.current?m.current:d.initialTouched||{},j=w&&w.status?w.status:y.current?y.current:d.initialStatus;h.current=D,g.current=R,m.current=I,y.current=j;var B=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!w&&!!w.isSubmitting,errors:R,touched:I,status:j,values:D,isValidating:!!w&&!!w.isValidating,submitCount:w&&w.submitCount&&typeof w.submitCount=="number"?w.submitCount:0}})};if(d.onReset){var ce=d.onReset(P.values,Ht);qr(ce)?ce.then(B):B()}else B()},[d.initialErrors,d.initialStatus,d.initialTouched,d.onReset]);x.useEffect(function(){v.current===!0&&!qe(h.current,d.initialValues)&&l&&(h.current=d.initialValues,pe(),s&&ae(h.current))},[l,d.initialValues,pe,s,ae]),x.useEffect(function(){l&&v.current===!0&&!qe(g.current,d.initialErrors)&&(g.current=d.initialErrors||pt,M({type:"SET_ERRORS",payload:d.initialErrors||pt}))},[l,d.initialErrors]),x.useEffect(function(){l&&v.current===!0&&!qe(m.current,d.initialTouched)&&(m.current=d.initialTouched||zn,M({type:"SET_TOUCHED",payload:d.initialTouched||zn}))},[l,d.initialTouched]),x.useEffect(function(){l&&v.current===!0&&!qe(y.current,d.initialStatus)&&(y.current=d.initialStatus,M({type:"SET_STATUS",payload:d.initialStatus}))},[l,d.initialStatus,d.initialTouched]);var Te=ye(function(w){if(E.current[w]&&oe(E.current[w].validate)){var D=Y(P.values,w),R=E.current[w].validate(D);return qr(R)?(M({type:"SET_ISVALIDATING",payload:!0}),R.then(function(I){return I}).then(function(I){M({type:"SET_FIELD_ERROR",payload:{field:w,value:I}}),M({type:"SET_ISVALIDATING",payload:!1})})):(M({type:"SET_FIELD_ERROR",payload:{field:w,value:R}}),Promise.resolve(R))}else if(d.validationSchema)return M({type:"SET_ISVALIDATING",payload:!0}),N(P.values,w).then(function(I){return I}).then(function(I){M({type:"SET_FIELD_ERROR",payload:{field:w,value:Y(I,w)}}),M({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),me=x.useCallback(function(w,D){var R=D.validate;E.current[w]={validate:R}},[]),W=x.useCallback(function(w){delete E.current[w]},[]),V=ye(function(w,D){M({type:"SET_TOUCHED",payload:w});var R=D===void 0?i:D;return R?ae(P.values):Promise.resolve()}),Me=x.useCallback(function(w){M({type:"SET_ERRORS",payload:w})},[]),xe=ye(function(w,D){var R=oe(w)?w(P.values):w;M({type:"SET_VALUES",payload:R});var I=D===void 0?n:D;return I?ae(R):Promise.resolve()}),Ue=x.useCallback(function(w,D){M({type:"SET_FIELD_ERROR",payload:{field:w,value:D}})},[]),Ee=ye(function(w,D,R){M({type:"SET_FIELD_VALUE",payload:{field:w,value:D}});var I=R===void 0?n:R;return I?ae(Oe(P.values,w,D)):Promise.resolve()}),re=x.useCallback(function(w,D){var R=D,I=w,j;if(!Yr(w)){w.persist&&w.persist();var B=w.target?w.target:w.currentTarget,ce=B.type,Re=B.name,mo=B.id,go=B.value,tT=B.checked,nT=B.outerHTML,Ru=B.options,rT=B.multiple;R=D||Re||mo,!R&&process.env.NODE_ENV!=="production"&&Ia({htmlContent:nT,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),I=/number|range/.test(ce)?(j=parseFloat(go),isNaN(j)?"":j):/checkbox/.test(ce)?Iy(Y(P.values,R),tT,go):Ru&&rT?Ry(Ru):go}R&&Ee(R,I)},[Ee,P.values]),se=ye(function(w){if(Yr(w))return function(D){return re(D,w)};re(w)}),ge=ye(function(w,D,R){D===void 0&&(D=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:w,value:D}});var I=R===void 0?i:R;return I?ae(P.values):Promise.resolve()}),xt=x.useCallback(function(w,D){w.persist&&w.persist();var R=w.target,I=R.name,j=R.id,B=R.outerHTML,ce=D||I||j;!ce&&process.env.NODE_ENV!=="production"&&Ia({htmlContent:B,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),ge(ce,!0)},[ge]),q=ye(function(w){if(Yr(w))return function(D){return xt(D,w)};xt(w)}),Et=x.useCallback(function(w){oe(w)?M({type:"SET_FORMIK_STATE",payload:w}):M({type:"SET_FORMIK_STATE",payload:function(){return w}})},[]),ze=x.useCallback(function(w){M({type:"SET_STATUS",payload:w})},[]),We=x.useCallback(function(w){M({type:"SET_ISSUBMITTING",payload:w})},[]),Ge=ye(function(){return M({type:"SUBMIT_ATTEMPT"}),ae().then(function(w){var D=w instanceof Error,R=!D&&Object.keys(w).length===0;if(R){var I;try{if(I=Kt(),I===void 0)return}catch(j){throw j}return Promise.resolve(I).then(function(j){return v.current&&M({type:"SUBMIT_SUCCESS"}),j}).catch(function(j){if(v.current)throw M({type:"SUBMIT_FAILURE"}),j})}else if(v.current&&(M({type:"SUBMIT_FAILURE"}),D))throw w})}),F=ye(function(w){if(w&&w.preventDefault&&oe(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&oe(w.stopPropagation)&&w.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var D=Py();D!==null&&D instanceof HTMLButtonElement&&(D.attributes&&D.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?ee(!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"`.'):ee()))}Ge().catch(function(R){console.warn("Warning: An unhandled error was caught from submitForm()",R)})}),Ht={resetForm:pe,validateForm:ae,validateField:Te,setErrors:Me,setFieldError:Ue,setFieldTouched:ge,setFieldValue:Ee,setStatus:ze,setSubmitting:We,setTouched:V,setValues:xe,setFormikState:Et,submitForm:Ge},Kt=ye(function(){return u(P.values,Ht)}),sr=ye(function(w){w&&w.preventDefault&&oe(w.preventDefault)&&w.preventDefault(),w&&w.stopPropagation&&oe(w.stopPropagation)&&w.stopPropagation(),pe()}),Xw=x.useCallback(function(w){return{value:Y(P.values,w),error:Y(P.errors,w),touched:!!Y(P.touched,w),initialValue:Y(h.current,w),initialTouched:!!Y(m.current,w),initialError:Y(g.current,w)}},[P.errors,P.touched,P.values]),qw=x.useCallback(function(w){return{setValue:function(R,I){return Ee(w,R,I)},setTouched:function(R,I){return ge(w,R,I)},setError:function(R){return Ue(w,R)}}},[Ee,ge,Ue]),Jw=x.useCallback(function(w){var D=Ft(w),R=D?w.name:w,I=Y(P.values,R),j={name:R,value:I,onChange:se,onBlur:q};if(D){var B=w.type,ce=w.value,Re=w.as,mo=w.multiple;B==="checkbox"?ce===void 0?j.checked=!!I:(j.checked=!!(Array.isArray(I)&&~I.indexOf(ce)),j.value=ce):B==="radio"?(j.checked=I===ce,j.value=ce):Re==="select"&&mo&&(j.value=j.value||[],j.multiple=!0)}return j},[q,se,P.values]),po=x.useMemo(function(){return!qe(h.current,P.values)},[h.current,P.values]),Qw=x.useMemo(function(){return typeof a<"u"?po?P.errors&&Object.keys(P.errors).length===0:a!==!1&&oe(a)?a(d):a:P.errors&&Object.keys(P.errors).length===0},[a,po,P.errors,d]),eT=z({},P,{initialValues:h.current,initialErrors:g.current,initialTouched:m.current,initialStatus:y.current,handleBlur:q,handleChange:se,handleReset:sr,handleSubmit:F,resetForm:pe,setErrors:Me,setFormikState:Et,setFieldTouched:ge,setFieldValue:Ee,setFieldError:Ue,setStatus:ze,setSubmitting:We,setTouched:V,setValues:xe,submitForm:Ge,validateForm:ae,validateField:Te,isValid:Qw,dirty:po,unregisterField:W,registerField:me,getFieldProps:Jw,getFieldMeta:Xw,getFieldHelpers:qw,validateOnBlur:i,validateOnChange:n,validateOnMount:s});return eT}function ky(e){var t=Dy(e),n=e.component,r=e.children,i=e.render,o=e.innerRef;return x.useImperativeHandle(o,function(){return t}),process.env.NODE_ENV!=="production"&&x.useEffect(function(){e.render&&(process.env.NODE_ENV!=="production"?ee(!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>"):ee())},[]),x.createElement(Sy,{value:t},n?x.createElement(n,t):i?i(t):r?oe(r)?r(t):Xr(r)?null:x.Children.only(r):null)}function Ia(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+`
124
124
  Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+n+`
125
- `)}function Dy(e){var t={};if(e.inner){if(e.inner.length===0)return ke(t,e.path,e.message);for(var i=e.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var o;if(n){if(r>=i.length)break;o=i[r++]}else{if(r=i.next(),r.done)break;o=r.value}var s=o;Z(t,s.path)||(t=ke(t,s.path,s.message))}}return t}function Oy(e,t,n,r){n===void 0&&(n=!1);var i=qr(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function qr(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(i){return Array.isArray(i)===!0||Ds(i)?qr(i):i!==""?i:void 0}):Ds(e[r])?t[r]=qr(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function ky(e,t,n){var r=e.slice();return t.forEach(function(o,s){if(typeof r[s]>"u"){var a=n.clone!==!1,c=a&&n.isMergeableObject(o);r[s]=c?Or(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[s]=Or(e[s],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function Ry(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Vy(e,t,n){if(typeof e=="boolean")return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),i=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}var Fy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?x.useLayoutEffect:x.useEffect;function ye(e){var t=x.useRef(e);return Fy(function(){t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}function $n(e){var t=kt(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,o=t.registerField,s=t.unregisterField,a=Rt(e),c=a?e:{name:e},l=c.name,u=c.validate;x.useEffect(function(){return l&&o(l,{validate:u}),function(){l&&s(l)}},[o,s,l,u]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?ee(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):ee())),l||(process.env.NODE_ENV!=="production"?ee(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):ee());var f=x.useMemo(function(){return i(l)},[i,l]);return[n(c),r(l),f]}function Fa(e){var t=e.validate,n=e.name,r=e.render,i=e.children,o=e.as,s=e.component,a=e.className,c=Je(e,["validate","name","render","children","as","component","className"]),l=kt(),u=Je(l,["validate","validationSchema"]);process.env.NODE_ENV!=="production"&&x.useEffect(function(){r&&(process.env.NODE_ENV!=="production"?ee(!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>'):ee()),o&&i&&oe(i)&&(process.env.NODE_ENV!=="production"?ee(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):ee()),s&&i&&oe(i)&&(process.env.NODE_ENV!=="production"?ee(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):ee()),r&&i&&!Zr(i)&&(process.env.NODE_ENV!=="production"?ee(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):ee())},[]);var f=u.registerField,d=u.unregisterField;x.useEffect(function(){return f(n,{validate:t}),function(){d(n)}},[f,d,n,t]);var h=u.getFieldProps(z({name:n},c)),g=u.getFieldMeta(n),p={field:h,form:u};if(r)return r(z({},p,{meta:g}));if(oe(i))return i(z({},p,{meta:g}));if(s){if(typeof s=="string"){var y=c.innerRef,v=Je(c,["innerRef"]);return x.createElement(s,z({ref:y},h,v,{className:a}),i)}return x.createElement(s,z({field:h,form:u},c,{className:a}),i)}var S=o||"input";if(typeof S=="string"){var T=c.innerRef,A=Je(c,["innerRef"]);return x.createElement(S,z({ref:T},h,A,{className:a}),i)}return x.createElement(S,z({},h,c,{className:a}),i)}var Iy=x.forwardRef(function(e,t){var n=e.action,r=Je(e,["action"]),i=n??"#",o=kt(),s=o.handleReset,a=o.handleSubmit;return x.createElement("form",z({onSubmit:a,ref:t,onReset:s,action:i},r))});Iy.displayName="Form";function Ny(e){var t=function(i){return x.createElement(Sy,null,function(o){return o||(process.env.NODE_ENV!=="production"?ee(!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):ee()),x.createElement(e,z({},i,{formik:o}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",Ty(t,e)}var _y=function(t,n,r){var i=ht(t),o=i[n];return i.splice(n,1),i.splice(r,0,o),i},Ly=function(t,n,r){var i=ht(t),o=i[n];return i[n]=i[r],i[r]=o,i},Jr=function(t,n,r){var i=ht(t);return i.splice(n,0,r),i},jy=function(t,n,r){var i=ht(t);return i[n]=r,i},ht=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,i){return i>r?i:r},0);return Array.from(z({},t,{length:n+1}))}else return[]},Ia=function(t,n){var r=typeof t=="function"?t:n;return function(i){if(Array.isArray(i)||Rt(i)){var o=ht(i);return r(o)}return i}},By=function(e){Da(t,e);function t(r){var i;return i=e.call(this,r)||this,i.updateArrayField=function(o,s,a){var c=i.props,l=c.name,u=c.formik.setFormikState;u(function(f){var d=Ia(a,o),h=Ia(s,o),g=ke(f.values,l,o(Z(f.values,l))),p=a?d(Z(f.errors,l)):void 0,y=s?h(Z(f.touched,l)):void 0;return ka(p)&&(p=void 0),ka(y)&&(y=void 0),z({},f,{values:g,errors:a?ke(f.errors,l,p):f.errors,touched:s?ke(f.touched,l,y):f.touched})})},i.push=function(o){return i.updateArrayField(function(s){return[].concat(ht(s),[rn(o)])},!1,!1)},i.handlePush=function(o){return function(){return i.push(o)}},i.swap=function(o,s){return i.updateArrayField(function(a){return Ly(a,o,s)},!0,!0)},i.handleSwap=function(o,s){return function(){return i.swap(o,s)}},i.move=function(o,s){return i.updateArrayField(function(a){return _y(a,o,s)},!0,!0)},i.handleMove=function(o,s){return function(){return i.move(o,s)}},i.insert=function(o,s){return i.updateArrayField(function(a){return Jr(a,o,s)},function(a){return Jr(a,o,null)},function(a){return Jr(a,o,null)})},i.handleInsert=function(o,s){return function(){return i.insert(o,s)}},i.replace=function(o,s){return i.updateArrayField(function(a){return jy(a,o,s)},!1,!1)},i.handleReplace=function(o,s){return function(){return i.replace(o,s)}},i.unshift=function(o){var s=-1;return i.updateArrayField(function(a){var c=a?[o].concat(a):[o];return s=c.length,c},function(a){return a?[null].concat(a):[null]},function(a){return a?[null].concat(a):[null]}),s},i.handleUnshift=function(o){return function(){return i.unshift(o)}},i.handleRemove=function(o){return function(){return i.remove(o)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(Oa(i)),i.pop=i.pop.bind(Oa(i)),i}var n=t.prototype;return n.componentDidUpdate=function(i){this.props.validateOnChange&&this.props.formik.validateOnChange&&!qe(Z(i.formik.values,i.name),Z(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(i){var o;return this.updateArrayField(function(s){var a=s?ht(s):[];return o||(o=a[i]),oe(a.splice)&&a.splice(i,1),oe(a.every)&&a.every(function(c){return c===void 0})?[]:a},!0,!0),o},n.pop=function(){var i;return this.updateArrayField(function(o){var s=o.slice();return i||(i=s&&s.pop&&s.pop()),s},!0,!0),i},n.render=function(){var i={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},o=this.props,s=o.component,a=o.render,c=o.children,l=o.name,u=o.formik,f=Je(u,["validate","validationSchema"]),d=z({},i,{form:f,name:l});return s?x.createElement(s,d):a?a(d):c?typeof c=="function"?c(d):Zr(c)?null:x.Children.only(c):null},t}(x.Component);By.defaultProps={validateOnChange:!0};var Uy=function(e){Da(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(i){return Z(this.props.formik.errors,this.props.name)!==Z(i.formik.errors,this.props.name)||Z(this.props.formik.touched,this.props.name)!==Z(i.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(i).length},n.render=function(){var i=this.props,o=i.component,s=i.formik,a=i.render,c=i.children,l=i.name,u=Je(i,["component","formik","render","children","name"]),f=Z(s.touched,l),d=Z(s.errors,l);return f&&d?a?oe(a)?a(d):null:c?oe(c)?c(d):null:o?x.createElement(o,u,d):d:null},t}(x.Component),Na=Ny(Uy);const _a=x.createContext({}),Qr=()=>x.useContext(_a),$y="w-full",La="flex mx-4 mt-2 text-xs text-feedback-danger-200";function zy({disableOnSubmit:e,disableOnNotDirty:t,isDisabled:n,...r}){const{isSubmitting:i,dirty:o}=kt(),{isForcedDirty:s,onNavigationEvent:a}=Qr(),c=u=>{a(()=>r.onClick)},l=x.useMemo(()=>!!(n||e&&i||t&&!o||t&&typeof s=="boolean"&&!s),[e,t,n,i,s,o]);return P.jsx(dr,{...r,isDisabled:l,onClick:r.type!=="submit"&&(o||typeof s<"u"&&s)?c:r.onClick})}const ja=x.createContext({});function Wy(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const ei=typeof window<"u",Gy=ei?x.useLayoutEffect:x.useEffect,ti=x.createContext(null);function ni(e,t){e.indexOf(t)===-1&&e.push(t)}function ri(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const je=(e,t,n)=>n>t?t:n<e?e:n;function ii(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Vt=()=>{},Be=()=>{};process.env.NODE_ENV!=="production"&&(Vt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ii(t,n))},Be=(e,t,n)=>{if(!e)throw new Error(ii(t,n))});const Ue={},Ba=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ua(e){return typeof e=="object"&&e!==null}const $a=e=>/^0[^.\s]+$/u.test(e);function oi(e){let t;return()=>(t===void 0&&(t=e()),t)}const ve=e=>e,Hy=(e,t)=>n=>t(e(n)),on=(...e)=>e.reduce(Hy),sn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class si{constructor(){this.subscriptions=[]}add(t){return ni(this.subscriptions,t),()=>ri(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ae=e=>e*1e3,Re=e=>e/1e3;function za(e,t){return t?e*(1e3/t):0}const Wa=new Set;function ai(e,t,n){e||Wa.has(t)||(console.warn(ii(t,n)),Wa.add(t))}const Ga=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ky=1e-7,Yy=12;function Zy(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Ga(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Ky&&++a<Yy);return s}function an(e,t,n,r){if(e===t&&n===r)return ve;const i=o=>Zy(o,0,1,e,n);return o=>o===0||o===1?o:Ga(i(o),t,r)}const Ha=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ka=e=>t=>1-e(1-t),Ya=an(.33,1.53,.69,.99),ci=Ka(Ya),Za=Ha(ci),Xa=e=>(e*=2)<1?.5*ci(e):.5*(2-Math.pow(2,-10*(e-1))),li=e=>1-Math.sin(Math.acos(e)),qa=Ka(li),Ja=Ha(li),Xy=an(.42,0,1,1),qy=an(0,0,.58,1),Qa=an(.42,0,.58,1),Jy=e=>Array.isArray(e)&&typeof e[0]!="number",ec=e=>Array.isArray(e)&&typeof e[0]=="number",tc={linear:ve,easeIn:Xy,easeInOut:Qa,easeOut:qy,circIn:li,circInOut:Ja,circOut:qa,backIn:ci,backInOut:Za,backOut:Ya,anticipate:Xa},Qy=e=>typeof e=="string",nc=e=>{if(ec(e)){Be(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return an(t,n,r,i)}else if(Qy(e))return Be(tc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),tc[e];return e},zn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ev(e,t){let n=new Set,r=new Set,i=!1,o=!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,f=!1,d=!1)=>{const g=d&&i?n:r;return f&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,o&&(o=!1,l.process(u))}};return l}const tv=40;function rc(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=zn.reduce((T,A)=>(T[A]=ev(o),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:d,render:h,postRender:g}=s,p=()=>{const T=Ue.useManualTiming?i.timestamp:performance.now();n=!1,Ue.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(T-i.timestamp,tv),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),f.process(i),d.process(i),h.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},y=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:zn.reduce((T,A)=>{const b=s[A];return T[A]=(C,M=!1,E=!1)=>(n||y(),b.schedule(C,M,E)),T},{}),cancel:T=>{for(let A=0;A<zn.length;A++)s[zn[A]].cancel(T)},state:i,steps:s}}const{schedule:X,cancel:Qe,state:le,steps:ui}=rc(typeof requestAnimationFrame<"u"?requestAnimationFrame:ve,!0);let Wn;function nv(){Wn=void 0}const fe={now:()=>(Wn===void 0&&fe.set(le.isProcessing||Ue.useManualTiming?le.timestamp:performance.now()),Wn),set:e=>{Wn=e,queueMicrotask(nv)}},ic=e=>t=>typeof t=="string"&&t.startsWith(e),di=ic("--"),rv=ic("var(--"),fi=e=>rv(e)?iv.test(e.split("/*")[0].trim()):!1,iv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ft={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},cn={...Ft,transform:e=>je(0,1,e)},Gn={...Ft,default:1},ln=e=>Math.round(e*1e5)/1e5,hi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ov(e){return e==null}const sv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pi=(e,t)=>n=>!!(typeof n=="string"&&sv.test(n)&&n.startsWith(e)||t&&!ov(n)&&Object.prototype.hasOwnProperty.call(n,t)),oc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(hi);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},av=e=>je(0,255,e),mi={...Ft,transform:e=>Math.round(av(e))},pt={test:pi("rgb","red"),parse:oc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+mi.transform(e)+", "+mi.transform(t)+", "+mi.transform(n)+", "+ln(cn.transform(r))+")"};function cv(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const gi={test:pi("#"),parse:cv,transform:pt.transform},un=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),et=un("deg"),Ve=un("%"),_=un("px"),lv=un("vh"),uv=un("vw"),sc={...Ve,parse:e=>Ve.parse(e)/100,transform:e=>Ve.transform(e*100)},It={test:pi("hsl","hue"),parse:oc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ve.transform(ln(t))+", "+Ve.transform(ln(n))+", "+ln(cn.transform(r))+")"},ne={test:e=>pt.test(e)||gi.test(e)||It.test(e),parse:e=>pt.test(e)?pt.parse(e):It.test(e)?It.parse(e):gi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pt.transform(e):It.transform(e),getAnimatableNone:e=>{const t=ne.parse(e);return t.alpha=0,ne.transform(t)}},dv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fv(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(hi))==null?void 0:t.length)||0)+(((n=e.match(dv))==null?void 0:n.length)||0)>0}const ac="number",cc="color",hv="var",pv="var(",lc="${}",mv=/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 dn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(mv,c=>(ne.test(c)?(r.color.push(o),i.push(cc),n.push(ne.parse(c))):c.startsWith(pv)?(r.var.push(o),i.push(hv),n.push(c)):(r.number.push(o),i.push(ac),n.push(parseFloat(c))),++o,lc)).split(lc);return{values:n,split:a,indexes:r,types:i}}function uc(e){return dn(e).values}function dc(e){const{split:t,types:n}=dn(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===ac?o+=ln(i[s]):a===cc?o+=ne.transform(i[s]):o+=i[s]}return o}}const gv=e=>typeof e=="number"?0:ne.test(e)?ne.getAnimatableNone(e):e;function yv(e){const t=uc(e);return dc(e)(t.map(gv))}const tt={test:fv,parse:uc,createTransformer:dc,getAnimatableNone:yv};function yi(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 vv({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;i=yi(c,a,e+1/3),o=yi(c,a,e),s=yi(c,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Hn(e,t){return n=>n>0?t:e}const J=(e,t,n)=>e+(t-e)*n,vi=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},bv=[gi,pt,It],wv=e=>bv.find(t=>t.test(e));function fc(e){const t=wv(e);if(Vt(!!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===It&&(n=vv(n)),n}const hc=(e,t)=>{const n=fc(e),r=fc(t);if(!n||!r)return Hn(e,t);const i={...n};return o=>(i.red=vi(n.red,r.red,o),i.green=vi(n.green,r.green,o),i.blue=vi(n.blue,r.blue,o),i.alpha=J(n.alpha,r.alpha,o),pt.transform(i))},bi=new Set(["none","hidden"]);function Tv(e,t){return bi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function xv(e,t){return n=>J(e,t,n)}function wi(e){return typeof e=="number"?xv:typeof e=="string"?fi(e)?Hn:ne.test(e)?hc:Av:Array.isArray(e)?pc:typeof e=="object"?ne.test(e)?hc:Sv:Hn}function pc(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>wi(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Sv(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=wi(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Ev(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}const Av=(e,t)=>{const n=tt.createTransformer(t),r=dn(e),i=dn(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?bi.has(e)&&!i.values.length||bi.has(t)&&!r.values.length?Tv(e,t):on(pc(Ev(r,i),i.values),n):(Vt(!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"),Hn(e,t))};function mc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):wi(e)(e,t)}const Cv=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>X.update(t,n),stop:()=>Qe(t),now:()=>le.isProcessing?le.timestamp:fe.now()}},gc=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Kn=2e4;function Ti(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Kn;)t+=n,r=e.next(t);return t>=Kn?1/0:t}function Pv(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Ti(r),Kn);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Re(i)}}const Mv=5;function yc(e,t,n){const r=Math.max(t-Mv,0);return za(n-e(r),t-r)}const Q={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},vc=.001;function Dv({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:r=Q.mass}){let i,o;Vt(e<=Ae(Q.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=je(Q.minDamping,Q.maxDamping,s),e=je(Q.minDuration,Q.maxDuration,Re(e)),s<1?(i=l=>{const u=l*s,f=u*e,d=u-n,h=xi(l,s),g=Math.exp(-f);return vc-d/h*g},o=l=>{const f=l*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(l,2)*e,g=Math.exp(-f),p=xi(Math.pow(l,2),s);return(-i(l)+vc>0?-1:1)*((d-h)*g)/p}):(i=l=>{const u=Math.exp(-l*e),f=(l-n)*e+1;return-.001+u*f},o=l=>{const u=Math.exp(-l*e),f=(n-l)*(e*e);return u*f});const a=5/e,c=kv(i,o,a);if(e=Ae(e),isNaN(c))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Ov=12;function kv(e,t,n){let r=n;for(let i=1;i<Ov;i++)r=r-e(r)/t(r);return r}function xi(e,t){return e*Math.sqrt(1-t*t)}const Rv=["duration","bounce"],Vv=["stiffness","damping","mass"];function bc(e,t){return t.some(n=>e[n]!==void 0)}function Fv(e){let t={velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1,...e};if(!bc(e,Vv)&&bc(e,Rv))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*je(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Q.mass,stiffness:i,damping:o}}else{const n=Dv(e);t={...t,...n,mass:Q.mass},t.isResolvedFromDuration=!0}return t}function Yn(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:l,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=Fv({...n,velocity:-Re(n.velocity||0)}),g=d||0,p=l/(2*Math.sqrt(c*u)),y=s-o,v=Re(Math.sqrt(c/u)),S=Math.abs(y)<5;r||(r=S?Q.restSpeed.granular:Q.restSpeed.default),i||(i=S?Q.restDelta.granular:Q.restDelta.default);let T;if(p<1){const b=xi(v,p);T=C=>{const M=Math.exp(-p*v*C);return s-M*((g+p*v*y)/b*Math.sin(b*C)+y*Math.cos(b*C))}}else if(p===1)T=b=>s-Math.exp(-v*b)*(y+(g+v*y)*b);else{const b=v*Math.sqrt(p*p-1);T=C=>{const M=Math.exp(-p*v*C),E=Math.min(b*C,300);return s-M*((g+p*v*y)*Math.sinh(E)+b*y*Math.cosh(E))/b}}const A={calculatedDuration:h&&f||null,next:b=>{const C=T(b);if(h)a.done=b>=f;else{let M=b===0?g:0;p<1&&(M=b===0?Ae(g):yc(T,b,C));const E=Math.abs(M)<=r,N=Math.abs(s-C)<=i;a.done=E&&N}return a.value=a.done?s:C,a},toString:()=>{const b=Math.min(Ti(A),Kn),C=gc(M=>A.next(b*M).value,b,30);return b+"ms "+C},toTransition:()=>{}};return A}Yn.applyToOptions=e=>{const t=Pv(e,100,Yn);return e.ease=t.ease,e.duration=Ae(t.duration),e.type="keyframes",e};function Si({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},h=E=>a!==void 0&&E<a||c!==void 0&&E>c,g=E=>a===void 0?c:c===void 0||Math.abs(a-E)<Math.abs(c-E)?a:c;let p=n*t;const y=f+p,v=s===void 0?y:s(y);v!==y&&(p=v-f);const S=E=>-p*Math.exp(-E/r),T=E=>v+S(E),A=E=>{const N=S(E),K=T(E);d.done=Math.abs(N)<=l,d.value=d.done?v:K};let b,C;const M=E=>{h(d.value)&&(b=E,C=Yn({keyframes:[d.value,g(d.value)],velocity:yc(T,E,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return M(0),{calculatedDuration:null,next:E=>{let N=!1;return!C&&b===void 0&&(N=!0,A(E),M(E)),b!==void 0&&E>=b?C.next(E-b):(!N&&A(E),d)}}}function Iv(e,t,n){const r=[],i=n||Ue.mix||mc,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||ve:t;a=on(c,a)}r.push(a)}return r}function Nv(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Be(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Iv(t,r,i),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const d=sn(e[f],e[f+1],u);return a[f](d)};return n?u=>l(je(e[0],e[o-1],u)):l}function _v(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=sn(0,t,r);e.push(J(n,1,i))}}function Lv(e){const t=[0];return _v(t,e.length-1),t}function jv(e,t){return e.map(n=>n*t)}function Bv(e,t){return e.map(()=>t||Qa).splice(0,e.length-1)}function Nt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Jy(r)?r.map(nc):nc(r),o={done:!1,value:t[0]},s=jv(n&&n.length===t.length?n:Lv(t),e),a=Nv(s,t,{ease:Array.isArray(i)?i:Bv(t,i)});return{calculatedDuration:e,next:c=>(o.value=a(c),o.done=c>=e,o)}}const Uv=e=>e!==null;function Ei(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(Uv),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const $v={decay:Si,inertia:Si,tween:Nt,keyframes:Nt,spring:Yn};function wc(e){typeof e.type=="string"&&(e.type=$v[e.type])}class Ai{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 zv=e=>e/100;class Ci extends Ai{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,i;const{motionValue:n}=this.options;n&&n.updatedAt!==fe.now()&&this.tick(fe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;wc(t);const{type:n=Nt,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Nt;process.env.NODE_ENV!=="production"&&c!==Nt&&Be(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Nt&&typeof a[0]!="number"&&(this.mixKeyframes=on(zv,mc(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Ti(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,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:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:f,repeatType:d,repeatDelay:h,type:g,onUpdate:p,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,A=r;if(f){const E=Math.min(this.currentTime,i)/a;let N=Math.floor(E),K=E%1;!K&&E>=1&&(K=1),K===1&&N--,N=Math.min(N,f+1),!!(N%2)&&(d==="reverse"?(K=1-K,h&&(K-=h/a)):d==="mirror"&&(A=s)),T=je(0,1,K)*a}const b=S?{done:!1,value:u[0]}:A.next(T);o&&(b.value=o(b.value));let{done:C}=b;!S&&c!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return M&&g!==Si&&(b.value=Ei(u,this.options,y,this.speed)),p&&p(b.value),M&&this.finish(),b}then(t,n){return this.finished.then(t,n)}get duration(){return Re(this.calculatedDuration)}get time(){return Re(this.currentTime)}set time(t){var n;t=Ae(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(fe.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Re(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=Cv,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(o=(i=this.options).onPlay)==null||o.call(i);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(fe.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 Wv(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const mt=e=>e*180/Math.PI,Pi=e=>{const t=mt(Math.atan2(e[1],e[0]));return Mi(t)},Gv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Pi,rotateZ:Pi,skewX:e=>mt(Math.atan(e[1])),skewY:e=>mt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Mi=e=>(e=e%360,e<0&&(e+=360),e),Tc=Pi,xc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Sc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Hv={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=>Mi(mt(Math.atan2(e[6],e[5]))),rotateY:e=>Mi(mt(Math.atan2(-e[2],e[0]))),rotateZ:Tc,rotate:Tc,skewX:e=>mt(Math.atan(e[4])),skewY:e=>mt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Di(e){return e.includes("scale")?1:0}function Oi(e,t){if(!e||e==="none")return Di(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Hv,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Gv,i=a}if(!i)return Di(t);const o=r[t],s=i[1].split(",").map(Yv);return typeof o=="function"?o(s):s[o]}const Kv=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Oi(n,t)};function Yv(e){return parseFloat(e.trim())}const _t=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Lt=new Set(_t),Ec=e=>e===Ft||e===_,Zv=new Set(["x","y","z"]),Xv=_t.filter(e=>!Zv.has(e));function qv(e){const t=[];return Xv.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gt={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")};gt.translateX=gt.x,gt.translateY=gt.y;const yt=new Set;let ki=!1,Ri=!1,Vi=!1;function Ac(){if(Ri){const e=Array.from(yt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=qv(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ri=!1,ki=!1,yt.forEach(e=>e.complete(Vi)),yt.clear()}function Cc(){yt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ri=!0)})}function Jv(){Vi=!0,Cc(),Ac(),Vi=!1}class Fi{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(yt.add(this),ki||(ki=!0,X.read(Cc),X.resolveKeyframes(Ac))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}Wv(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),yt.delete(this)}cancel(){this.state==="scheduled"&&(yt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Qv=e=>e.startsWith("--");function eb(e,t,n){Qv(t)?e.style.setProperty(t,n):e.style[t]=n}const tb=oi(()=>window.ScrollTimeline!==void 0),nb={};function rb(e,t){const n=oi(e);return()=>nb[t]??n()}const Pc=rb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),fn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fn([0,.65,.55,1]),circOut:fn([.55,0,1,.45]),backIn:fn([.31,.01,.66,-.59]),backOut:fn([.33,1.53,.69,.99])};function Dc(e,t){if(e)return typeof e=="function"?Pc()?gc(e,t):"ease-out":ec(e)?fn(e):Array.isArray(e)?e.map(n=>Dc(n,t)||Mc.easeOut):Mc[e]}function ib(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const f=Dc(a,i);Array.isArray(f)&&(u.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return l&&(d.pseudoElement=l),e.animate(u,d)}function Oc(e){return typeof e=="function"&&"applyToOptions"in e}function ob({type:e,...t}){return Oc(e)&&Pc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class sb extends Ai{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,Be(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=ob(t);this.animation=ib(n,r,i,l,o),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=Ei(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):eb(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 Re(Number(t))}get time(){return Re(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ae(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&&tb()?(this.animation.timeline=t,ve):n(this)}}const kc={anticipate:Xa,backInOut:Za,circInOut:Ja};function ab(e){return e in kc}function cb(e){typeof e.ease=="string"&&ab(e.ease)&&(e.ease=kc[e.ease])}const Rc=10;class lb extends sb{constructor(t){cb(t),wc(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ci({...s,autoplay:!1}),c=Ae(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Rc).value,a.sample(c).value,Rc),a.stop()}}const Vc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(tt.test(e)||e==="0")&&!e.startsWith("url("));function ub(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 db(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Vc(i,t),a=Vc(o,t);return Vt(s===a,`You are trying to animate ${t} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:ub(e)||(n==="spring"||Oc(n))&&r}const fb=new Set(["opacity","clipPath","filter","transform"]),hb=oi(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function pb(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,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 hb()&&n&&fb.has(n)&&(n!=="transform"||!l)&&!c&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const mb=40;class gb extends Ai{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:c,motionValue:l,element:u,...f}){var g;super(),this.stop=()=>{var p,y;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=fe.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:c,motionValue:l,element:u,...f},h=(u==null?void 0:u.KeyframeResolver)||Fi;this.keyframeResolver=new h(a,(p,y,v)=>this.onKeyframesResolved(p,y,d,!v),c,l,u),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=fe.now(),db(t,o,s,a)||((Ue.instantAnimations||!c)&&(u==null||u(Ei(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>mb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!l&&pb(d)?new lb({...d,element:d.motionValue.owner.current}):new Ci(d);h.finished.then(()=>this.notifyFinished()).catch(ve),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),Jv()),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 yb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vb(e){const t=yb.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const bb=4;function Fc(e,t,n=1){Be(n<=bb,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=vb(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Ba(s)?parseFloat(s):s}return fi(i)?Fc(i,t,n+1):i}function Ii(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Ic=new Set(["width","height","top","left","right","bottom",..._t]),wb={test:e=>e==="auto",parse:e=>e},Nc=e=>t=>t.test(e),_c=[Ft,_,Ve,et,uv,lv,wb],Lc=e=>_c.find(Nc(e));function Tb(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$a(e):!0}const xb=new Set(["brightness","contrast","saturate","opacity"]);function Sb(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(hi)||[];if(!r)return e;const i=n.replace(r,"");let o=xb.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Eb=/\b([a-z-]*)\(.*?\)/gu,Ni={...tt,getAnimatableNone:e=>{const t=e.match(Eb);return t?t.map(Sb).join(" "):e}},jc={...Ft,transform:Math.round},_i={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:et,rotateX:et,rotateY:et,rotateZ:et,scale:Gn,scaleX:Gn,scaleY:Gn,scaleZ:Gn,skew:et,skewX:et,skewY:et,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:cn,originX:sc,originY:sc,originZ:_},zIndex:jc,fillOpacity:cn,strokeOpacity:cn,numOctaves:jc},Ab={..._i,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:Ni,WebkitFilter:Ni},Bc=e=>Ab[e];function Uc(e,t){let n=Bc(e);return n!==Ni&&(n=tt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Cb=new Set(["auto","none","0"]);function Pb(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Cb.has(o)&&dn(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Uc(n,i)}class Mb extends Fi{constructor(t,n,r,i,o){super(t,n,r,i,o,!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(),fi(l))){const u=Fc(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Ic.has(r)||t.length!==2)return;const[i,o]=t,s=Lc(i),a=Lc(o);if(s!==a)if(Ec(s)&&Ec(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else gt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Tb(t[i]))&&r.push(i);r.length&&Pb(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=gt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=gt[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 Db(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const $c=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ob(e){return Ua(e)&&"offsetHeight"in e}const zc=30,kb=e=>!isNaN(parseFloat(e));class Rb{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var s,a;const o=fe.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();i&&((a=this.events.renderRequest)==null||a.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=fe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=kb(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ai(!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 si);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}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=fe.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 jt(e,t){return new Rb(e,t)}const{schedule:Li}=rc(queueMicrotask,!1),Ce={x:!1,y:!1};function Wc(){return Ce.x||Ce.y}function Vb(e){return e==="x"||e==="y"?Ce[e]?null:(Ce[e]=!0,()=>{Ce[e]=!1}):Ce.x||Ce.y?null:(Ce.x=Ce.y=!0,()=>{Ce.x=Ce.y=!1})}function Gc(e,t){const n=Db(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Hc(e){return!(e.pointerType==="touch"||Wc())}function Fb(e,t,n={}){const[r,i,o]=Gc(e,n),s=a=>{if(!Hc(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=f=>{Hc(f)&&(l(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const Kc=(e,t)=>t?e===t?!0:Kc(e,t.parentElement):!1,ji=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ib=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Nb(e){return Ib.has(e.tagName)||e.tabIndex!==-1}const Zn=new WeakSet;function Yc(e){return t=>{t.key==="Enter"&&e(t)}}function Bi(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _b=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Yc(()=>{if(Zn.has(n))return;Bi(n,"down");const i=Yc(()=>{Bi(n,"up")}),o=()=>Bi(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Zc(e){return ji(e)&&!Wc()}function Lb(e,t,n={}){const[r,i,o]=Gc(e,n),s=a=>{const c=a.currentTarget;if(!Zc(a))return;Zn.add(c);const l=t(c,a),u=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Zn.has(c)&&Zn.delete(c),Zc(h)&&typeof l=="function"&&l(h,{success:g})},f=h=>{u(h,c===window||c===document||n.useGlobalTarget||Kc(c,h.target))},d=h=>{u(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),Ob(a)&&(a.addEventListener("focus",l=>_b(l,i)),!Nb(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Xc(e){return Ua(e)&&"ownerSVGElement"in e}function jb(e){return Xc(e)&&e.tagName==="svg"}const ue=e=>!!(e&&e.getVelocity),Bb=[..._c,ne,tt],Ub=e=>Bb.find(Nc(e)),qc=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function $b(e=!0){const t=x.useContext(ti);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=x.useId();x.useEffect(()=>{if(e)return i(o)},[e]);const s=x.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Jc=x.createContext({strict:!1}),Qc={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"]},Bt={};for(const e in Qc)Bt[e]={isEnabled:t=>Qc[e].some(n=>!!t[n])};function zb(e){for(const t in e)Bt[t]={...Bt[t],...e[t]}}const Wb=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 Xn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Wb.has(e)}let el=e=>!Xn(e);function Gb(e){typeof e=="function"&&(el=t=>t.startsWith("on")?!Xn(t):e(t))}try{Gb(require("@emotion/is-prop-valid").default)}catch{}function Hb(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(el(i)||n===!0&&Xn(i)||!t&&!Xn(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const qn=x.createContext({});function Jn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function hn(e){return typeof e=="string"||Array.isArray(e)}const Ui=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$i=["initial",...Ui];function Qn(e){return Jn(e.animate)||$i.some(t=>hn(e[t]))}function tl(e){return!!(Qn(e)||e.variants)}function Kb(e,t){if(Qn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||hn(n)?n:void 0,animate:hn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Yb(e){const{initial:t,animate:n}=Kb(e,x.useContext(qn));return x.useMemo(()=>({initial:t,animate:n}),[nl(t),nl(n)])}function nl(e){return Array.isArray(e)?e.join(" "):e}const pn={};function Zb(e){for(const t in e)pn[t]=e[t],di(t)&&(pn[t].isCSSVariable=!0)}function rl(e,{layout:t,layoutId:n}){return Lt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!pn[e]||e==="opacity")}const Xb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qb=_t.length;function Jb(e,t,n){let r="",i=!0;for(let o=0;o<qb;o++){const s=_t[o],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=$c(a,_i[s]);if(!c){i=!1;const u=Xb[s]||s;r+=`${u}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function zi(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const c in t){const l=t[c];if(Lt.has(c)){s=!0;continue}else if(di(c)){i[c]=l;continue}else{const u=$c(l,_i[c]);c.startsWith("origin")?(a=!0,o[c]=u):r[c]=u}}if(t.transform||(s||n?r.transform=Jb(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=o;r.transformOrigin=`${c} ${l} ${u}`}}const Wi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function il(e,t,n){for(const r in t)!ue(t[r])&&!rl(r,n)&&(e[r]=t[r])}function Qb({transformTemplate:e},t){return x.useMemo(()=>{const n=Wi();return zi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function e0(e,t){const n=e.style||{},r={};return il(r,n,e),Object.assign(r,Qb(e,t)),r}function t0(e,t){const n={},r=e0(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 n0={offset:"stroke-dashoffset",array:"stroke-dasharray"},r0={offset:"strokeDashoffset",array:"strokeDasharray"};function i0(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?n0:r0;e[o.offset]=_.transform(-r);const s=_.transform(t),a=_.transform(n);e[o.array]=`${s} ${a}`}function ol(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},c,l,u){if(zi(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&i0(f,i,o,s,!1)}const sl=()=>({...Wi(),attrs:{}}),al=e=>typeof e=="string"&&e.toLowerCase()==="svg";function o0(e,t,n,r){const i=x.useMemo(()=>{const o=sl();return ol(o,t,al(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};il(o,e.style,e),i.style={...o,...i.style}}return i}const s0=["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 Gi(e){return typeof e!="string"||e.includes("-")?!1:!!(s0.indexOf(e)>-1||/[A-Z]/u.test(e))}function a0(e,t,n,{latestValues:r},i,o=!1){const a=(Gi(e)?o0:t0)(t,r,i,e),c=Hb(t,typeof e=="string",o),l=e!==x.Fragment?{...c,...a,ref:n}:{},{children:u}=t,f=x.useMemo(()=>ue(u)?u.get():u,[u]);return x.createElement(e,{...l,children:f})}function cl(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Hi(e,t,n,r){if(typeof t=="function"){const[i,o]=cl(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=cl(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function er(e){return ue(e)?e.get():e}function c0({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:l0(n,r,i,e),renderState:t()}}function l0(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=er(o[d]);let{initial:s,animate:a}=e;const c=Qn(e),l=tl(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 f=u?a:s;if(f&&typeof f!="boolean"&&!Jn(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const g=Hi(e,d[h]);if(g){const{transitionEnd:p,transition:y,...v}=g;for(const S in v){let T=v[S];if(Array.isArray(T)){const A=u?T.length-1:0;T=T[A]}T!==null&&(i[S]=T)}for(const S in p)i[S]=p[S]}}}return i}const ll=e=>(t,n)=>{const r=x.useContext(qn),i=x.useContext(ti),o=()=>c0(e,t,r,i);return n?o():Wy(o)};function Ki(e,t,n){var o;const{style:r}=e,i={};for(const s in r)(ue(r[s])||t.style&&ue(t.style[s])||rl(s,e)||((o=n==null?void 0:n.getValue(s))==null?void 0:o.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const u0=ll({scrapeMotionValuesFromProps:Ki,createRenderState:Wi});function ul(e,t,n){const r=Ki(e,t,n);for(const i in e)if(ue(e[i])||ue(t[i])){const o=_t.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const d0=ll({scrapeMotionValuesFromProps:ul,createRenderState:sl}),f0=Symbol.for("motionComponentSymbol");function Ut(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function h0(e,t,n){return x.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ut(n)&&(n.current=r))},[t])}const Yi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dl="data-"+Yi("framerAppearId"),fl=x.createContext({});function p0(e,t,n,r,i){var p,y;const{visualElement:o}=x.useContext(qn),s=x.useContext(Jc),a=x.useContext(ti),c=x.useContext(qc).reducedMotion,l=x.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=l.current,f=x.useContext(fl);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&m0(l.current,n,i,f);const d=x.useRef(!1);x.useInsertionEffect(()=>{u&&d.current&&u.update(n,a)});const h=n[dl],g=x.useRef(!!h&&!((p=window.MotionHandoffIsComplete)!=null&&p.call(window,h))&&((y=window.MotionHasOptimisedAnimation)==null?void 0:y.call(window,h)));return Gy(()=>{u&&(d.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),x.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,h)}),g.current=!1))}),u}function m0(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:hl(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&Ut(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function hl(e){if(e)return e.options.allowProjection!==!1?e.projection:hl(e.parent)}function Zi(e,{forwardMotionProps:t=!1}={},n,r){n&&zb(n);const i=Gi(e)?d0:u0;function o(a,c){let l;const u={...x.useContext(qc),...a,layoutId:g0(a)},{isStatic:f}=u,d=Yb(a),h=i(a,f);if(!f&&ei){y0(u,n);const g=v0(u);l=g.MeasureLayout,d.visualElement=p0(e,h,u,r,g.ProjectionNode)}return P.jsxs(qn.Provider,{value:d,children:[l&&d.visualElement?P.jsx(l,{visualElement:d.visualElement,...u}):null,a0(e,a,h0(h,d.visualElement,c),h,f,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=x.forwardRef(o);return s[f0]=e,s}function g0({layoutId:e}){const t=x.useContext(ja).id;return t&&e!==void 0?t+"-"+e:e}function y0(e,t){const n=x.useContext(Jc).strict;if(process.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?Vt(!1,r,"lazy-strict-mode"):Be(!1,r,"lazy-strict-mode")}}function v0(e){const{drag:t,layout:n}=Bt;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 b0(e,t){if(typeof Proxy>"u")return Zi;const n=new Map,r=(o,s)=>Zi(o,s,e,t),i=(o,s)=>(process.env.NODE_ENV!=="production"&&ai(!1,"motion() is deprecated. Use motion.create() instead."),r(o,s));return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,Zi(s,void 0,e,t)),n.get(s))})}function pl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function w0({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function T0(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 Xi(e){return e===void 0||e===1}function qi({scale:e,scaleX:t,scaleY:n}){return!Xi(e)||!Xi(t)||!Xi(n)}function vt(e){return qi(e)||ml(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ml(e){return gl(e.x)||gl(e.y)}function gl(e){return e&&e!=="0%"}function tr(e,t,n){const r=e-n,i=t*r;return n+i}function yl(e,t,n,r,i){return i!==void 0&&(e=tr(e,i,r)),tr(e,n,r)+t}function Ji(e,t=0,n=1,r,i){e.min=yl(e.min,t,n,r,i),e.max=yl(e.max,t,n,r,i)}function vl(e,{x:t,y:n}){Ji(e.x,t.translate,t.scale,t.originPoint),Ji(e.y,n.translate,n.scale,n.originPoint)}const bl=.999999999999,wl=1.0000000000001;function x0(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&zt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,vl(e,s)),r&&vt(o.latestValues)&&zt(e,o.latestValues))}t.x<wl&&t.x>bl&&(t.x=1),t.y<wl&&t.y>bl&&(t.y=1)}function $t(e,t){e.min=e.min+t,e.max=e.max+t}function Tl(e,t,n,r,i=.5){const o=J(e.min,e.max,i);Ji(e,t,n,o,r)}function zt(e,t){Tl(e.x,t.x,t.scaleX,t.scale,t.originX),Tl(e.y,t.y,t.scaleY,t.scale,t.originY)}function xl(e,t){return pl(T0(e.getBoundingClientRect(),t))}function S0(e,t,n){const r=xl(e,n),{scroll:i}=t;return i&&($t(r.x,i.offset.x),$t(r.y,i.offset.y)),r}const Sl=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wt=()=>({x:Sl(),y:Sl()}),El=()=>({min:0,max:0}),te=()=>({x:El(),y:El()}),Qi={current:null},Al={current:!1};function E0(){if(Al.current=!0,!!ei)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qi.current=e.matches;e.addEventListener("change",t),t()}else Qi.current=!1}const A0=new WeakMap;function C0(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ue(i))e.addValue(r,i);else if(ue(o))e.addValue(r,jt(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,jt(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Cl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class P0{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,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=Fi,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 d=fe.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,X.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=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Qn(n),this.isVariantNode=tl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];c[d]!==void 0&&ue(h)&&h.set(c[d],!1)}}mount(t){this.current=t,A0.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((n,r)=>this.bindToMotionValue(r,n)),Al.current||E0(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qi.current,process.env.NODE_ENV!=="production"&&ai(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Qe(this.notifyUpdate),Qe(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Lt.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),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 Bt){const n=Bt[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}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<Cl.length;r++){const i=Cl[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=C0(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=jt(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"&&(Ba(r)||$a(r))?r=parseFloat(r):!Ub(r)&&tt.test(n)&&(r=Uc(t,n)),this.setBaseTarget(t,ue(r)?r.get():r)),ue(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Hi(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ue(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new si),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Li.render(this.render)}}class Pl extends P0{constructor(){super(...arguments),this.KeyframeResolver=Mb}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;ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ml(e,{style:t,vars:n},r,i){const o=e.style;let s;for(s in t)o[s]=t[s];i==null||i.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function M0(e){return window.getComputedStyle(e)}class D0 extends Pl{constructor(){super(...arguments),this.type="html",this.renderInstance=Ml}readValueFromInstance(t,n){var r;if(Lt.has(n))return(r=this.projection)!=null&&r.isProjecting?Di(n):Kv(t,n);{const i=M0(t),o=(di(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xl(t,n)}build(t,n,r){zi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ki(t,n,r)}}const Dl=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 O0(e,t,n,r){Ml(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Dl.has(i)?i:Yi(i),t.attrs[i])}class k0 extends Pl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Lt.has(n)){const r=Bc(n);return r&&r.default||0}return n=Dl.has(n)?n:Yi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ul(t,n,r)}build(t,n,r){ol(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){O0(t,n,r,i)}mount(t){this.isSVGTag=al(t.tagName),super.mount(t)}}const R0=(e,t)=>Gi(e)?new k0(t):new D0(t,{allowProjection:e!==x.Fragment});function mn(e,t,n){const r=e.getProps();return Hi(r,t,n!==void 0?n:r.custom,e)}const eo=e=>Array.isArray(e);function V0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,jt(n))}function F0(e){return eo(e)?e[e.length-1]||0:e}function I0(e,t){const n=mn(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=F0(o[s]);V0(e,s,a)}}function N0(e){return!!(ue(e)&&e.add)}function to(e,t){const n=e.getValue("willChange");if(N0(n))return n.add(t);if(!n&&Ue.WillChange){const r=new Ue.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ol(e){return e.props[dl]}const _0=e=>e!==null;function L0(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_0),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const j0={type:"spring",stiffness:500,damping:25,restSpeed:10},B0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),U0={type:"keyframes",duration:.8},$0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},z0=(e,{keyframes:t})=>t.length>2?U0:Lt.has(e)?e.startsWith("scale")?B0(t[1]):j0:$0;function W0({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const no=(e,t,n,r={},i,o)=>s=>{const a=Ii(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Ae(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};W0(a)||Object.assign(u,z0(e,u)),u.duration&&(u.duration=Ae(u.duration)),u.repeatDelay&&(u.repeatDelay=Ae(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),(Ue.instantAnimations||Ue.skipAnimations)&&(f=!0,u.duration=0,u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const d=L0(u.keyframes,a);if(d!==void 0){X.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Ci(u):new gb(u)};function G0({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function kl(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(o=r);const c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const f=e.getValue(u,e.latestValues[u]??null),d=a[u];if(d===void 0||l&&G0(l,u))continue;const h={delay:n,...Ii(o||{},u)},g=f.get();if(g!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===g&&!h.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const v=Ol(e);if(v){const S=window.MotionHandoffAnimation(v,u,X);S!==null&&(h.startTime=S,p=!0)}}to(e,u),f.start(no(u,f,d,e.shouldReduceMotion&&Ic.has(u)?{type:!1}:h,e,p));const y=f.animation;y&&c.push(y)}return s&&Promise.all(c).then(()=>{X.update(()=>{s&&I0(e,s)})}),c}function ro(e,t,n={}){var c;const r=mn(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(kl(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=i;return H0(e,t,l,u,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function H0(e,t,n=0,r=0,i=0,o=1,s){const a=[],c=e.variantChildren.size,l=(c-1)*i,u=typeof r=="function",f=u?d=>r(d,c):o===1?(d=0)=>d*i:(d=0)=>l-d*i;return Array.from(e.variantChildren).sort(K0).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(ro(d,t,{...s,delay:n+(u?0:r)+f(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function K0(e,t){return e.sortNodePosition(t)}function Y0(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ro(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ro(e,t,n);else{const i=typeof t=="function"?mn(e,t,n.custom):t;r=Promise.all(kl(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Rl(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 Z0=$i.length;function Vl(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Vl(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Z0;n++){const r=$i[n],i=e.props[r];(hn(i)||i===!1)&&(t[r]=i)}return t}const X0=[...Ui].reverse(),q0=Ui.length;function J0(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Y0(e,n,r)))}function Q0(e){let t=J0(e),n=Fl(),r=!0;const i=c=>(l,u)=>{var d;const f=mn(e,u,c==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:g,...p}=f;l={...l,...p,...g}}return l};function o(c){t=c(e)}function s(c){const{props:l}=e,u=Vl(e.parent)||{},f=[],d=new Set;let h={},g=1/0;for(let y=0;y<q0;y++){const v=X0[y],S=n[v],T=l[v]!==void 0?l[v]:u[v],A=hn(T),b=v===c?S.isActive:null;b===!1&&(g=y);let C=T===u[v]&&T!==l[v]&&A;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),S.protectedKeys={...h},!S.isActive&&b===null||!T&&!S.prevProp||Jn(T)||typeof T=="boolean")continue;const M=ew(S.prevProp,T);let E=M||v===c&&S.isActive&&!C&&A||y>g&&A,N=!1;const K=Array.isArray(T)?T:[T];let he=K.reduce(i(v),{});b===!1&&(he={});const{prevResolvedValues:Pe={}}=S,ae={...Pe,...he},pe=W=>{E=!0,d.has(W)&&(N=!0,d.delete(W)),S.needsAnimating[W]=!0;const R=e.getValue(W);R&&(R.liveStyle=!1)};for(const W in ae){const R=he[W],Me=Pe[W];if(h.hasOwnProperty(W))continue;let xe=!1;eo(R)&&eo(Me)?xe=!Rl(R,Me):xe=R!==Me,xe?R!=null?pe(W):d.add(W):R!==void 0&&d.has(W)?pe(W):S.protectedKeys[W]=!0}S.prevProp=T,S.prevResolvedValues=he,S.isActive&&(h={...h,...he}),r&&e.blockInitialAnimation&&(E=!1),E&&(!(C&&M)||N)&&f.push(...K.map(W=>({animation:W,options:{type:v}})))}if(d.size){const y={};if(typeof l.initial!="boolean"){const v=mn(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(y.transition=v.transition)}d.forEach(v=>{const S=e.getBaseTarget(v),T=e.getValue(v);T&&(T.liveStyle=!0),y[v]=S??null}),f.push({animation:y})}let p=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(f):Promise.resolve()}function a(c,l){var f;if(n[c].isActive===l)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(c,l)}),n[c].isActive=l;const u=s(c);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Fl(),r=!0}}}function ew(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rl(t,e):!1}function bt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fl(){return{animate:bt(!0),whileInView:bt(),whileHover:bt(),whileTap:bt(),whileDrag:bt(),whileFocus:bt(),exit:bt()}}class nt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tw extends nt{constructor(t){super(t),t.animationState||(t.animationState=Q0(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jn(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 nw=0;class rw extends nt{constructor(){super(...arguments),this.id=nw++}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 i=this.node.animationState.setActive("exit",!t);n&&!t&&i.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 iw={animation:{Feature:tw},exit:{Feature:rw}};function gn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function yn(e){return{point:{x:e.pageX,y:e.pageY}}}const ow=e=>t=>ji(t)&&e(t,yn(t));function vn(e,t,n,r){return gn(e,t,ow(n),r)}const Il=1e-4,sw=1-Il,aw=1+Il,Nl=.01,cw=0-Nl,lw=0+Nl;function de(e){return e.max-e.min}function uw(e,t,n){return Math.abs(e-t)<=n}function _l(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=de(n)/de(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=sw&&e.scale<=aw||isNaN(e.scale))&&(e.scale=1),(e.translate>=cw&&e.translate<=lw||isNaN(e.translate))&&(e.translate=0)}function bn(e,t,n,r){_l(e.x,t.x,n.x,r?r.originX:void 0),_l(e.y,t.y,n.y,r?r.originY:void 0)}function Ll(e,t,n){e.min=n.min+t.min,e.max=e.min+de(t)}function dw(e,t,n){Ll(e.x,t.x,n.x),Ll(e.y,t.y,n.y)}function jl(e,t,n){e.min=t.min-n.min,e.max=e.min+de(t)}function wn(e,t,n){jl(e.x,t.x,n.x),jl(e.y,t.y,n.y)}function be(e){return[e("x"),e("y")]}const Bl=({current:e})=>e?e.ownerDocument.defaultView:null,Ul=(e,t)=>Math.abs(e-t);function fw(e,t){const n=Ul(e.x,t.x),r=Ul(e.y,t.y);return Math.sqrt(n**2+r**2)}class $l{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!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 d=oo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=fw(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!g)return;const{point:p}=d,{timestamp:y}=le;this.history.push({...p,timestamp:y});const{onStart:v,onMove:S}=this.handlers;h||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=io(h,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:g,onSessionEnd:p,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=oo(d.type==="pointercancel"?this.lastMoveEventInfo:io(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,v),p&&p(d,v)},!ji(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=yn(t),c=io(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=le;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,oo(c,this.history)),this.removeListeners=on(vn(this.contextWindow,"pointermove",this.handlePointerMove),vn(this.contextWindow,"pointerup",this.handlePointerUp),vn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Qe(this.updatePoint)}}function io(e,t){return t?{point:t(e.point)}:e}function zl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oo({point:e},t){return{point:e,delta:zl(e,Wl(t)),offset:zl(e,hw(t)),velocity:pw(t,.1)}}function hw(e){return e[0]}function Wl(e){return e[e.length-1]}function pw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Wl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ae(t)));)n--;if(!r)return{x:0,y:0};const o=Re(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function mw(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?J(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?J(n,e,r.max):Math.min(e,n)),e}function Gl(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 gw(e,{top:t,left:n,bottom:r,right:i}){return{x:Gl(e.x,n,i),y:Gl(e.y,t,r)}}function Hl(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 yw(e,t){return{x:Hl(e.x,t.x),y:Hl(e.y,t.y)}}function vw(e,t){let n=.5;const r=de(e),i=de(t);return i>r?n=sn(t.min,t.max-r,e.min):r>i&&(n=sn(e.min,e.max-i,t.min)),je(0,1,n)}function bw(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 so=.35;function ww(e=so){return e===!1?e=0:e===!0&&(e=so),{x:Kl(e,"left","right"),y:Kl(e,"top","bottom")}}function Kl(e,t,n){return{min:Yl(e,t),max:Yl(e,n)}}function Yl(e,t){return typeof e=="number"?e:e[t]||0}const Tw=new WeakMap;class xw{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=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(yn(f).point)},s=(f,d)=>{const{drag:h,dragPropagation:g,onDragStart:p}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vb(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),be(v=>{let S=this.getAxisMotionValue(v).get()||0;if(Ve.test(S)){const{projection:T}=this.visualElement;if(T&&T.layout){const A=T.layout.layoutBox[v];A&&(S=de(A)*(parseFloat(S)/100))}}this.originPoint[v]=S}),p&&X.postRender(()=>p(f,d)),to(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:p,onDrag:y}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(g&&this.currentDirection===null){this.currentDirection=Sw(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),y&&y(f,d)},c=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>be(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)==null?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new $l(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Bl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&X.postRender(()=>a(r,i))}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:i}=this.getProps();if(!r||!nr(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=mw(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&Ut(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=gw(r.layoutBox,t):this.constraints=!1,this.elastic=ww(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&be(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=bw(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ut(t))return!1;const r=t.current;Be(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:i}=this.visualElement;if(!i||!i.layout)return!1;const o=S0(r,i.root,this.visualElement.getTransformPagePoint());let s=yw(i.layout.layoutBox,o);if(n){const a=n(w0(s));this.hasMutatedConstraints=!!a,a&&(s=pl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=be(u=>{if(!nr(u,n,this.currentDirection))return;let f=c&&c[u]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return to(this.visualElement,t),r.start(no(t,r,0,n,this.visualElement,!1))}stopAnimation(){be(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){be(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(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){be(n=>{const{drag:r}=this.getProps();if(!nr(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-J(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ut(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};be(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();i[s]=vw({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),be(s=>{if(!nr(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(J(c,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;Tw.set(this.visualElement,this);const t=this.visualElement.current,n=vn(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Ut(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(r);const s=gn(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(be(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=so,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function nr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Sw(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ew extends nt{constructor(t){super(t),this.removeGroupControls=ve,this.removeListeners=ve,this.controls=new xw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ve}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zl=e=>(t,n)=>{e&&X.postRender(()=>e(t,n))};class Aw extends nt{constructor(){super(...arguments),this.removePointerDownListener=ve}onPointerDown(t){this.session=new $l(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Zl(t),onStart:Zl(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&X.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=vn(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 rr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Tn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;const n=Xl(e,t.target.x),r=Xl(e,t.target.y);return`${n}% ${r}%`}},Cw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=tt.parse(e);if(i.length>5)return r;const o=tt.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=c;const l=J(a,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),o(i)}};let ql=!1;class Pw extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Zb(Mw),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),ql&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),rr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,ql=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||X.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Li.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Jl(e){const[t,n]=$b(),r=x.useContext(ja);return P.jsx(Pw,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(fl),isPresent:t,safeToRemove:n})}const Mw={borderRadius:{...Tn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Tn,borderTopRightRadius:Tn,borderBottomLeftRadius:Tn,borderBottomRightRadius:Tn,boxShadow:Cw};function Dw(e,t,n){const r=ue(e)?e:jt(e);return r.start(no("",r,t,n)),r.animation}const Ow=(e,t)=>e.depth-t.depth;class kw{constructor(){this.children=[],this.isDirty=!1}add(t){ni(this.children,t),this.isDirty=!0}remove(t){ri(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ow),this.isDirty=!1,this.children.forEach(t)}}function Rw(e,t){const n=fe.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Qe(r),e(o-t))};return X.setup(r,!0),()=>Qe(r)}const Ql=["TopLeft","TopRight","BottomLeft","BottomRight"],Vw=Ql.length,eu=e=>typeof e=="string"?parseFloat(e):e,tu=e=>typeof e=="number"||_.test(e);function Fw(e,t,n,r,i,o){i?(e.opacity=J(0,n.opacity??1,Iw(r)),e.opacityExit=J(t.opacity??1,0,Nw(r))):o&&(e.opacity=J(t.opacity??1,n.opacity??1,r));for(let s=0;s<Vw;s++){const a=`border${Ql[s]}Radius`;let c=nu(t,a),l=nu(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||tu(c)===tu(l)?(e[a]=Math.max(J(eu(c),eu(l),r),0),(Ve.test(l)||Ve.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,r))}function nu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Iw=ru(0,.5,qa),Nw=ru(.5,.95,ve);function ru(e,t,n){return r=>r<e?0:r>t?1:n(sn(e,t,r))}function iu(e,t){e.min=t.min,e.max=t.max}function we(e,t){iu(e.x,t.x),iu(e.y,t.y)}function ou(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function su(e,t,n,r,i){return e-=t,e=tr(e,1/n,r),i!==void 0&&(e=tr(e,1/i,r)),e}function _w(e,t=0,n=1,r=.5,i,o=e,s=e){if(Ve.test(t)&&(t=parseFloat(t),t=J(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=J(o.min,o.max,r);e===o&&(a-=t),e.min=su(e.min,t,n,a,i),e.max=su(e.max,t,n,a,i)}function au(e,t,[n,r,i],o,s){_w(e,t[n],t[r],t[i],t.scale,o,s)}const Lw=["x","scaleX","originX"],jw=["y","scaleY","originY"];function cu(e,t,n,r){au(e.x,t,Lw,n?n.x:void 0,r?r.x:void 0),au(e.y,t,jw,n?n.y:void 0,r?r.y:void 0)}function lu(e){return e.translate===0&&e.scale===1}function uu(e){return lu(e.x)&&lu(e.y)}function du(e,t){return e.min===t.min&&e.max===t.max}function Bw(e,t){return du(e.x,t.x)&&du(e.y,t.y)}function fu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function hu(e,t){return fu(e.x,t.x)&&fu(e.y,t.y)}function pu(e){return de(e.x)/de(e.y)}function mu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Uw{constructor(){this.members=[]}add(t){ni(this.members,t),t.scheduleRender()}remove(t){if(ri(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;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:i}=t.options;i===!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 $w(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}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 ao=["","X","Y","Z"],zw=1e3;let Ww=0;function co(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function gu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ol(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&gu(r)}function yu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Ww++,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(Kw),this.nodes.forEach(qw),this.nodes.forEach(Jw),this.nodes.forEach(Yw)},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 kw)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new si),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=Xc(s)&&!jb(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,f=0;const d=()=>this.root.updateBlockedByResize=!1;X.read(()=>{f=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,u&&u(),u=Rw(d,250),rr.hasAnimatedSinceResize&&(rr.hasAnimatedSinceResize=!1,this.nodes.forEach(wu)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||l.getDefaultTransition()||r1,{onLayoutAnimationStart:p,onLayoutAnimationComplete:y}=l.getProps(),v=!this.targetLayout||!hu(this.targetLayout,h),S=!f&&d;if(this.options.layoutRoot||this.resumeFrom||S||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Ii(g,"layout"),onPlay:p,onComplete:y};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,S)}else f||wu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(),Qe(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(Qw),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&&gu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.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(vu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(bu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Xw),this.nodes.forEach(Gw),this.nodes.forEach(Hw)):this.nodes.forEach(bu),this.clearAllSnapshots();const a=fe.now();le.delta=je(0,1e3/60,a-le.timestamp),le.timestamp=a,le.isProcessing=!0,ui.update.process(le),ui.preRender.process(le),ui.render.process(le),le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Li.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Zw),this.sharedNodes.forEach(e1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!de(this.snapshot.measuredBox.x)&&!de(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=te(),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(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!uu(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&this.instance&&(a||vt(this.latestValues)||u)&&(i(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)),i1(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:s}=this.options;if(!s)return te();const a=s.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(o1))){const{scroll:u}=this.root;u&&($t(a.x,u.offset.x),$t(a.y,u.offset.y))}return a}removeElementScroll(s){var c;const a=te();if(we(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:f,options:d}=u;u!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&we(a,s),$t(a.x,f.offset.x),$t(a.y,f.offset.y))}return a}applyTransform(s,a=!1){const c=te();we(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&&zt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),vt(u.latestValues)&&zt(c,u.latestValues)}return vt(this.latestValues)&&zt(c,this.latestValues),c}removeTransform(s){const a=te();we(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!vt(l.latestValues))continue;qi(l.latestValues)&&l.updateSnapshot();const u=te(),f=l.measurePageBox();we(u,f),cu(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return vt(this.latestValues)&&cu(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!==le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var d;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||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!(!this.layout||!(u||f))){if(this.resolvedRelativeTargetAt=le.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),wn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),we(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),dw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):we(this.target,this.layout.layoutBox),vl(this.target,this.targetDelta)):we(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),wn(this.relativeTargetOrigin,this.target,h.target),we(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||qi(this.parent.latestValues)||ml(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 g;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===le.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;we(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;x0(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=te());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ou(this.prevProjectionDelta.x,this.projectionDelta.x),ou(this.prevProjectionDelta.y,this.projectionDelta.y)),bn(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!mu(this.projectionDelta.x,this.prevProjectionDelta.x)||!mu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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=Wt(),this.projectionDelta=Wt(),this.projectionDeltaWithTransform=Wt()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},f=Wt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=te(),h=c?c.source:void 0,g=this.layout?this.layout.source:void 0,p=h!==g,y=this.getStack(),v=!y||y.members.length<=1,S=!!(p&&!v&&this.options.crossfade===!0&&!this.path.some(n1));this.animationProgress=0;let T;this.mixTargetDelta=A=>{const b=A/1e3;Tu(f.x,s.x,b),Tu(f.y,s.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wn(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),t1(this.relativeTarget,this.relativeTargetOrigin,d,b),T&&Bw(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=te()),we(T,this.relativeTarget)),p&&(this.animationValues=u,Fw(u,l,this.latestValues,b,S,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&&(Qe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{rr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=jt(0)),this.currentAnimation=Dw(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(zw),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&&Cu(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||te();const f=de(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+f;const d=de(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+d}we(a,c),zt(a,u),bn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Uw),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&&co("z",s,l,this.animationValues);for(let u=0;u<ao.length;u++)co(`rotate${ao[u]}`,s,l,this.animationValues),co(`skew${ao[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=er(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=er(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!vt(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=$w(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),s.transform=f;const{x:d,y:h}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${h.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 g in pn){if(u[g]===void 0)continue;const{correct:p,applyTo:y,isCSSVariable:v}=pn[g],S=f==="none"?u[g]:p(u[g],l);if(y){const T=y.length;for(let A=0;A<T;A++)s[y[A]]=S}else v?this.options.visualElement.renderState.vars[g]=S:s[g]=S}this.options.layoutId&&(s.pointerEvents=l===this?er(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(vu),this.root.sharedNodes.clear()}}}function Gw(e){e.updateLayout()}function Hw(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:i}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?be(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],h=de(d);d.min=r[f].min,d.max=d.min+h}):Cu(o,t.layoutBox,r)&&be(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],h=de(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=Wt();bn(a,r,t.layoutBox);const c=Wt();s?bn(c,e.applyTransform(i,!0),t.measuredBox):bn(c,r,t.layoutBox);const l=!uu(a);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=te();wn(g,t.layoutBox,d.layoutBox);const p=te();wn(p,r,h.layoutBox),hu(g,p)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=f)}}}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 Kw(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 Yw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Zw(e){e.clearSnapshot()}function vu(e){e.clearMeasurements()}function bu(e){e.isLayoutDirty=!1}function Xw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qw(e){e.resolveTargetDelta()}function Jw(e){e.calcProjection()}function Qw(e){e.resetSkewAndRotation()}function e1(e){e.removeLeadSnapshot()}function Tu(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xu(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function t1(e,t,n,r){xu(e.x,t.x,n.x,r),xu(e.y,t.y,n.y,r)}function n1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const r1={duration:.45,ease:[.4,0,.1,1]},Su=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Eu=Su("applewebkit/")&&!Su("chrome/")?Math.round:ve;function Au(e){e.min=Eu(e.min),e.max=Eu(e.max)}function i1(e){Au(e.x),Au(e.y)}function Cu(e,t,n){return e==="position"||e==="preserve-aspect"&&!uw(pu(t),pu(n),.2)}function o1(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const s1=yu({attachResizeListener:(e,t)=>gn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lo={current:void 0},Pu=yu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lo.current){const e=new s1({});e.mount(window),e.setOptions({layoutScroll:!0}),lo.current=e}return lo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),a1={pan:{Feature:Aw},drag:{Feature:Ew,ProjectionNode:Pu,MeasureLayout:Jl}};function Mu(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&X.postRender(()=>o(t,yn(t)))}class c1 extends nt{mount(){const{current:t}=this.node;t&&(this.unmount=Fb(t,(n,r)=>(Mu(this.node,r,"Start"),i=>Mu(this.node,i,"End"))))}unmount(){}}class l1 extends nt{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=on(gn(this.node.current,"focus",()=>this.onFocus()),gn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Du(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 i="onTap"+(n==="End"?"":n),o=r[i];o&&X.postRender(()=>o(t,yn(t)))}class u1 extends nt{mount(){const{current:t}=this.node;t&&(this.unmount=Lb(t,(n,r)=>(Du(this.node,r,"Start"),(i,{success:o})=>Du(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const uo=new WeakMap,fo=new WeakMap,d1=e=>{const t=uo.get(e.target);t&&t(e)},f1=e=>{e.forEach(d1)};function h1({root:e,...t}){const n=e||document;fo.has(n)||fo.set(n,{});const r=fo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(f1,{root:e,...t})),r[i]}function p1(e,t,n){const r=h1(t);return uo.set(e,n),r.observe(e),()=>{uo.delete(e),r.unobserve(e)}}const m1={some:0,all:1};class g1 extends nt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:m1[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=l?u:f;d&&d(c)};return p1(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(y1(t,n))&&this.startObserver()}unmount(){}}function y1({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const v1={...iw,...{inView:{Feature:g1},tap:{Feature:u1},focus:{Feature:l1},hover:{Feature:c1}},...a1,...{layout:{ProjectionNode:Pu,MeasureLayout:Jl}}},Ou=b0(v1,R0),b1="flex flex-col relative w-full cursor-text",w1=`
125
+ `)}function Oy(e){var t={};if(e.inner){if(e.inner.length===0)return Oe(t,e.path,e.message);for(var i=e.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var o;if(n){if(r>=i.length)break;o=i[r++]}else{if(r=i.next(),r.done)break;o=r.value}var s=o;Y(t,s.path)||(t=Oe(t,s.path,s.message))}}return t}function Vy(e,t,n,r){n===void 0&&(n=!1);var i=Jr(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function Jr(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(i){return Array.isArray(i)===!0||Os(i)?Jr(i):i!==""?i:void 0}):Os(e[r])?t[r]=Jr(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function Fy(e,t,n){var r=e.slice();return t.forEach(function(o,s){if(typeof r[s]>"u"){var a=n.clone!==!1,c=a&&n.isMergeableObject(o);r[s]=c?Or(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[s]=Or(e[s],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function Ry(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Iy(e,t,n){if(typeof e=="boolean")return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),i=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}var Ny=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?x.useLayoutEffect:x.useEffect;function ye(e){var t=x.useRef(e);return Ny(function(){t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}function on(e){var t=ht(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,o=t.registerField,s=t.unregisterField,a=Ft(e),c=a?e:{name:e},l=c.name,u=c.validate;x.useEffect(function(){return l&&o(l,{validate:u}),function(){l&&s(l)}},[o,s,l,u]),process.env.NODE_ENV!=="production"&&(t||(process.env.NODE_ENV!=="production"?ee(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):ee())),l||(process.env.NODE_ENV!=="production"?ee(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):ee());var f=x.useMemo(function(){return i(l)},[i,l]);return[n(c),r(l),f]}function Qr(e){var t=e.validate,n=e.name,r=e.render,i=e.children,o=e.as,s=e.component,a=e.className,c=Je(e,["validate","name","render","children","as","component","className"]),l=ht(),u=Je(l,["validate","validationSchema"]);process.env.NODE_ENV!=="production"&&x.useEffect(function(){r&&(process.env.NODE_ENV!=="production"?ee(!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>'):ee()),o&&i&&oe(i)&&(process.env.NODE_ENV!=="production"?ee(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):ee()),s&&i&&oe(i)&&(process.env.NODE_ENV!=="production"?ee(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):ee()),r&&i&&!Xr(i)&&(process.env.NODE_ENV!=="production"?ee(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):ee())},[]);var f=u.registerField,d=u.unregisterField;x.useEffect(function(){return f(n,{validate:t}),function(){d(n)}},[f,d,n,t]);var h=u.getFieldProps(z({name:n},c)),g=u.getFieldMeta(n),m={field:h,form:u};if(r)return r(z({},m,{meta:g}));if(oe(i))return i(z({},m,{meta:g}));if(s){if(typeof s=="string"){var y=c.innerRef,v=Je(c,["innerRef"]);return x.createElement(s,z({ref:y},h,v,{className:a}),i)}return x.createElement(s,z({field:h,form:u},c,{className:a}),i)}var E=o||"input";if(typeof E=="string"){var T=c.innerRef,C=Je(c,["innerRef"]);return x.createElement(E,z({ref:T},h,C,{className:a}),i)}return x.createElement(E,z({},h,c,{className:a}),i)}var Ly=x.forwardRef(function(e,t){var n=e.action,r=Je(e,["action"]),i=n??"#",o=ht(),s=o.handleReset,a=o.handleSubmit;return x.createElement("form",z({onSubmit:a,ref:t,onReset:s,action:i},r))});Ly.displayName="Form";function _y(e){var t=function(i){return x.createElement(Ay,null,function(o){return o||(process.env.NODE_ENV!=="production"?ee(!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):ee()),x.createElement(e,z({},i,{formik:o}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",Ey(t,e)}var jy=function(t,n,r){var i=mt(t),o=i[n];return i.splice(n,1),i.splice(r,0,o),i},By=function(t,n,r){var i=mt(t),o=i[n];return i[n]=i[r],i[r]=o,i},ei=function(t,n,r){var i=mt(t);return i.splice(n,0,r),i},$y=function(t,n,r){var i=mt(t);return i[n]=r,i},mt=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,i){return i>r?i:r},0);return Array.from(z({},t,{length:n+1}))}else return[]},Na=function(t,n){var r=typeof t=="function"?t:n;return function(i){if(Array.isArray(i)||Ft(i)){var o=mt(i);return r(o)}return i}},Uy=function(e){Oa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.updateArrayField=function(o,s,a){var c=i.props,l=c.name,u=c.formik.setFormikState;u(function(f){var d=Na(a,o),h=Na(s,o),g=Oe(f.values,l,o(Y(f.values,l))),m=a?d(Y(f.errors,l)):void 0,y=s?h(Y(f.touched,l)):void 0;return Fa(m)&&(m=void 0),Fa(y)&&(y=void 0),z({},f,{values:g,errors:a?Oe(f.errors,l,m):f.errors,touched:s?Oe(f.touched,l,y):f.touched})})},i.push=function(o){return i.updateArrayField(function(s){return[].concat(mt(s),[rn(o)])},!1,!1)},i.handlePush=function(o){return function(){return i.push(o)}},i.swap=function(o,s){return i.updateArrayField(function(a){return By(a,o,s)},!0,!0)},i.handleSwap=function(o,s){return function(){return i.swap(o,s)}},i.move=function(o,s){return i.updateArrayField(function(a){return jy(a,o,s)},!0,!0)},i.handleMove=function(o,s){return function(){return i.move(o,s)}},i.insert=function(o,s){return i.updateArrayField(function(a){return ei(a,o,s)},function(a){return ei(a,o,null)},function(a){return ei(a,o,null)})},i.handleInsert=function(o,s){return function(){return i.insert(o,s)}},i.replace=function(o,s){return i.updateArrayField(function(a){return $y(a,o,s)},!1,!1)},i.handleReplace=function(o,s){return function(){return i.replace(o,s)}},i.unshift=function(o){var s=-1;return i.updateArrayField(function(a){var c=a?[o].concat(a):[o];return s=c.length,c},function(a){return a?[null].concat(a):[null]},function(a){return a?[null].concat(a):[null]}),s},i.handleUnshift=function(o){return function(){return i.unshift(o)}},i.handleRemove=function(o){return function(){return i.remove(o)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(Va(i)),i.pop=i.pop.bind(Va(i)),i}var n=t.prototype;return n.componentDidUpdate=function(i){this.props.validateOnChange&&this.props.formik.validateOnChange&&!qe(Y(i.formik.values,i.name),Y(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(i){var o;return this.updateArrayField(function(s){var a=s?mt(s):[];return o||(o=a[i]),oe(a.splice)&&a.splice(i,1),oe(a.every)&&a.every(function(c){return c===void 0})?[]:a},!0,!0),o},n.pop=function(){var i;return this.updateArrayField(function(o){var s=o.slice();return i||(i=s&&s.pop&&s.pop()),s},!0,!0),i},n.render=function(){var i={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},o=this.props,s=o.component,a=o.render,c=o.children,l=o.name,u=o.formik,f=Je(u,["validate","validationSchema"]),d=z({},i,{form:f,name:l});return s?x.createElement(s,d):a?a(d):c?typeof c=="function"?c(d):Xr(c)?null:x.Children.only(c):null},t}(x.Component);Uy.defaultProps={validateOnChange:!0};var zy=function(e){Oa(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(i){return Y(this.props.formik.errors,this.props.name)!==Y(i.formik.errors,this.props.name)||Y(this.props.formik.touched,this.props.name)!==Y(i.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(i).length},n.render=function(){var i=this.props,o=i.component,s=i.formik,a=i.render,c=i.children,l=i.name,u=Je(i,["component","formik","render","children","name"]),f=Y(s.touched,l),d=Y(s.errors,l);return f&&d?a?oe(a)?a(d):null:c?oe(c)?c(d):null:o?x.createElement(o,u,d):d:null},t}(x.Component),La=_y(zy);const _a=x.createContext({}),Wn=()=>x.useContext(_a),Wy="w-full",ja="flex mx-4 mt-2 text-xs text-feedback-danger-200";function Gy({disableOnSubmit:e,disableOnNotDirty:t,isDisabled:n,...r}){const{isSubmitting:i,dirty:o}=ht(),{isForcedDirty:s,onNavigationEvent:a}=Wn(),c=u=>{a(()=>r.onClick)},l=x.useMemo(()=>!!(n||e&&i||t&&!o||t&&typeof s=="boolean"&&!s),[e,t,n,i,s,o]);return A.jsx(hr,{...r,isDisabled:l,onClick:r.type!=="submit"&&(o||typeof s<"u"&&s)?c:r.onClick})}const Ba=x.createContext({});function Hy(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const ti=typeof window<"u",Ky=ti?x.useLayoutEffect:x.useEffect,ni=x.createContext(null);function ri(e,t){e.indexOf(t)===-1&&e.push(t)}function ii(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const je=(e,t,n)=>n>t?t:n<e?e:n;function oi(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Rt=()=>{},Be=()=>{};process.env.NODE_ENV!=="production"&&(Rt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(oi(t,n))},Be=(e,t,n)=>{if(!e)throw new Error(oi(t,n))});const $e={},$a=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ua(e){return typeof e=="object"&&e!==null}const za=e=>/^0[^.\s]+$/u.test(e);function si(e){let t;return()=>(t===void 0&&(t=e()),t)}const ve=e=>e,Zy=(e,t)=>n=>t(e(n)),sn=(...e)=>e.reduce(Zy),an=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ai{constructor(){this.subscriptions=[]}add(t){return ri(this.subscriptions,t),()=>ii(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ae=e=>e*1e3,Ve=e=>e/1e3;function Wa(e,t){return t?e*(1e3/t):0}const Ga=new Set;function ci(e,t,n){e||Ga.has(t)||(console.warn(oi(t,n)),Ga.add(t))}const Ha=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Yy=1e-7,Xy=12;function qy(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Ha(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Yy&&++a<Xy);return s}function cn(e,t,n,r){if(e===t&&n===r)return ve;const i=o=>qy(o,0,1,e,n);return o=>o===0||o===1?o:Ha(i(o),t,r)}const Ka=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Za=e=>t=>1-e(1-t),Ya=cn(.33,1.53,.69,.99),li=Za(Ya),Xa=Ka(li),qa=e=>(e*=2)<1?.5*li(e):.5*(2-Math.pow(2,-10*(e-1))),ui=e=>1-Math.sin(Math.acos(e)),Ja=Za(ui),Qa=Ka(ui),Jy=cn(.42,0,1,1),Qy=cn(0,0,.58,1),ec=cn(.42,0,.58,1),ev=e=>Array.isArray(e)&&typeof e[0]!="number",tc=e=>Array.isArray(e)&&typeof e[0]=="number",nc={linear:ve,easeIn:Jy,easeInOut:ec,easeOut:Qy,circIn:ui,circInOut:Qa,circOut:Ja,backIn:li,backInOut:Xa,backOut:Ya,anticipate:qa},tv=e=>typeof e=="string",rc=e=>{if(tc(e)){Be(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return cn(t,n,r,i)}else if(tv(e))return Be(nc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),nc[e];return e},Gn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function nv(e,t){let n=new Set,r=new Set,i=!1,o=!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,f=!1,d=!1)=>{const g=d&&i?n:r;return f&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,o&&(o=!1,l.process(u))}};return l}const rv=40;function ic(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Gn.reduce((T,C)=>(T[C]=nv(o),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:d,render:h,postRender:g}=s,m=()=>{const T=$e.useManualTiming?i.timestamp:performance.now();n=!1,$e.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(T-i.timestamp,rv),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),f.process(i),d.process(i),h.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},y=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:Gn.reduce((T,C)=>{const b=s[C];return T[C]=(P,M=!1,S=!1)=>(n||y(),b.schedule(P,M,S)),T},{}),cancel:T=>{for(let C=0;C<Gn.length;C++)s[Gn[C]].cancel(T)},state:i,steps:s}}const{schedule:X,cancel:Qe,state:le,steps:di}=ic(typeof requestAnimationFrame<"u"?requestAnimationFrame:ve,!0);let Hn;function iv(){Hn=void 0}const fe={now:()=>(Hn===void 0&&fe.set(le.isProcessing||$e.useManualTiming?le.timestamp:performance.now()),Hn),set:e=>{Hn=e,queueMicrotask(iv)}},oc=e=>t=>typeof t=="string"&&t.startsWith(e),fi=oc("--"),ov=oc("var(--"),hi=e=>ov(e)?sv.test(e.split("/*")[0].trim()):!1,sv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,It={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ln={...It,transform:e=>je(0,1,e)},Kn={...It,default:1},un=e=>Math.round(e*1e5)/1e5,pi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function av(e){return e==null}const cv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mi=(e,t)=>n=>!!(typeof n=="string"&&cv.test(n)&&n.startsWith(e)||t&&!av(n)&&Object.prototype.hasOwnProperty.call(n,t)),sc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(pi);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},lv=e=>je(0,255,e),gi={...It,transform:e=>Math.round(lv(e))},gt={test:mi("rgb","red"),parse:sc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+gi.transform(e)+", "+gi.transform(t)+", "+gi.transform(n)+", "+un(ln.transform(r))+")"};function uv(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const yi={test:mi("#"),parse:uv,transform:gt.transform},dn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),et=dn("deg"),Fe=dn("%"),L=dn("px"),dv=dn("vh"),fv=dn("vw"),ac={...Fe,parse:e=>Fe.parse(e)/100,transform:e=>Fe.transform(e*100)},Nt={test:mi("hsl","hue"),parse:sc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fe.transform(un(t))+", "+Fe.transform(un(n))+", "+un(ln.transform(r))+")"},ne={test:e=>gt.test(e)||yi.test(e)||Nt.test(e),parse:e=>gt.test(e)?gt.parse(e):Nt.test(e)?Nt.parse(e):yi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?gt.transform(e):Nt.transform(e),getAnimatableNone:e=>{const t=ne.parse(e);return t.alpha=0,ne.transform(t)}},hv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pv(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(pi))==null?void 0:t.length)||0)+(((n=e.match(hv))==null?void 0:n.length)||0)>0}const cc="number",lc="color",mv="var",gv="var(",uc="${}",yv=/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 fn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(yv,c=>(ne.test(c)?(r.color.push(o),i.push(lc),n.push(ne.parse(c))):c.startsWith(gv)?(r.var.push(o),i.push(mv),n.push(c)):(r.number.push(o),i.push(cc),n.push(parseFloat(c))),++o,uc)).split(uc);return{values:n,split:a,indexes:r,types:i}}function dc(e){return fn(e).values}function fc(e){const{split:t,types:n}=fn(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===cc?o+=un(i[s]):a===lc?o+=ne.transform(i[s]):o+=i[s]}return o}}const vv=e=>typeof e=="number"?0:ne.test(e)?ne.getAnimatableNone(e):e;function bv(e){const t=dc(e);return fc(e)(t.map(vv))}const tt={test:pv,parse:dc,createTransformer:fc,getAnimatableNone:bv};function vi(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 wv({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;i=vi(c,a,e+1/3),o=vi(c,a,e),s=vi(c,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Zn(e,t){return n=>n>0?t:e}const J=(e,t,n)=>e+(t-e)*n,bi=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Tv=[yi,gt,Nt],xv=e=>Tv.find(t=>t.test(e));function hc(e){const t=xv(e);if(Rt(!!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===Nt&&(n=wv(n)),n}const pc=(e,t)=>{const n=hc(e),r=hc(t);if(!n||!r)return Zn(e,t);const i={...n};return o=>(i.red=bi(n.red,r.red,o),i.green=bi(n.green,r.green,o),i.blue=bi(n.blue,r.blue,o),i.alpha=J(n.alpha,r.alpha,o),gt.transform(i))},wi=new Set(["none","hidden"]);function Ev(e,t){return wi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Sv(e,t){return n=>J(e,t,n)}function Ti(e){return typeof e=="number"?Sv:typeof e=="string"?hi(e)?Zn:ne.test(e)?pc:Pv:Array.isArray(e)?mc:typeof e=="object"?ne.test(e)?pc:Av:Zn}function mc(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Ti(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Av(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ti(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Cv(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}const Pv=(e,t)=>{const n=tt.createTransformer(t),r=fn(e),i=fn(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?wi.has(e)&&!i.values.length||wi.has(t)&&!r.values.length?Ev(e,t):sn(mc(Cv(r,i),i.values),n):(Rt(!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"),Zn(e,t))};function gc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):Ti(e)(e,t)}const Mv=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>X.update(t,n),stop:()=>Qe(t),now:()=>le.isProcessing?le.timestamp:fe.now()}},yc=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Yn=2e4;function xi(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Yn;)t+=n,r=e.next(t);return t>=Yn?1/0:t}function Dv(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(xi(r),Yn);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Ve(i)}}const kv=5;function vc(e,t,n){const r=Math.max(t-kv,0);return Wa(n-e(r),t-r)}const Q={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 Ov({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:r=Q.mass}){let i,o;Rt(e<=Ae(Q.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=je(Q.minDamping,Q.maxDamping,s),e=je(Q.minDuration,Q.maxDuration,Ve(e)),s<1?(i=l=>{const u=l*s,f=u*e,d=u-n,h=Ei(l,s),g=Math.exp(-f);return bc-d/h*g},o=l=>{const f=l*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(l,2)*e,g=Math.exp(-f),m=Ei(Math.pow(l,2),s);return(-i(l)+bc>0?-1:1)*((d-h)*g)/m}):(i=l=>{const u=Math.exp(-l*e),f=(l-n)*e+1;return-.001+u*f},o=l=>{const u=Math.exp(-l*e),f=(n-l)*(e*e);return u*f});const a=5/e,c=Fv(i,o,a);if(e=Ae(e),isNaN(c))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Vv=12;function Fv(e,t,n){let r=n;for(let i=1;i<Vv;i++)r=r-e(r)/t(r);return r}function Ei(e,t){return e*Math.sqrt(1-t*t)}const Rv=["duration","bounce"],Iv=["stiffness","damping","mass"];function wc(e,t){return t.some(n=>e[n]!==void 0)}function Nv(e){let t={velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1,...e};if(!wc(e,Iv)&&wc(e,Rv))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*je(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Q.mass,stiffness:i,damping:o}}else{const n=Ov(e);t={...t,...n,mass:Q.mass},t.isResolvedFromDuration=!0}return t}function Xn(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:l,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=Nv({...n,velocity:-Ve(n.velocity||0)}),g=d||0,m=l/(2*Math.sqrt(c*u)),y=s-o,v=Ve(Math.sqrt(c/u)),E=Math.abs(y)<5;r||(r=E?Q.restSpeed.granular:Q.restSpeed.default),i||(i=E?Q.restDelta.granular:Q.restDelta.default);let T;if(m<1){const b=Ei(v,m);T=P=>{const M=Math.exp(-m*v*P);return s-M*((g+m*v*y)/b*Math.sin(b*P)+y*Math.cos(b*P))}}else if(m===1)T=b=>s-Math.exp(-v*b)*(y+(g+v*y)*b);else{const b=v*Math.sqrt(m*m-1);T=P=>{const M=Math.exp(-m*v*P),S=Math.min(b*P,300);return s-M*((g+m*v*y)*Math.sinh(S)+b*y*Math.cosh(S))/b}}const C={calculatedDuration:h&&f||null,next:b=>{const P=T(b);if(h)a.done=b>=f;else{let M=b===0?g:0;m<1&&(M=b===0?Ae(g):vc(T,b,P));const S=Math.abs(M)<=r,N=Math.abs(s-P)<=i;a.done=S&&N}return a.value=a.done?s:P,a},toString:()=>{const b=Math.min(xi(C),Yn),P=yc(M=>C.next(b*M).value,b,30);return b+"ms "+P},toTransition:()=>{}};return C}Xn.applyToOptions=e=>{const t=Dv(e,100,Xn);return e.ease=t.ease,e.duration=Ae(t.duration),e.type="keyframes",e};function Si({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},h=S=>a!==void 0&&S<a||c!==void 0&&S>c,g=S=>a===void 0?c:c===void 0||Math.abs(a-S)<Math.abs(c-S)?a:c;let m=n*t;const y=f+m,v=s===void 0?y:s(y);v!==y&&(m=v-f);const E=S=>-m*Math.exp(-S/r),T=S=>v+E(S),C=S=>{const N=E(S),K=T(S);d.done=Math.abs(N)<=l,d.value=d.done?v:K};let b,P;const M=S=>{h(d.value)&&(b=S,P=Xn({keyframes:[d.value,g(d.value)],velocity:vc(T,S,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return M(0),{calculatedDuration:null,next:S=>{let N=!1;return!P&&b===void 0&&(N=!0,C(S),M(S)),b!==void 0&&S>=b?P.next(S-b):(!N&&C(S),d)}}}function Lv(e,t,n){const r=[],i=n||$e.mix||gc,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||ve:t;a=sn(c,a)}r.push(a)}return r}function _v(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Be(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Lv(t,r,i),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const d=an(e[f],e[f+1],u);return a[f](d)};return n?u=>l(je(e[0],e[o-1],u)):l}function jv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=an(0,t,r);e.push(J(n,1,i))}}function Bv(e){const t=[0];return jv(t,e.length-1),t}function $v(e,t){return e.map(n=>n*t)}function Uv(e,t){return e.map(()=>t||ec).splice(0,e.length-1)}function Lt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ev(r)?r.map(rc):rc(r),o={done:!1,value:t[0]},s=$v(n&&n.length===t.length?n:Bv(t),e),a=_v(s,t,{ease:Array.isArray(i)?i:Uv(t,i)});return{calculatedDuration:e,next:c=>(o.value=a(c),o.done=c>=e,o)}}const zv=e=>e!==null;function Ai(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(zv),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const Wv={decay:Si,inertia:Si,tween:Lt,keyframes:Lt,spring:Xn};function Tc(e){typeof e.type=="string"&&(e.type=Wv[e.type])}class Ci{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 Gv=e=>e/100;class Pi extends Ci{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,i;const{motionValue:n}=this.options;n&&n.updatedAt!==fe.now()&&this.tick(fe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Tc(t);const{type:n=Lt,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Lt;process.env.NODE_ENV!=="production"&&c!==Lt&&Be(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Lt&&typeof a[0]!="number"&&(this.mixKeyframes=sn(Gv,gc(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=xi(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,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:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:f,repeatType:d,repeatDelay:h,type:g,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,C=r;if(f){const S=Math.min(this.currentTime,i)/a;let N=Math.floor(S),K=S%1;!K&&S>=1&&(K=1),K===1&&N--,N=Math.min(N,f+1),!!(N%2)&&(d==="reverse"?(K=1-K,h&&(K-=h/a)):d==="mirror"&&(C=s)),T=je(0,1,K)*a}const b=E?{done:!1,value:u[0]}:C.next(T);o&&(b.value=o(b.value));let{done:P}=b;!E&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return M&&g!==Si&&(b.value=Ai(u,this.options,y,this.speed)),m&&m(b.value),M&&this.finish(),b}then(t,n){return this.finished.then(t,n)}get duration(){return Ve(this.calculatedDuration)}get time(){return Ve(this.currentTime)}set time(t){var n;t=Ae(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(fe.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ve(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=Mv,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(o=(i=this.options).onPlay)==null||o.call(i);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(fe.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 Hv(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const yt=e=>e*180/Math.PI,Mi=e=>{const t=yt(Math.atan2(e[1],e[0]));return Di(t)},Kv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Mi,rotateZ:Mi,skewX:e=>yt(Math.atan(e[1])),skewY:e=>yt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Di=e=>(e=e%360,e<0&&(e+=360),e),xc=Mi,Ec=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Sc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Zv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ec,scaleY:Sc,scale:e=>(Ec(e)+Sc(e))/2,rotateX:e=>Di(yt(Math.atan2(e[6],e[5]))),rotateY:e=>Di(yt(Math.atan2(-e[2],e[0]))),rotateZ:xc,rotate:xc,skewX:e=>yt(Math.atan(e[4])),skewY:e=>yt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ki(e){return e.includes("scale")?1:0}function Oi(e,t){if(!e||e==="none")return ki(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Zv,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Kv,i=a}if(!i)return ki(t);const o=r[t],s=i[1].split(",").map(Xv);return typeof o=="function"?o(s):s[o]}const Yv=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Oi(n,t)};function Xv(e){return parseFloat(e.trim())}const _t=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jt=new Set(_t),Ac=e=>e===It||e===L,qv=new Set(["x","y","z"]),Jv=_t.filter(e=>!qv.has(e));function Qv(e){const t=[];return Jv.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const vt={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")};vt.translateX=vt.x,vt.translateY=vt.y;const bt=new Set;let Vi=!1,Fi=!1,Ri=!1;function Cc(){if(Fi){const e=Array.from(bt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Qv(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Fi=!1,Vi=!1,bt.forEach(e=>e.complete(Ri)),bt.clear()}function Pc(){bt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fi=!0)})}function e0(){Ri=!0,Pc(),Cc(),Ri=!1}class Ii{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(bt.add(this),Vi||(Vi=!0,X.read(Pc),X.resolveKeyframes(Cc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}Hv(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),bt.delete(this)}cancel(){this.state==="scheduled"&&(bt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const t0=e=>e.startsWith("--");function n0(e,t,n){t0(t)?e.style.setProperty(t,n):e.style[t]=n}const r0=si(()=>window.ScrollTimeline!==void 0),i0={};function o0(e,t){const n=si(e);return()=>i0[t]??n()}const Mc=o0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hn=([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:hn([0,.65,.55,1]),circOut:hn([.55,0,1,.45]),backIn:hn([.31,.01,.66,-.59]),backOut:hn([.33,1.53,.69,.99])};function kc(e,t){if(e)return typeof e=="function"?Mc()?yc(e,t):"ease-out":tc(e)?hn(e):Array.isArray(e)?e.map(n=>kc(n,t)||Dc.easeOut):Dc[e]}function s0(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const f=kc(a,i);Array.isArray(f)&&(u.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return l&&(d.pseudoElement=l),e.animate(u,d)}function Oc(e){return typeof e=="function"&&"applyToOptions"in e}function a0({type:e,...t}){return Oc(e)&&Mc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class c0 extends Ci{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,Be(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=a0(t);this.animation=s0(n,r,i,l,o),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=Ai(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):n0(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 Ve(Number(t))}get time(){return Ve(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ae(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&&r0()?(this.animation.timeline=t,ve):n(this)}}const Vc={anticipate:qa,backInOut:Xa,circInOut:Qa};function l0(e){return e in Vc}function u0(e){typeof e.ease=="string"&&l0(e.ease)&&(e.ease=Vc[e.ease])}const Fc=10;class d0 extends c0{constructor(t){u0(t),Tc(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Pi({...s,autoplay:!1}),c=Ae(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Fc).value,a.sample(c).value,Fc),a.stop()}}const Rc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(tt.test(e)||e==="0")&&!e.startsWith("url("));function f0(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 h0(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Rc(i,t),a=Rc(o,t);return Rt(s===a,`You are trying to animate ${t} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:f0(e)||(n==="spring"||Oc(n))&&r}const p0=new Set(["opacity","clipPath","filter","transform"]),m0=si(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function g0(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,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 m0()&&n&&p0.has(n)&&(n!=="transform"||!l)&&!c&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const y0=40;class v0 extends Ci{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:c,motionValue:l,element:u,...f}){var g;super(),this.stop=()=>{var m,y;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=fe.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:c,motionValue:l,element:u,...f},h=(u==null?void 0:u.KeyframeResolver)||Ii;this.keyframeResolver=new h(a,(m,y,v)=>this.onKeyframesResolved(m,y,d,!v),c,l,u),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=fe.now(),h0(t,o,s,a)||(($e.instantAnimations||!c)&&(u==null||u(Ai(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>y0?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!l&&g0(d)?new d0({...d,element:d.motionValue.owner.current}):new Pi(d);h.finished.then(()=>this.notifyFinished()).catch(ve),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),e0()),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 b0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function w0(e){const t=b0.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const T0=4;function Ic(e,t,n=1){Be(n<=T0,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=w0(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return $a(s)?parseFloat(s):s}return hi(i)?Ic(i,t,n+1):i}function Ni(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Nc=new Set(["width","height","top","left","right","bottom",..._t]),x0={test:e=>e==="auto",parse:e=>e},Lc=e=>t=>t.test(e),_c=[It,L,Fe,et,fv,dv,x0],jc=e=>_c.find(Lc(e));function E0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||za(e):!0}const S0=new Set(["brightness","contrast","saturate","opacity"]);function A0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(pi)||[];if(!r)return e;const i=n.replace(r,"");let o=S0.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const C0=/\b([a-z-]*)\(.*?\)/gu,Li={...tt,getAnimatableNone:e=>{const t=e.match(C0);return t?t.map(A0).join(" "):e}},Bc={...It,transform:Math.round},_i={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,radius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,backgroundPositionX:L,backgroundPositionY:L,...{rotate:et,rotateX:et,rotateY:et,rotateZ:et,scale:Kn,scaleX:Kn,scaleY:Kn,scaleZ:Kn,skew:et,skewX:et,skewY:et,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:ln,originX:ac,originY:ac,originZ:L},zIndex:Bc,fillOpacity:ln,strokeOpacity:ln,numOctaves:Bc},P0={..._i,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:Li,WebkitFilter:Li},$c=e=>P0[e];function Uc(e,t){let n=$c(e);return n!==Li&&(n=tt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const M0=new Set(["auto","none","0"]);function D0(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!M0.has(o)&&fn(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Uc(n,i)}class k0 extends Ii{constructor(t,n,r,i,o){super(t,n,r,i,o,!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(),hi(l))){const u=Ic(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Nc.has(r)||t.length!==2)return;const[i,o]=t,s=jc(i),a=jc(o);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 vt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||E0(t[i]))&&r.push(i);r.length&&D0(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=vt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=vt[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 O0(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const zc=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function V0(e){return Ua(e)&&"offsetHeight"in e}const Wc=30,F0=e=>!isNaN(parseFloat(e));class R0{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var s,a;const o=fe.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();i&&((a=this.events.renderRequest)==null||a.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=fe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=F0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ci(!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 ai);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}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=fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Wc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wc);return Wa(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 Bt(e,t){return new R0(e,t)}const{schedule:ji}=ic(queueMicrotask,!1),Ce={x:!1,y:!1};function Gc(){return Ce.x||Ce.y}function I0(e){return e==="x"||e==="y"?Ce[e]?null:(Ce[e]=!0,()=>{Ce[e]=!1}):Ce.x||Ce.y?null:(Ce.x=Ce.y=!0,()=>{Ce.x=Ce.y=!1})}function Hc(e,t){const n=O0(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Kc(e){return!(e.pointerType==="touch"||Gc())}function N0(e,t,n={}){const[r,i,o]=Hc(e,n),s=a=>{if(!Kc(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=f=>{Kc(f)&&(l(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const Zc=(e,t)=>t?e===t?!0:Zc(e,t.parentElement):!1,Bi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,L0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _0(e){return L0.has(e.tagName)||e.tabIndex!==-1}const qn=new WeakSet;function Yc(e){return t=>{t.key==="Enter"&&e(t)}}function $i(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const j0=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Yc(()=>{if(qn.has(n))return;$i(n,"down");const i=Yc(()=>{$i(n,"up")}),o=()=>$i(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Xc(e){return Bi(e)&&!Gc()}function B0(e,t,n={}){const[r,i,o]=Hc(e,n),s=a=>{const c=a.currentTarget;if(!Xc(a))return;qn.add(c);const l=t(c,a),u=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),qn.has(c)&&qn.delete(c),Xc(h)&&typeof l=="function"&&l(h,{success:g})},f=h=>{u(h,c===window||c===document||n.useGlobalTarget||Zc(c,h.target))},d=h=>{u(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),V0(a)&&(a.addEventListener("focus",l=>j0(l,i)),!_0(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function qc(e){return Ua(e)&&"ownerSVGElement"in e}function $0(e){return qc(e)&&e.tagName==="svg"}const ue=e=>!!(e&&e.getVelocity),U0=[..._c,ne,tt],z0=e=>U0.find(Lc(e)),Jc=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function W0(e=!0){const t=x.useContext(ni);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=x.useId();x.useEffect(()=>{if(e)return i(o)},[e]);const s=x.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Qc=x.createContext({strict:!1}),el={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"]},$t={};for(const e in el)$t[e]={isEnabled:t=>el[e].some(n=>!!t[n])};function G0(e){for(const t in e)$t[t]={...$t[t],...e[t]}}const H0=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 Jn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||H0.has(e)}let tl=e=>!Jn(e);function K0(e){typeof e=="function"&&(tl=t=>t.startsWith("on")?!Jn(t):e(t))}try{K0(require("@emotion/is-prop-valid").default)}catch{}function Z0(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(tl(i)||n===!0&&Jn(i)||!t&&!Jn(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Qn=x.createContext({});function er(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function pn(e){return typeof e=="string"||Array.isArray(e)}const Ui=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zi=["initial",...Ui];function tr(e){return er(e.animate)||zi.some(t=>pn(e[t]))}function nl(e){return!!(tr(e)||e.variants)}function Y0(e,t){if(tr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||pn(n)?n:void 0,animate:pn(r)?r:void 0}}return e.inherit!==!1?t:{}}function X0(e){const{initial:t,animate:n}=Y0(e,x.useContext(Qn));return x.useMemo(()=>({initial:t,animate:n}),[rl(t),rl(n)])}function rl(e){return Array.isArray(e)?e.join(" "):e}const mn={};function q0(e){for(const t in e)mn[t]=e[t],fi(t)&&(mn[t].isCSSVariable=!0)}function il(e,{layout:t,layoutId:n}){return jt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mn[e]||e==="opacity")}const J0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Q0=_t.length;function eb(e,t,n){let r="",i=!0;for(let o=0;o<Q0;o++){const s=_t[o],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=zc(a,_i[s]);if(!c){i=!1;const u=J0[s]||s;r+=`${u}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Wi(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const c in t){const l=t[c];if(jt.has(c)){s=!0;continue}else if(fi(c)){i[c]=l;continue}else{const u=zc(l,_i[c]);c.startsWith("origin")?(a=!0,o[c]=u):r[c]=u}}if(t.transform||(s||n?r.transform=eb(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=o;r.transformOrigin=`${c} ${l} ${u}`}}const Gi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ol(e,t,n){for(const r in t)!ue(t[r])&&!il(r,n)&&(e[r]=t[r])}function tb({transformTemplate:e},t){return x.useMemo(()=>{const n=Gi();return Wi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function nb(e,t){const n=e.style||{},r={};return ol(r,n,e),Object.assign(r,tb(e,t)),r}function rb(e,t){const n={},r=nb(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 ib={offset:"stroke-dashoffset",array:"stroke-dasharray"},ob={offset:"strokeDashoffset",array:"strokeDasharray"};function sb(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?ib:ob;e[o.offset]=L.transform(-r);const s=L.transform(t),a=L.transform(n);e[o.array]=`${s} ${a}`}function sl(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},c,l,u){if(Wi(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&sb(f,i,o,s,!1)}const al=()=>({...Gi(),attrs:{}}),cl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ab(e,t,n,r){const i=x.useMemo(()=>{const o=al();return sl(o,t,cl(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};ol(o,e.style,e),i.style={...o,...i.style}}return i}const cb=["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 Hi(e){return typeof e!="string"||e.includes("-")?!1:!!(cb.indexOf(e)>-1||/[A-Z]/u.test(e))}function lb(e,t,n,{latestValues:r},i,o=!1){const a=(Hi(e)?ab:rb)(t,r,i,e),c=Z0(t,typeof e=="string",o),l=e!==x.Fragment?{...c,...a,ref:n}:{},{children:u}=t,f=x.useMemo(()=>ue(u)?u.get():u,[u]);return x.createElement(e,{...l,children:f})}function ll(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ki(e,t,n,r){if(typeof t=="function"){const[i,o]=ll(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=ll(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function nr(e){return ue(e)?e.get():e}function ub({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:db(n,r,i,e),renderState:t()}}function db(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=nr(o[d]);let{initial:s,animate:a}=e;const c=tr(e),l=nl(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 f=u?a:s;if(f&&typeof f!="boolean"&&!er(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const g=Ki(e,d[h]);if(g){const{transitionEnd:m,transition:y,...v}=g;for(const E in v){let T=v[E];if(Array.isArray(T)){const C=u?T.length-1:0;T=T[C]}T!==null&&(i[E]=T)}for(const E in m)i[E]=m[E]}}}return i}const ul=e=>(t,n)=>{const r=x.useContext(Qn),i=x.useContext(ni),o=()=>ub(e,t,r,i);return n?o():Hy(o)};function Zi(e,t,n){var o;const{style:r}=e,i={};for(const s in r)(ue(r[s])||t.style&&ue(t.style[s])||il(s,e)||((o=n==null?void 0:n.getValue(s))==null?void 0:o.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const fb=ul({scrapeMotionValuesFromProps:Zi,createRenderState:Gi});function dl(e,t,n){const r=Zi(e,t,n);for(const i in e)if(ue(e[i])||ue(t[i])){const o=_t.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const hb=ul({scrapeMotionValuesFromProps:dl,createRenderState:al}),pb=Symbol.for("motionComponentSymbol");function Ut(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mb(e,t,n){return x.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ut(n)&&(n.current=r))},[t])}const Yi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),fl="data-"+Yi("framerAppearId"),hl=x.createContext({});function gb(e,t,n,r,i){var m,y;const{visualElement:o}=x.useContext(Qn),s=x.useContext(Qc),a=x.useContext(ni),c=x.useContext(Jc).reducedMotion,l=x.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=l.current,f=x.useContext(hl);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&yb(l.current,n,i,f);const d=x.useRef(!1);x.useInsertionEffect(()=>{u&&d.current&&u.update(n,a)});const h=n[fl],g=x.useRef(!!h&&!((m=window.MotionHandoffIsComplete)!=null&&m.call(window,h))&&((y=window.MotionHasOptimisedAnimation)==null?void 0:y.call(window,h)));return Ky(()=>{u&&(d.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),x.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,h)}),g.current=!1))}),u}function yb(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:pl(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&Ut(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function pl(e){if(e)return e.options.allowProjection!==!1?e.projection:pl(e.parent)}function Xi(e,{forwardMotionProps:t=!1}={},n,r){n&&G0(n);const i=Hi(e)?hb:fb;function o(a,c){let l;const u={...x.useContext(Jc),...a,layoutId:vb(a)},{isStatic:f}=u,d=X0(a),h=i(a,f);if(!f&&ti){bb(u,n);const g=wb(u);l=g.MeasureLayout,d.visualElement=gb(e,h,u,r,g.ProjectionNode)}return A.jsxs(Qn.Provider,{value:d,children:[l&&d.visualElement?A.jsx(l,{visualElement:d.visualElement,...u}):null,lb(e,a,mb(h,d.visualElement,c),h,f,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=x.forwardRef(o);return s[pb]=e,s}function vb({layoutId:e}){const t=x.useContext(Ba).id;return t&&e!==void 0?t+"-"+e:e}function bb(e,t){const n=x.useContext(Qc).strict;if(process.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?Rt(!1,r,"lazy-strict-mode"):Be(!1,r,"lazy-strict-mode")}}function wb(e){const{drag:t,layout:n}=$t;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 Tb(e,t){if(typeof Proxy>"u")return Xi;const n=new Map,r=(o,s)=>Xi(o,s,e,t),i=(o,s)=>(process.env.NODE_ENV!=="production"&&ci(!1,"motion() is deprecated. Use motion.create() instead."),r(o,s));return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,Xi(s,void 0,e,t)),n.get(s))})}function ml({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xb({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Eb(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 qi(e){return e===void 0||e===1}function Ji({scale:e,scaleX:t,scaleY:n}){return!qi(e)||!qi(t)||!qi(n)}function wt(e){return Ji(e)||gl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gl(e){return yl(e.x)||yl(e.y)}function yl(e){return e&&e!=="0%"}function rr(e,t,n){const r=e-n,i=t*r;return n+i}function vl(e,t,n,r,i){return i!==void 0&&(e=rr(e,i,r)),rr(e,n,r)+t}function Qi(e,t=0,n=1,r,i){e.min=vl(e.min,t,n,r,i),e.max=vl(e.max,t,n,r,i)}function bl(e,{x:t,y:n}){Qi(e.x,t.translate,t.scale,t.originPoint),Qi(e.y,n.translate,n.scale,n.originPoint)}const wl=.999999999999,Tl=1.0000000000001;function Sb(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Wt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,bl(e,s)),r&&wt(o.latestValues)&&Wt(e,o.latestValues))}t.x<Tl&&t.x>wl&&(t.x=1),t.y<Tl&&t.y>wl&&(t.y=1)}function zt(e,t){e.min=e.min+t,e.max=e.max+t}function xl(e,t,n,r,i=.5){const o=J(e.min,e.max,i);Qi(e,t,n,o,r)}function Wt(e,t){xl(e.x,t.x,t.scaleX,t.scale,t.originX),xl(e.y,t.y,t.scaleY,t.scale,t.originY)}function El(e,t){return ml(Eb(e.getBoundingClientRect(),t))}function Ab(e,t,n){const r=El(e,n),{scroll:i}=t;return i&&(zt(r.x,i.offset.x),zt(r.y,i.offset.y)),r}const Sl=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gt=()=>({x:Sl(),y:Sl()}),Al=()=>({min:0,max:0}),te=()=>({x:Al(),y:Al()}),eo={current:null},Cl={current:!1};function Cb(){if(Cl.current=!0,!!ti)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>eo.current=e.matches;e.addEventListener("change",t),t()}else eo.current=!1}const Pb=new WeakMap;function Mb(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ue(i))e.addValue(r,i);else if(ue(o))e.addValue(r,Bt(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Bt(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Pl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Db{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,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=Ii,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 d=fe.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,X.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=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=tr(n),this.isVariantNode=nl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];c[d]!==void 0&&ue(h)&&h.set(c[d],!1)}}mount(t){this.current=t,Pb.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((n,r)=>this.bindToMotionValue(r,n)),Cl.current||Cb(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:eo.current,process.env.NODE_ENV!=="production"&&ci(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Qe(this.notifyUpdate),Qe(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=jt.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),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 $t){const n=$t[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}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<Pl.length;r++){const i=Pl[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Mb(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=Bt(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"&&($a(r)||za(r))?r=parseFloat(r):!z0(r)&&tt.test(n)&&(r=Uc(t,n)),this.setBaseTarget(t,ue(r)?r.get():r)),ue(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Ki(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ue(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ai),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ji.render(this.render)}}class Ml extends Db{constructor(){super(...arguments),this.KeyframeResolver=k0}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;ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Dl(e,{style:t,vars:n},r,i){const o=e.style;let s;for(s in t)o[s]=t[s];i==null||i.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function kb(e){return window.getComputedStyle(e)}class Ob extends Ml{constructor(){super(...arguments),this.type="html",this.renderInstance=Dl}readValueFromInstance(t,n){var r;if(jt.has(n))return(r=this.projection)!=null&&r.isProjecting?ki(n):Yv(t,n);{const i=kb(t),o=(fi(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return El(t,n)}build(t,n,r){Wi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Zi(t,n,r)}}const kl=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 Vb(e,t,n,r){Dl(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(kl.has(i)?i:Yi(i),t.attrs[i])}class Fb extends Ml{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(jt.has(n)){const r=$c(n);return r&&r.default||0}return n=kl.has(n)?n:Yi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return dl(t,n,r)}build(t,n,r){sl(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Vb(t,n,r,i)}mount(t){this.isSVGTag=cl(t.tagName),super.mount(t)}}const Rb=(e,t)=>Hi(e)?new Fb(t):new Ob(t,{allowProjection:e!==x.Fragment});function gn(e,t,n){const r=e.getProps();return Ki(r,t,n!==void 0?n:r.custom,e)}const to=e=>Array.isArray(e);function Ib(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bt(n))}function Nb(e){return to(e)?e[e.length-1]||0:e}function Lb(e,t){const n=gn(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=Nb(o[s]);Ib(e,s,a)}}function _b(e){return!!(ue(e)&&e.add)}function no(e,t){const n=e.getValue("willChange");if(_b(n))return n.add(t);if(!n&&$e.WillChange){const r=new $e.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ol(e){return e.props[fl]}const jb=e=>e!==null;function Bb(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(jb),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const $b={type:"spring",stiffness:500,damping:25,restSpeed:10},Ub=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zb={type:"keyframes",duration:.8},Wb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gb=(e,{keyframes:t})=>t.length>2?zb:jt.has(e)?e.startsWith("scale")?Ub(t[1]):$b:Wb;function Hb({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const ro=(e,t,n,r={},i,o)=>s=>{const a=Ni(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Ae(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};Hb(a)||Object.assign(u,Gb(e,u)),u.duration&&(u.duration=Ae(u.duration)),u.repeatDelay&&(u.repeatDelay=Ae(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),($e.instantAnimations||$e.skipAnimations)&&(f=!0,u.duration=0,u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const d=Bb(u.keyframes,a);if(d!==void 0){X.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Pi(u):new v0(u)};function Kb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vl(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(o=r);const c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const f=e.getValue(u,e.latestValues[u]??null),d=a[u];if(d===void 0||l&&Kb(l,u))continue;const h={delay:n,...Ni(o||{},u)},g=f.get();if(g!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===g&&!h.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const v=Ol(e);if(v){const E=window.MotionHandoffAnimation(v,u,X);E!==null&&(h.startTime=E,m=!0)}}no(e,u),f.start(ro(u,f,d,e.shouldReduceMotion&&Nc.has(u)?{type:!1}:h,e,m));const y=f.animation;y&&c.push(y)}return s&&Promise.all(c).then(()=>{X.update(()=>{s&&Lb(e,s)})}),c}function io(e,t,n={}){var c;const r=gn(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Vl(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=i;return Zb(e,t,l,u,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function Zb(e,t,n=0,r=0,i=0,o=1,s){const a=[],c=e.variantChildren.size,l=(c-1)*i,u=typeof r=="function",f=u?d=>r(d,c):o===1?(d=0)=>d*i:(d=0)=>l-d*i;return Array.from(e.variantChildren).sort(Yb).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(io(d,t,{...s,delay:n+(u?0:r)+f(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Yb(e,t){return e.sortNodePosition(t)}function Xb(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>io(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=io(e,t,n);else{const i=typeof t=="function"?gn(e,t,n.custom):t;r=Promise.all(Vl(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Fl(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 qb=zi.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<qb;n++){const r=zi[n],i=e.props[r];(pn(i)||i===!1)&&(t[r]=i)}return t}const Jb=[...Ui].reverse(),Qb=Ui.length;function e1(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Xb(e,n,r)))}function t1(e){let t=e1(e),n=Il(),r=!0;const i=c=>(l,u)=>{var d;const f=gn(e,u,c==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:g,...m}=f;l={...l,...m,...g}}return l};function o(c){t=c(e)}function s(c){const{props:l}=e,u=Rl(e.parent)||{},f=[],d=new Set;let h={},g=1/0;for(let y=0;y<Qb;y++){const v=Jb[y],E=n[v],T=l[v]!==void 0?l[v]:u[v],C=pn(T),b=v===c?E.isActive:null;b===!1&&(g=y);let P=T===u[v]&&T!==l[v]&&C;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),E.protectedKeys={...h},!E.isActive&&b===null||!T&&!E.prevProp||er(T)||typeof T=="boolean")continue;const M=n1(E.prevProp,T);let S=M||v===c&&E.isActive&&!P&&C||y>g&&C,N=!1;const K=Array.isArray(T)?T:[T];let he=K.reduce(i(v),{});b===!1&&(he={});const{prevResolvedValues:Pe={}}=E,ae={...Pe,...he},pe=W=>{S=!0,d.has(W)&&(N=!0,d.delete(W)),E.needsAnimating[W]=!0;const V=e.getValue(W);V&&(V.liveStyle=!1)};for(const W in ae){const V=he[W],Me=Pe[W];if(h.hasOwnProperty(W))continue;let xe=!1;to(V)&&to(Me)?xe=!Fl(V,Me):xe=V!==Me,xe?V!=null?pe(W):d.add(W):V!==void 0&&d.has(W)?pe(W):E.protectedKeys[W]=!0}E.prevProp=T,E.prevResolvedValues=he,E.isActive&&(h={...h,...he}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(P&&M)||N)&&f.push(...K.map(W=>({animation:W,options:{type:v}})))}if(d.size){const y={};if(typeof l.initial!="boolean"){const v=gn(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(y.transition=v.transition)}d.forEach(v=>{const E=e.getBaseTarget(v),T=e.getValue(v);T&&(T.liveStyle=!0),y[v]=E??null}),f.push({animation:y})}let m=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(f):Promise.resolve()}function a(c,l){var f;if(n[c].isActive===l)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(c,l)}),n[c].isActive=l;const u=s(c);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Il(),r=!0}}}function n1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Fl(t,e):!1}function Tt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Il(){return{animate:Tt(!0),whileInView:Tt(),whileHover:Tt(),whileTap:Tt(),whileDrag:Tt(),whileFocus:Tt(),exit:Tt()}}class nt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class r1 extends nt{constructor(t){super(t),t.animationState||(t.animationState=t1(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();er(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 i1=0;class o1 extends nt{constructor(){super(...arguments),this.id=i1++}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 i=this.node.animationState.setActive("exit",!t);n&&!t&&i.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 s1={animation:{Feature:r1},exit:{Feature:o1}};function yn(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 a1=e=>t=>Bi(t)&&e(t,vn(t));function bn(e,t,n,r){return yn(e,t,a1(n),r)}const Nl=1e-4,c1=1-Nl,l1=1+Nl,Ll=.01,u1=0-Ll,d1=0+Ll;function de(e){return e.max-e.min}function f1(e,t,n){return Math.abs(e-t)<=n}function _l(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=de(n)/de(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=c1&&e.scale<=l1||isNaN(e.scale))&&(e.scale=1),(e.translate>=u1&&e.translate<=d1||isNaN(e.translate))&&(e.translate=0)}function wn(e,t,n,r){_l(e.x,t.x,n.x,r?r.originX:void 0),_l(e.y,t.y,n.y,r?r.originY:void 0)}function jl(e,t,n){e.min=n.min+t.min,e.max=e.min+de(t)}function h1(e,t,n){jl(e.x,t.x,n.x),jl(e.y,t.y,n.y)}function Bl(e,t,n){e.min=t.min-n.min,e.max=e.min+de(t)}function Tn(e,t,n){Bl(e.x,t.x,n.x),Bl(e.y,t.y,n.y)}function be(e){return[e("x"),e("y")]}const $l=({current:e})=>e?e.ownerDocument.defaultView:null,Ul=(e,t)=>Math.abs(e-t);function p1(e,t){const n=Ul(e.x,t.x),r=Ul(e.y,t.y);return Math.sqrt(n**2+r**2)}class zl{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!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 d=so(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=p1(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!g)return;const{point:m}=d,{timestamp:y}=le;this.history.push({...m,timestamp:y});const{onStart:v,onMove:E}=this.handlers;h||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=oo(h,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=so(d.type==="pointercancel"?this.lastMoveEventInfo:oo(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,v),m&&m(d,v)},!Bi(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=vn(t),c=oo(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=le;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,so(c,this.history)),this.removeListeners=sn(bn(this.contextWindow,"pointermove",this.handlePointerMove),bn(this.contextWindow,"pointerup",this.handlePointerUp),bn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Qe(this.updatePoint)}}function oo(e,t){return t?{point:t(e.point)}:e}function Wl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function so({point:e},t){return{point:e,delta:Wl(e,Gl(t)),offset:Wl(e,m1(t)),velocity:g1(t,.1)}}function m1(e){return e[0]}function Gl(e){return e[e.length-1]}function g1(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Gl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ae(t)));)n--;if(!r)return{x:0,y:0};const o=Ve(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function y1(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?J(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?J(n,e,r.max):Math.min(e,n)),e}function Hl(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 v1(e,{top:t,left:n,bottom:r,right:i}){return{x:Hl(e.x,n,i),y:Hl(e.y,t,r)}}function Kl(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 b1(e,t){return{x:Kl(e.x,t.x),y:Kl(e.y,t.y)}}function w1(e,t){let n=.5;const r=de(e),i=de(t);return i>r?n=an(t.min,t.max-r,e.min):r>i&&(n=an(e.min,e.max-i,t.min)),je(0,1,n)}function T1(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 ao=.35;function x1(e=ao){return e===!1?e=0:e===!0&&(e=ao),{x:Zl(e,"left","right"),y:Zl(e,"top","bottom")}}function Zl(e,t,n){return{min:Yl(e,t),max:Yl(e,n)}}function Yl(e,t){return typeof e=="number"?e:e[t]||0}const E1=new WeakMap;class S1{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=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(vn(f).point)},s=(f,d)=>{const{drag:h,dragPropagation:g,onDragStart:m}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=I0(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),be(v=>{let E=this.getAxisMotionValue(v).get()||0;if(Fe.test(E)){const{projection:T}=this.visualElement;if(T&&T.layout){const C=T.layout.layoutBox[v];C&&(E=de(C)*(parseFloat(E)/100))}}this.originPoint[v]=E}),m&&X.postRender(()=>m(f,d)),no(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:m,onDrag:y}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(g&&this.currentDirection===null){this.currentDirection=A1(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),y&&y(f,d)},c=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>be(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)==null?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new zl(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:$l(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&X.postRender(()=>a(r,i))}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:i}=this.getProps();if(!r||!ir(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=y1(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&Ut(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=v1(r.layoutBox,t):this.constraints=!1,this.elastic=x1(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&be(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=T1(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ut(t))return!1;const r=t.current;Be(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:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Ab(r,i.root,this.visualElement.getTransformPagePoint());let s=b1(i.layout.layoutBox,o);if(n){const a=n(xb(s));this.hasMutatedConstraints=!!a,a&&(s=ml(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=be(u=>{if(!ir(u,n,this.currentDirection))return;let f=c&&c[u]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return no(this.visualElement,t),r.start(ro(t,r,0,n,this.visualElement,!1))}stopAnimation(){be(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){be(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(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){be(n=>{const{drag:r}=this.getProps();if(!ir(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-J(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ut(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};be(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();i[s]=w1({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),be(s=>{if(!ir(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(J(c,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;E1.set(this.visualElement,this);const t=this.visualElement.current,n=bn(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Ut(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(r);const s=yn(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(be(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=ao,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function ir(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function A1(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class C1 extends nt{constructor(t){super(t),this.removeGroupControls=ve,this.removeListeners=ve,this.controls=new S1(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ve}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xl=e=>(t,n)=>{e&&X.postRender(()=>e(t,n))};class P1 extends nt{constructor(){super(...arguments),this.removePointerDownListener=ve}onPointerDown(t){this.session=new zl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$l(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xl(t),onStart:Xl(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&X.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=bn(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 or={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ql(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(L.test(e))e=parseFloat(e);else return e;const n=ql(e,t.target.x),r=ql(e,t.target.y);return`${n}% ${r}%`}},M1={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=tt.parse(e);if(i.length>5)return r;const o=tt.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=c;const l=J(a,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),o(i)}};let Jl=!1;class D1 extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;q0(k1),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),Jl&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),or.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,Jl=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||X.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ji.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ql(e){const[t,n]=W0(),r=x.useContext(Ba);return A.jsx(D1,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(hl),isPresent:t,safeToRemove:n})}const k1={borderRadius:{...xn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xn,borderTopRightRadius:xn,borderBottomLeftRadius:xn,borderBottomRightRadius:xn,boxShadow:M1};function O1(e,t,n){const r=ue(e)?e:Bt(e);return r.start(ro("",r,t,n)),r.animation}const V1=(e,t)=>e.depth-t.depth;class F1{constructor(){this.children=[],this.isDirty=!1}add(t){ri(this.children,t),this.isDirty=!0}remove(t){ii(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(V1),this.isDirty=!1,this.children.forEach(t)}}function R1(e,t){const n=fe.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Qe(r),e(o-t))};return X.setup(r,!0),()=>Qe(r)}const eu=["TopLeft","TopRight","BottomLeft","BottomRight"],I1=eu.length,tu=e=>typeof e=="string"?parseFloat(e):e,nu=e=>typeof e=="number"||L.test(e);function N1(e,t,n,r,i,o){i?(e.opacity=J(0,n.opacity??1,L1(r)),e.opacityExit=J(t.opacity??1,0,_1(r))):o&&(e.opacity=J(t.opacity??1,n.opacity??1,r));for(let s=0;s<I1;s++){const a=`border${eu[s]}Radius`;let c=ru(t,a),l=ru(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||nu(c)===nu(l)?(e[a]=Math.max(J(tu(c),tu(l),r),0),(Fe.test(l)||Fe.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,r))}function ru(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const L1=iu(0,.5,Ja),_1=iu(.5,.95,ve);function iu(e,t,n){return r=>r<e?0:r>t?1:n(an(e,t,r))}function ou(e,t){e.min=t.min,e.max=t.max}function we(e,t){ou(e.x,t.x),ou(e.y,t.y)}function su(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function au(e,t,n,r,i){return e-=t,e=rr(e,1/n,r),i!==void 0&&(e=rr(e,1/i,r)),e}function j1(e,t=0,n=1,r=.5,i,o=e,s=e){if(Fe.test(t)&&(t=parseFloat(t),t=J(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=J(o.min,o.max,r);e===o&&(a-=t),e.min=au(e.min,t,n,a,i),e.max=au(e.max,t,n,a,i)}function cu(e,t,[n,r,i],o,s){j1(e,t[n],t[r],t[i],t.scale,o,s)}const B1=["x","scaleX","originX"],$1=["y","scaleY","originY"];function lu(e,t,n,r){cu(e.x,t,B1,n?n.x:void 0,r?r.x:void 0),cu(e.y,t,$1,n?n.y:void 0,r?r.y:void 0)}function uu(e){return e.translate===0&&e.scale===1}function du(e){return uu(e.x)&&uu(e.y)}function fu(e,t){return e.min===t.min&&e.max===t.max}function U1(e,t){return fu(e.x,t.x)&&fu(e.y,t.y)}function hu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pu(e,t){return hu(e.x,t.x)&&hu(e.y,t.y)}function mu(e){return de(e.x)/de(e.y)}function gu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z1{constructor(){this.members=[]}add(t){ri(this.members,t),t.scheduleRender()}remove(t){if(ii(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;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:i}=t.options;i===!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 W1(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}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 co=["","X","Y","Z"],G1=1e3;let H1=0;function lo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function yu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ol(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&yu(r)}function vu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=H1++,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(Y1),this.nodes.forEach(Q1),this.nodes.forEach(ew),this.nodes.forEach(X1)},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 F1)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ai),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)&&!$0(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,f=0;const d=()=>this.root.updateBlockedByResize=!1;X.read(()=>{f=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,u&&u(),u=R1(d,250),or.hasAnimatedSinceResize&&(or.hasAnimatedSinceResize=!1,this.nodes.forEach(Tu)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||l.getDefaultTransition()||ow,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=l.getProps(),v=!this.targetLayout||!pu(this.targetLayout,h),E=!f&&d;if(this.options.layoutRoot||this.resumeFrom||E||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Ni(g,"layout"),onPlay:m,onComplete:y};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,E)}else f||Tu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(),Qe(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(tw),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&&yu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.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(bu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(wu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(J1),this.nodes.forEach(K1),this.nodes.forEach(Z1)):this.nodes.forEach(wu),this.clearAllSnapshots();const a=fe.now();le.delta=je(0,1e3/60,a-le.timestamp),le.timestamp=a,le.isProcessing=!0,di.update.process(le),di.preRender.process(le),di.render.process(le),le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ji.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(q1),this.sharedNodes.forEach(nw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!de(this.snapshot.measuredBox.x)&&!de(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=te(),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(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!du(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&this.instance&&(a||wt(this.latestValues)||u)&&(i(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)),sw(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:s}=this.options;if(!s)return te();const a=s.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(aw))){const{scroll:u}=this.root;u&&(zt(a.x,u.offset.x),zt(a.y,u.offset.y))}return a}removeElementScroll(s){var c;const a=te();if(we(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:f,options:d}=u;u!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&we(a,s),zt(a.x,f.offset.x),zt(a.y,f.offset.y))}return a}applyTransform(s,a=!1){const c=te();we(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&&Wt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),wt(u.latestValues)&&Wt(c,u.latestValues)}return wt(this.latestValues)&&Wt(c,this.latestValues),c}removeTransform(s){const a=te();we(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!wt(l.latestValues))continue;Ji(l.latestValues)&&l.updateSnapshot();const u=te(),f=l.measurePageBox();we(u,f),lu(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return wt(this.latestValues)&&lu(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!==le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var d;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||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!(!this.layout||!(u||f))){if(this.resolvedRelativeTargetAt=le.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),Tn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),we(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),h1(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):we(this.target,this.layout.layoutBox),bl(this.target,this.targetDelta)):we(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),Tn(this.relativeTargetOrigin,this.target,h.target),we(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ji(this.parent.latestValues)||gl(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 g;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===le.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;we(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;Sb(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=te());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(su(this.prevProjectionDelta.x,this.projectionDelta.x),su(this.prevProjectionDelta.y,this.projectionDelta.y)),wn(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!gu(this.projectionDelta.x,this.prevProjectionDelta.x)||!gu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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=Gt(),this.projectionDelta=Gt(),this.projectionDeltaWithTransform=Gt()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},f=Gt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=te(),h=c?c.source:void 0,g=this.layout?this.layout.source:void 0,m=h!==g,y=this.getStack(),v=!y||y.members.length<=1,E=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(iw));this.animationProgress=0;let T;this.mixTargetDelta=C=>{const b=C/1e3;xu(f.x,s.x,b),xu(f.y,s.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tn(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rw(this.relativeTarget,this.relativeTargetOrigin,d,b),T&&U1(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=te()),we(T,this.relativeTarget)),m&&(this.animationValues=u,N1(u,l,this.latestValues,b,E,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&&(Qe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{or.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Bt(0)),this.currentAnimation=O1(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(G1),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&&Pu(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||te();const f=de(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+f;const d=de(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+d}we(a,c),Wt(a,u),wn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new z1),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&&lo("z",s,l,this.animationValues);for(let u=0;u<co.length;u++)lo(`rotate${co[u]}`,s,l,this.animationValues),lo(`skew${co[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=nr(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=nr(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!wt(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=W1(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),s.transform=f;const{x:d,y:h}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${h.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 g in mn){if(u[g]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:v}=mn[g],E=f==="none"?u[g]:m(u[g],l);if(y){const T=y.length;for(let C=0;C<T;C++)s[y[C]]=E}else v?this.options.visualElement.renderState.vars[g]=E:s[g]=E}this.options.layoutId&&(s.pointerEvents=l===this?nr(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(bu),this.root.sharedNodes.clear()}}}function K1(e){e.updateLayout()}function Z1(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:i}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?be(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],h=de(d);d.min=r[f].min,d.max=d.min+h}):Pu(o,t.layoutBox,r)&&be(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],h=de(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=Gt();wn(a,r,t.layoutBox);const c=Gt();s?wn(c,e.applyTransform(i,!0),t.measuredBox):wn(c,r,t.layoutBox);const l=!du(a);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=te();Tn(g,t.layoutBox,d.layoutBox);const m=te();Tn(m,r,h.layoutBox),pu(g,m)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=g,e.relativeParent=f)}}}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 Y1(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 X1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function q1(e){e.clearSnapshot()}function bu(e){e.clearMeasurements()}function wu(e){e.isLayoutDirty=!1}function J1(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Tu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Q1(e){e.resolveTargetDelta()}function ew(e){e.calcProjection()}function tw(e){e.resetSkewAndRotation()}function nw(e){e.removeLeadSnapshot()}function xu(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Eu(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function rw(e,t,n,r){Eu(e.x,t.x,n.x,r),Eu(e.y,t.y,n.y,r)}function iw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ow={duration:.45,ease:[.4,0,.1,1]},Su=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Au=Su("applewebkit/")&&!Su("chrome/")?Math.round:ve;function Cu(e){e.min=Au(e.min),e.max=Au(e.max)}function sw(e){Cu(e.x),Cu(e.y)}function Pu(e,t,n){return e==="position"||e==="preserve-aspect"&&!f1(mu(t),mu(n),.2)}function aw(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const cw=vu({attachResizeListener:(e,t)=>yn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uo={current:void 0},Mu=vu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uo.current){const e=new cw({});e.mount(window),e.setOptions({layoutScroll:!0}),uo.current=e}return uo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),lw={pan:{Feature:P1},drag:{Feature:C1,ProjectionNode:Mu,MeasureLayout:Ql}};function Du(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&X.postRender(()=>o(t,vn(t)))}class uw extends nt{mount(){const{current:t}=this.node;t&&(this.unmount=N0(t,(n,r)=>(Du(this.node,r,"Start"),i=>Du(this.node,i,"End"))))}unmount(){}}class dw extends nt{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=sn(yn(this.node.current,"focus",()=>this.onFocus()),yn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ku(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 i="onTap"+(n==="End"?"":n),o=r[i];o&&X.postRender(()=>o(t,vn(t)))}class fw extends nt{mount(){const{current:t}=this.node;t&&(this.unmount=B0(t,(n,r)=>(ku(this.node,r,"Start"),(i,{success:o})=>ku(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fo=new WeakMap,ho=new WeakMap,hw=e=>{const t=fo.get(e.target);t&&t(e)},pw=e=>{e.forEach(hw)};function mw({root:e,...t}){const n=e||document;ho.has(n)||ho.set(n,{});const r=ho.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(pw,{root:e,...t})),r[i]}function gw(e,t,n){const r=mw(t);return fo.set(e,n),r.observe(e),()=>{fo.delete(e),r.unobserve(e)}}const yw={some:0,all:1};class vw extends nt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:yw[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=l?u:f;d&&d(c)};return gw(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(bw(t,n))&&this.startObserver()}unmount(){}}function bw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ww={...s1,...{inView:{Feature:vw},tap:{Feature:fw},focus:{Feature:dw},hover:{Feature:uw}},...lw,...{layout:{ProjectionNode:Mu,MeasureLayout:Ql}}},Ou=Tb(ww,Rb),Tw="flex flex-col relative w-full cursor-text",xw=`
126
126
  peer transition-all grow
127
127
  px-4 pt-4 pb-2 border border-solid rounded outline-none
128
128
  border-gray-200 bg-white text-base-black text-base
@@ -135,7 +135,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
135
135
  data-[has-error=true]:border-feedback-danger-200
136
136
  data-[is-loading=true]:animate-pulse
137
137
  data-[has-prefix-icon=true]:pl-10
138
- `,T1=`
138
+ `,Ew=`
139
139
  text-xs text-gray-400 px-4 ml-1 w-[125%]
140
140
  absolute top-3 origin-top-left text-ellipsis overflow-hidden
141
141
  scale-75 duration-300 text-nowrap
@@ -143,32 +143,24 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
143
143
 
144
144
  peer-placeholder-shown:text-base
145
145
  peer-placeholder-shown:scale-100
146
- peer-placeholder-shown:translate-y-0
147
146
  peer-placeholder-shown:w-full
147
+ peer-placeholder-shown:-translate-y-0
148
148
 
149
149
  peer-focus:scale-75
150
150
  peer-focus:text-xs
151
- peer-focus:-translate-y-1
152
151
  peer-focus:w-[125%]
153
152
  peer-focus:ml-1
153
+ peer-focus:-translate-y-1
154
154
 
155
155
  peer-placeholder-shown:peer-data-[has-prefix-icon=true]:ml-6
156
- peer-placeholder-shown:peer-data-[has-prefix-icon=true]:translate-y-0
157
156
  peer-placeholder-shown:peer-data-[has-prefix-icon=true]:w-[calc(100%-24px)]
158
157
 
159
158
  peer-data-[has-prefix-icon=true]:ml-7
160
159
  peer-data-[has-prefix-icon=true]:w-[calc(125%-24px)]
161
160
 
162
161
  peer-focus:peer-data-[has-prefix-icon=true]:ml-7
163
- peer-focus:peer-data-[has-prefix-icon=true]:-translate-y-1
164
162
  peer-focus:peer-data-[has-prefix-icon=true]:w-[calc(125%-24px)]
165
- `,x1=`
166
- h-4 w-4
167
- absolute left-4 top-1/2 -translate-y-1/2
168
- `,S1=`
169
- h-4 w-4
170
- absolute right-4 top-1/2 -translate-y-1/2
171
- `;function ku({name:e,label:t,type:n="text",isDisabled:r,maxLength:i=255,prefixIcon:o,suffixIcon:s,className:a,fieldClassName:c,onChange:l,onFocus:u,onBlur:f}){const{isLoading:d}=Qr(),{isSubmitting:h}=kt(),[g,p]=$n(e),y=T=>{typeof l<"u"&&l(T),g.onChange(T)},v=T=>{typeof u<"u"&&u(T)},S=T=>{typeof f<"u"&&f(T)};return P.jsxs("div",{className:Yt(b1,a||""),children:[P.jsx(Fa,{className:Yt(w1,c||""),type:n,id:e,name:e,placeholder:t,...n==="text"?{maxLength:i}:{max:i},disabled:d||r||h,"data-is-loading":d,"data-has-error":!!p.error,"data-has-prefix-icon":!!o,"data-1p-ignore":!0,onChange:y,onFocus:v,onBlur:S}),P.jsx(Ou.label,{htmlFor:e,className:T1,children:t}),typeof o<"u"&&P.jsx(o,{className:x1}),typeof s<"u"&&P.jsx(s,{className:S1}),P.jsx(Na,{name:e,component:"span",className:La},`error-${e}`)]})}const E1="flex flex-col relative w-full cursor-text",A1=`
163
+ `,Sw="h-4 w-4 absolute left-4 top-1/2 -translate-y-1/2",Aw="h-4 w-4 absolute right-4 top-1/2 -translate-y-1/2";function Vu({name:e,label:t,type:n="text",isDisabled:r,maxLength:i=255,prefixIcon:o,suffixIcon:s,className:a,fieldClassName:c,onChange:l,onFocus:u,onBlur:f}){const{isLoading:d}=Wn(),{isSubmitting:h}=ht(),[g,m]=on(e),y=T=>{typeof l<"u"&&l(T),g.onChange(T)},v=T=>{typeof u<"u"&&u(T)},E=T=>{typeof f<"u"&&f(T)};return A.jsxs("div",{className:it(Tw,a||""),children:[A.jsx(Qr,{className:it(xw,c||""),type:n,id:e,name:e,placeholder:t,...n==="text"?{maxLength:i}:{max:i},disabled:d||r||h,"data-is-loading":d,"data-has-error":!!m.error,"data-has-prefix-icon":!!o,"data-1p-ignore":!0,onChange:y,onFocus:v,onBlur:E}),A.jsx(Ou.label,{htmlFor:e,className:Ew,children:t}),typeof o<"u"&&A.jsx(o,{className:Sw}),typeof s<"u"&&A.jsx(s,{className:Aw}),A.jsx(La,{name:e,component:"span",className:ja},`error-${e}`)]})}const Cw="flex flex-col relative w-full cursor-text",Pw=`
172
164
  flex transition-all grow resize-none
173
165
  px-4 pt-6 pb-1.5 border border-solid rounded outline-none
174
166
  border-gray-200 bg-white text-black
@@ -181,11 +173,11 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
181
173
  data-[is-loading=true]:animate-pulse
182
174
  data-[has-prefix-icon=true]:pl-10
183
175
  data-[has-max-length=true]:pb-10
184
- `,C1=`
176
+ `,Mw=`
185
177
  p-0 relative peer text-sm placeholder:text-transparent bg-transparent
186
178
  max-h-56 min-h-14 w-full border-0 appearance-none
187
179
  focus:outline-none resize-none
188
- `,P1=`
180
+ `,Dw=`
189
181
  text-sm text-gray-400
190
182
  absolute top-4 origin-top-left
191
183
  scale-75 duration-300
@@ -200,33 +192,61 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
200
192
  peer-focus:scale-75
201
193
  peer-focus:-translate-y-2
202
194
  peer-data-[has-prefix-icon=true]:mx-10
203
- `,M1=`
195
+ `,kw=`
204
196
  h-4 w-4
205
197
  absolute left-4 top-1/2 -translate-y-1/2
206
- `,D1=`
198
+ `,Ow=`
207
199
  text-sm text-gray-400
208
200
  absolute bottom-3.5 right-8 origin-bottom-right
209
- `;function O1({name:e,label:t,isDisabled:n,maxLength:r,rows:i=1,grow:o=!0,prefixIcon:s,className:a,onChange:c}){const{isLoading:l}=Qr(),{isSubmitting:u}=kt(),f=x.useRef(null),[d,h,g]=$n(e);x.useEffect(()=>{!o||!f||f.current&&(f.current.style.height="0px",f.current.style.height=`${f.current.scrollHeight}px`)},[o,f,d.value]);const p=v=>{typeof c<"u"&&c(v),d.onChange(v)},y=()=>{var v;(v=f.current)==null||v.focus()};return P.jsxs("div",{className:`${E1} ${a||""}`,children:[P.jsxs("div",{className:A1,"data-is-loading":l,"data-has-prefix-icon":!!s,"data-has-max-length":!!r,onClick:y,children:[P.jsx(Fa,{innerRef:f,component:"textarea",rows:i,className:C1,id:e,name:e,placeholder:t,maxLength:r,disabled:l||n||u,onChange:p,"data-1p-ignore":!0}),P.jsx(Ou.label,{htmlFor:e,className:P1,children:t}),typeof s<"u"&&P.jsx(s,{className:M1}),!!r&&P.jsx("div",{className:D1,children:`${h.value.length} / ${r}`})]}),P.jsx(Na,{name:e,component:"span",className:La},`error-${e}`)]})}const k1="pr-10 truncate",R1=`
201
+ `;function Vw({name:e,label:t,isDisabled:n,maxLength:r,rows:i=1,grow:o=!0,prefixIcon:s,className:a,onChange:c}){const{isLoading:l}=Wn(),{isSubmitting:u}=ht(),f=x.useRef(null),[d,h,g]=on(e);x.useEffect(()=>{!o||!f||f.current&&(f.current.style.height="0px",f.current.style.height=`${f.current.scrollHeight}px`)},[o,f,d.value]);const m=v=>{typeof c<"u"&&c(v),d.onChange(v)},y=()=>{var v;(v=f.current)==null||v.focus()};return A.jsxs("div",{className:`${Cw} ${a||""}`,children:[A.jsxs("div",{className:Pw,"data-is-loading":l,"data-has-prefix-icon":!!s,"data-has-max-length":!!r,onClick:y,children:[A.jsx(Qr,{innerRef:f,component:"textarea",rows:i,className:Mw,id:e,name:e,placeholder:t,maxLength:r,disabled:l||n||u,onChange:m,"data-1p-ignore":!0}),A.jsx(Ou.label,{htmlFor:e,className:Dw,children:t}),typeof s<"u"&&A.jsx(s,{className:kw}),!!r&&A.jsx("div",{className:Ow,children:`${h.value.length} / ${r}`})]}),A.jsx(La,{name:e,component:"span",className:ja},`error-${e}`)]})}const Fw="pr-10 truncate",Rw=`
210
202
  border-0 p-0 cursor-pointer
211
203
  absolute top-1/2 -translate-y-1/2
212
204
  right-4 bg-transparent
213
- `,V1=`
205
+ `,Iw=`
214
206
  h-4 w-4
215
- `,F1=`
207
+ `,Nw=`
216
208
  animate-spin h-4 w-4
217
209
  absolute top-4 right-9
218
- `;function Ru({name:e,label:t,isLoading:n,isDisabled:r,maxLength:i=255,prefixIcon:o,suffixIcon:s,className:a,onChange:c,onClear:l,onFocus:u,onBlur:f}){const[,d,h]=$n(e),g=y=>{typeof c<"u"&&c(y)},p=()=>{h.setValue(""),typeof c<"u"&&c({target:{value:""}}),typeof l<"u"&&l()};return P.jsxs(P.Fragment,{children:[P.jsx(ku,{name:e,label:t,isDisabled:r,maxLength:i,prefixIcon:o,suffixIcon:s,className:a,fieldClassName:k1,onChange:g,onFocus:u,onBlur:f}),n&&P.jsx(Ss,{className:F1}),!!d.value&&P.jsx("button",{type:"button",className:R1,onClick:p,children:P.jsx(Dr,{className:V1})})]})}const I1="relative",N1="relative",_1=`
210
+ `;function Fu({name:e,label:t,isLoading:n,isDisabled:r,maxLength:i=255,prefixIcon:o,suffixIcon:s,className:a,onChange:c,onClear:l,onFocus:u,onBlur:f}){const[,d,h]=on(e),g=y=>{typeof c<"u"&&c(y)},m=()=>{h.setValue(""),typeof c<"u"&&c({target:{value:""}}),typeof l<"u"&&l()};return A.jsxs(A.Fragment,{children:[A.jsx(Vu,{name:e,label:t,isDisabled:r,maxLength:i,prefixIcon:o,suffixIcon:s,className:a,fieldClassName:Fw,onChange:g,onFocus:u,onBlur:f}),n&&A.jsx(As,{className:Nw}),!!d.value&&A.jsx("button",{type:"button",className:Rw,onClick:m,children:A.jsx(kr,{className:Iw})})]})}const Lw=`
211
+ group/checkbox
212
+ data-[is-disabled=true]:pointer-events-none
213
+ data-[is-disabled=true]:cursor-default
214
+ `,_w=`
215
+ w-5 h-5 rounded-md bg-white
216
+ peer relative shrink-0
217
+ appearance-none
218
+ border border-neutral-400
219
+ hover:border-base-black
220
+ group-hover/checkbox:border-base-black
221
+
222
+ checked:bg-primary-100
223
+ checked:border-0
224
+ checked:hover:bg-primary-200
225
+
226
+ disabled:border-neutral-300
227
+ disabled:checked:bg-neutral-300
228
+ `,jw=`
229
+ text-sm text-neutral-400 font-normal
230
+
231
+ group-hover/checkbox:text-base-black
232
+ group-hover/checkbox:font-medium
233
+
234
+ peer-checked:hover:text-base-black
235
+ group-data-[is-disabled=true]/checkbox:text-neutral-300
236
+
237
+ flex gap-2 cursor-pointer
238
+ `,Bw="absolute w-4 h-4 ml-0.5 mt-0.5 hidden peer-checked:block fill-white";function $w({name:e,label:t,className:n,fieldClassName:r,isDisabled:i,onChange:o,onFocus:s}){const{isLoading:a}=Wn(),{isSubmitting:c}=ht(),[l]=on(e),u=d=>{typeof o<"u"&&o(d),l.onChange(d)},f=d=>{typeof s<"u"&&s(d)};return A.jsx("div",{className:it(Lw,n||""),"data-is-disabled":i,children:A.jsxs("label",{className:jw,children:[A.jsx(Qr,{type:"checkbox",name:e,className:it(_w,r||""),onChange:u,onFocus:f,disabled:a||i||c}),t&&A.jsx(A.Fragment,{children:t}),A.jsx(Ss,{className:Bw,size:20})]})})}const Uw="relative",zw="relative",Ww=`
219
239
  absolute top-0 left-0 right-0
220
240
  list-none px-0 py-1 mt-1
221
241
  rounded-lg overflow-hidden
222
242
  bg-white shadow-multi-2sm rounded-lg
223
- `,L1=`
243
+ `,Gw=`
224
244
  py-2.5 px-4 cursor-pointer transition-all
225
245
  bg-white hover:bg-primary-10 hover:font-medium hover:text-black
226
- `,j1=`
246
+ `,Hw=`
227
247
  absolute top-0 left-0 right-0 bottom-0
228
248
  px-4 flex items-center pointer-events-none
229
249
  text-gray-800
230
250
 
231
251
  data-[has-prefix-icon="true"]:pl-10
232
- `;function B1({name:e,label:t,options:n=[],selectedLabel:r,isLoading:i,isDisabled:o,clearOnSelect:s=!0,maxLength:a=255,prefixIcon:c,suffixIcon:l,className:u,onChange:f,onClear:d,onFocus:h,onBlur:g,onSelect:p}){const[y,v]=x.useState(!1),[S,,T]=$n(e),A=()=>{const N=n.length>0;y!==N&&v(N)};x.useEffect(()=>{A()},[n,A]);const b=x.useMemo(()=>r&&s&&!y&&!S.value,[r,s,y,S.value]),C=N=>{A(),typeof h<"u"&&h(N)},M=N=>{setTimeout(()=>{v(!1),typeof r>"u"&&s&&T.setValue(""),typeof f<"u"&&f({target:{value:""}}),typeof g<"u"&&g(N)},250)},E=N=>K=>{typeof p<"u"&&p(N),v(!1),s?T.setValue(""):T.setValue(N)};return P.jsxs("div",{className:I1,tabIndex:0,children:[P.jsx(Ru,{name:e,label:b?"":t,isLoading:i,isDisabled:o,maxLength:a,prefixIcon:c,suffixIcon:y?void 0:l,className:u,onChange:f,onClear:d,onBlur:M,onFocus:C}),b&&s&&P.jsx("div",{className:j1,"data-has-prefix-icon":!!c,children:r}),y&&P.jsx("div",{className:N1,children:P.jsx("ul",{className:_1,children:n.map(N=>P.jsx("li",{className:L1,onClick:E(N.value),children:N.label},N.key))})})]})}function U1({isLoading:e=!1,enableReinitialize:t=!0,initialValues:n,validationSchema:r,isForcedDirty:i,onSubmit:o,className:s,children:a}){const[c,l]=x.useState(null),u=d=>{l(d)},f=(d,h)=>{typeof o<"u"?o(d).finally(()=>{h.setSubmitting(!1)}):h.setSubmitting(!1)};return P.jsx(_a.Provider,{value:{isLoading:e,isForcedDirty:i,onNavigationEvent:u},children:P.jsx(My,{enableReinitialize:t,initialValues:n,validationSchema:r,onSubmit:f,children:d=>P.jsx("form",{onSubmit:d.handleSubmit,className:`${$y} ${s||""}`,children:a})})})}const $1=Object.freeze(Object.defineProperty({__proto__:null,Button:zy,Input:ku,Root:U1,Search:Ru,SearchAndSelect:B1,Textarea:O1},Symbol.toStringTag,{value:"Module"}));Y.Button=dr,Y.Card=Vo,Y.Form=$1,Y.Modal=ph,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
252
+ `;function Kw({name:e,label:t,options:n=[],selectedLabel:r,isLoading:i,isDisabled:o,clearOnSelect:s=!0,maxLength:a=255,prefixIcon:c,suffixIcon:l,className:u,onChange:f,onClear:d,onFocus:h,onBlur:g,onSelect:m}){const[y,v]=x.useState(!1),[E,,T]=on(e),C=()=>{const N=n.length>0;y!==N&&v(N)};x.useEffect(()=>{C()},[n,C]);const b=x.useMemo(()=>r&&s&&!y&&!E.value,[r,s,y,E.value]),P=N=>{C(),typeof h<"u"&&h(N)},M=N=>{setTimeout(()=>{v(!1),typeof r>"u"&&s&&T.setValue(""),typeof f<"u"&&f({target:{value:""}}),typeof g<"u"&&g(N)},250)},S=N=>K=>{typeof m<"u"&&m(N),v(!1),s?T.setValue(""):T.setValue(N)};return A.jsxs("div",{className:Uw,tabIndex:0,children:[A.jsx(Fu,{name:e,label:b?"":t,isLoading:i,isDisabled:o,maxLength:a,prefixIcon:c,suffixIcon:y?void 0:l,className:u,onChange:f,onClear:d,onBlur:M,onFocus:P}),b&&s&&A.jsx("div",{className:Hw,"data-has-prefix-icon":!!c,children:r}),y&&A.jsx("div",{className:zw,children:A.jsx("ul",{className:Ww,children:n.map(N=>A.jsx("li",{className:Gw,onClick:S(N.value),children:N.label},N.key))})})]})}function Zw({isLoading:e=!1,enableReinitialize:t=!0,initialValues:n,validationSchema:r,isForcedDirty:i,onSubmit:o,className:s,children:a}){const[c,l]=x.useState(null),u=d=>{l(d)},f=(d,h)=>{typeof o<"u"?o(d).finally(()=>{h.setSubmitting(!1)}):h.setSubmitting(!1)};return A.jsx(_a.Provider,{value:{isLoading:e,isForcedDirty:i,onNavigationEvent:u},children:A.jsx(ky,{enableReinitialize:t,initialValues:n,validationSchema:r,onSubmit:f,children:d=>A.jsx("form",{onSubmit:d.handleSubmit,className:`${Wy} ${s||""}`,children:a})})})}const Yw=Object.freeze(Object.defineProperty({__proto__:null,Button:Gy,Checkbox:$w,Input:Vu,Root:Zw,Search:Fu,SearchAndSelect:Kw,Textarea:Vw},Symbol.toStringTag,{value:"Module"}));Z.Button=hr,Z.Card=Ro,Z.Form=Yw,Z.Modal=gh,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});