@local-logic/design-system 0.7.50 → 0.7.52
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.es.js +11050 -12861
- package/dist/index.umd.js +63 -63
- package/dist/style.css +2 -1
- package/package.json +6 -6
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(z,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],v):(z=typeof globalThis<"u"?globalThis:z||self,v(z.LocalLogicDesignSystem={},z.jsxRuntime,z.React,z.ReactDOM))})(this,(function(z,v,E,ms){"use strict";function gs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=gs(E),ys=gs(ms),_r="-",Of=e=>{const t=Ff(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(_r);return a[0]===""&&a.length!==1&&a.shift(),vs(a,t)||Vf(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},vs=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?vs(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(_r);return t.validators.find(({validator:s})=>s(i))?.classGroupId},bs=/^\[(.+)\]$/,Vf=e=>{if(bs.test(e)){const t=bs.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ff=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)jr(n[o],r,o,t);return r},jr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ws(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(kf(o)){jr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{jr(s,ws(t,i),n,r)})})},ws=(e,t)=>{let n=e;return t.split(_r).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},kf=e=>e.isThemeGetter,If=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Br="!",$r=":",Nf=$r.length,Lf=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;for(let y=0;y<o.length;y++){let m=o[y];if(s===0&&a===0){if(m===$r){i.push(o.slice(c,y)),c=y+Nf;continue}if(m==="/"){l=y;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=i.length===0?o:o.substring(c),d=Rf(u),h=d!==u,p=l&&l>c?l-c:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const o=t+$r,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Rf=e=>e.endsWith(Br)?e.substring(0,e.length-1):e.startsWith(Br)?e.substring(1):e,_f=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},jf=e=>({cache:If(e.cacheSize),parseClassName:Lf(e),sortModifiers:_f(e),...Of(e)}),Bf=/\s+/,$f=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Bf);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:d,modifiers:h,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let g=!!m,b=r(g?y.substring(0,m):y);if(!b){if(!g){c=u+(c.length>0?" "+c:c);continue}if(b=r(y),!b){c=u+(c.length>0?" "+c:c);continue}g=!1}const x=i(h).join(":"),T=p?x+Br:x,P=T+b;if(s.includes(P))continue;s.push(P);const w=o(b,g);for(let M=0;M<w.length;++M){const A=w[M];s.push(T+A)}c=u+(c.length>0?" "+c:c)}return c};function Uf(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ts(t))&&(r&&(r+=" "),r+=n);return r}const Ts=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ts(e[r]))&&(n&&(n+=" "),n+=t);return n};function Wf(e,...t){let n,r,o,i=s;function s(c){const l=t.reduce((u,d)=>d(u),e());return n=jf(l),r=n.cache.get,o=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=$f(c,n);return o(c,u),u}return function(){return i(Uf.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Es=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zf=/^\d+\/\d+$/,Zf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hf=/\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$/,Kf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ut=e=>zf.test(e),j=e=>!!e&&!Number.isNaN(Number(e)),at=e=>!!e&&Number.isInteger(Number(e)),Ur=e=>e.endsWith("%")&&j(e.slice(0,-1)),Ge=e=>Zf.test(e),Xf=()=>!0,qf=e=>Hf.test(e)&&!Kf.test(e),Ss=()=>!1,Qf=e=>Gf.test(e),Jf=e=>Yf.test(e),eh=e=>!V(e)&&!F(e),th=e=>Wt(e,Ds,Ss),V=e=>Es.test(e),Tt=e=>Wt(e,Os,qf),Wr=e=>Wt(e,sh,j),As=e=>Wt(e,Ps,Ss),nh=e=>Wt(e,Ms,Jf),Zn=e=>Wt(e,Vs,Qf),F=e=>xs.test(e),gn=e=>zt(e,Os),rh=e=>zt(e,ah),Cs=e=>zt(e,Ps),oh=e=>zt(e,Ds),ih=e=>zt(e,Ms),Hn=e=>zt(e,Vs,!0),Wt=(e,t,n)=>{const r=Es.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zt=(e,t,n=!1)=>{const r=xs.exec(e);return r?r[1]?t(r[1]):n:!1},Ps=e=>e==="position"||e==="percentage",Ms=e=>e==="image"||e==="url",Ds=e=>e==="length"||e==="size"||e==="bg-size",Os=e=>e==="length",sh=e=>e==="number",ah=e=>e==="family-name",Vs=e=>e==="shadow",ct=Wf(()=>{const e=pe("color"),t=pe("font"),n=pe("text"),r=pe("font-weight"),o=pe("tracking"),i=pe("leading"),s=pe("breakpoint"),a=pe("container"),c=pe("spacing"),l=pe("radius"),u=pe("shadow"),d=pe("inset-shadow"),h=pe("text-shadow"),p=pe("drop-shadow"),y=pe("blur"),m=pe("perspective"),g=pe("aspect"),b=pe("ease"),x=pe("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...P(),F,V],M=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],C=()=>[F,V,c],L=()=>[Ut,"full","auto",...C()],$=()=>[at,"none","subgrid",F,V],J=()=>["auto",{span:["full",at,F,V]},at,F,V],Ee=()=>[at,"auto",F,V],de=()=>["auto","min","max","fr",F,V],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],ie=()=>["auto",...C()],U=()=>[Ut,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],D=()=>[e,F,V],he=()=>[...P(),Cs,As,{position:[F,V]}],we=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Me=()=>["auto","cover","contain",oh,th,{size:[F,V]}],xe=()=>[Ur,gn,Tt],X=()=>["","none","full",l,F,V],ae=()=>["",j,gn,Tt],De=()=>["solid","dashed","dotted","double"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[j,Ur,Cs,As],$t=()=>["","none",y,F,V],ot=()=>["none",j,F,V],it=()=>["none",j,F,V],st=()=>[j,F,V],k=()=>[Ut,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ge],breakpoint:[Ge],color:[Xf],container:[Ge],"drop-shadow":[Ge],ease:["in","out","in-out"],font:[eh],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ge],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ge],shadow:[Ge],spacing:["px",j],text:[Ge],"text-shadow":[Ge],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ut,V,F,g]}],container:["container"],columns:[{columns:[j,V,F,a]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",F,V]}],basis:[{basis:[Ut,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,Ut,"auto","initial","none",V]}],grow:[{grow:["",j,F,V]}],shrink:[{shrink:["",j,F,V]}],order:[{order:[at,"first","last","none",F,V]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":Ee()}],"col-end":[{"col-end":Ee()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":Ee()}],"row-end":[{"row-end":Ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[a,"screen",...U()]}],"min-w":[{"min-w":[a,"screen","none",...U()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,gn,Tt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,F,Wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ur,V]}],"font-family":[{font:[rh,V,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,F,V]}],"line-clamp":[{"line-clamp":[j,"none",F,Wr]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",F,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",F,Tt]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[j,"auto",F,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:we()}],"bg-size":[{bg:Me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,F,V],radial:["",F,V],conic:[at,F,V]},ih,nh]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...De(),"hidden","none"]}],"divide-style":[{divide:[...De(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...De(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,F,V]}],"outline-w":[{outline:["",j,gn,Tt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",u,Hn,Zn]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",d,Hn,Zn]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[j,Tt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",h,Hn,Zn]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[j,F,V]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Bt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[F,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:we()}],"mask-size":[{mask:Me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,V]}],filter:[{filter:["","none",F,V]}],blur:[{blur:$t()}],brightness:[{brightness:[j,F,V]}],contrast:[{contrast:[j,F,V]}],"drop-shadow":[{"drop-shadow":["","none",p,Hn,Zn]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",j,F,V]}],"hue-rotate":[{"hue-rotate":[j,F,V]}],invert:[{invert:["",j,F,V]}],saturate:[{saturate:[j,F,V]}],sepia:[{sepia:["",j,F,V]}],"backdrop-filter":[{"backdrop-filter":["","none",F,V]}],"backdrop-blur":[{"backdrop-blur":$t()}],"backdrop-brightness":[{"backdrop-brightness":[j,F,V]}],"backdrop-contrast":[{"backdrop-contrast":[j,F,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,F,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,F,V]}],"backdrop-invert":[{"backdrop-invert":["",j,F,V]}],"backdrop-opacity":[{"backdrop-opacity":[j,F,V]}],"backdrop-saturate":[{"backdrop-saturate":[j,F,V]}],"backdrop-sepia":[{"backdrop-sepia":["",j,F,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",F,V]}],ease:[{ease:["linear","initial",b,F,V]}],delay:[{delay:[j,F,V]}],animate:[{animate:["none",x,F,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,F,V]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:ot()}],"rotate-x":[{"rotate-x":ot()}],"rotate-y":[{"rotate-y":ot()}],"rotate-z":[{"rotate-z":ot()}],scale:[{scale:it()}],"scale-x":[{"scale-x":it()}],"scale-y":[{"scale-y":it()}],"scale-z":[{"scale-z":it()}],"scale-3d":["scale-3d"],skew:[{skew:st()}],"skew-x":[{"skew-x":st()}],"skew-y":[{"skew-y":st()}],transform:[{transform:[F,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:k()}],"translate-x":[{"translate-x":k()}],"translate-y":[{"translate-y":k()}],"translate-z":[{"translate-z":k()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F,V]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[j,gn,Tt,Wr]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ch=`
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`),require(`react/jsx-runtime`),require(`react-dom`)):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.LocalLogicDesignSystem={},e.React,e.jsxRuntime,e.ReactDOM))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(e&&(t=e(e=0)),t),d=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),f=(e,t)=>{let n={};for(var r in e)a(n,r,{get:e[r],enumerable:!0});return t||a(n,Symbol.toStringTag,{value:`Module`}),n},p=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e},m=(e,t,n)=>(n=e==null?{}:i(c(e)),p(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e)),h=e=>l.call(e,`module.exports`)?e[`module.exports`]:p(a({},`__esModule`,{value:!0}),e);let g=m(t,1);t=m(t),r=m(r,1);var _=`-`,v=e=>{let t=S(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split(_);return n[0]===``&&n.length!==1&&n.shift(),y(n,t)||x(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},y=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?y(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(_);return t.validators.find(({validator:e})=>e(a))?.classGroupId},b=/^\[(.+)\]$/,x=e=>{if(b.test(e)){let t=b.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}},S=e=>{let{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(let e in n)C(n[e],r,e,t);return r},C=(e,t,n,r)=>{e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:w(t,e);r.classGroupId=n;return}if(typeof e==`function`){if(T(e)){C(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{C(i,w(t,e),n,r)})})},w=(e,t)=>{let n=e;return t.split(_).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},T=e=>e.isThemeGetter,ee=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},te=`!`,ne=`:`,E=1,D=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a;for(let o=0;o<e.length;o++){let s=e[o];if(n===0&&r===0){if(s===ne){t.push(e.slice(i,o)),i=o+E;continue}if(s===`/`){a=o;continue}}s===`[`?n++:s===`]`?n--:s===`(`?r++:s===`)`&&r--}let o=t.length===0?e:e.substring(i),s=re(o);return{modifiers:t,hasImportantModifier:s!==o,baseClassName:s,maybePostfixModifierPosition:a&&a>i?a-i:void 0}};if(t){let e=t+ne,n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},re=e=>e.endsWith(te)?e.substring(0,e.length-1):e.startsWith(te)?e.substring(1):e,ie=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;let n=[],r=[];return e.forEach(e=>{e[0]===`[`||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},ae=e=>({cache:ee(e.cacheSize),parseClassName:D(e),sortModifiers:ie(e),...v(e)}),O=/\s+/,oe=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(O),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=a(u).join(`:`),_=d?g+te:g,v=_+h;if(o.includes(v))continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c};function se(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=ce(t))&&(r&&(r+=` `),r+=n);return r}var ce=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ce(e[r]))&&(n&&(n+=` `),n+=t);return n};function le(e,...t){let n,r,i,a=o;function o(o){return n=ae(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=oe(e,n);return i(e,a),a}return function(){return a(se.apply(null,arguments))}}var k=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},A=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ue=/^\d+\/\d+$/,de=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,M=/\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$/,fe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,me=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,he=e=>ue.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>!!e&&Number.isInteger(Number(e)),_e=e=>e.endsWith(`%`)&&N(e.slice(0,-1)),ve=e=>de.test(e),ye=()=>!0,be=e=>M.test(e)&&!fe.test(e),xe=()=>!1,Se=e=>pe.test(e),Ce=e=>me.test(e),we=e=>!P(e)&&!F(e),Te=e=>Le(e,Ve,xe),P=e=>A.test(e),Ee=e=>Le(e,He,be),De=e=>Le(e,Ue,N),Oe=e=>Le(e,ze,xe),ke=e=>Le(e,Be,Ce),Ae=e=>Le(e,Ge,Se),F=e=>j.test(e),je=e=>Re(e,He),Me=e=>Re(e,We),Ne=e=>Re(e,ze),Pe=e=>Re(e,Ve),Fe=e=>Re(e,Be),Ie=e=>Re(e,Ge,!0),Le=(e,t,n)=>{let r=A.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Re=(e,t,n=!1)=>{let r=j.exec(e);return r?r[1]?t(r[1]):n:!1},ze=e=>e===`position`||e===`percentage`,Be=e=>e===`image`||e===`url`,Ve=e=>e===`length`||e===`size`||e===`bg-size`,He=e=>e===`length`,Ue=e=>e===`number`,We=e=>e===`family-name`,Ge=e=>e===`shadow`,Ke=le(()=>{let e=k(`color`),t=k(`font`),n=k(`text`),r=k(`font-weight`),i=k(`tracking`),a=k(`leading`),o=k(`breakpoint`),s=k(`container`),c=k(`spacing`),l=k(`radius`),u=k(`shadow`),d=k(`inset-shadow`),f=k(`text-shadow`),p=k(`drop-shadow`),m=k(`blur`),h=k(`perspective`),g=k(`aspect`),_=k(`ease`),v=k(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),F,P],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[F,P,c],T=()=>[he,`full`,`auto`,...w()],ee=()=>[ge,`none`,`subgrid`,F,P],te=()=>[`auto`,{span:[`full`,ge,F,P]},ge,F,P],ne=()=>[ge,`auto`,F,P],E=()=>[`auto`,`min`,`max`,`fr`,F,P],D=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],re=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ie=()=>[`auto`,...w()],ae=()=>[he,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],O=()=>[e,F,P],oe=()=>[...b(),Ne,Oe,{position:[F,P]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ce=()=>[`auto`,`cover`,`contain`,Pe,Te,{size:[F,P]}],le=()=>[_e,je,Ee],A=()=>[``,`none`,`full`,l,F,P],j=()=>[``,N,je,Ee],ue=()=>[`solid`,`dashed`,`dotted`,`double`],de=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],M=()=>[N,_e,Ne,Oe],fe=()=>[``,`none`,m,F,P],pe=()=>[`none`,N,F,P],me=()=>[`none`,N,F,P],be=()=>[N,F,P],xe=()=>[he,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ve],breakpoint:[ve],color:[ye],container:[ve],"drop-shadow":[ve],ease:[`in`,`out`,`in-out`],font:[we],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ve],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ve],shadow:[ve],spacing:[`px`,N],text:[ve],"text-shadow":[ve],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,he,P,F,g]}],container:[`container`],columns:[{columns:[N,P,F,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ge,`auto`,F,P]}],basis:[{basis:[he,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[N,he,`auto`,`initial`,`none`,P]}],grow:[{grow:[``,N,F,P]}],shrink:[{shrink:[``,N,F,P]}],order:[{order:[ge,`first`,`last`,`none`,F,P]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...D(),`normal`]}],"justify-items":[{"justify-items":[...re(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...re()]}],"align-content":[{content:[`normal`,...D()]}],"align-items":[{items:[...re(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...re(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...re(),`baseline`]}],"place-self":[{"place-self":[`auto`,...re()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ae()}],w:[{w:[s,`screen`,...ae()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ae()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ae()]}],h:[{h:[`screen`,`lh`,...ae()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ae()]}],"max-h":[{"max-h":[`screen`,`lh`,...ae()]}],"font-size":[{text:[`base`,n,je,Ee]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,F,De]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,_e,P]}],"font-family":[{font:[Me,P,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,F,P]}],"line-clamp":[{"line-clamp":[N,`none`,F,De]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,F,P]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,F,P]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[N,`from-font`,`auto`,F,Ee]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[N,`auto`,F,P]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,F,P]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,F,P]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ge,F,P],radial:[``,F,P],conic:[ge,F,P]},Fe,ke]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":j()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`hidden`,`none`]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[N,F,P]}],"outline-w":[{outline:[``,N,je,Ee]}],"outline-color":[{outline:O()}],shadow:[{shadow:[``,`none`,u,Ie,Ae]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ie,Ae]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:j()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[N,Ee]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":[`none`,f,Ie,Ae]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[N,F,P]}],"mix-blend":[{"mix-blend":[...de(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":de()}],"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":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[F,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,F,P]}],filter:[{filter:[``,`none`,F,P]}],blur:[{blur:fe()}],brightness:[{brightness:[N,F,P]}],contrast:[{contrast:[N,F,P]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ie,Ae]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:[``,N,F,P]}],"hue-rotate":[{"hue-rotate":[N,F,P]}],invert:[{invert:[``,N,F,P]}],saturate:[{saturate:[N,F,P]}],sepia:[{sepia:[``,N,F,P]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,F,P]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[N,F,P]}],"backdrop-contrast":[{"backdrop-contrast":[N,F,P]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,N,F,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,F,P]}],"backdrop-invert":[{"backdrop-invert":[``,N,F,P]}],"backdrop-opacity":[{"backdrop-opacity":[N,F,P]}],"backdrop-saturate":[{"backdrop-saturate":[N,F,P]}],"backdrop-sepia":[{"backdrop-sepia":[``,N,F,P]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,F,P]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[N,`initial`,F,P]}],ease:[{ease:[`linear`,`initial`,_,F,P]}],delay:[{delay:[N,F,P]}],animate:[{animate:[`none`,v,F,P]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,F,P]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":[`scale-3d`],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[F,P,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":[`translate-none`],accent:[{accent:O()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,F,P]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,F,P]}],fill:[{fill:[`none`,...O()]}],"stroke-w":[{stroke:[N,je,Ee,De]}],stroke:[{stroke:[`none`,...O()]}],"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`]}}),qe=`
|
|
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
|
-
`,
|
|
47
|
+
`,Je=`h-6 w-6`,Ye=g.default.forwardRef(({children:e,className:t=``,variant:r=`primary`,size:i=`small`,prefixIcon:a,suffixIcon:o,isDisabled:s=!1,inverse:c=!1,onClick:l,type:u=`button`,...d},f)=>(0,n.jsxs)(`button`,{onClick:e=>{l&&l(e)},className:Ke(qe,t),disabled:s,"data-variant":r,"data-size":i,"data-inverse":c,type:u,...d,children:[a&&g.default.cloneElement(a,{...a.props,className:Ke(Je,a.props.className)}),e,o&&g.default.cloneElement(o,{...o.props,className:Ke(Je,o.props.className)})]}));Ye.displayName=`Button`;var Xe=`
|
|
48
48
|
font-sans
|
|
49
49
|
rounded-lg p-9 relative
|
|
50
50
|
border border-solid border-gray-150
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
|
|
53
53
|
bg-white
|
|
54
54
|
text-gray-400
|
|
55
|
-
`,
|
|
55
|
+
`,Ze=`
|
|
56
56
|
bg-cover bg-center
|
|
57
57
|
w-full
|
|
58
58
|
h-60
|
|
59
|
-
`;function
|
|
59
|
+
`;function Qe({children:e,imageSRC:t}){return(0,n.jsxs)(`div`,{className:Xe,children:[t&&(0,n.jsx)(`div`,{className:Ze,style:{backgroundImage:`url("${t}")`}}),e]})}var $e=`
|
|
60
60
|
p-1 rounded-full inline-flex items-center justify-center transition-colors
|
|
61
61
|
|
|
62
62
|
bg-[var(--background)]
|
|
@@ -64,23 +64,23 @@
|
|
|
64
64
|
group-data-[is-active=true]/color-icon:bg-[var(--fill)]
|
|
65
65
|
|
|
66
66
|
sm:p-1.5
|
|
67
|
-
`,
|
|
67
|
+
`,et=`
|
|
68
68
|
w-3.5 h-3.5 transition-colors
|
|
69
69
|
|
|
70
70
|
fill-[var(--fill)]
|
|
71
71
|
group-hover/color-icon:fill-base-white
|
|
72
72
|
group-data-[is-active=true]/color-icon:fill-base-white
|
|
73
|
-
`;function Is({element:e,backgroundColor:t="gray",fillColor:n="black"}){return v.jsx("span",{className:dh,"data-testid":"icon-background","data-background-color":t,"data-fill-color":n,style:{"--background":t,"--fill":n},children:E.cloneElement(e,{className:fh,"aria-hidden":"true","data-testid":"icon"})})}function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ns={exports:{}},ce=Ns.exports={},_e,je;function zr(){throw new Error("setTimeout has not been defined")}function Zr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_e=setTimeout:_e=zr}catch{_e=zr}try{typeof clearTimeout=="function"?je=clearTimeout:je=Zr}catch{je=Zr}})();function Ls(e){if(_e===setTimeout)return setTimeout(e,0);if((_e===zr||!_e)&&setTimeout)return _e=setTimeout,setTimeout(e,0);try{return _e(e,0)}catch{try{return _e.call(null,e,0)}catch{return _e.call(this,e,0)}}}function ph(e){if(je===clearTimeout)return clearTimeout(e);if((je===Zr||!je)&&clearTimeout)return je=clearTimeout,clearTimeout(e);try{return je(e)}catch{try{return je.call(null,e)}catch{return je.call(this,e)}}}var Ye=[],Zt=!1,Et,Kn=-1;function mh(){!Zt||!Et||(Zt=!1,Et.length?Ye=Et.concat(Ye):Kn=-1,Ye.length&&Rs())}function Rs(){if(!Zt){var e=Ls(mh);Zt=!0;for(var t=Ye.length;t;){for(Et=Ye,Ye=[];++Kn<t;)Et&&Et[Kn].run();Kn=-1,t=Ye.length}Et=null,Zt=!1,ph(e)}}ce.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ye.push(new _s(e,t)),Ye.length===1&&!Zt&&Ls(Rs)};function _s(e,t){this.fun=e,this.array=t}_s.prototype.run=function(){this.fun.apply(null,this.array)},ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function Xe(){}ce.on=Xe,ce.addListener=Xe,ce.once=Xe,ce.off=Xe,ce.removeListener=Xe,ce.removeAllListeners=Xe,ce.emit=Xe,ce.prependListener=Xe,ce.prependOnceListener=Xe,ce.listeners=function(e){return[]},ce.binding=function(e){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(e){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0};var gh=Ns.exports;const ne=hh(gh);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]"||Eh(e)}var wh=typeof Symbol=="function"&&Symbol.for,Th=wh?Symbol.for("react.element"):60103;function Eh(e){return e.$$typeof===Th}function xh(e){return Array.isArray(e)?[]:{}}function Gn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?vn(xh(e),e,t):e}function Sh(e,t,n){return e.concat(t).map(function(r){return Gn(r,n)})}function Ah(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=Gn(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=Gn(t[o],n):r[o]=vn(e[o],t[o],n)}),r}function vn(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Sh,n.isMergeableObject=n.isMergeableObject||yh;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):Ah(e,t,n):Gn(t,n)}vn.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return vn(r,o,n)},{})};var Hr=vn;const Yn=globalThis||void 0||self;var js=typeof Yn=="object"&&Yn&&Yn.Object===Object&&Yn,Ch=typeof self=="object"&&self&&self.Object===Object&&self,Be=js||Ch||Function("return this")(),lt=Be.Symbol,Bs=Object.prototype,Ph=Bs.hasOwnProperty,Mh=Bs.toString,bn=lt?lt.toStringTag:void 0;function Dh(e){var t=Ph.call(e,bn),n=e[bn];try{e[bn]=void 0;var r=!0}catch{}var o=Mh.call(e);return r&&(t?e[bn]=n:delete e[bn]),o}var Oh=Object.prototype,Vh=Oh.toString;function Fh(e){return Vh.call(e)}var kh="[object Null]",Ih="[object Undefined]",$s=lt?lt.toStringTag:void 0;function xt(e){return e==null?e===void 0?Ih:kh:$s&&$s in Object(e)?Dh(e):Fh(e)}function Us(e,t){return function(n){return e(t(n))}}var Kr=Us(Object.getPrototypeOf,Object);function St(e){return e!=null&&typeof e=="object"}var Nh="[object Object]",Lh=Function.prototype,Rh=Object.prototype,Ws=Lh.toString,_h=Rh.hasOwnProperty,jh=Ws.call(Object);function zs(e){if(!St(e)||xt(e)!=Nh)return!1;var t=Kr(e);if(t===null)return!0;var n=_h.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ws.call(n)==jh}function Bh(){this.__data__=[],this.size=0}function Zs(e,t){return e===t||e!==e&&t!==t}function Xn(e,t){for(var n=e.length;n--;)if(Zs(e[n][0],t))return n;return-1}var $h=Array.prototype,Uh=$h.splice;function Wh(e){var t=this.__data__,n=Xn(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 zh(e){var t=this.__data__,n=Xn(t,e);return n<0?void 0:t[n][1]}function Zh(e){return Xn(this.__data__,e)>-1}function Hh(e,t){var n=this.__data__,r=Xn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qe(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])}}qe.prototype.clear=Bh,qe.prototype.delete=Wh,qe.prototype.get=zh,qe.prototype.has=Zh,qe.prototype.set=Hh;function Kh(){this.__data__=new qe,this.size=0}function Gh(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 wn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qh="[object AsyncFunction]",Qh="[object Function]",Jh="[object GeneratorFunction]",ep="[object Proxy]";function Hs(e){if(!wn(e))return!1;var t=xt(e);return t==Qh||t==Jh||t==qh||t==ep}var Gr=Be["__core-js_shared__"],Ks=(function(){var e=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function tp(e){return!!Ks&&Ks in e}var np=Function.prototype,rp=np.toString;function At(e){if(e!=null){try{return rp.call(e)}catch{}try{return e+""}catch{}}return""}var op=/[\\^$.*+?()[\]{}|]/g,ip=/^\[object .+?Constructor\]$/,sp=Function.prototype,ap=Object.prototype,cp=sp.toString,lp=ap.hasOwnProperty,up=RegExp("^"+cp.call(lp).replace(op,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dp(e){if(!wn(e)||tp(e))return!1;var t=Hs(e)?up:ip;return t.test(At(e))}function fp(e,t){return e?.[t]}function Ct(e,t){var n=fp(e,t);return dp(n)?n:void 0}var Tn=Ct(Be,"Map"),En=Ct(Object,"create");function hp(){this.__data__=En?En(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(En){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 En?t[e]!==void 0:wp.call(t,e)}var Ep="__lodash_hash_undefined__";function xp(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===void 0?Ep:t,this}function Pt(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])}}Pt.prototype.clear=hp,Pt.prototype.delete=pp,Pt.prototype.get=vp,Pt.prototype.has=Tp,Pt.prototype.set=xp;function Sp(){this.size=0,this.__data__={hash:new Pt,map:new(Tn||qe),string:new Pt}}function Ap(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qn(e,t){var n=e.__data__;return Ap(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Cp(e){var t=qn(this,e).delete(e);return this.size-=t?1:0,t}function Pp(e){return qn(this,e).get(e)}function Mp(e){return qn(this,e).has(e)}function Dp(e,t){var n=qn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ut(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])}}ut.prototype.clear=Sp,ut.prototype.delete=Cp,ut.prototype.get=Pp,ut.prototype.has=Mp,ut.prototype.set=Dp;var Op=200;function Vp(e,t){var n=this.__data__;if(n instanceof qe){var r=n.__data__;if(!Tn||r.length<Op-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ut(r)}return n.set(e,t),this.size=n.size,this}function Ht(e){var t=this.__data__=new qe(e);this.size=t.size}Ht.prototype.clear=Kh,Ht.prototype.delete=Gh,Ht.prototype.get=Yh,Ht.prototype.has=Xh,Ht.prototype.set=Vp;function Fp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Gs=(function(){try{var e=Ct(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Ys(e,t,n){t=="__proto__"&&Gs?Gs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var kp=Object.prototype,Ip=kp.hasOwnProperty;function Xs(e,t,n){var r=e[t];(!(Ip.call(e,t)&&Zs(r,n))||n===void 0&&!(t in e))&&Ys(e,t,n)}function Qn(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=void 0;c===void 0&&(c=e[a]),o?Ys(n,a,c):Xs(n,a,c)}return n}function Np(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Lp="[object Arguments]";function qs(e){return St(e)&&xt(e)==Lp}var Qs=Object.prototype,Rp=Qs.hasOwnProperty,_p=Qs.propertyIsEnumerable,jp=qs((function(){return arguments})())?qs:function(e){return St(e)&&Rp.call(e,"callee")&&!_p.call(e,"callee")},xn=Array.isArray;function Bp(){return!1}var Js=typeof z=="object"&&z&&!z.nodeType&&z,ea=Js&&typeof module=="object"&&module&&!module.nodeType&&module,$p=ea&&ea.exports===Js,ta=$p?Be.Buffer:void 0,Up=ta?ta.isBuffer:void 0,na=Up||Bp,Wp=9007199254740991,zp=/^(?:0|[1-9]\d*)$/;function Zp(e,t){var n=typeof e;return t=t??Wp,!!t&&(n=="number"||n!="symbol"&&zp.test(e))&&e>-1&&e%1==0&&e<t}var Hp=9007199254740991;function ra(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hp}var Kp="[object Arguments]",Gp="[object Array]",Yp="[object Boolean]",Xp="[object Date]",qp="[object Error]",Qp="[object Function]",Jp="[object Map]",em="[object Number]",tm="[object Object]",nm="[object RegExp]",rm="[object Set]",om="[object String]",im="[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]",Y={};Y[cm]=Y[lm]=Y[um]=Y[dm]=Y[fm]=Y[hm]=Y[pm]=Y[mm]=Y[gm]=!0,Y[Kp]=Y[Gp]=Y[sm]=Y[Yp]=Y[am]=Y[Xp]=Y[qp]=Y[Qp]=Y[Jp]=Y[em]=Y[tm]=Y[nm]=Y[rm]=Y[om]=Y[im]=!1;function ym(e){return St(e)&&ra(e.length)&&!!Y[xt(e)]}function Yr(e){return function(t){return e(t)}}var oa=typeof z=="object"&&z&&!z.nodeType&&z,Sn=oa&&typeof module=="object"&&module&&!module.nodeType&&module,vm=Sn&&Sn.exports===oa,Xr=vm&&js.process,Kt=(function(){try{var e=Sn&&Sn.require&&Sn.require("util").types;return e||Xr&&Xr.binding&&Xr.binding("util")}catch{}})(),ia=Kt&&Kt.isTypedArray,bm=ia?Yr(ia):ym,wm=Object.prototype,Tm=wm.hasOwnProperty;function sa(e,t){var n=xn(e),r=!n&&jp(e),o=!n&&!r&&na(e),i=!n&&!r&&!o&&bm(e),s=n||r||o||i,a=s?Np(e.length,String):[],c=a.length;for(var l in e)(t||Tm.call(e,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Zp(l,c)))&&a.push(l);return a}var Em=Object.prototype;function qr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Em;return e===n}var xm=Us(Object.keys,Object),Sm=Object.prototype,Am=Sm.hasOwnProperty;function Cm(e){if(!qr(e))return xm(e);var t=[];for(var n in Object(e))Am.call(e,n)&&n!="constructor"&&t.push(n);return t}function aa(e){return e!=null&&ra(e.length)&&!Hs(e)}function Qr(e){return aa(e)?sa(e):Cm(e)}function Pm(e,t){return e&&Qn(t,Qr(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,Om=Dm.hasOwnProperty;function Vm(e){if(!wn(e))return Mm(e);var t=qr(e),n=[];for(var r in e)r=="constructor"&&(t||!Om.call(e,r))||n.push(r);return n}function Jr(e){return aa(e)?sa(e,!0):Vm(e)}function Fm(e,t){return e&&Qn(t,Jr(t),e)}var ca=typeof z=="object"&&z&&!z.nodeType&&z,la=ca&&typeof module=="object"&&module&&!module.nodeType&&module,km=la&&la.exports===ca,ua=km?Be.Buffer:void 0,da=ua?ua.allocUnsafe:void 0;function Im(e,t){if(t)return e.slice();var n=e.length,r=da?da(n):new e.constructor(n);return e.copy(r),r}function fa(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Nm(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function ha(){return[]}var Lm=Object.prototype,Rm=Lm.propertyIsEnumerable,pa=Object.getOwnPropertySymbols,eo=pa?function(e){return e==null?[]:(e=Object(e),Nm(pa(e),function(t){return Rm.call(e,t)}))}:ha;function _m(e,t){return Qn(e,eo(e),t)}function ma(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var jm=Object.getOwnPropertySymbols,ga=jm?function(e){for(var t=[];e;)ma(t,eo(e)),e=Kr(e);return t}:ha;function Bm(e,t){return Qn(e,ga(e),t)}function ya(e,t,n){var r=t(e);return xn(e)?r:ma(r,n(e))}function $m(e){return ya(e,Qr,eo)}function Um(e){return ya(e,Jr,ga)}var to=Ct(Be,"DataView"),no=Ct(Be,"Promise"),ro=Ct(Be,"Set"),oo=Ct(Be,"WeakMap"),va="[object Map]",Wm="[object Object]",ba="[object Promise]",wa="[object Set]",Ta="[object WeakMap]",Ea="[object DataView]",zm=At(to),Zm=At(Tn),Hm=At(no),Km=At(ro),Gm=At(oo),Qe=xt;(to&&Qe(new to(new ArrayBuffer(1)))!=Ea||Tn&&Qe(new Tn)!=va||no&&Qe(no.resolve())!=ba||ro&&Qe(new ro)!=wa||oo&&Qe(new oo)!=Ta)&&(Qe=function(e){var t=xt(e),n=t==Wm?e.constructor:void 0,r=n?At(n):"";if(r)switch(r){case zm:return Ea;case Zm:return va;case Hm:return ba;case Km:return wa;case Gm:return Ta}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 xa=Be.Uint8Array;function io(e){var t=new e.constructor(e.byteLength);return new xa(t).set(new xa(e)),t}function Qm(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Jm=/\w*$/;function eg(e){var t=new e.constructor(e.source,Jm.exec(e));return t.lastIndex=e.lastIndex,t}var Sa=lt?lt.prototype:void 0,Aa=Sa?Sa.valueOf:void 0;function tg(e){return Aa?Object(Aa.call(e)):{}}function ng(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rg="[object Boolean]",og="[object Date]",ig="[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 Eg(e,t,n){var r=e.constructor;switch(t){case dg:return io(e);case rg:case og:return new r(+e);case fg:return Qm(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 ig: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 Ca=Object.create,xg=(function(){function e(){}return function(t){if(!wn(t))return{};if(Ca)return Ca(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function Sg(e){return typeof e.constructor=="function"&&!qr(e)?xg(Kr(e)):{}}var Ag="[object Map]";function Cg(e){return St(e)&&Qe(e)==Ag}var Pa=Kt&&Kt.isMap,Pg=Pa?Yr(Pa):Cg,Mg="[object Set]";function Dg(e){return St(e)&&Qe(e)==Mg}var Ma=Kt&&Kt.isSet,Og=Ma?Yr(Ma):Dg,Vg=1,Fg=2,kg=4,Da="[object Arguments]",Ig="[object Array]",Ng="[object Boolean]",Lg="[object Date]",Rg="[object Error]",Oa="[object Function]",_g="[object GeneratorFunction]",jg="[object Map]",Bg="[object Number]",Va="[object Object]",$g="[object RegExp]",Ug="[object Set]",Wg="[object String]",zg="[object Symbol]",Zg="[object WeakMap]",Hg="[object ArrayBuffer]",Kg="[object DataView]",Gg="[object Float32Array]",Yg="[object Float64Array]",Xg="[object Int8Array]",qg="[object Int16Array]",Qg="[object Int32Array]",Jg="[object Uint8Array]",e0="[object Uint8ClampedArray]",t0="[object Uint16Array]",n0="[object Uint32Array]",G={};G[Da]=G[Ig]=G[Hg]=G[Kg]=G[Ng]=G[Lg]=G[Gg]=G[Yg]=G[Xg]=G[qg]=G[Qg]=G[jg]=G[Bg]=G[Va]=G[$g]=G[Ug]=G[Wg]=G[zg]=G[Jg]=G[e0]=G[t0]=G[n0]=!0,G[Rg]=G[Oa]=G[Zg]=!1;function An(e,t,n,r,o,i){var s,a=t&Vg,c=t&Fg,l=t&kg;if(s!==void 0)return s;if(!wn(e))return e;var u=xn(e);if(u){if(s=qm(e),!a)return fa(e,s)}else{var d=Qe(e),h=d==Oa||d==_g;if(na(e))return Im(e,a);if(d==Va||d==Da||h&&!o){if(s=c||h?{}:Sg(e),!a)return c?Bm(e,Fm(s,e)):_m(e,Pm(s,e))}else{if(!G[d])return o?e:{};s=Eg(e,d,a)}}i||(i=new Ht);var p=i.get(e);if(p)return p;i.set(e,s),Og(e)?e.forEach(function(g){s.add(An(g,t,n,g,e,i))}):Pg(e)&&e.forEach(function(g,b){s.set(b,An(g,t,n,b,e,i))});var y=l?c?Um:$m:c?Jr:Qr,m=u?void 0:y(e);return Fp(m||e,function(g,b){m&&(b=g,g=e[b]),Xs(s,b,An(g,t,n,b,e,i))}),s}var r0=1,o0=4;function Cn(e){return An(e,r0|o0)}function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var so,ka;function i0(){if(ka)return so;ka=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function o(i,s){if(i===s)return!0;if(i&&s&&typeof i=="object"&&typeof s=="object"){var a=e(i),c=e(s),l,u,d;if(a&&c){if(u=i.length,u!=s.length)return!1;for(l=u;l--!==0;)if(!o(i[l],s[l]))return!1;return!0}if(a!=c)return!1;var h=i instanceof Date,p=s instanceof Date;if(h!=p)return!1;if(h&&p)return i.getTime()==s.getTime();var y=i instanceof RegExp,m=s instanceof RegExp;if(y!=m)return!1;if(y&&m)return i.toString()==s.toString();var g=t(i);if(u=g.length,u!==t(s).length)return!1;for(l=u;l--!==0;)if(!n.call(s,g[l]))return!1;if(r&&i instanceof Element&&s instanceof Element)return i===s;for(l=u;l--!==0;)if(d=g[l],!(d==="_owner"&&i.$$typeof)&&!o(i[d],s[d]))return!1;return!0}return i!==i&&s!==s}return so=function(s,a){try{return o(s,a)}catch(c){if(c.message&&c.message.match(/stack|recursion/i)||c.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",c.name,c.message),!1;throw c}},so}var s0=i0();const dt=Fa(s0);var a0=ne.env.NODE_ENV==="production";function se(e,t){if(!a0){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var c0=4;function Ia(e){return An(e,c0)}function Na(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var l0="[object Symbol]";function ao(e){return typeof e=="symbol"||St(e)&&xt(e)==l0}var u0="Expected a function";function co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(u0);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(co.Cache||ut),n}co.Cache=ut;var d0=500;function f0(e){var t=co(e,function(r){return n.size===d0&&n.clear(),r}),n=t.cache;return t}var h0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p0=/\\(\\)?/g,m0=f0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(h0,function(n,r,o,i){t.push(o?i.replace(p0,"$1"):r||n)}),t});function g0(e){if(typeof e=="string"||ao(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var La=lt?lt.prototype:void 0,Ra=La?La.toString:void 0;function _a(e){if(typeof e=="string")return e;if(xn(e))return Na(e,_a)+"";if(ao(e))return Ra?Ra.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function y0(e){return e==null?"":_a(e)}function ja(e){return xn(e)?Na(e,g0):ao(e)?[e]:fa(m0(y0(e)))}var Jn={exports:{}},Z={};var Ba;function v0(){if(Ba)return Z;Ba=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var M=w.$$typeof;switch(M){case t:switch(w=w.type,w){case c:case l:case r:case i:case o:case d:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case y:case p:case s:return w;default:return M}}case n:return M}}}function P(w){return T(w)===l}return Z.AsyncMode=c,Z.ConcurrentMode=l,Z.ContextConsumer=a,Z.ContextProvider=s,Z.Element=t,Z.ForwardRef=u,Z.Fragment=r,Z.Lazy=y,Z.Memo=p,Z.Portal=n,Z.Profiler=i,Z.StrictMode=o,Z.Suspense=d,Z.isAsyncMode=function(w){return P(w)||T(w)===c},Z.isConcurrentMode=P,Z.isContextConsumer=function(w){return T(w)===a},Z.isContextProvider=function(w){return T(w)===s},Z.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Z.isForwardRef=function(w){return T(w)===u},Z.isFragment=function(w){return T(w)===r},Z.isLazy=function(w){return T(w)===y},Z.isMemo=function(w){return T(w)===p},Z.isPortal=function(w){return T(w)===n},Z.isProfiler=function(w){return T(w)===i},Z.isStrictMode=function(w){return T(w)===o},Z.isSuspense=function(w){return T(w)===d},Z.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===l||w===i||w===o||w===d||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===p||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===g||w.$$typeof===b||w.$$typeof===x||w.$$typeof===m)},Z.typeOf=T,Z}var H={},$a;function b0(){return $a||($a=1,ne.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(k){return typeof k=="string"||typeof k=="function"||k===r||k===l||k===i||k===o||k===d||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===y||k.$$typeof===p||k.$$typeof===s||k.$$typeof===a||k.$$typeof===u||k.$$typeof===g||k.$$typeof===b||k.$$typeof===x||k.$$typeof===m)}function P(k){if(typeof k=="object"&&k!==null){var pn=k.$$typeof;switch(pn){case t:var mn=k.type;switch(mn){case c:case l:case r:case i:case o:case d:return mn;default:var Rr=mn&&mn.$$typeof;switch(Rr){case a:case u:case y:case p:case s:return Rr;default:return pn}}case n:return pn}}}var w=c,M=l,A=a,C=s,L=t,$=u,J=r,Ee=y,de=p,_=n,ee=i,ie=o,U=d,D=!1;function he(k){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),we(k)||P(k)===c}function we(k){return P(k)===l}function Me(k){return P(k)===a}function xe(k){return P(k)===s}function X(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function ae(k){return P(k)===u}function De(k){return P(k)===r}function Bt(k){return P(k)===y}function te(k){return P(k)===p}function $t(k){return P(k)===n}function ot(k){return P(k)===i}function it(k){return P(k)===o}function st(k){return P(k)===d}H.AsyncMode=w,H.ConcurrentMode=M,H.ContextConsumer=A,H.ContextProvider=C,H.Element=L,H.ForwardRef=$,H.Fragment=J,H.Lazy=Ee,H.Memo=de,H.Portal=_,H.Profiler=ee,H.StrictMode=ie,H.Suspense=U,H.isAsyncMode=he,H.isConcurrentMode=we,H.isContextConsumer=Me,H.isContextProvider=xe,H.isElement=X,H.isForwardRef=ae,H.isFragment=De,H.isLazy=Bt,H.isMemo=te,H.isPortal=$t,H.isProfiler=ot,H.isStrictMode=it,H.isSuspense=st,H.isValidElementType=T,H.typeOf=P})()),H}var Ua;function w0(){return Ua||(Ua=1,ne.env.NODE_ENV==="production"?Jn.exports=v0():Jn.exports=b0()),Jn.exports}var lo,Wa;function T0(){if(Wa)return lo;Wa=1;var e=w0(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;function p(y,m,g){if(typeof m!="string"){if(h){var b=d(m);b&&b!==h&&p(y,b,g)}var x=c(m);l&&(x=x.concat(l(m)));for(var T=s(y),P=s(m),w=0;w<x.length;++w){var M=x[w];if(!n[M]&&!(g&&g[M])&&!(P&&P[M])&&!(T&&T[M])){var A=u(m,M);try{a(y,M,A)}catch{}}}}return y}return lo=p,lo}var E0=T0();const x0=Fa(E0);function K(){return K=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},K.apply(this,arguments)}function za(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ft(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Za(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var er=E.createContext(void 0);er.displayName="FormikContext";var S0=er.Provider,A0=er.Consumer;function Mt(){var e=E.useContext(er);return e||(ne.env.NODE_ENV!=="production"?se(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):se()),e}var Ha=function(t){return Array.isArray(t)&&t.length===0},me=function(t){return typeof t=="function"},Gt=function(t){return t!==null&&typeof t=="object"},C0=function(t){return String(Math.floor(Number(t)))===t},uo=function(t){return Object.prototype.toString.call(t)==="[object String]"},fo=function(t){return E.Children.count(t)===0},ho=function(t){return Gt(t)&&me(t.then)};function P0(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 q(e,t,n,r){r===void 0&&(r=0);for(var o=ja(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function $e(e,t,n){for(var r=Ia(e),o=r,i=0,s=ja(t);i<s.length-1;i++){var a=s[i],c=q(e,s.slice(0,i+1));if(c&&(Gt(c)||Array.isArray(c)))o=o[a]=Ia(c);else{var l=s[i+1];o=o[a]=C0(l)&&Number(l)>=0?[]:{}}}return(i===0?e:o)[s[i]]===n?e:(n===void 0?delete o[s[i]]:o[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function Ka(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],a=e[s];Gt(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},Ka(a,t,n,r[s])):r[s]=t}return r}function M0(e,t){switch(t.type){case"SET_VALUES":return K({},e,{values:t.payload});case"SET_TOUCHED":return K({},e,{touched:t.payload});case"SET_ERRORS":return dt(e.errors,t.payload)?e:K({},e,{errors:t.payload});case"SET_STATUS":return K({},e,{status:t.payload});case"SET_ISSUBMITTING":return K({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return K({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return K({},e,{values:$e(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return K({},e,{touched:$e(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return K({},e,{errors:$e(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return K({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return K({},e,{touched:Ka(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return K({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return K({},e,{isSubmitting:!1});default:return e}}var Dt={},tr={};function D0(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,s=i===void 0?!1:i,a=e.isInitialValid,c=e.enableReinitialize,l=c===void 0?!1:c,u=e.onSubmit,d=ft(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=K({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:u},d),p=E.useRef(h.initialValues),y=E.useRef(h.initialErrors||Dt),m=E.useRef(h.initialTouched||tr),g=E.useRef(h.initialStatus),b=E.useRef(!1),x=E.useRef({});ne.env.NODE_ENV!=="production"&&E.useEffect(function(){typeof a>"u"||(ne.env.NODE_ENV!=="production"?se(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):se())},[]),E.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var T=E.useState(0),P=T[1],w=E.useRef({values:Cn(h.initialValues),errors:Cn(h.initialErrors)||Dt,touched:Cn(h.initialTouched)||tr,status:Cn(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),M=w.current,A=E.useCallback(function(S){var O=w.current;w.current=M0(O,S),O!==w.current&&P(function(I){return I+1})},[]),C=E.useCallback(function(S,O){return new Promise(function(I,N){var B=h.validate(S,O);B==null?I(Dt):ho(B)?B.then(function(W){I(W||Dt)},function(W){ne.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),N(W)}):I(B)})},[h.validate]),L=E.useCallback(function(S,O){var I=h.validationSchema,N=me(I)?I(O):I,B=O&&N.validateAt?N.validateAt(O,S):F0(S,N);return new Promise(function(W,ye){B.then(function(){W(Dt)},function(Ke){Ke.name==="ValidationError"?W(V0(Ke)):(ne.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Ke),ye(Ke))})})},[h.validationSchema]),$=E.useCallback(function(S,O){return new Promise(function(I){return I(x.current[S].validate(O))})},[]),J=E.useCallback(function(S){var O=Object.keys(x.current).filter(function(N){return me(x.current[N].validate)}),I=O.length>0?O.map(function(N){return $(N,q(S,N))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(I).then(function(N){return N.reduce(function(B,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&(B=$e(B,O[ye],W)),B},{})})},[$]),Ee=E.useCallback(function(S){return Promise.all([J(S),h.validationSchema?L(S):{},h.validate?C(S):{}]).then(function(O){var I=O[0],N=O[1],B=O[2],W=Hr.all([I,N,B],{arrayMerge:k0});return W})},[h.validate,h.validationSchema,J,C,L]),de=Oe(function(S){return S===void 0&&(S=M.values),A({type:"SET_ISVALIDATING",payload:!0}),Ee(S).then(function(O){return b.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:O})),O})});E.useEffect(function(){s&&b.current===!0&&dt(p.current,h.initialValues)&&de(p.current)},[s,de]);var _=E.useCallback(function(S){var O=S&&S.values?S.values:p.current,I=S&&S.errors?S.errors:y.current?y.current:h.initialErrors||{},N=S&&S.touched?S.touched:m.current?m.current:h.initialTouched||{},B=S&&S.status?S.status:g.current?g.current:h.initialStatus;p.current=O,y.current=I,m.current=N,g.current=B;var W=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!S&&!!S.isSubmitting,errors:I,touched:N,status:B,values:O,isValidating:!!S&&!!S.isValidating,submitCount:S&&S.submitCount&&typeof S.submitCount=="number"?S.submitCount:0}})};if(h.onReset){var ye=h.onReset(M.values,pn);ho(ye)?ye.then(W):W()}else W()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);E.useEffect(function(){b.current===!0&&!dt(p.current,h.initialValues)&&l&&(p.current=h.initialValues,_(),s&&de(p.current))},[l,h.initialValues,_,s,de]),E.useEffect(function(){l&&b.current===!0&&!dt(y.current,h.initialErrors)&&(y.current=h.initialErrors||Dt,A({type:"SET_ERRORS",payload:h.initialErrors||Dt}))},[l,h.initialErrors]),E.useEffect(function(){l&&b.current===!0&&!dt(m.current,h.initialTouched)&&(m.current=h.initialTouched||tr,A({type:"SET_TOUCHED",payload:h.initialTouched||tr}))},[l,h.initialTouched]),E.useEffect(function(){l&&b.current===!0&&!dt(g.current,h.initialStatus)&&(g.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))},[l,h.initialStatus,h.initialTouched]);var ee=Oe(function(S){if(x.current[S]&&me(x.current[S].validate)){var O=q(M.values,S),I=x.current[S].validate(O);return ho(I)?(A({type:"SET_ISVALIDATING",payload:!0}),I.then(function(N){return N}).then(function(N){A({type:"SET_FIELD_ERROR",payload:{field:S,value:N}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:S,value:I}}),Promise.resolve(I))}else if(h.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),L(M.values,S).then(function(N){return N}).then(function(N){A({type:"SET_FIELD_ERROR",payload:{field:S,value:q(N,S)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),ie=E.useCallback(function(S,O){var I=O.validate;x.current[S]={validate:I}},[]),U=E.useCallback(function(S){delete x.current[S]},[]),D=Oe(function(S,O){A({type:"SET_TOUCHED",payload:S});var I=O===void 0?o:O;return I?de(M.values):Promise.resolve()}),he=E.useCallback(function(S){A({type:"SET_ERRORS",payload:S})},[]),we=Oe(function(S,O){var I=me(S)?S(M.values):S;A({type:"SET_VALUES",payload:I});var N=O===void 0?n:O;return N?de(I):Promise.resolve()}),Me=E.useCallback(function(S,O){A({type:"SET_FIELD_ERROR",payload:{field:S,value:O}})},[]),xe=Oe(function(S,O,I){A({type:"SET_FIELD_VALUE",payload:{field:S,value:O}});var N=I===void 0?n:I;return N?de($e(M.values,S,O)):Promise.resolve()}),X=E.useCallback(function(S,O){var I=O,N=S,B;if(!uo(S)){S.persist&&S.persist();var W=S.target?S.target:S.currentTarget,ye=W.type,Ke=W.name,hs=W.id,ps=W.value,Ax=W.checked,Cx=W.outerHTML,Df=W.options,Px=W.multiple;I=O||Ke||hs,!I&&ne.env.NODE_ENV!=="production"&&Ga({htmlContent:Cx,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),N=/number|range/.test(ye)?(B=parseFloat(ps),isNaN(B)?"":B):/checkbox/.test(ye)?N0(q(M.values,I),Ax,ps):Df&&Px?I0(Df):ps}I&&xe(I,N)},[xe,M.values]),ae=Oe(function(S){if(uo(S))return function(O){return X(O,S)};X(S)}),De=Oe(function(S,O,I){O===void 0&&(O=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:S,value:O}});var N=I===void 0?o:I;return N?de(M.values):Promise.resolve()}),Bt=E.useCallback(function(S,O){S.persist&&S.persist();var I=S.target,N=I.name,B=I.id,W=I.outerHTML,ye=O||N||B;!ye&&ne.env.NODE_ENV!=="production"&&Ga({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),De(ye,!0)},[De]),te=Oe(function(S){if(uo(S))return function(O){return Bt(O,S)};Bt(S)}),$t=E.useCallback(function(S){me(S)?A({type:"SET_FORMIK_STATE",payload:S}):A({type:"SET_FORMIK_STATE",payload:function(){return S}})},[]),ot=E.useCallback(function(S){A({type:"SET_STATUS",payload:S})},[]),it=E.useCallback(function(S){A({type:"SET_ISSUBMITTING",payload:S})},[]),st=Oe(function(){return A({type:"SUBMIT_ATTEMPT"}),de().then(function(S){var O=S instanceof Error,I=!O&&Object.keys(S).length===0;if(I){var N;try{if(N=mn(),N===void 0)return}catch(B){throw B}return Promise.resolve(N).then(function(B){return b.current&&A({type:"SUBMIT_SUCCESS"}),B}).catch(function(B){if(b.current)throw A({type:"SUBMIT_FAILURE"}),B})}else if(b.current&&(A({type:"SUBMIT_FAILURE"}),O))throw S})}),k=Oe(function(S){if(S&&S.preventDefault&&me(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&me(S.stopPropagation)&&S.stopPropagation(),ne.env.NODE_ENV!=="production"&&typeof document<"u"){var O=P0();O!==null&&O instanceof HTMLButtonElement&&(O.attributes&&O.attributes.getNamedItem("type")||(ne.env.NODE_ENV!=="production"?se(!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"`.'):se()))}st().catch(function(I){console.warn("Warning: An unhandled error was caught from submitForm()",I)})}),pn={resetForm:_,validateForm:de,validateField:ee,setErrors:he,setFieldError:Me,setFieldTouched:De,setFieldValue:xe,setStatus:ot,setSubmitting:it,setTouched:D,setValues:we,setFormikState:$t,submitForm:st},mn=Oe(function(){return u(M.values,pn)}),Rr=Oe(function(S){S&&S.preventDefault&&me(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&me(S.stopPropagation)&&S.stopPropagation(),_()}),wx=E.useCallback(function(S){return{value:q(M.values,S),error:q(M.errors,S),touched:!!q(M.touched,S),initialValue:q(p.current,S),initialTouched:!!q(m.current,S),initialError:q(y.current,S)}},[M.errors,M.touched,M.values]),Tx=E.useCallback(function(S){return{setValue:function(I,N){return xe(S,I,N)},setTouched:function(I,N){return De(S,I,N)},setError:function(I){return Me(S,I)}}},[xe,De,Me]),Ex=E.useCallback(function(S){var O=Gt(S),I=O?S.name:S,N=q(M.values,I),B={name:I,value:N,onChange:ae,onBlur:te};if(O){var W=S.type,ye=S.value,Ke=S.as,hs=S.multiple;W==="checkbox"?ye===void 0?B.checked=!!N:(B.checked=!!(Array.isArray(N)&&~N.indexOf(ye)),B.value=ye):W==="radio"?(B.checked=N===ye,B.value=ye):Ke==="select"&&hs&&(B.value=B.value||[],B.multiple=!0)}return B},[te,ae,M.values]),fs=E.useMemo(function(){return!dt(p.current,M.values)},[p.current,M.values]),xx=E.useMemo(function(){return typeof a<"u"?fs?M.errors&&Object.keys(M.errors).length===0:a!==!1&&me(a)?a(h):a:M.errors&&Object.keys(M.errors).length===0},[a,fs,M.errors,h]),Sx=K({},M,{initialValues:p.current,initialErrors:y.current,initialTouched:m.current,initialStatus:g.current,handleBlur:te,handleChange:ae,handleReset:Rr,handleSubmit:k,resetForm:_,setErrors:he,setFormikState:$t,setFieldTouched:De,setFieldValue:xe,setFieldError:Me,setStatus:ot,setSubmitting:it,setTouched:D,setValues:we,submitForm:st,validateForm:de,validateField:ee,isValid:xx,dirty:fs,unregisterField:U,registerField:ie,getFieldProps:Ex,getFieldMeta:wx,getFieldHelpers:Tx,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return Sx}function O0(e){var t=D0(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return E.useImperativeHandle(i,function(){return t}),ne.env.NODE_ENV!=="production"&&E.useEffect(function(){e.render&&(ne.env.NODE_ENV!=="production"?se(!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>"):se())},[]),E.createElement(S0,{value:t},n?E.createElement(n,t):o?o(t):r?me(r)?r(t):fo(r)?null:E.Children.only(r):null)}function Ga(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+`
|
|
73
|
+
`;function tt({element:e,backgroundColor:t=`gray`,fillColor:r=`black`}){return(0,n.jsx)(`span`,{className:$e,"data-testid":`icon-background`,"data-background-color":t,"data-fill-color":r,style:{"--background":t,"--fill":r},children:g.default.cloneElement(e,{className:et,"aria-hidden":`true`,"data-testid":`icon`})})}function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function rt(){throw Error(`setTimeout has not been defined`)}function it(){throw Error(`clearTimeout has not been defined`)}function at(e){if(ft===setTimeout)return setTimeout(e,0);if((ft===rt||!ft)&&setTimeout)return ft=setTimeout,setTimeout(e,0);try{return ft(e,0)}catch{try{return ft.call(null,e,0)}catch{return ft.call(this,e,0)}}}function ot(e){if(pt===clearTimeout)return clearTimeout(e);if((pt===it||!pt)&&clearTimeout)return pt=clearTimeout,clearTimeout(e);try{return pt(e)}catch{try{return pt.call(null,e)}catch{return pt.call(this,e)}}}function st(){!ht||!gt||(ht=!1,gt.length?mt=gt.concat(mt):_t=-1,mt.length&&ct())}function ct(){if(!ht){var e=at(st);ht=!0;for(var t=mt.length;t;){for(gt=mt,mt=[];++_t<t;)gt&>[_t].run();_t=-1,t=mt.length}gt=null,ht=!1,ot(e)}}function lt(e,t){this.fun=e,this.array=t}function ut(){}var dt,I,ft,pt,mt,ht,gt,_t,vt,L,yt=u((()=>{dt={exports:{}},I=dt.exports={},(function(){try{ft=typeof setTimeout==`function`?setTimeout:rt}catch{ft=rt}try{pt=typeof clearTimeout==`function`?clearTimeout:it}catch{pt=it}})(),mt=[],ht=!1,_t=-1,I.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];mt.push(new lt(e,t)),mt.length===1&&!ht&&at(ct)},lt.prototype.run=function(){this.fun.apply(null,this.array)},I.title=`browser`,I.browser=!0,I.env={},I.argv=[],I.version=``,I.versions={},I.on=ut,I.addListener=ut,I.once=ut,I.off=ut,I.removeListener=ut,I.removeAllListeners=ut,I.emit=ut,I.prependListener=ut,I.prependOnceListener=ut,I.listeners=function(e){return[]},I.binding=function(e){throw Error(`process.binding is not supported`)},I.cwd=function(){return`/`},I.chdir=function(e){throw Error(`process.chdir is not supported`)},I.umask=function(){return 0},vt=dt.exports,L=nt(vt)})),bt=function(e){return xt(e)&&!St(e)};function xt(e){return!!e&&typeof e==`object`}function St(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||wt(e)}var Ct=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function wt(e){return e.$$typeof===Ct}function Tt(e){return Array.isArray(e)?[]:{}}function Et(e,t){return t.clone!==!1&&t.isMergeableObject(e)?kt(Tt(e),e,t):e}function Dt(e,t,n){return e.concat(t).map(function(e){return Et(e,n)})}function Ot(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=Et(e[t],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=Et(t[i],n):r[i]=kt(e[i],t[i],n)}),r}function kt(e,t,n){n||={},n.arrayMerge=n.arrayMerge||Dt,n.isMergeableObject=n.isMergeableObject||bt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Ot(e,t,n):Et(t,n)}kt.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return kt(e,n,t)},{})};var At=kt,jt=globalThis||self,Mt=typeof jt==`object`&&jt&&jt.Object===Object&&jt,Nt=typeof self==`object`&&self&&self.Object===Object&&self,Pt=Mt||Nt||Function(`return this`)(),Ft=Pt.Symbol,It=Object.prototype,Lt=It.hasOwnProperty,Rt=It.toString,zt=Ft?Ft.toStringTag:void 0;function Bt(e){var t=Lt.call(e,zt),n=e[zt];try{e[zt]=void 0;var r=!0}catch{}var i=Rt.call(e);return r&&(t?e[zt]=n:delete e[zt]),i}var Vt=Object.prototype.toString;function Ht(e){return Vt.call(e)}var Ut=`[object Null]`,Wt=`[object Undefined]`,Gt=Ft?Ft.toStringTag:void 0;function Kt(e){return e==null?e===void 0?Wt:Ut:Gt&&Gt in Object(e)?Bt(e):Ht(e)}function qt(e,t){return function(n){return e(t(n))}}var Jt=qt(Object.getPrototypeOf,Object);function Yt(e){return typeof e==`object`&&!!e}var Xt=`[object Object]`,Zt=Function.prototype,Qt=Object.prototype,$t=Zt.toString,en=Qt.hasOwnProperty,tn=$t.call(Object);function nn(e){if(!Yt(e)||Kt(e)!=Xt)return!1;var t=Jt(e);if(t===null)return!0;var n=en.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&$t.call(n)==tn}function rn(){this.__data__=[],this.size=0}function an(e,t){return e===t||e!==e&&t!==t}function on(e,t){for(var n=e.length;n--;)if(an(e[n][0],t))return n;return-1}var sn=Array.prototype.splice;function cn(e){var t=this.__data__,n=on(t,e);return n<0?!1:(n==t.length-1?t.pop():sn.call(t,n,1),--this.size,!0)}function ln(e){var t=this.__data__,n=on(t,e);return n<0?void 0:t[n][1]}function un(e){return on(this.__data__,e)>-1}function dn(e,t){var n=this.__data__,r=on(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function fn(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])}}fn.prototype.clear=rn,fn.prototype.delete=cn,fn.prototype.get=ln,fn.prototype.has=un,fn.prototype.set=dn;function pn(){this.__data__=new fn,this.size=0}function mn(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function hn(e){return this.__data__.get(e)}function gn(e){return this.__data__.has(e)}function _n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var vn=`[object AsyncFunction]`,yn=`[object Function]`,bn=`[object GeneratorFunction]`,xn=`[object Proxy]`;function Sn(e){if(!_n(e))return!1;var t=Kt(e);return t==yn||t==bn||t==vn||t==xn}var Cn=Pt[`__core-js_shared__`],wn=function(){var e=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Tn(e){return!!wn&&wn in e}var En=Function.prototype.toString;function Dn(e){if(e!=null){try{return En.call(e)}catch{}try{return e+``}catch{}}return``}var On=/[\\^$.*+?()[\]{}|]/g,kn=/^\[object .+?Constructor\]$/,An=Function.prototype,jn=Object.prototype,Mn=An.toString,Nn=jn.hasOwnProperty,Pn=RegExp(`^`+Mn.call(Nn).replace(On,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Fn(e){return!_n(e)||Tn(e)?!1:(Sn(e)?Pn:kn).test(Dn(e))}function In(e,t){return e?.[t]}function Ln(e,t){var n=In(e,t);return Fn(n)?n:void 0}var Rn=Ln(Pt,`Map`),zn=Ln(Object,`create`);function Bn(){this.__data__=zn?zn(null):{},this.size=0}function Vn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var Hn=`__lodash_hash_undefined__`,Un=Object.prototype.hasOwnProperty;function Wn(e){var t=this.__data__;if(zn){var n=t[e];return n===Hn?void 0:n}return Un.call(t,e)?t[e]:void 0}var Gn=Object.prototype.hasOwnProperty;function Kn(e){var t=this.__data__;return zn?t[e]!==void 0:Gn.call(t,e)}var qn=`__lodash_hash_undefined__`;function Jn(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=zn&&t===void 0?qn:t,this}function Yn(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])}}Yn.prototype.clear=Bn,Yn.prototype.delete=Vn,Yn.prototype.get=Wn,Yn.prototype.has=Kn,Yn.prototype.set=Jn;function Xn(){this.size=0,this.__data__={hash:new Yn,map:new(Rn||fn),string:new Yn}}function Zn(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Qn(e,t){var n=e.__data__;return Zn(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function $n(e){var t=Qn(this,e).delete(e);return this.size-=+!!t,t}function er(e){return Qn(this,e).get(e)}function tr(e){return Qn(this,e).has(e)}function nr(e,t){var n=Qn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function rr(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])}}rr.prototype.clear=Xn,rr.prototype.delete=$n,rr.prototype.get=er,rr.prototype.has=tr,rr.prototype.set=nr;var ir=200;function ar(e,t){var n=this.__data__;if(n instanceof fn){var r=n.__data__;if(!Rn||r.length<ir-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new rr(r)}return n.set(e,t),this.size=n.size,this}function or(e){var t=this.__data__=new fn(e);this.size=t.size}or.prototype.clear=pn,or.prototype.delete=mn,or.prototype.get=hn,or.prototype.has=gn,or.prototype.set=ar;function sr(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var cr=function(){try{var e=Ln(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function lr(e,t,n){t==`__proto__`&&cr?cr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ur=Object.prototype.hasOwnProperty;function dr(e,t,n){var r=e[t];(!(ur.call(e,t)&&an(r,n))||n===void 0&&!(t in e))&&lr(e,t,n)}function fr(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?lr(n,s,c):dr(n,s,c)}return n}function pr(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var mr=`[object Arguments]`;function hr(e){return Yt(e)&&Kt(e)==mr}var gr=Object.prototype,_r=gr.hasOwnProperty,vr=gr.propertyIsEnumerable,yr=hr(function(){return arguments}())?hr:function(e){return Yt(e)&&_r.call(e,`callee`)&&!vr.call(e,`callee`)},br=Array.isArray;function xr(){return!1}var Sr=typeof e==`object`&&e&&!e.nodeType&&e,Cr=Sr&&typeof module==`object`&&module&&!module.nodeType&&module,wr=Cr&&Cr.exports===Sr?Pt.Buffer:void 0,Tr=(wr?wr.isBuffer:void 0)||xr,Er=9007199254740991,Dr=/^(?:0|[1-9]\d*)$/;function Or(e,t){var n=typeof e;return t??=Er,!!t&&(n==`number`||n!=`symbol`&&Dr.test(e))&&e>-1&&e%1==0&&e<t}var kr=9007199254740991;function Ar(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=kr}var jr=`[object Arguments]`,Mr=`[object Array]`,Nr=`[object Boolean]`,Pr=`[object Date]`,Fr=`[object Error]`,Ir=`[object Function]`,Lr=`[object Map]`,Rr=`[object Number]`,zr=`[object Object]`,Br=`[object RegExp]`,Vr=`[object Set]`,Hr=`[object String]`,Ur=`[object WeakMap]`,Wr=`[object ArrayBuffer]`,Gr=`[object DataView]`,Kr=`[object Float32Array]`,qr=`[object Float64Array]`,Jr=`[object Int8Array]`,Yr=`[object Int16Array]`,Xr=`[object Int32Array]`,Zr=`[object Uint8Array]`,Qr=`[object Uint8ClampedArray]`,$r=`[object Uint16Array]`,ei=`[object Uint32Array]`,R={};R[Kr]=R[qr]=R[Jr]=R[Yr]=R[Xr]=R[Zr]=R[Qr]=R[$r]=R[ei]=!0,R[jr]=R[Mr]=R[Wr]=R[Nr]=R[Gr]=R[Pr]=R[Fr]=R[Ir]=R[Lr]=R[Rr]=R[zr]=R[Br]=R[Vr]=R[Hr]=R[Ur]=!1;function ti(e){return Yt(e)&&Ar(e.length)&&!!R[Kt(e)]}function ni(e){return function(t){return e(t)}}var ri=typeof e==`object`&&e&&!e.nodeType&&e,ii=ri&&typeof module==`object`&&module&&!module.nodeType&&module,ai=ii&&ii.exports===ri&&Mt.process,oi=function(){try{return ii&&ii.require&&ii.require(`util`).types||ai&&ai.binding&&ai.binding(`util`)}catch{}}(),si=oi&&oi.isTypedArray,ci=si?ni(si):ti,li=Object.prototype.hasOwnProperty;function ui(e,t){var n=br(e),r=!n&&yr(e),i=!n&&!r&&Tr(e),a=!n&&!r&&!i&&ci(e),o=n||r||i||a,s=o?pr(e.length,String):[],c=s.length;for(var l in e)(t||li.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Or(l,c)))&&s.push(l);return s}var di=Object.prototype;function fi(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||di)}var pi=qt(Object.keys,Object),mi=Object.prototype.hasOwnProperty;function hi(e){if(!fi(e))return pi(e);var t=[];for(var n in Object(e))mi.call(e,n)&&n!=`constructor`&&t.push(n);return t}function gi(e){return e!=null&&Ar(e.length)&&!Sn(e)}function _i(e){return gi(e)?ui(e):hi(e)}function vi(e,t){return e&&fr(t,_i(t),e)}function yi(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var bi=Object.prototype.hasOwnProperty;function xi(e){if(!_n(e))return yi(e);var t=fi(e),n=[];for(var r in e)r==`constructor`&&(t||!bi.call(e,r))||n.push(r);return n}function Si(e){return gi(e)?ui(e,!0):xi(e)}function Ci(e,t){return e&&fr(t,Si(t),e)}var wi=typeof e==`object`&&e&&!e.nodeType&&e,Ti=wi&&typeof module==`object`&&module&&!module.nodeType&&module,Ei=Ti&&Ti.exports===wi?Pt.Buffer:void 0,Di=Ei?Ei.allocUnsafe:void 0;function Oi(e,t){if(t)return e.slice();var n=e.length,r=Di?Di(n):new e.constructor(n);return e.copy(r),r}function ki(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function Ai(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function ji(){return[]}var Mi=Object.prototype.propertyIsEnumerable,Ni=Object.getOwnPropertySymbols,Pi=Ni?function(e){return e==null?[]:(e=Object(e),Ai(Ni(e),function(t){return Mi.call(e,t)}))}:ji;function Fi(e,t){return fr(e,Pi(e),t)}function Ii(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Li=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ii(t,Pi(e)),e=Jt(e);return t}:ji;function Ri(e,t){return fr(e,Li(e),t)}function zi(e,t,n){var r=t(e);return br(e)?r:Ii(r,n(e))}function Bi(e){return zi(e,_i,Pi)}function Vi(e){return zi(e,Si,Li)}var Hi=Ln(Pt,`DataView`),Ui=Ln(Pt,`Promise`),Wi=Ln(Pt,`Set`),Gi=Ln(Pt,`WeakMap`),Ki=`[object Map]`,qi=`[object Object]`,Ji=`[object Promise]`,Yi=`[object Set]`,Xi=`[object WeakMap]`,Zi=`[object DataView]`,Qi=Dn(Hi),$i=Dn(Rn),ea=Dn(Ui),ta=Dn(Wi),na=Dn(Gi),ra=Kt;(Hi&&ra(new Hi(new ArrayBuffer(1)))!=Zi||Rn&&ra(new Rn)!=Ki||Ui&&ra(Ui.resolve())!=Ji||Wi&&ra(new Wi)!=Yi||Gi&&ra(new Gi)!=Xi)&&(ra=function(e){var t=Kt(e),n=t==qi?e.constructor:void 0,r=n?Dn(n):``;if(r)switch(r){case Qi:return Zi;case $i:return Ki;case ea:return Ji;case ta:return Yi;case na:return Xi}return t});var ia=ra,aa=Object.prototype.hasOwnProperty;function oa(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&aa.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var sa=Pt.Uint8Array;function ca(e){var t=new e.constructor(e.byteLength);return new sa(t).set(new sa(e)),t}function la(e,t){var n=t?ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var ua=/\w*$/;function da(e){var t=new e.constructor(e.source,ua.exec(e));return t.lastIndex=e.lastIndex,t}var fa=Ft?Ft.prototype:void 0,pa=fa?fa.valueOf:void 0;function ma(e){return pa?Object(pa.call(e)):{}}function ha(e,t){var n=t?ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ga=`[object Boolean]`,_a=`[object Date]`,va=`[object Map]`,ya=`[object Number]`,ba=`[object RegExp]`,xa=`[object Set]`,Sa=`[object String]`,Ca=`[object Symbol]`,wa=`[object ArrayBuffer]`,Ta=`[object DataView]`,Ea=`[object Float32Array]`,Da=`[object Float64Array]`,Oa=`[object Int8Array]`,ka=`[object Int16Array]`,Aa=`[object Int32Array]`,ja=`[object Uint8Array]`,Ma=`[object Uint8ClampedArray]`,Na=`[object Uint16Array]`,Pa=`[object Uint32Array]`;function Fa(e,t,n){var r=e.constructor;switch(t){case wa:return ca(e);case ga:case _a:return new r(+e);case Ta:return la(e,n);case Ea:case Da:case Oa:case ka:case Aa:case ja:case Ma:case Na:case Pa:return ha(e,n);case va:return new r;case ya:case Sa:return new r(e);case ba:return da(e);case xa:return new r;case Ca:return ma(e)}}var Ia=Object.create,La=function(){function e(){}return function(t){if(!_n(t))return{};if(Ia)return Ia(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ra(e){return typeof e.constructor==`function`&&!fi(e)?La(Jt(e)):{}}var za=`[object Map]`;function Ba(e){return Yt(e)&&ia(e)==za}var Va=oi&&oi.isMap,Ha=Va?ni(Va):Ba,Ua=`[object Set]`;function Wa(e){return Yt(e)&&ia(e)==Ua}var Ga=oi&&oi.isSet,Ka=Ga?ni(Ga):Wa,qa=1,Ja=2,Ya=4,Xa=`[object Arguments]`,Za=`[object Array]`,Qa=`[object Boolean]`,$a=`[object Date]`,eo=`[object Error]`,to=`[object Function]`,no=`[object GeneratorFunction]`,ro=`[object Map]`,io=`[object Number]`,ao=`[object Object]`,oo=`[object RegExp]`,so=`[object Set]`,co=`[object String]`,lo=`[object Symbol]`,uo=`[object WeakMap]`,fo=`[object ArrayBuffer]`,po=`[object DataView]`,mo=`[object Float32Array]`,ho=`[object Float64Array]`,go=`[object Int8Array]`,_o=`[object Int16Array]`,vo=`[object Int32Array]`,yo=`[object Uint8Array]`,bo=`[object Uint8ClampedArray]`,xo=`[object Uint16Array]`,So=`[object Uint32Array]`,z={};z[Xa]=z[Za]=z[fo]=z[po]=z[Qa]=z[$a]=z[mo]=z[ho]=z[go]=z[_o]=z[vo]=z[ro]=z[io]=z[ao]=z[oo]=z[so]=z[co]=z[lo]=z[yo]=z[bo]=z[xo]=z[So]=!0,z[eo]=z[to]=z[uo]=!1;function Co(e,t,n,r,i,a){var o,s=t&qa,c=t&Ja,l=t&Ya;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!_n(e))return e;var u=br(e);if(u){if(o=oa(e),!s)return ki(e,o)}else{var d=ia(e),f=d==to||d==no;if(Tr(e))return Oi(e,s);if(d==ao||d==Xa||f&&!i){if(o=c||f?{}:Ra(e),!s)return c?Ri(e,Ci(o,e)):Fi(e,vi(o,e))}else{if(!z[d])return i?e:{};o=Fa(e,d,s)}}a||=new or;var p=a.get(e);if(p)return p;a.set(e,o),Ka(e)?e.forEach(function(r){o.add(Co(r,t,n,r,e,a))}):Ha(e)&&e.forEach(function(r,i){o.set(i,Co(r,t,n,i,e,a))});var m=u?void 0:(l?c?Vi:Bi:c?Si:_i)(e);return sr(m||e,function(r,i){m&&(i=r,r=e[i]),dr(o,i,Co(r,t,n,i,e,a))}),o}var wo=1,To=4;function Eo(e){return Co(e,wo|To)}var Do=d(((e,t)=>{var n=Array.isArray,r=Object.keys,i=Object.prototype.hasOwnProperty,a=typeof Element<`u`;function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){var s=n(e),c=n(t),l,u,d;if(s&&c){if(u=e.length,u!=t.length)return!1;for(l=u;l--!==0;)if(!o(e[l],t[l]))return!1;return!0}if(s!=c)return!1;var f=e instanceof Date,p=t instanceof Date;if(f!=p)return!1;if(f&&p)return e.getTime()==t.getTime();var m=e instanceof RegExp,h=t instanceof RegExp;if(m!=h)return!1;if(m&&h)return e.toString()==t.toString();var g=r(e);if(u=g.length,u!==r(t).length)return!1;for(l=u;l--!==0;)if(!i.call(t,g[l]))return!1;if(a&&e instanceof Element&&t instanceof Element)return e===t;for(l=u;l--!==0;)if(d=g[l],!(d===`_owner`&&e.$$typeof)&&!o(e[d],t[d]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||e.number===-2146828260)return console.warn(`Warning: react-fast-compare does not handle circular references.`,e.name,e.message),!1;throw e}}}));yt();var Oo=L.env.NODE_ENV===`production`;function B(e,t){if(!Oo){if(e)return;var n=`Warning: `+t;typeof console<`u`&&console.warn(n);try{throw Error(n)}catch{}}}var ko=4;function Ao(e){return Co(e,ko)}function jo(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 Mo=`[object Symbol]`;function No(e){return typeof e==`symbol`||Yt(e)&&Kt(e)==Mo}var Po=`Expected a function`;function Fo(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Po);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Fo.Cache||rr),n}Fo.Cache=rr;var Io=500;function Lo(e){var t=Fo(e,function(e){return n.size===Io&&n.clear(),e}),n=t.cache;return t}var Ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zo=/\\(\\)?/g,Bo=Lo(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Ro,function(e,n,r,i){t.push(r?i.replace(zo,`$1`):n||e)}),t}),Vo=1/0;function Ho(e){if(typeof e==`string`||No(e))return e;var t=e+``;return t==`0`&&1/e==-Vo?`-0`:t}var Uo=1/0,Wo=Ft?Ft.prototype:void 0,Go=Wo?Wo.toString:void 0;function Ko(e){if(typeof e==`string`)return e;if(br(e))return jo(e,Ko)+``;if(No(e))return Go?Go.call(e):``;var t=e+``;return t==`0`&&1/e==-Uo?`-0`:t}function qo(e){return e==null?``:Ko(e)}function Jo(e){return br(e)?jo(e,Ho):No(e)?[e]:ki(Bo(qo(e)))}var Yo=d((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Xo=d((e=>{yt(),L.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,ee=n,te=d,ne=i,E=h,D=m,re=r,ie=o,ae=a,O=f,oe=!1;function se(e){return oe||(oe=!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.`)),ce(e)||x(e)===l}function ce(e){return x(e)===u}function le(e){return x(e)===c}function k(e){return x(e)===s}function A(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function j(e){return x(e)===d}function ue(e){return x(e)===i}function de(e){return x(e)===h}function M(e){return x(e)===m}function fe(e){return x(e)===r}function pe(e){return x(e)===o}function me(e){return x(e)===a}function he(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=ee,e.ForwardRef=te,e.Fragment=ne,e.Lazy=E,e.Memo=D,e.Portal=re,e.Profiler=ie,e.StrictMode=ae,e.Suspense=O,e.isAsyncMode=se,e.isConcurrentMode=ce,e.isContextConsumer=le,e.isContextProvider=k,e.isElement=A,e.isForwardRef=j,e.isFragment=ue,e.isLazy=de,e.isMemo=M,e.isPortal=fe,e.isProfiler=pe,e.isStrictMode=me,e.isSuspense=he,e.isValidElementType=b,e.typeOf=x})()})),Zo=d(((e,t)=>{yt(),L.env.NODE_ENV===`production`?t.exports=Yo():t.exports=Xo()})),Qo=d(((e,t)=>{var n=Zo(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));yt();var $o=m(Do()),es=m(Qo());function V(){return V=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},V.apply(this,arguments)}function ts(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ns(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function rs(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}var is=(0,t.createContext)(void 0);is.displayName=`FormikContext`;var as=is.Provider,os=is.Consumer;function ss(){var e=(0,t.useContext)(is);return!e&&(L.env.NODE_ENV===`production`?B(!1):B(!1,`Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.`)),e}var cs=function(e){return Array.isArray(e)&&e.length===0},H=function(e){return typeof e==`function`},ls=function(e){return typeof e==`object`&&!!e},us=function(e){return String(Math.floor(Number(e)))===e},ds=function(e){return Object.prototype.toString.call(e)===`[object String]`},fs=function(e){return t.Children.count(e)===0},ps=function(e){return ls(e)&&H(e.then)};function ms(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function U(e,t,n,r){r===void 0&&(r=0);for(var i=Jo(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function hs(e,t,n){for(var r=Ao(e),i=r,a=0,o=Jo(t);a<o.length-1;a++){var s=o[a],c=U(e,o.slice(0,a+1));if(c&&(ls(c)||Array.isArray(c)))i=i[s]=Ao(c);else{var l=o[a+1];i=i[s]=us(l)&&Number(l)>=0?[]:{}}}return(a===0?e:i)[o[a]]===n?e:(n===void 0?delete i[o[a]]:i[o[a]]=n,a===0&&n===void 0&&delete r[o[a]],r)}function gs(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,a=Object.keys(e);i<a.length;i++){var o=a[i],s=e[o];ls(s)?n.get(s)||(n.set(s,!0),r[o]=Array.isArray(s)?[]:{},gs(s,t,n,r[o])):r[o]=t}return r}function _s(e,t){switch(t.type){case`SET_VALUES`:return V({},e,{values:t.payload});case`SET_TOUCHED`:return V({},e,{touched:t.payload});case`SET_ERRORS`:return(0,$o.default)(e.errors,t.payload)?e:V({},e,{errors:t.payload});case`SET_STATUS`:return V({},e,{status:t.payload});case`SET_ISSUBMITTING`:return V({},e,{isSubmitting:t.payload});case`SET_ISVALIDATING`:return V({},e,{isValidating:t.payload});case`SET_FIELD_VALUE`:return V({},e,{values:hs(e.values,t.payload.field,t.payload.value)});case`SET_FIELD_TOUCHED`:return V({},e,{touched:hs(e.touched,t.payload.field,t.payload.value)});case`SET_FIELD_ERROR`:return V({},e,{errors:hs(e.errors,t.payload.field,t.payload.value)});case`RESET_FORM`:return V({},e,t.payload);case`SET_FORMIK_STATE`:return t.payload(e);case`SUBMIT_ATTEMPT`:return V({},e,{touched:gs(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case`SUBMIT_FAILURE`:return V({},e,{isSubmitting:!1});case`SUBMIT_SUCCESS`:return V({},e,{isSubmitting:!1});default:return e}}var vs={},ys={};function bs(e){var n=e.validateOnChange,r=n===void 0?!0:n,i=e.validateOnBlur,a=i===void 0?!0:i,o=e.validateOnMount,s=o===void 0?!1:o,c=e.isInitialValid,l=e.enableReinitialize,u=l===void 0?!1:l,d=e.onSubmit,f=ns(e,[`validateOnChange`,`validateOnBlur`,`validateOnMount`,`isInitialValid`,`enableReinitialize`,`onSubmit`]),p=V({validateOnChange:r,validateOnBlur:a,validateOnMount:s,onSubmit:d},f),m=(0,t.useRef)(p.initialValues),h=(0,t.useRef)(p.initialErrors||vs),g=(0,t.useRef)(p.initialTouched||ys),_=(0,t.useRef)(p.initialStatus),v=(0,t.useRef)(!1),y=(0,t.useRef)({});L.env.NODE_ENV!==`production`&&(0,t.useEffect)(function(){c!==void 0&&(L.env.NODE_ENV===`production`?B(!1):B(!1,`isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.`))},[]),(0,t.useEffect)(function(){return v.current=!0,function(){v.current=!1}},[]);var b=(0,t.useState)(0)[1],x=(0,t.useRef)({values:Eo(p.initialValues),errors:Eo(p.initialErrors)||vs,touched:Eo(p.initialTouched)||ys,status:Eo(p.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=x.current,C=(0,t.useCallback)(function(e){var t=x.current;x.current=_s(t,e),t!==x.current&&b(function(e){return e+1})},[]),w=(0,t.useCallback)(function(e,t){return new Promise(function(n,r){var i=p.validate(e,t);i==null?n(vs):ps(i)?i.then(function(e){n(e||vs)},function(e){L.env.NODE_ENV!==`production`&&console.warn(`Warning: An unhandled error was caught during validation in <Formik validate />`,e),r(e)}):n(i)})},[p.validate]),T=(0,t.useCallback)(function(e,t){var n=p.validationSchema,r=H(n)?n(t):n,i=t&&r.validateAt?r.validateAt(t,e):ws(e,r);return new Promise(function(e,t){i.then(function(){e(vs)},function(n){n.name===`ValidationError`?e(Cs(n)):(L.env.NODE_ENV!==`production`&&console.warn(`Warning: An unhandled error was caught during validation in <Formik validationSchema />`,n),t(n))})})},[p.validationSchema]),ee=(0,t.useCallback)(function(e,t){return new Promise(function(n){return n(y.current[e].validate(t))})},[]),te=(0,t.useCallback)(function(e){var t=Object.keys(y.current).filter(function(e){return H(y.current[e].validate)}),n=t.length>0?t.map(function(t){return ee(t,U(e,t))}):[Promise.resolve(`DO_NOT_DELETE_YOU_WILL_BE_FIRED`)];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return n===`DO_NOT_DELETE_YOU_WILL_BE_FIRED`||n&&(e=hs(e,t[r],n)),e},{})})},[ee]),ne=(0,t.useCallback)(function(e){return Promise.all([te(e),p.validationSchema?T(e):{},p.validate?w(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return At.all([t,n,r],{arrayMerge:Es})})},[p.validate,p.validationSchema,te,w,T]),E=As(function(e){return e===void 0&&(e=S.values),C({type:`SET_ISVALIDATING`,payload:!0}),ne(e).then(function(e){return v.current&&(C({type:`SET_ISVALIDATING`,payload:!1}),C({type:`SET_ERRORS`,payload:e})),e})});(0,t.useEffect)(function(){s&&v.current===!0&&(0,$o.default)(m.current,p.initialValues)&&E(m.current)},[s,E]);var D=(0,t.useCallback)(function(e){var t=e&&e.values?e.values:m.current,n=e&&e.errors?e.errors:h.current?h.current:p.initialErrors||{},r=e&&e.touched?e.touched:g.current?g.current:p.initialTouched||{},i=e&&e.status?e.status:_.current?_.current:p.initialStatus;m.current=t,h.current=n,g.current=r,_.current=i;var a=function(){C({type:`RESET_FORM`,payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&typeof e.submitCount==`number`?e.submitCount:0}})};if(p.onReset){var o=p.onReset(S.values,N);ps(o)?o.then(a):a()}else a()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);(0,t.useEffect)(function(){v.current===!0&&!(0,$o.default)(m.current,p.initialValues)&&u&&(m.current=p.initialValues,D(),s&&E(m.current))},[u,p.initialValues,D,s,E]),(0,t.useEffect)(function(){u&&v.current===!0&&!(0,$o.default)(h.current,p.initialErrors)&&(h.current=p.initialErrors||vs,C({type:`SET_ERRORS`,payload:p.initialErrors||vs}))},[u,p.initialErrors]),(0,t.useEffect)(function(){u&&v.current===!0&&!(0,$o.default)(g.current,p.initialTouched)&&(g.current=p.initialTouched||ys,C({type:`SET_TOUCHED`,payload:p.initialTouched||ys}))},[u,p.initialTouched]),(0,t.useEffect)(function(){u&&v.current===!0&&!(0,$o.default)(_.current,p.initialStatus)&&(_.current=p.initialStatus,C({type:`SET_STATUS`,payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var re=As(function(e){if(y.current[e]&&H(y.current[e].validate)){var t=U(S.values,e),n=y.current[e].validate(t);return ps(n)?(C({type:`SET_ISVALIDATING`,payload:!0}),n.then(function(e){return e}).then(function(t){C({type:`SET_FIELD_ERROR`,payload:{field:e,value:t}}),C({type:`SET_ISVALIDATING`,payload:!1})})):(C({type:`SET_FIELD_ERROR`,payload:{field:e,value:n}}),Promise.resolve(n))}else if(p.validationSchema)return C({type:`SET_ISVALIDATING`,payload:!0}),T(S.values,e).then(function(e){return e}).then(function(t){C({type:`SET_FIELD_ERROR`,payload:{field:e,value:U(t,e)}}),C({type:`SET_ISVALIDATING`,payload:!1})});return Promise.resolve()}),ie=(0,t.useCallback)(function(e,t){var n=t.validate;y.current[e]={validate:n}},[]),ae=(0,t.useCallback)(function(e){delete y.current[e]},[]),O=As(function(e,t){return C({type:`SET_TOUCHED`,payload:e}),(t===void 0?a:t)?E(S.values):Promise.resolve()}),oe=(0,t.useCallback)(function(e){C({type:`SET_ERRORS`,payload:e})},[]),se=As(function(e,t){var n=H(e)?e(S.values):e;return C({type:`SET_VALUES`,payload:n}),(t===void 0?r:t)?E(n):Promise.resolve()}),ce=(0,t.useCallback)(function(e,t){C({type:`SET_FIELD_ERROR`,payload:{field:e,value:t}})},[]),le=As(function(e,t,n){return C({type:`SET_FIELD_VALUE`,payload:{field:e,value:t}}),(n===void 0?r:n)?E(hs(S.values,e,t)):Promise.resolve()}),k=(0,t.useCallback)(function(e,t){var n=t,r=e,i;if(!ds(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,o=a.type,s=a.name,c=a.id,l=a.value,u=a.checked,d=a.outerHTML,f=a.options,p=a.multiple;n=t||s||c,!n&&L.env.NODE_ENV!==`production`&&Ss({htmlContent:d,documentationAnchorLink:`handlechange-e-reactchangeeventany--void`,handlerName:`handleChange`}),r=/number|range/.test(o)?(i=parseFloat(l),isNaN(i)?``:i):/checkbox/.test(o)?Os(U(S.values,n),u,l):f&&p?Ds(f):l}n&&le(n,r)},[le,S.values]),A=As(function(e){if(ds(e))return function(t){return k(t,e)};k(e)}),j=As(function(e,t,n){return t===void 0&&(t=!0),C({type:`SET_FIELD_TOUCHED`,payload:{field:e,value:t}}),(n===void 0?a:n)?E(S.values):Promise.resolve()}),ue=(0,t.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,a=n.outerHTML,o=t||r||i;!o&&L.env.NODE_ENV!==`production`&&Ss({htmlContent:a,documentationAnchorLink:`handleblur-e-any--void`,handlerName:`handleBlur`}),j(o,!0)},[j]),de=As(function(e){if(ds(e))return function(t){return ue(t,e)};ue(e)}),M=(0,t.useCallback)(function(e){H(e)?C({type:`SET_FORMIK_STATE`,payload:e}):C({type:`SET_FORMIK_STATE`,payload:function(){return e}})},[]),fe=(0,t.useCallback)(function(e){C({type:`SET_STATUS`,payload:e})},[]),pe=(0,t.useCallback)(function(e){C({type:`SET_ISSUBMITTING`,payload:e})},[]),me=As(function(){return C({type:`SUBMIT_ATTEMPT`}),E().then(function(e){var t=e instanceof Error;if(!t&&Object.keys(e).length===0){var n;try{if(n=ge(),n===void 0)return}catch(e){throw e}return Promise.resolve(n).then(function(e){return v.current&&C({type:`SUBMIT_SUCCESS`}),e}).catch(function(e){if(v.current)throw C({type:`SUBMIT_FAILURE`}),e})}else if(v.current&&(C({type:`SUBMIT_FAILURE`}),t))throw e})}),he=As(function(e){if(e&&e.preventDefault&&H(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&H(e.stopPropagation)&&e.stopPropagation(),L.env.NODE_ENV!==`production`&&typeof document<`u`){var t=ms();t!==null&&t instanceof HTMLButtonElement&&!(t.attributes&&t.attributes.getNamedItem(`type`))&&(L.env.NODE_ENV===`production`?B(!1):B(!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"`.'))}me().catch(function(e){console.warn(`Warning: An unhandled error was caught from submitForm()`,e)})}),N={resetForm:D,validateForm:E,validateField:re,setErrors:oe,setFieldError:ce,setFieldTouched:j,setFieldValue:le,setStatus:fe,setSubmitting:pe,setTouched:O,setValues:se,setFormikState:M,submitForm:me},ge=As(function(){return d(S.values,N)}),_e=As(function(e){e&&e.preventDefault&&H(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&H(e.stopPropagation)&&e.stopPropagation(),D()}),ve=(0,t.useCallback)(function(e){return{value:U(S.values,e),error:U(S.errors,e),touched:!!U(S.touched,e),initialValue:U(m.current,e),initialTouched:!!U(g.current,e),initialError:U(h.current,e)}},[S.errors,S.touched,S.values]),ye=(0,t.useCallback)(function(e){return{setValue:function(t,n){return le(e,t,n)},setTouched:function(t,n){return j(e,t,n)},setError:function(t){return ce(e,t)}}},[le,j,ce]),be=(0,t.useCallback)(function(e){var t=ls(e),n=t?e.name:e,r=U(S.values,n),i={name:n,value:r,onChange:A,onBlur:de};if(t){var a=e.type,o=e.value,s=e.as,c=e.multiple;a===`checkbox`?o===void 0?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(o)),i.value=o):a===`radio`?(i.checked=r===o,i.value=o):s===`select`&&c&&(i.value=i.value||[],i.multiple=!0)}return i},[de,A,S.values]),xe=(0,t.useMemo)(function(){return!(0,$o.default)(m.current,S.values)},[m.current,S.values]),Se=(0,t.useMemo)(function(){return c===void 0||xe?S.errors&&Object.keys(S.errors).length===0:c!==!1&&H(c)?c(p):c},[c,xe,S.errors,p]);return V({},S,{initialValues:m.current,initialErrors:h.current,initialTouched:g.current,initialStatus:_.current,handleBlur:de,handleChange:A,handleReset:_e,handleSubmit:he,resetForm:D,setErrors:oe,setFormikState:M,setFieldTouched:j,setFieldValue:le,setFieldError:ce,setStatus:fe,setSubmitting:pe,setTouched:O,setValues:se,submitForm:me,validateForm:E,validateField:re,isValid:Se,dirty:xe,unregisterField:ae,registerField:ie,getFieldProps:be,getFieldMeta:ve,getFieldHelpers:ye,validateOnBlur:a,validateOnChange:r,validateOnMount:s})}function xs(e){var n=bs(e),r=e.component,i=e.children,a=e.render,o=e.innerRef;return(0,t.useImperativeHandle)(o,function(){return n}),L.env.NODE_ENV!==`production`&&(0,t.useEffect)(function(){e.render&&(L.env.NODE_ENV===`production`?B(!1):B(!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>`))},[]),(0,t.createElement)(as,{value:n},r?(0,t.createElement)(r,n):a?a(n):i?H(i)?i(n):fs(i)?null:t.Children.only(i):null)}function Ss(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+`
|
|
74
74
|
Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+n+`
|
|
75
|
-
`)}function V0(e){var t={};if(e.inner){if(e.inner.length===0)return $e(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var s=i;q(t,s.path)||(t=$e(t,s.path,s.message))}}return t}function F0(e,t,n,r){n===void 0&&(n=!1);var o=po(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function po(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||zs(o)?po(o):o!==""?o:void 0}):zs(e[r])?t[r]=po(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function k0(e,t,n){var r=e.slice();return t.forEach(function(i,s){if(typeof r[s]>"u"){var a=n.clone!==!1,c=a&&n.isMergeableObject(i);r[s]=c?Hr(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=Hr(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function I0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function N0(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var L0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function Oe(e){var t=E.useRef(e);return L0(function(){t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function Pn(e){var t=Mt(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=Gt(e),c=a?e:{name:e},l=c.name,u=c.validate;E.useEffect(function(){return l&&i(l,{validate:u}),function(){l&&s(l)}},[i,s,l,u]),ne.env.NODE_ENV!=="production"&&(t||(ne.env.NODE_ENV!=="production"?se(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):se())),l||(ne.env.NODE_ENV!=="production"?se(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):se());var d=E.useMemo(function(){return o(l)},[o,l]);return[n(c),r(l),d]}function mo(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,c=ft(e,["validate","name","render","children","as","component","className"]),l=Mt(),u=ft(l,["validate","validationSchema"]);ne.env.NODE_ENV!=="production"&&E.useEffect(function(){r&&(ne.env.NODE_ENV!=="production"?se(!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>'):se()),i&&o&&me(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):se()),s&&o&&me(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):se()),r&&o&&!fo(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):se())},[]);var d=u.registerField,h=u.unregisterField;E.useEffect(function(){return d(n,{validate:t}),function(){h(n)}},[d,h,n,t]);var p=u.getFieldProps(K({name:n},c)),y=u.getFieldMeta(n),m={field:p,form:u};if(r)return r(K({},m,{meta:y}));if(me(o))return o(K({},m,{meta:y}));if(s){if(typeof s=="string"){var g=c.innerRef,b=ft(c,["innerRef"]);return E.createElement(s,K({ref:g},p,b,{className:a}),o)}return E.createElement(s,K({field:p,form:u},c,{className:a}),o)}var x=i||"input";if(typeof x=="string"){var T=c.innerRef,P=ft(c,["innerRef"]);return E.createElement(x,K({ref:T},p,P,{className:a}),o)}return E.createElement(x,K({},p,c,{className:a}),o)}var R0=E.forwardRef(function(e,t){var n=e.action,r=ft(e,["action"]),o=n??"#",i=Mt(),s=i.handleReset,a=i.handleSubmit;return E.createElement("form",K({onSubmit:a,ref:t,onReset:s,action:o},r))});R0.displayName="Form";function _0(e){var t=function(o){return E.createElement(A0,null,function(i){return i||(ne.env.NODE_ENV!=="production"?se(!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):se()),E.createElement(e,K({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",x0(t,e)}var j0=function(t,n,r){var o=Ot(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},B0=function(t,n,r){var o=Ot(t),i=o[n];return o[n]=o[r],o[r]=i,o},go=function(t,n,r){var o=Ot(t);return o.splice(n,0,r),o},$0=function(t,n,r){var o=Ot(t);return o[n]=r,o},Ot=function(t){if(t){if(Array.isArray(t))return[].concat(t);var n=Object.keys(t).map(function(r){return parseInt(r)}).reduce(function(r,o){return o>r?o:r},0);return Array.from(K({},t,{length:n+1}))}else return[]},Ya=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||Gt(o)){var i=Ot(o);return r(i)}return o}},U0=(function(e){za(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,s,a){var c=o.props,l=c.name,u=c.formik.setFormikState;u(function(d){var h=Ya(a,i),p=Ya(s,i),y=$e(d.values,l,i(q(d.values,l))),m=a?h(q(d.errors,l)):void 0,g=s?p(q(d.touched,l)):void 0;return Ha(m)&&(m=void 0),Ha(g)&&(g=void 0),K({},d,{values:y,errors:a?$e(d.errors,l,m):d.errors,touched:s?$e(d.touched,l,g):d.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(Ot(s),[Cn(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(a){return B0(a,i,s)},!0,!0)},o.handleSwap=function(i,s){return function(){return o.swap(i,s)}},o.move=function(i,s){return o.updateArrayField(function(a){return j0(a,i,s)},!0,!0)},o.handleMove=function(i,s){return function(){return o.move(i,s)}},o.insert=function(i,s){return o.updateArrayField(function(a){return go(a,i,s)},function(a){return go(a,i,null)},function(a){return go(a,i,null)})},o.handleInsert=function(i,s){return function(){return o.insert(i,s)}},o.replace=function(i,s){return o.updateArrayField(function(a){return $0(a,i,s)},!1,!1)},o.handleReplace=function(i,s){return function(){return o.replace(i,s)}},o.unshift=function(i){var s=-1;return o.updateArrayField(function(a){var c=a?[i].concat(a):[i];return s=c.length,c},function(a){return a?[null].concat(a):[null]},function(a){return a?[null].concat(a):[null]}),s},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(Za(o)),o.pop=o.pop.bind(Za(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!dt(q(o.formik.values,o.name),q(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(s){var a=s?Ot(s):[];return i||(i=a[o]),me(a.splice)&&a.splice(o,1),me(a.every)&&a.every(function(c){return c===void 0})?[]:a},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var s=i.slice();return o||(o=s&&s.pop&&s.pop()),s},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,a=i.render,c=i.children,l=i.name,u=i.formik,d=ft(u,["validate","validationSchema"]),h=K({},o,{form:d,name:l});return s?E.createElement(s,h):a?a(h):c?typeof c=="function"?c(h):fo(c)?null:E.Children.only(c):null},t})(E.Component);U0.defaultProps={validateOnChange:!0};var W0=(function(e){za(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(o){return q(this.props.formik.errors,this.props.name)!==q(o.formik.errors,this.props.name)||q(this.props.formik.touched,this.props.name)!==q(o.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(o).length},n.render=function(){var o=this.props,i=o.component,s=o.formik,a=o.render,c=o.children,l=o.name,u=ft(o,["component","formik","render","children","name"]),d=q(s.touched,l),h=q(s.errors,l);return d&&h?a?me(a)?a(h):null:c?me(c)?c(h):null:i?E.createElement(i,u,h):h:null},t})(E.Component),yo=_0(W0);const Xa=E.createContext({}),nr=()=>E.useContext(Xa),z0="w-full",vo="flex ml-5 mt-2 text-xs text-feedback-danger-200";function Z0({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:n,isDisabled:r,...o}){const{isSubmitting:i,dirty:s,isValid:a}=Mt(),{isForcedDirty:c,onNavigationEvent:l}=nr(),u=h=>{l(()=>o.onClick)},d=E.useMemo(()=>!!(r||e&&i||t&&!s||t&&typeof c=="boolean"&&!c||n&&!a),[e,t,r,i,c,s,a,n]);return v.jsx(yn,{...o,isDisabled:d,onClick:o.type!=="submit"&&(s||typeof c<"u"&&c)?u:o.onClick})}function H0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qa={exports:{}},le=qa.exports={},Ue,We;function bo(){throw new Error("setTimeout has not been defined")}function wo(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ue=setTimeout:Ue=bo}catch{Ue=bo}try{typeof clearTimeout=="function"?We=clearTimeout:We=wo}catch{We=wo}})();function Qa(e){if(Ue===setTimeout)return setTimeout(e,0);if((Ue===bo||!Ue)&&setTimeout)return Ue=setTimeout,setTimeout(e,0);try{return Ue(e,0)}catch{try{return Ue.call(null,e,0)}catch{return Ue.call(this,e,0)}}}function K0(e){if(We===clearTimeout)return clearTimeout(e);if((We===wo||!We)&&clearTimeout)return We=clearTimeout,clearTimeout(e);try{return We(e)}catch{try{return We.call(null,e)}catch{return We.call(this,e)}}}var Je=[],Yt=!1,Vt,rr=-1;function G0(){!Yt||!Vt||(Yt=!1,Vt.length?Je=Vt.concat(Je):rr=-1,Je.length&&Ja())}function Ja(){if(!Yt){var e=Qa(G0);Yt=!0;for(var t=Je.length;t;){for(Vt=Je,Je=[];++rr<t;)Vt&&Vt[rr].run();rr=-1,t=Je.length}Vt=null,Yt=!1,K0(e)}}le.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Je.push(new ec(e,t)),Je.length===1&&!Yt&&Qa(Ja)};function ec(e,t){this.fun=e,this.array=t}ec.prototype.run=function(){this.fun.apply(null,this.array)},le.title="browser",le.browser=!0,le.env={},le.argv=[],le.version="",le.versions={};function et(){}le.on=et,le.addListener=et,le.once=et,le.off=et,le.removeListener=et,le.removeAllListeners=et,le.emit=et,le.prependListener=et,le.prependOnceListener=et,le.listeners=function(e){return[]},le.binding=function(e){throw new Error("process.binding is not supported")},le.cwd=function(){return"/"},le.chdir=function(e){throw new Error("process.chdir is not supported")},le.umask=function(){return 0};var Y0=qa.exports;const Ft=H0(Y0),To=E.createContext({});function Eo(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const xo=typeof window<"u",tc=xo?E.useLayoutEffect:E.useEffect,or=E.createContext(null);function So(e,t){e.indexOf(t)===-1&&e.push(t)}function Ao(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const tt=(e,t,n)=>n>t?t:n<e?e:n;function Co(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Xt=()=>{},nt=()=>{};Ft.env.NODE_ENV!=="production"&&(Xt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Co(t,n))},nt=(e,t,n)=>{if(!e)throw new Error(Co(t,n))});const rt={},nc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function rc(e){return typeof e=="object"&&e!==null}const oc=e=>/^0[^.\s]+$/u.test(e);function Po(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ve=e=>e,X0=(e,t)=>n=>t(e(n)),Mn=(...e)=>e.reduce(X0),Dn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Mo{constructor(){this.subscriptions=[]}add(t){return So(this.subscriptions,t),()=>Ao(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ie=e=>e*1e3,ze=e=>e/1e3;function ic(e,t){return t?e*(1e3/t):0}const sc=new Set;function Do(e,t,n){e||sc.has(t)||(console.warn(Co(t,n)),sc.add(t))}const ac=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q0=1e-7,Q0=12;function J0(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=ac(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>q0&&++a<Q0);return s}function On(e,t,n,r){if(e===t&&n===r)return Ve;const o=i=>J0(i,0,1,e,n);return i=>i===0||i===1?i:ac(o(i),t,r)}const cc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,lc=e=>t=>1-e(1-t),uc=On(.33,1.53,.69,.99),Oo=lc(uc),dc=cc(Oo),fc=e=>(e*=2)<1?.5*Oo(e):.5*(2-Math.pow(2,-10*(e-1))),Vo=e=>1-Math.sin(Math.acos(e)),hc=lc(Vo),pc=cc(Vo),ey=On(.42,0,1,1),ty=On(0,0,.58,1),mc=On(.42,0,.58,1),ny=e=>Array.isArray(e)&&typeof e[0]!="number",gc=e=>Array.isArray(e)&&typeof e[0]=="number",yc={linear:Ve,easeIn:ey,easeInOut:mc,easeOut:ty,circIn:Vo,circInOut:pc,circOut:hc,backIn:Oo,backInOut:dc,backOut:uc,anticipate:fc},ry=e=>typeof e=="string",vc=e=>{if(gc(e)){nt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return On(t,n,r,o)}else if(ry(e))return nt(yc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),yc[e];return e},ir=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oy(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,d=!1,h=!1)=>{const y=h&&o?n:r;return d&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,i&&(i=!1,l.process(u))}};return l}const iy=40;function bc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ir.reduce((T,P)=>(T[P]=oy(i),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:h,render:p,postRender:y}=s,m=()=>{const T=rt.useManualTiming?o.timestamp:performance.now();n=!1,rt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(T-o.timestamp,iy),1)),o.timestamp=T,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),d.process(o),h.process(o),p.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:ir.reduce((T,P)=>{const w=s[P];return T[P]=(M,A=!1,C=!1)=>(n||g(),w.schedule(M,A,C)),T},{}),cancel:T=>{for(let P=0;P<ir.length;P++)s[ir[P]].cancel(T)},state:o,steps:s}}const{schedule:Q,cancel:ht,state:ve,steps:Fo}=bc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ve,!0);let sr;function sy(){sr=void 0}const Ae={now:()=>(sr===void 0&&Ae.set(ve.isProcessing||rt.useManualTiming?ve.timestamp:performance.now()),sr),set:e=>{sr=e,queueMicrotask(sy)}},wc=e=>t=>typeof t=="string"&&t.startsWith(e),ko=wc("--"),ay=wc("var(--"),Io=e=>ay(e)?cy.test(e.split("/*")[0].trim()):!1,cy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vn={...qt,transform:e=>tt(0,1,e)},ar={...qt,default:1},Fn=e=>Math.round(e*1e5)/1e5,No=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ly(e){return e==null}const uy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lo=(e,t)=>n=>!!(typeof n=="string"&&uy.test(n)&&n.startsWith(e)||t&&!ly(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(No);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},dy=e=>tt(0,255,e),Ro={...qt,transform:e=>Math.round(dy(e))},kt={test:Lo("rgb","red"),parse:Tc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ro.transform(e)+", "+Ro.transform(t)+", "+Ro.transform(n)+", "+Fn(Vn.transform(r))+")"};function fy(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const _o={test:Lo("#"),parse:fy,transform:kt.transform},kn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pt=kn("deg"),Ze=kn("%"),R=kn("px"),hy=kn("vh"),py=kn("vw"),Ec={...Ze,parse:e=>Ze.parse(e)/100,transform:e=>Ze.transform(e*100)},Qt={test:Lo("hsl","hue"),parse:Tc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ze.transform(Fn(t))+", "+Ze.transform(Fn(n))+", "+Fn(Vn.transform(r))+")"},fe={test:e=>kt.test(e)||_o.test(e)||Qt.test(e),parse:e=>kt.test(e)?kt.parse(e):Qt.test(e)?Qt.parse(e):_o.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?kt.transform(e):Qt.transform(e),getAnimatableNone:e=>{const t=fe.parse(e);return t.alpha=0,fe.transform(t)}},my=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gy(e){return isNaN(e)&&typeof e=="string"&&(e.match(No)?.length||0)+(e.match(my)?.length||0)>0}const xc="number",Sc="color",yy="var",vy="var(",Ac="${}",by=/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 In(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(by,c=>(fe.test(c)?(r.color.push(i),o.push(Sc),n.push(fe.parse(c))):c.startsWith(vy)?(r.var.push(i),o.push(yy),n.push(c)):(r.number.push(i),o.push(xc),n.push(parseFloat(c))),++i,Ac)).split(Ac);return{values:n,split:a,indexes:r,types:o}}function Cc(e){return In(e).values}function Pc(e){const{split:t,types:n}=In(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===xc?i+=Fn(o[s]):a===Sc?i+=fe.transform(o[s]):i+=o[s]}return i}}const wy=e=>typeof e=="number"?0:fe.test(e)?fe.getAnimatableNone(e):e;function Ty(e){const t=Cc(e);return Pc(e)(t.map(wy))}const mt={test:gy,parse:Cc,createTransformer:Pc,getAnimatableNone:Ty};function jo(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 Ey({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=jo(c,a,e+1/3),i=jo(c,a,e),s=jo(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function cr(e,t){return n=>n>0?t:e}const re=(e,t,n)=>e+(t-e)*n,Bo=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},xy=[_o,kt,Qt],Sy=e=>xy.find(t=>t.test(e));function Mc(e){const t=Sy(e);if(Xt(!!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===Qt&&(n=Ey(n)),n}const Dc=(e,t)=>{const n=Mc(e),r=Mc(t);if(!n||!r)return cr(e,t);const o={...n};return i=>(o.red=Bo(n.red,r.red,i),o.green=Bo(n.green,r.green,i),o.blue=Bo(n.blue,r.blue,i),o.alpha=re(n.alpha,r.alpha,i),kt.transform(o))},$o=new Set(["none","hidden"]);function Ay(e,t){return $o.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cy(e,t){return n=>re(e,t,n)}function Uo(e){return typeof e=="number"?Cy:typeof e=="string"?Io(e)?cr:fe.test(e)?Dc:Dy:Array.isArray(e)?Oc:typeof e=="object"?fe.test(e)?Dc:Py:cr}function Oc(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Uo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Py(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Uo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function My(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const Dy=(e,t)=>{const n=mt.createTransformer(t),r=In(e),o=In(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?$o.has(e)&&!o.values.length||$o.has(t)&&!r.values.length?Ay(e,t):Mn(Oc(My(r,o),o.values),n):(Xt(!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"),cr(e,t))};function Vc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?re(e,t,n):Uo(e)(e,t)}const Oy=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Q.update(t,n),stop:()=>ht(t),now:()=>ve.isProcessing?ve.timestamp:Ae.now()}},Fc=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},lr=2e4;function Wo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lr;)t+=n,r=e.next(t);return t>=lr?1/0:t}function Vy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Wo(r),lr);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:ze(o)}}const Fy=5;function kc(e,t,n){const r=Math.max(t-Fy,0);return ic(n-e(r),t-r)}const oe={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},zo=.001;function ky({duration:e=oe.duration,bounce:t=oe.bounce,velocity:n=oe.velocity,mass:r=oe.mass}){let o,i;Xt(e<=Ie(oe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=tt(oe.minDamping,oe.maxDamping,s),e=tt(oe.minDuration,oe.maxDuration,ze(e)),s<1?(o=l=>{const u=l*s,d=u*e,h=u-n,p=Zo(l,s),y=Math.exp(-d);return zo-h/p*y},i=l=>{const d=l*s*e,h=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-d),m=Zo(Math.pow(l,2),s);return(-o(l)+zo>0?-1:1)*((h-p)*y)/m}):(o=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-zo+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=Ny(o,i,a);if(e=Ie(e),isNaN(c))return{stiffness:oe.stiffness,damping:oe.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Iy=12;function Ny(e,t,n){let r=n;for(let o=1;o<Iy;o++)r=r-e(r)/t(r);return r}function Zo(e,t){return e*Math.sqrt(1-t*t)}const Ly=["duration","bounce"],Ry=["stiffness","damping","mass"];function Ic(e,t){return t.some(n=>e[n]!==void 0)}function _y(e){let t={velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1,...e};if(!Ic(e,Ry)&&Ic(e,Ly))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*tt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:oe.mass,stiffness:o,damping:i}}else{const n=ky(e);t={...t,...n,mass:oe.mass},t.isResolvedFromDuration=!0}return t}function ur(e=oe.visualDuration,t=oe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:h,isResolvedFromDuration:p}=_y({...n,velocity:-ze(n.velocity||0)}),y=h||0,m=l/(2*Math.sqrt(c*u)),g=s-i,b=ze(Math.sqrt(c/u)),x=Math.abs(g)<5;r||(r=x?oe.restSpeed.granular:oe.restSpeed.default),o||(o=x?oe.restDelta.granular:oe.restDelta.default);let T;if(m<1){const w=Zo(b,m);T=M=>{const A=Math.exp(-m*b*M);return s-A*((y+m*b*g)/w*Math.sin(w*M)+g*Math.cos(w*M))}}else if(m===1)T=w=>s-Math.exp(-b*w)*(g+(y+b*g)*w);else{const w=b*Math.sqrt(m*m-1);T=M=>{const A=Math.exp(-m*b*M),C=Math.min(w*M,300);return s-A*((y+m*b*g)*Math.sinh(C)+w*g*Math.cosh(C))/w}}const P={calculatedDuration:p&&d||null,next:w=>{const M=T(w);if(p)a.done=w>=d;else{let A=w===0?y:0;m<1&&(A=w===0?Ie(y):kc(T,w,M));const C=Math.abs(A)<=r,L=Math.abs(s-M)<=o;a.done=C&&L}return a.value=a.done?s:M,a},toString:()=>{const w=Math.min(Wo(P),lr),M=Fc(A=>P.next(w*A).value,w,30);return w+"ms "+M},toTransition:()=>{}};return P}ur.applyToOptions=e=>{const t=Vy(e,100,ur);return e.ease=t.ease,e.duration=Ie(t.duration),e.type="keyframes",e};function Ho({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=C=>a!==void 0&&C<a||c!==void 0&&C>c,y=C=>a===void 0?c:c===void 0||Math.abs(a-C)<Math.abs(c-C)?a:c;let m=n*t;const g=d+m,b=s===void 0?g:s(g);b!==g&&(m=b-d);const x=C=>-m*Math.exp(-C/r),T=C=>b+x(C),P=C=>{const L=x(C),$=T(C);h.done=Math.abs(L)<=l,h.value=h.done?b:$};let w,M;const A=C=>{p(h.value)&&(w=C,M=ur({keyframes:[h.value,y(h.value)],velocity:kc(T,C,h.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:C=>{let L=!1;return!M&&w===void 0&&(L=!0,P(C),A(C)),w!==void 0&&C>=w?M.next(C-w):(!L&&P(C),h)}}}function jy(e,t,n){const r=[],o=n||rt.mix||Vc,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||Ve:t;a=Mn(c,a)}r.push(a)}return r}function By(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(nt(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=jy(t,r,o),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=Dn(e[d],e[d+1],u);return a[d](h)};return n?u=>l(tt(e[0],e[i-1],u)):l}function $y(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Dn(0,t,r);e.push(re(n,1,o))}}function Uy(e){const t=[0];return $y(t,e.length-1),t}function Wy(e,t){return e.map(n=>n*t)}function zy(e,t){return e.map(()=>t||mc).splice(0,e.length-1)}function Jt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=ny(r)?r.map(vc):vc(r),i={done:!1,value:t[0]},s=Wy(n&&n.length===t.length?n:Uy(t),e),a=By(s,t,{ease:Array.isArray(o)?o:zy(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const Zy=e=>e!==null;function Ko(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Zy),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Hy={decay:Ho,inertia:Ho,tween:Jt,keyframes:Jt,spring:ur};function Nc(e){typeof e.type=="string"&&(e.type=Hy[e.type])}class Go{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 Ky=e=>e/100;class Yo extends Go{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Nc(t);const{type:n=Jt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Jt;Ft.env.NODE_ENV!=="production"&&c!==Jt&&nt(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Jt&&typeof a[0]!="number"&&(this.mixKeyframes=Mn(Ky,Vc(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Wo(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?b<0:b>o;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let T=this.currentTime,P=r;if(d){const C=Math.min(this.currentTime,o)/a;let L=Math.floor(C),$=C%1;!$&&C>=1&&($=1),$===1&&L--,L=Math.min(L,d+1),L%2&&(h==="reverse"?($=1-$,p&&($-=p/a)):h==="mirror"&&(P=s)),T=tt(0,1,$)*a}const w=x?{done:!1,value:u[0]}:P.next(T);i&&(w.value=i(w.value));let{done:M}=w;!x&&c!==null&&(M=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return A&&y!==Ho&&(w.value=Ko(u,this.options,g,this.speed)),m&&m(w.value),A&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return ze(this.calculatedDuration)}get time(){return ze(this.currentTime)}set time(t){t=Ie(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),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ae.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ze(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Oy,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ae.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}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){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Gy(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const It=e=>e*180/Math.PI,Xo=e=>{const t=It(Math.atan2(e[1],e[0]));return qo(t)},Yy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xo,rotateZ:Xo,skewX:e=>It(Math.atan(e[1])),skewY:e=>It(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qo=e=>(e=e%360,e<0&&(e+=360),e),Lc=Xo,Rc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),_c=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Xy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Rc,scaleY:_c,scale:e=>(Rc(e)+_c(e))/2,rotateX:e=>qo(It(Math.atan2(e[6],e[5]))),rotateY:e=>qo(It(Math.atan2(-e[2],e[0]))),rotateZ:Lc,rotate:Lc,skewX:e=>It(Math.atan(e[4])),skewY:e=>It(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Qo(e){return e.includes("scale")?1:0}function Jo(e,t){if(!e||e==="none")return Qo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Xy,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Yy,o=a}if(!o)return Qo(t);const i=r[t],s=o[1].split(",").map(Qy);return typeof i=="function"?i(s):s[i]}const qy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jo(n,t)};function Qy(e){return parseFloat(e.trim())}const en=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tn=new Set(en),jc=e=>e===qt||e===R,Jy=new Set(["x","y","z"]),ev=en.filter(e=>!Jy.has(e));function tv(e){const t=[];return ev.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Nt={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})=>Jo(t,"x"),y:(e,{transform:t})=>Jo(t,"y")};Nt.translateX=Nt.x,Nt.translateY=Nt.y;const Lt=new Set;let ei=!1,ti=!1,ni=!1;function Bc(){if(ti){const e=Array.from(Lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=tv(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ti=!1,ei=!1,Lt.forEach(e=>e.complete(ni)),Lt.clear()}function $c(){Lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ti=!0)})}function nv(){ni=!0,$c(),Bc(),ni=!1}class ri{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Lt.add(this),ei||(ei=!0,Q.read($c),Q.resolveKeyframes(Bc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Gy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Lt.delete(this)}cancel(){this.state==="scheduled"&&(Lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rv=e=>e.startsWith("--");function ov(e,t,n){rv(t)?e.style.setProperty(t,n):e.style[t]=n}const iv=Po(()=>window.ScrollTimeline!==void 0),sv={};function av(e,t){const n=Po(e);return()=>sv[t]??n()}const Uc=av(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Nn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nn([0,.65,.55,1]),circOut:Nn([.55,0,1,.45]),backIn:Nn([.31,.01,.66,-.59]),backOut:Nn([.33,1.53,.69,.99])};function zc(e,t){if(e)return typeof e=="function"?Uc()?Fc(e,t):"ease-out":gc(e)?Nn(e):Array.isArray(e)?e.map(n=>zc(n,t)||Wc.easeOut):Wc[e]}function cv(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const d=zc(a,o);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),e.animate(u,h)}function Zc(e){return typeof e=="function"&&"applyToOptions"in e}function lv({type:e,...t}){return Zc(e)&&Uc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class uv extends Go{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,nt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=lv(t);this.animation=cv(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Ko(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):ov(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ze(Number(t))}get time(){return ze(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ie(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}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&iv()?(this.animation.timeline=t,Ve):n(this)}}const Hc={anticipate:fc,backInOut:dc,circInOut:pc};function dv(e){return e in Hc}function fv(e){typeof e.ease=="string"&&dv(e.ease)&&(e.ease=Hc[e.ease])}const Kc=10;class hv extends uv{constructor(t){fv(t),Nc(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Yo({...s,autoplay:!1}),c=Ie(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Kc).value,a.sample(c).value,Kc),a.stop()}}const Gc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(mt.test(e)||e==="0")&&!e.startsWith("url("));function pv(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 mv(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Gc(o,t),a=Gc(i,t);return Xt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:pv(e)||(n==="spring"||Zc(n))&&r}function oi(e){e.duration=0,e.type}const gv=new Set(["opacity","clipPath","filter","transform"]),yv=Po(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vv(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return yv()&&n&&gv.has(n)&&(n!=="transform"||!l)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const bv=40;class wv extends Go{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:c,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ae.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:c,motionValue:l,element:u,...d},p=u?.KeyframeResolver||ri;this.keyframeResolver=new p(a,(y,m,g)=>this.onKeyframesResolved(y,m,h,!g),c,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=Ae.now(),mv(t,i,s,a)||((rt.instantAnimations||!c)&&u?.(Ko(t,r,n)),t[0]=t[t.length-1],oi(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>bv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&vv(h)?new hv({...h,element:h.motionValue.owner.current}):new Yo(h);p.finished.then(()=>this.notifyFinished()).catch(Ve),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),nv()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Tv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ev(e){const t=Tv.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const xv=4;function Yc(e,t,n=1){nt(n<=xv,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Ev(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return nc(s)?parseFloat(s):s}return Io(o)?Yc(o,t,n+1):o}function ii(e,t){return e?.[t]??e?.default??e}const Xc=new Set(["width","height","top","left","right","bottom",...en]),Sv={test:e=>e==="auto",parse:e=>e},qc=e=>t=>t.test(e),Qc=[qt,R,Ze,pt,py,hy,Sv],Jc=e=>Qc.find(qc(e));function Av(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||oc(e):!0}const Cv=new Set(["brightness","contrast","saturate","opacity"]);function Pv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(No)||[];if(!r)return e;const o=n.replace(r,"");let i=Cv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Mv=/\b([a-z-]*)\(.*?\)/gu,si={...mt,getAnimatableNone:e=>{const t=e.match(Mv);return t?t.map(Pv).join(" "):e}},el={...qt,transform:Math.round},ai={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,backgroundPositionX:R,backgroundPositionY:R,...{rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scale:ar,scaleX:ar,scaleY:ar,scaleZ:ar,skew:pt,skewX:pt,skewY:pt,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Vn,originX:Ec,originY:Ec,originZ:R},zIndex:el,fillOpacity:Vn,strokeOpacity:Vn,numOctaves:el},Dv={...ai,color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:si,WebkitFilter:si},tl=e=>Dv[e];function nl(e,t){let n=tl(e);return n!==si&&(n=mt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ov=new Set(["auto","none","0"]);function Vv(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Ov.has(i)&&In(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=nl(n,o)}class Fv extends ri{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),Io(l))){const u=Yc(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Xc.has(r)||t.length!==2)return;const[o,i]=t,s=Jc(o),a=Jc(i);if(s!==a)if(jc(s)&&jc(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Nt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Av(t[o]))&&r.push(o);r.length&&Vv(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=Nt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Nt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function kv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const rl=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ol(e){return rc(e)&&"offsetHeight"in e}const il=30,Iv=e=>!isNaN(parseFloat(e));class Nv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Ae.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Iv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return Ft.env.NODE_ENV!=="production"&&Do(!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 Mo);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>il)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,il);return ic(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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nn(e,t){return new Nv(e,t)}const{schedule:ci}=bc(queueMicrotask,!1),Ne={x:!1,y:!1};function sl(){return Ne.x||Ne.y}function Lv(e){return e==="x"||e==="y"?Ne[e]?null:(Ne[e]=!0,()=>{Ne[e]=!1}):Ne.x||Ne.y?null:(Ne.x=Ne.y=!0,()=>{Ne.x=Ne.y=!1})}function al(e,t){const n=kv(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function cl(e){return!(e.pointerType==="touch"||sl())}function Rv(e,t,n={}){const[r,o,i]=al(e,n),s=a=>{if(!cl(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{cl(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const ll=(e,t)=>t?e===t?!0:ll(e,t.parentElement):!1,li=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_v=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jv(e){return _v.has(e.tagName)||e.tabIndex!==-1}const dr=new WeakSet;function ul(e){return t=>{t.key==="Enter"&&e(t)}}function ui(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Bv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ul(()=>{if(dr.has(n))return;ui(n,"down");const o=ul(()=>{ui(n,"up")}),i=()=>ui(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function dl(e){return li(e)&&!sl()}function $v(e,t,n={}){const[r,o,i]=al(e,n),s=a=>{const c=a.currentTarget;if(!dl(a))return;dr.add(c);const l=t(c,a),u=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),dr.has(c)&&dr.delete(c),dl(p)&&typeof l=="function"&&l(p,{success:y})},d=p=>{u(p,c===window||c===document||n.useGlobalTarget||ll(c,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),ol(a)&&(a.addEventListener("focus",l=>Bv(l,o)),!jv(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function fl(e){return rc(e)&&"ownerSVGElement"in e}function Uv(e){return fl(e)&&e.tagName==="svg"}const Te=e=>!!(e&&e.getVelocity),Wv=[...Qc,fe,mt],zv=e=>Wv.find(qc(e)),di=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Zv extends f.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ol(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Hv({children:e,isPresent:t,anchorX:n,root:r}){const o=E.useId(),i=E.useRef(null),s=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=E.useContext(di);return E.useInsertionEffect(()=>{const{width:c,height:l,top:u,left:d,right:h}=s.current;if(t||!i.current||!c||!l)return;const p=n==="left"?`left: ${d}`:`right: ${h}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const m=r??document.head;return m.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
76
|
-
[data-motion-pop-id="${
|
|
75
|
+
`)}function Cs(e){var t={};if(e.inner){if(e.inner.length===0)return hs(t,e.path,e.message);for(var n=e.inner,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if(i=n.next(),i.done)break;a=i.value}var o=a;U(t,o.path)||(t=hs(t,o.path,o.message))}}return t}function ws(e,t,n,r){n===void 0&&(n=!1);var i=Ts(e);return t[n?`validateSync`:`validate`](i,{abortEarly:!1,context:r||i})}function Ts(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(e){return Array.isArray(e)===!0||nn(e)?Ts(e):e===``?void 0:e}):nn(e[r])?t[r]=Ts(e[r]):t[r]=e[r]===``?void 0:e[r]}return t}function Es(e,t,n){var r=e.slice();return t.forEach(function(t,i){r[i]===void 0?r[i]=n.clone!==!1&&n.isMergeableObject(t)?At(Array.isArray(t)?[]:{},t,n):t:n.isMergeableObject(t)?r[i]=At(e[i],t,n):e.indexOf(t)===-1&&r.push(t)}),r}function Ds(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}function Os(e,t,n){if(typeof e==`boolean`)return!!t;var r=[],i=!1,a=-1;if(Array.isArray(e))r=e,a=e.indexOf(n),i=a>=0;else if(!n||n==`true`||n==`false`)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,a).concat(r.slice(a+1)):r}var ks=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?t.useLayoutEffect:t.useEffect;function As(e){var n=(0,t.useRef)(e);return ks(function(){n.current=e}),(0,t.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.current.apply(void 0,t)},[])}function js(e){var n=ss(),r=n.getFieldProps,i=n.getFieldMeta,a=n.getFieldHelpers,o=n.registerField,s=n.unregisterField,c=ls(e)?e:{name:e},l=c.name,u=c.validate;(0,t.useEffect)(function(){return l&&o(l,{validate:u}),function(){l&&s(l)}},[o,s,l,u]),L.env.NODE_ENV!==`production`&&!n&&(L.env.NODE_ENV===`production`?B(!1):B(!1,`useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component`)),!l&&(L.env.NODE_ENV===`production`?B(!1):B(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."));var d=(0,t.useMemo)(function(){return a(l)},[a,l]);return[r(c),i(l),d]}function Ms(e){var n=e.validate,r=e.name,i=e.render,a=e.children,o=e.as,s=e.component,c=e.className,l=ns(e,[`validate`,`name`,`render`,`children`,`as`,`component`,`className`]),u=ns(ss(),[`validate`,`validationSchema`]);L.env.NODE_ENV!==`production`&&(0,t.useEffect)(function(){i&&(L.env.NODE_ENV===`production`?B(!1):B(!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="`+r+`" render={({field, form}) => ...} /> with <Field name="`+r+`">{({field, form, meta}) => ...}</Field>`)),o&&a&&H(a)&&(L.env.NODE_ENV===`production`?B(!1):B(!1,`You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored.`)),s&&a&&H(a)&&(L.env.NODE_ENV===`production`?B(!1):B(!1,`You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.`)),i&&a&&!fs(a)&&(L.env.NODE_ENV===`production`?B(!1):B(!1,`You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored`))},[]);var d=u.registerField,f=u.unregisterField;(0,t.useEffect)(function(){return d(r,{validate:n}),function(){f(r)}},[d,f,r,n]);var p=u.getFieldProps(V({name:r},l)),m=u.getFieldMeta(r),h={field:p,form:u};if(i)return i(V({},h,{meta:m}));if(H(a))return a(V({},h,{meta:m}));if(s){if(typeof s==`string`){var g=l.innerRef,_=ns(l,[`innerRef`]);return(0,t.createElement)(s,V({ref:g},p,_,{className:c}),a)}return(0,t.createElement)(s,V({field:p,form:u},l,{className:c}),a)}var v=o||`input`;if(typeof v==`string`){var y=l.innerRef,b=ns(l,[`innerRef`]);return(0,t.createElement)(v,V({ref:y},p,b,{className:c}),a)}return(0,t.createElement)(v,V({},p,l,{className:c}),a)}var Ns=(0,t.forwardRef)(function(e,n){var r=e.action,i=ns(e,[`action`]),a=r??`#`,o=ss(),s=o.handleReset,c=o.handleSubmit;return(0,t.createElement)(`form`,V({onSubmit:c,ref:n,onReset:s,action:a},i))});Ns.displayName=`Form`;function Ps(e){var n=function(n){return(0,t.createElement)(os,null,function(r){return!r&&(L.env.NODE_ENV===`production`?B(!1):B(!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)),(0,t.createElement)(e,V({},n,{formik:r}))})},r=e.displayName||e.name||e.constructor&&e.constructor.name||`Component`;return n.WrappedComponent=e,n.displayName=`FormikConnect(`+r+`)`,(0,es.default)(n,e)}var Fs=function(e,t,n){var r=zs(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r},Is=function(e,t,n){var r=zs(e),i=r[t];return r[t]=r[n],r[n]=i,r},Ls=function(e,t,n){var r=zs(e);return r.splice(t,0,n),r},Rs=function(e,t,n){var r=zs(e);return r[t]=n,r},zs=function(e){if(!e)return[];if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(V({},e,{length:t+1}))},Bs=function(e,t){var n=typeof e==`function`?e:t;return function(e){return Array.isArray(e)||ls(e)?n(zs(e)):e}},Vs=function(e){ts(n,e);function n(t){var n=e.call(this,t)||this;return n.updateArrayField=function(e,t,r){var i=n.props,a=i.name,o=i.formik.setFormikState;o(function(n){var i=Bs(r,e),o=Bs(t,e),s=hs(n.values,a,e(U(n.values,a))),c=r?i(U(n.errors,a)):void 0,l=t?o(U(n.touched,a)):void 0;return cs(c)&&(c=void 0),cs(l)&&(l=void 0),V({},n,{values:s,errors:r?hs(n.errors,a,c):n.errors,touched:t?hs(n.touched,a,l):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(zs(t),[Eo(e)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return Is(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return Fs(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return Ls(n,e,t)},function(t){return Ls(t,e,null)},function(t){return Ls(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return Rs(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t=r.length,r},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(rs(n)),n.pop=n.pop.bind(rs(n)),n}var r=n.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!(0,$o.default)(U(e.formik.values,e.name),U(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?zs(n):[];return t||=r[e],H(r.splice)&&r.splice(e,1),H(r.every)&&r.every(function(e){return e===void 0})?[]:r},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){var n=t.slice();return e||=n&&n.pop&&n.pop(),n},!0,!0),e},r.render=function(){var e={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},n=this.props,r=n.component,i=n.render,a=n.children,o=n.name,s=n.formik,c=ns(s,[`validate`,`validationSchema`]),l=V({},e,{form:c,name:o});return r?(0,t.createElement)(r,l):i?i(l):a?typeof a==`function`?a(l):fs(a)?null:t.Children.only(a):null},n}(t.Component);Vs.defaultProps={validateOnChange:!0};var Hs=Ps(function(e){ts(n,e);function n(){return e.apply(this,arguments)||this}var r=n.prototype;return r.shouldComponentUpdate=function(e){return U(this.props.formik.errors,this.props.name)!==U(e.formik.errors,this.props.name)||U(this.props.formik.touched,this.props.name)!==U(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.render=function(){var e=this.props,n=e.component,r=e.formik,i=e.render,a=e.children,o=e.name,s=ns(e,[`component`,`formik`,`render`,`children`,`name`]),c=U(r.touched,o),l=U(r.errors,o);return c&&l?i?H(i)?i(l):null:a?H(a)?a(l):null:n?(0,t.createElement)(n,s,l):l:null},n}(t.Component)),Us=g.default.createContext({}),Ws=()=>(0,g.useContext)(Us),Gs=`w-full`,Ks=`flex ml-5 mt-2 text-xs text-feedback-danger-200`;function qs({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:r,isDisabled:i,...a}){let{isSubmitting:o,dirty:s,isValid:c}=ss(),{isForcedDirty:l,onNavigationEvent:u}=Ws(),d=e=>{u(()=>a.onClick)},f=(0,g.useMemo)(()=>!!(i||e&&o||t&&!s||t&&typeof l==`boolean`&&!l||r&&!c),[e,t,i,o,l,s,c,r]);return(0,n.jsx)(Ye,{...a,isDisabled:f,onClick:a.type!==`submit`&&(s||l!==void 0&&l)?d:a.onClick})}var Js=(0,g.createContext)({});function Ys(e){let t=(0,g.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Xs=typeof window<`u`,Zs=Xs?g.useLayoutEffect:g.useEffect,Qs=(0,g.createContext)(null);function $s(e,t){e.indexOf(t)===-1&&e.push(t)}function ec(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var tc=(e,t,n)=>n>t?t:n<e?e:n;function nc(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}yt();var rc=()=>{},ic=()=>{};L.env.NODE_ENV!==`production`&&(rc=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(nc(t,n))},ic=(e,t,n)=>{if(!e)throw Error(nc(t,n))});var ac={},oc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function sc(e){return typeof e==`object`&&!!e}var cc=e=>/^0[^.\s]+$/u.test(e);function lc(e){let t;return()=>(t===void 0&&(t=e()),t)}var uc=e=>e,dc=(e,t)=>n=>t(e(n)),fc=(...e)=>e.reduce(dc),pc=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},mc=class{constructor(){this.subscriptions=[]}add(e){return $s(this.subscriptions,e),()=>ec(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},hc=e=>e*1e3,gc=e=>e/1e3;function _c(e,t){return t?1e3/t*e:0}var vc=new Set;function yc(e,t,n){e||vc.has(t)||(console.warn(nc(t,n)),vc.add(t))}var bc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,xc=1e-7,Sc=12;function Cc(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=bc(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>xc&&++s<Sc);return o}function wc(e,t,n,r){if(e===t&&n===r)return uc;let i=t=>Cc(t,0,1,e,n);return e=>e===0||e===1?e:bc(i(e),t,r)}var Tc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ec=e=>t=>1-e(1-t),Dc=wc(.33,1.53,.69,.99),Oc=Ec(Dc),kc=Tc(Oc),Ac=e=>(e*=2)<1?.5*Oc(e):.5*(2-2**(-10*(e-1))),jc=e=>1-Math.sin(Math.acos(e)),Mc=Ec(jc),Nc=Tc(jc),Pc=wc(.42,0,1,1),Fc=wc(0,0,.58,1),Ic=wc(.42,0,.58,1),Lc=e=>Array.isArray(e)&&typeof e[0]!=`number`,Rc=e=>Array.isArray(e)&&typeof e[0]==`number`,zc={linear:uc,easeIn:Pc,easeInOut:Ic,easeOut:Fc,circIn:jc,circInOut:Nc,circOut:Mc,backIn:Oc,backInOut:kc,backOut:Dc,anticipate:Ac},Bc=e=>typeof e==`string`,Vc=e=>{if(Rc(e)){ic(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return wc(t,n,r,i)}else if(Bc(e))return ic(zc[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),zc[e];return e},Hc=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Uc={value:null,addProjectionMetrics:null};function Wc(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&Uc.value&&Uc.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Gc=40;function Kc(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Hc.reduce((e,n)=>(e[n]=Wc(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=ac.useManualTiming?i.timestamp:performance.now();n=!1,ac.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,Gc),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Hc.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Hc.length;t++)o[Hc[t]].cancel(e)},state:i,steps:o}}var{schedule:W,cancel:qc,state:G,steps:Jc}=Kc(typeof requestAnimationFrame<`u`?requestAnimationFrame:uc,!0),Yc;function Xc(){Yc=void 0}var Zc={now:()=>(Yc===void 0&&Zc.set(G.isProcessing||ac.useManualTiming?G.timestamp:performance.now()),Yc),set:e=>{Yc=e,queueMicrotask(Xc)}},Qc={layout:0,mainThread:0,waapi:0},$c=e=>t=>typeof t==`string`&&t.startsWith(e),el=$c(`--`),tl=$c(`var(--`),nl=e=>tl(e)?rl.test(e.split(`/*`)[0].trim()):!1,rl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,il={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},al={...il,transform:e=>tc(0,1,e)},ol={...il,default:1},sl=e=>Math.round(e*1e5)/1e5,cl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ll(e){return e==null}var ul=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dl=(e,t)=>n=>!!(typeof n==`string`&&ul.test(n)&&n.startsWith(e)||t&&!ll(n)&&Object.prototype.hasOwnProperty.call(n,t)),fl=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(cl);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},pl=e=>tc(0,255,e),ml={...il,transform:e=>Math.round(pl(e))},hl={test:dl(`rgb`,`red`),parse:fl(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+ml.transform(e)+`, `+ml.transform(t)+`, `+ml.transform(n)+`, `+sl(al.transform(r))+`)`};function gl(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}}var _l={test:dl(`#`),parse:gl,transform:hl.transform},vl=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),yl=vl(`deg`),bl=vl(`%`),K=vl(`px`),xl=vl(`vh`),Sl=vl(`vw`),Cl={...bl,parse:e=>bl.parse(e)/100,transform:e=>bl.transform(e*100)},wl={test:dl(`hsl`,`hue`),parse:fl(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+bl.transform(sl(t))+`, `+bl.transform(sl(n))+`, `+sl(al.transform(r))+`)`},q={test:e=>hl.test(e)||_l.test(e)||wl.test(e),parse:e=>hl.test(e)?hl.parse(e):wl.test(e)?wl.parse(e):_l.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?hl.transform(e):wl.transform(e),getAnimatableNone:e=>{let t=q.parse(e);return t.alpha=0,q.transform(t)}},Tl=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function El(e){return isNaN(e)&&typeof e==`string`&&(e.match(cl)?.length||0)+(e.match(Tl)?.length||0)>0}var Dl=`number`,Ol=`color`,kl=`var`,Al=`var(`,jl="${}",Ml=/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 Nl(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Ml,e=>(q.test(e)?(r.color.push(a),i.push(Ol),n.push(q.parse(e))):e.startsWith(Al)?(r.var.push(a),i.push(kl),n.push(e)):(r.number.push(a),i.push(Dl),n.push(parseFloat(e))),++a,jl)).split(jl),indexes:r,types:i}}function Pl(e){return Nl(e).values}function Fl(e){let{split:t,types:n}=Nl(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===Dl?i+=sl(e[a]):t===Ol?i+=q.transform(e[a]):i+=e[a]}return i}}var Il=e=>typeof e==`number`?0:q.test(e)?q.getAnimatableNone(e):e;function Ll(e){let t=Pl(e);return Fl(e)(t.map(Il))}var Rl={test:El,parse:Pl,createTransformer:Fl,getAnimatableNone:Ll};function zl(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Bl({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=zl(s,r,e+1/3),a=zl(s,r,e),o=zl(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Vl(e,t){return n=>n>0?t:e}var J=(e,t,n)=>e+(t-e)*n,Hl=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ul=[_l,hl,wl],Wl=e=>Ul.find(t=>t.test(e));function Gl(e){let t=Wl(e);if(rc(!!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===wl&&(n=Bl(n)),n}var Kl=(e,t)=>{let n=Gl(e),r=Gl(t);if(!n||!r)return Vl(e,t);let i={...n};return e=>(i.red=Hl(n.red,r.red,e),i.green=Hl(n.green,r.green,e),i.blue=Hl(n.blue,r.blue,e),i.alpha=J(n.alpha,r.alpha,e),hl.transform(i))},ql=new Set([`none`,`hidden`]);function Jl(e,t){return ql.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yl(e,t){return n=>J(e,t,n)}function Xl(e){return typeof e==`number`?Yl:typeof e==`string`?nl(e)?Vl:q.test(e)?Kl:eu:Array.isArray(e)?Zl:typeof e==`object`?q.test(e)?Kl:Ql:Vl}function Zl(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Xl(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Ql(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xl(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function $l(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var eu=(e,t)=>{let n=Rl.createTransformer(t),r=Nl(e),i=Nl(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?ql.has(e)&&!i.values.length||ql.has(t)&&!r.values.length?Jl(e,t):fc(Zl($l(r,i),i.values),n):(rc(!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`),Vl(e,t))};function tu(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?J(e,t,n):Xl(e)(e,t)}var nu=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>W.update(t,e),stop:()=>qc(t),now:()=>G.isProcessing?G.timestamp:Zc.now()}},ru=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},iu=2e4;function au(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function ou(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(au(r),iu);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:gc(i)}}var su=5;function cu(e,t,n){let r=Math.max(t-su,0);return _c(n-e(r),t-r)}var Y={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},lu=.001;function uu({duration:e=Y.duration,bounce:t=Y.bounce,velocity:n=Y.velocity,mass:r=Y.mass}){let i,a;rc(e<=hc(Y.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=tc(Y.minDamping,Y.maxDamping,o),e=tc(Y.minDuration,Y.maxDuration,gc(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=pu(t,o),c=Math.exp(-i);return lu-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=pu(t**2,o);return(-i(t)+lu>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-lu+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=fu(i,a,s);if(e=hc(e),isNaN(c))return{stiffness:Y.stiffness,damping:Y.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var du=12;function fu(e,t,n){let r=n;for(let n=1;n<du;n++)r-=e(r)/t(r);return r}function pu(e,t){return e*Math.sqrt(1-t*t)}var mu=[`duration`,`bounce`],hu=[`stiffness`,`damping`,`mass`];function gu(e,t){return t.some(t=>e[t]!==void 0)}function _u(e){let t={velocity:Y.velocity,stiffness:Y.stiffness,damping:Y.damping,mass:Y.mass,isResolvedFromDuration:!1,...e};if(!gu(e,hu)&&gu(e,mu))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*tc(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Y.mass,stiffness:i,damping:a}}else{let n=uu(e);t={...t,...n,mass:Y.mass},t.isResolvedFromDuration=!0}return t}function vu(e=Y.visualDuration,t=Y.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=_u({...n,velocity:-gc(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=gc(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Y.restSpeed.granular:Y.restSpeed.default,i||=v?Y.restDelta.granular:Y.restDelta.default;let y;if(h<1){let e=pu(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?hc(m):cu(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(au(b),iu),t=ru(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}vu.applyToOptions=e=>{let t=ou(e,100,vu);return e.ease=t.ease,e.duration=hc(t.duration),e.type=`keyframes`,e};function yu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=vu({keyframes:[f.value,m(f.value)],velocity:cu(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function bu(e,t,n){let r=[],i=n||ac.mix||tu,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=fc(Array.isArray(t)?t[n]||uc:t,a)),r.push(a)}return r}function xu(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(ic(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=bu(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=pc(e[r],e[r+1],n);return s[r](i)};return n?t=>l(tc(e[0],e[a-1],t)):l}function Su(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=pc(0,t,r);e.push(J(n,1,i))}}function Cu(e){let t=[0];return Su(t,e.length-1),t}function wu(e,t){return e.map(e=>e*t)}function Tu(e,t){return e.map(()=>t||Ic).splice(0,e.length-1)}function Eu({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Lc(r)?r.map(Vc):Vc(r),a={done:!1,value:t[0]},o=xu(wu(n&&n.length===t.length?n:Cu(t),e),t,{ease:Array.isArray(i)?i:Tu(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Du=e=>e!==null;function Ou(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Du),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var ku={decay:yu,inertia:yu,tween:Eu,keyframes:Eu,spring:vu};function Au(e){typeof e.type==`string`&&(e.type=ku[e.type])}var ju=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}};yt();var Mu=e=>e/100,Nu=class extends ju{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Zc.now()&&this.tick(Zc.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Qc.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Au(e);let{type:t=Eu,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Eu;L.env.NODE_ENV!==`production`&&s!==Eu&&ic(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==Eu&&typeof o[0]!=`number`&&(this.mixKeyframes=fc(Mu,tu(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=au(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=tc(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==yu&&(b.value=Ou(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return gc(this.calculatedDuration)}get time(){return gc(this.currentTime)}set time(e){e=hc(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Zc.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=gc(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=nu,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(Zc.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,Qc.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Pu(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Fu=e=>e*180/Math.PI,Iu=e=>Ru(Fu(Math.atan2(e[1],e[0]))),Lu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Iu,rotateZ:Iu,skewX:e=>Fu(Math.atan(e[1])),skewY:e=>Fu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ru=e=>(e%=360,e<0&&(e+=360),e),zu=Iu,Bu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Vu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Hu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bu,scaleY:Vu,scale:e=>(Bu(e)+Vu(e))/2,rotateX:e=>Ru(Fu(Math.atan2(e[6],e[5]))),rotateY:e=>Ru(Fu(Math.atan2(-e[2],e[0]))),rotateZ:zu,rotate:zu,skewX:e=>Fu(Math.atan(e[4])),skewY:e=>Fu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Uu(e){return+!!e.includes(`scale`)}function Wu(e,t){if(!e||e===`none`)return Uu(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Hu,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Lu,i=t}if(!i)return Uu(t);let a=r[t],o=i[1].split(`,`).map(Ku);return typeof a==`function`?a(o):o[a]}var Gu=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Wu(n,t)};function Ku(e){return parseFloat(e.trim())}var qu=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Ju=new Set(qu),Yu=e=>e===il||e===K,Xu=new Set([`x`,`y`,`z`]),Zu=qu.filter(e=>!Xu.has(e));function Qu(e){let t=[];return Zu.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var $u={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})=>Wu(t,`x`),y:(e,{transform:t})=>Wu(t,`y`)};$u.translateX=$u.x,$u.translateY=$u.y;var ed=new Set,td=!1,nd=!1,rd=!1;function id(){if(nd){let e=Array.from(ed).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Qu(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}nd=!1,td=!1,ed.forEach(e=>e.complete(rd)),ed.clear()}function ad(){ed.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nd=!0)})}function od(){rd=!0,ad(),id(),rd=!1}var sd=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ed.add(this),td||(td=!0,W.read(ad),W.resolveKeyframes(id))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Pu(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ed.delete(this)}cancel(){this.state===`scheduled`&&(ed.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},cd=e=>e.startsWith(`--`);function ld(e,t,n){cd(t)?e.style.setProperty(t,n):e.style[t]=n}var ud=lc(()=>window.ScrollTimeline!==void 0),dd={};function fd(e,t){let n=lc(e);return()=>dd[t]??n()}var pd=fd(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),md=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hd={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:md([0,.65,.55,1]),circOut:md([.55,0,1,.45]),backIn:md([.31,.01,.66,-.59]),backOut:md([.33,1.53,.69,.99])};function gd(e,t){if(e)return typeof e==`function`?pd()?ru(e,t):`ease-out`:Rc(e)?md(e):Array.isArray(e)?e.map(e=>gd(e,t)||hd.easeOut):hd[e]}function _d(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=gd(s,i);Array.isArray(d)&&(u.easing=d),Uc.value&&Qc.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Uc.value&&p.finished.finally(()=>{Qc.waapi--}),p}function vd(e){return typeof e==`function`&&`applyToOptions`in e}function yd({type:e,...t}){return vd(e)&&pd()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var bd=class extends ju{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,ic(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=yd(e);this.animation=_d(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Ou(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):ld(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return gc(Number(e))}get time(){return gc(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=hc(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&ud()?(this.animation.timeline=e,uc):t(this)}},xd={anticipate:Ac,backInOut:kc,circInOut:Nc};function Sd(e){return e in xd}function Cd(e){typeof e.ease==`string`&&Sd(e.ease)&&(e.ease=xd[e.ease])}var wd=10,Td=class extends bd{constructor(e){Cd(e),Au(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Nu({...a,autoplay:!1}),s=hc(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-wd).value,o.sample(s).value,wd),o.stop()}},Ed=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Rl.test(e)||e===`0`)&&!e.startsWith(`url(`));function Dd(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Od(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ed(i,t),s=Ed(a,t);return rc(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:Dd(e)||(n===`spring`||vd(n))&&r}function kd(e){e.duration=0,e.type}var Ad=new Set([`opacity`,`clipPath`,`filter`,`transform`]),jd=lc(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Md(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return jd()&&n&&Ad.has(n)&&(n!==`transform`||!c)&&!s&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Nd=40,Pd=class extends ju{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Zc.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||sd;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Zc.now(),Od(e,i,a,o)||((ac.instantAnimations||!s)&&l?.(Ou(e,n,t)),e[0]=e[e.length-1],kd(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Nd?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!c&&Md(u)?new Td({...u,element:u.motionValue.owner.current}):new Nu(u);d.finished.then(()=>this.notifyFinished()).catch(uc),this.pendingTimeline&&=(this.stopTimeline=d.attachTimeline(this.pendingTimeline),void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),od()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},Fd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Id(e){let t=Fd.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var Ld=4;function Rd(e,t,n=1){ic(n<=Ld,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=Id(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return oc(e)?parseFloat(e):e}return nl(i)?Rd(i,t,n+1):i}function zd(e,t){return e?.[t]??e?.default??e}var Bd=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...qu]),Vd={test:e=>e===`auto`,parse:e=>e},Hd=e=>t=>t.test(e),Ud=[il,K,bl,yl,Sl,xl,Vd],Wd=e=>Ud.find(Hd(e));function Gd(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||cc(e)}var Kd=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function qd(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(cl)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Kd.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Jd=/\b([a-z-]*)\(.*?\)/gu,Yd={...Rl,getAnimatableNone:e=>{let t=e.match(Jd);return t?t.map(qd).join(` `):e}},Xd={...il,transform:Math.round},Zd={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,backgroundPositionX:K,backgroundPositionY:K,rotate:yl,rotateX:yl,rotateY:yl,rotateZ:yl,scale:ol,scaleX:ol,scaleY:ol,scaleZ:ol,skew:yl,skewX:yl,skewY:yl,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:al,originX:Cl,originY:Cl,originZ:K,zIndex:Xd,fillOpacity:al,strokeOpacity:al,numOctaves:Xd},Qd={...Zd,color:q,backgroundColor:q,outlineColor:q,fill:q,stroke:q,borderColor:q,borderTopColor:q,borderRightColor:q,borderBottomColor:q,borderLeftColor:q,filter:Yd,WebkitFilter:Yd},$d=e=>Qd[e];function ef(e,t){let n=$d(e);return n!==Yd&&(n=Rl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var tf=new Set([`auto`,`none`,`0`]);function nf(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!tf.has(t)&&Nl(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=ef(n,i)}var rf=class extends sd{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),nl(r))){let i=Rd(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Bd.has(n)||e.length!==2)return;let[r,i]=e,a=Wd(r),o=Wd(i);if(a!==o)if(Yu(a)&&Yu(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else $u[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Gd(e[t]))&&n.push(t);n.length&&nf(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$u[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=$u[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function af(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}var of=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function sf(e){return sc(e)&&`offsetHeight`in e}yt();var cf=30,lf=e=>!isNaN(parseFloat(e)),uf={current:void 0},df=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Zc.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Zc.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=lf(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return L.env.NODE_ENV!==`production`&&yc(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new mc);let n=this.events[e].add(t);return e===`change`?()=>{n(),W.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return uf.current&&uf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Zc.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>cf)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,cf);return _c(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ff(e,t){return new df(e,t)}var{schedule:pf,cancel:mf}=Kc(queueMicrotask,!1),hf={x:!1,y:!1};function gf(){return hf.x||hf.y}function _f(e){return e===`x`||e===`y`?hf[e]?null:(hf[e]=!0,()=>{hf[e]=!1}):hf.x||hf.y?null:(hf.x=hf.y=!0,()=>{hf.x=hf.y=!1})}function vf(e,t){let n=af(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function yf(e){return!(e.pointerType===`touch`||gf())}function bf(e,t,n={}){let[r,i,a]=vf(e,n),o=e=>{if(!yf(e))return;let{target:n}=e,r=t(n,e);if(typeof r!=`function`||!n)return;let a=e=>{yf(e)&&(r(e),n.removeEventListener(`pointerleave`,a))};n.addEventListener(`pointerleave`,a,i)};return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}var xf=(e,t)=>t?e===t?!0:xf(e,t.parentElement):!1,Sf=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Cf=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function wf(e){return Cf.has(e.tagName)||e.tabIndex!==-1}var Tf=new WeakSet;function Ef(e){return t=>{t.key===`Enter`&&e(t)}}function Df(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Of=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ef(()=>{if(Tf.has(n))return;Df(n,`down`);let e=Ef(()=>{Df(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Df(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function kf(e){return Sf(e)&&!gf()}function Af(e,t,n={}){let[r,i,a]=vf(e,n),o=e=>{let r=e.currentTarget;if(!kf(e))return;Tf.add(r);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Tf.has(r)&&Tf.delete(r),kf(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||xf(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),sf(e)&&(e.addEventListener(`focus`,e=>Of(e,i)),!wf(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function jf(e){return sc(e)&&`ownerSVGElement`in e}function Mf(e){return jf(e)&&e.tagName===`svg`}var X=e=>!!(e&&e.getVelocity),Nf=[...Ud,q,Rl],Pf=e=>Nf.find(Hd(e)),Ff=(0,g.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`}),If=class extends g.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=sf(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}};function Lf({children:e,isPresent:t,anchorX:r,root:i}){let a=(0,g.useId)(),o=(0,g.useRef)(null),s=(0,g.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=(0,g.useContext)(Ff);return(0,g.useInsertionEffect)(()=>{let{width:e,height:n,top:l,left:u,right:d}=s.current;if(t||!o.current||!e||!n)return;let f=r===`left`?`left: ${u}`:`right: ${d}`;o.current.dataset.motionPopId=a;let p=document.createElement(`style`);c&&(p.nonce=c);let m=i??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`
|
|
76
|
+
[data-motion-pop-id="${a}"] {
|
|
77
77
|
position: absolute !important;
|
|
78
|
-
width: ${
|
|
79
|
-
height: ${
|
|
80
|
-
${
|
|
81
|
-
top: ${
|
|
78
|
+
width: ${e}px !important;
|
|
79
|
+
height: ${n}px !important;
|
|
80
|
+
${f}px !important;
|
|
81
|
+
top: ${l}px !important;
|
|
82
82
|
}
|
|
83
|
-
`),()=>{m.contains(y)&&m.removeChild(y)}},[t]),v.jsx(Zv,{isPresent:t,childRef:i,sizeRef:s,children:f.cloneElement(e,{ref:i})})}const Kv=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:c})=>{const l=Eo(Gv),u=E.useId();let d=!0,h=E.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:p=>{l.set(p,!0);for(const y of l.values())if(!y)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,r]);return i&&d&&(h={...h}),E.useMemo(()=>{l.forEach((p,y)=>l.set(y,!1))},[n]),f.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=v.jsx(Hv,{isPresent:n,anchorX:a,root:c,children:e})),v.jsx(or.Provider,{value:h,children:e})};function Gv(){return new Map}function hl(e=!0){const t=E.useContext(or);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=E.useId();E.useEffect(()=>{if(e)return o(i)},[e]);const s=E.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const fr=e=>e.key||"";function pl(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const Yv=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:c})=>{const[l,u]=hl(s),d=E.useMemo(()=>pl(e),[e]),h=s&&!l?[]:d.map(fr),p=E.useRef(!0),y=E.useRef(d),m=Eo(()=>new Map),[g,b]=E.useState(d),[x,T]=E.useState(d);tc(()=>{p.current=!1,y.current=d;for(let M=0;M<x.length;M++){const A=fr(x[M]);h.includes(A)?m.delete(A):m.get(A)!==!0&&m.set(A,!1)}},[x,h.length,h.join("-")]);const P=[];if(d!==g){let M=[...d];for(let A=0;A<x.length;A++){const C=x[A],L=fr(C);h.includes(L)||(M.splice(A,0,C),P.push(C))}return i==="wait"&&P.length&&(M=P),T(pl(M)),b(d),null}Ft.env.NODE_ENV!=="production"&&i==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:w}=E.useContext(To);return v.jsx(v.Fragment,{children:x.map(M=>{const A=fr(M),C=s&&!l?!1:d===x||h.includes(A),L=()=>{if(m.has(A))m.set(A,!0);else return;let $=!0;m.forEach(J=>{J||($=!1)}),$&&(w?.(),T(y.current),s&&u?.(),r&&r())};return v.jsx(Kv,{isPresent:C,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:C?void 0:L,anchorX:a,children:M},A)})})},ml=E.createContext({strict:!1}),gl={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"]},rn={};for(const e in gl)rn[e]={isEnabled:t=>gl[e].some(n=>!!t[n])};function Xv(e){for(const t in e)rn[t]={...rn[t],...e[t]}}const qv=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 hr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qv.has(e)}let yl=e=>!hr(e);function Qv(e){typeof e=="function"&&(yl=t=>t.startsWith("on")?!hr(t):e(t))}try{Qv(require("@emotion/is-prop-valid").default)}catch{}function Jv(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(yl(o)||n===!0&&hr(o)||!t&&!hr(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const pr=E.createContext({});function mr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ln(e){return typeof e=="string"||Array.isArray(e)}const fi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hi=["initial",...fi];function gr(e){return mr(e.animate)||hi.some(t=>Ln(e[t]))}function vl(e){return!!(gr(e)||e.variants)}function e1(e,t){if(gr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ln(n)?n:void 0,animate:Ln(r)?r:void 0}}return e.inherit!==!1?t:{}}function t1(e){const{initial:t,animate:n}=e1(e,E.useContext(pr));return E.useMemo(()=>({initial:t,animate:n}),[bl(t),bl(n)])}function bl(e){return Array.isArray(e)?e.join(" "):e}const Rn={};function n1(e){for(const t in e)Rn[t]=e[t],ko(t)&&(Rn[t].isCSSVariable=!0)}function wl(e,{layout:t,layoutId:n}){return tn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Rn[e]||e==="opacity")}const r1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o1=en.length;function i1(e,t,n){let r="",o=!0;for(let i=0;i<o1;i++){const s=en[i],a=e[s];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(s.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=rl(a,ai[s]);if(!c){o=!1;const u=r1[s]||s;r+=`${u}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function pi(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const c in t){const l=t[c];if(tn.has(c)){s=!0;continue}else if(ko(c)){o[c]=l;continue}else{const u=rl(l,ai[c]);c.startsWith("origin")?(a=!0,i[c]=u):r[c]=u}}if(t.transform||(s||n?r.transform=i1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=i;r.transformOrigin=`${c} ${l} ${u}`}}const mi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tl(e,t,n){for(const r in t)!Te(t[r])&&!wl(r,n)&&(e[r]=t[r])}function s1({transformTemplate:e},t){return E.useMemo(()=>{const n=mi();return pi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function a1(e,t){const n=e.style||{},r={};return Tl(r,n,e),Object.assign(r,s1(e,t)),r}function c1(e,t){const n={},r=a1(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 l1={offset:"stroke-dashoffset",array:"stroke-dasharray"},u1={offset:"strokeDashoffset",array:"strokeDasharray"};function d1(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?l1:u1;e[i.offset]=R.transform(-r);const s=R.transform(t),a=R.transform(n);e[i.array]=`${s} ${a}`}function El(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},c,l,u){if(pi(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&d1(d,o,i,s,!1)}const xl=()=>({...mi(),attrs:{}}),Sl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function f1(e,t,n,r){const o=E.useMemo(()=>{const i=xl();return El(i,t,Sl(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Tl(i,e.style,e),o.style={...i,...o.style}}return o}const h1=["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:!!(h1.indexOf(e)>-1||/[A-Z]/u.test(e))}function p1(e,t,n,{latestValues:r},o,i=!1){const a=(gi(e)?f1:c1)(t,r,o,e),c=Jv(t,typeof e=="string",i),l=e!==E.Fragment?{...c,...a,ref:n}:{},{children:u}=t,d=E.useMemo(()=>Te(u)?u.get():u,[u]);return E.createElement(e,{...l,children:d})}function Al(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yi(e,t,n,r){if(typeof t=="function"){const[o,i]=Al(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Al(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function yr(e){return Te(e)?e.get():e}function m1({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:g1(n,r,o,e),renderState:t()}}function g1(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=yr(i[h]);let{initial:s,animate:a}=e;const c=gr(e),l=vl(e);t&&l&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!mr(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const y=yi(e,h[p]);if(y){const{transitionEnd:m,transition:g,...b}=y;for(const x in b){let T=b[x];if(Array.isArray(T)){const P=u?T.length-1:0;T=T[P]}T!==null&&(o[x]=T)}for(const x in m)o[x]=m[x]}}}return o}const Cl=e=>(t,n)=>{const r=E.useContext(pr),o=E.useContext(or),i=()=>m1(e,t,r,o);return n?i():Eo(i)};function vi(e,t,n){const{style:r}=e,o={};for(const i in r)(Te(r[i])||t.style&&Te(t.style[i])||wl(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const y1=Cl({scrapeMotionValuesFromProps:vi,createRenderState:mi});function Pl(e,t,n){const r=vi(e,t,n);for(const o in e)if(Te(e[o])||Te(t[o])){const i=en.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const v1=Cl({scrapeMotionValuesFromProps:Pl,createRenderState:xl}),b1=Symbol.for("motionComponentSymbol");function on(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function w1(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):on(n)&&(n.current=r))},[t])}const bi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ml="data-"+bi("framerAppearId"),Dl=E.createContext({});function T1(e,t,n,r,o){const{visualElement:i}=E.useContext(pr),s=E.useContext(ml),a=E.useContext(or),c=E.useContext(di).reducedMotion,l=E.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=l.current,d=E.useContext(Dl);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&E1(l.current,n,o,d);const h=E.useRef(!1);E.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const p=n[Ml],y=E.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return tc(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),y.current&&u.animationState&&u.animationState.animateChanges())}),E.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),y.current=!1),u.enteringChildren=void 0)}),u}function E1(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ol(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&on(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function Ol(e){if(e)return e.options.allowProjection!==!1?e.projection:Ol(e.parent)}function wi(e,{forwardMotionProps:t=!1}={},n,r){n&&Xv(n);const o=gi(e)?v1:y1;function i(a,c){let l;const u={...E.useContext(di),...a,layoutId:x1(a)},{isStatic:d}=u,h=t1(a),p=o(a,d);if(!d&&xo){S1(u,n);const y=A1(u);l=y.MeasureLayout,h.visualElement=T1(e,p,u,r,y.ProjectionNode)}return v.jsxs(pr.Provider,{value:h,children:[l&&h.visualElement?v.jsx(l,{visualElement:h.visualElement,...u}):null,p1(e,a,w1(p,h.visualElement,c),p,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=E.forwardRef(i);return s[b1]=e,s}function x1({layoutId:e}){const t=E.useContext(To).id;return t&&e!==void 0?t+"-"+e:e}function S1(e,t){const n=E.useContext(ml).strict;if(Ft.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?Xt(!1,r,"lazy-strict-mode"):nt(!1,r,"lazy-strict-mode")}}function A1(e){const{drag:t,layout:n}=rn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function C1(e,t){if(typeof Proxy>"u")return wi;const n=new Map,r=(i,s)=>wi(i,s,e,t),o=(i,s)=>(Ft.env.NODE_ENV!=="production"&&Do(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,wi(s,void 0,e,t)),n.get(s))})}function Vl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function P1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function M1(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 Ti(e){return e===void 0||e===1}function Ei({scale:e,scaleX:t,scaleY:n}){return!Ti(e)||!Ti(t)||!Ti(n)}function Rt(e){return Ei(e)||Fl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Fl(e){return kl(e.x)||kl(e.y)}function kl(e){return e&&e!=="0%"}function vr(e,t,n){const r=e-n,o=t*r;return n+o}function Il(e,t,n,r,o){return o!==void 0&&(e=vr(e,o,r)),vr(e,n,r)+t}function xi(e,t=0,n=1,r,o){e.min=Il(e.min,t,n,r,o),e.max=Il(e.max,t,n,r,o)}function Nl(e,{x:t,y:n}){xi(e.x,t.translate,t.scale,t.originPoint),xi(e.y,n.translate,n.scale,n.originPoint)}const Ll=.999999999999,Rl=1.0000000000001;function D1(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&an(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Nl(e,s)),r&&Rt(i.latestValues)&&an(e,i.latestValues))}t.x<Rl&&t.x>Ll&&(t.x=1),t.y<Rl&&t.y>Ll&&(t.y=1)}function sn(e,t){e.min=e.min+t,e.max=e.max+t}function _l(e,t,n,r,o=.5){const i=re(e.min,e.max,o);xi(e,t,n,i,r)}function an(e,t){_l(e.x,t.x,t.scaleX,t.scale,t.originX),_l(e.y,t.y,t.scaleY,t.scale,t.originY)}function jl(e,t){return Vl(M1(e.getBoundingClientRect(),t))}function O1(e,t,n){const r=jl(e,n),{scroll:o}=t;return o&&(sn(r.x,o.offset.x),sn(r.y,o.offset.y)),r}const Bl=()=>({translate:0,scale:1,origin:0,originPoint:0}),cn=()=>({x:Bl(),y:Bl()}),$l=()=>({min:0,max:0}),ue=()=>({x:$l(),y:$l()}),Si={current:null},Ul={current:!1};function V1(){if(Ul.current=!0,!!xo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Si.current=e.matches;e.addEventListener("change",t),t()}else Si.current=!1}const F1=new WeakMap;function k1(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Te(o))e.addValue(r,o);else if(Te(i))e.addValue(r,nn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,nn(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class I1{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ri,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Ae.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Q.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=gr(n),this.isVariantNode=vl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];c[h]!==void 0&&Te(p)&&p.set(c[h])}}mount(t){this.current=t,F1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ul.current||V1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Si.current,Ft.env.NODE_ENV!=="production"&&Do(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ht(this.notifyUpdate),ht(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=tn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in rn){const n=rn[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Wl.length;r++){const o=Wl[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=k1(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=nn(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"&&(nc(r)||oc(r))?r=parseFloat(r):!zv(r)&&mt.test(n)&&(r=nl(t,n)),this.setBaseTarget(t,Te(r)?r.get():r)),Te(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=yi(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Te(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Mo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ci.render(this.render)}}class zl extends I1{constructor(){super(...arguments),this.KeyframeResolver=Fv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Zl(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function N1(e){return window.getComputedStyle(e)}class L1 extends zl{constructor(){super(...arguments),this.type="html",this.renderInstance=Zl}readValueFromInstance(t,n){if(tn.has(n))return this.projection?.isProjecting?Qo(n):qy(t,n);{const r=N1(t),o=(ko(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return jl(t,n)}build(t,n,r){pi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return vi(t,n,r)}}const Hl=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 R1(e,t,n,r){Zl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Hl.has(o)?o:bi(o),t.attrs[o])}class _1 extends zl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tn.has(n)){const r=tl(n);return r&&r.default||0}return n=Hl.has(n)?n:bi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Pl(t,n,r)}build(t,n,r){El(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){R1(t,n,r,o)}mount(t){this.isSVGTag=Sl(t.tagName),super.mount(t)}}const j1=(e,t)=>gi(e)?new _1(t):new L1(t,{allowProjection:e!==E.Fragment});function ln(e,t,n){const r=e.getProps();return yi(r,t,n!==void 0?n:r.custom,e)}const Ai=e=>Array.isArray(e);function B1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nn(n))}function $1(e){return Ai(e)?e[e.length-1]||0:e}function U1(e,t){const n=ln(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=$1(i[s]);B1(e,s,a)}}function W1(e){return!!(Te(e)&&e.add)}function Ci(e,t){const n=e.getValue("willChange");if(W1(n))return n.add(t);if(!n&&rt.WillChange){const r=new rt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Kl(e){return e.props[Ml]}const z1=e=>e!==null;function Z1(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(z1),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const H1={type:"spring",stiffness:500,damping:25,restSpeed:10},K1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G1={type:"keyframes",duration:.8},Y1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},X1=(e,{keyframes:t})=>t.length>2?G1:tn.has(e)?e.startsWith("scale")?K1(t[1]):H1:Y1;function q1({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Pi=(e,t,n,r={},o,i)=>s=>{const a=ii(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Ie(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};q1(a)||Object.assign(u,X1(e,u)),u.duration&&(u.duration=Ie(u.duration)),u.repeatDelay&&(u.repeatDelay=Ie(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(oi(u),u.delay===0&&(d=!0)),(rt.instantAnimations||rt.skipAnimations)&&(d=!0,oi(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=Z1(u.keyframes,a);if(h!==void 0){Q.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Yo(u):new wv(u)};function Q1({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Gl(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const c=[],l=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||l&&Q1(l,u))continue;const p={delay:n,...ii(i||{},u)},y=d.get();if(y!==void 0&&!d.isAnimating&&!Array.isArray(h)&&h===y&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const b=Kl(e);if(b){const x=window.MotionHandoffAnimation(b,u,Q);x!==null&&(p.startTime=x,m=!0)}}Ci(e,u),d.start(Pi(u,d,h,e.shouldReduceMotion&&Xc.has(u)?{type:!1}:p,e,m));const g=d.animation;g&&c.push(g)}return s&&Promise.all(c).then(()=>{Q.update(()=>{s&&U1(e,s)})}),c}function Yl(e,t,n,r=0,o=1){const i=Array.from(e).sort((l,u)=>l.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Mi(e,t,n={}){const r=ln(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Gl(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:d}=o;return J1(e,t,c,l,u,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[c,l]=a==="beforeChildren"?[i,s]:[s,i];return c().then(()=>l())}else return Promise.all([i(),s(n.delay)])}function J1(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(Mi(c,t,{...s,delay:n+(typeof r=="function"?0:r)+Yl(e.variantChildren,c,r,o,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function eb(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Mi(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Mi(e,t,n);else{const o=typeof t=="function"?ln(e,t,n.custom):t;r=Promise.all(Gl(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Xl(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 tb=hi.length;function ql(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ql(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<tb;n++){const r=hi[n],o=e.props[r];(Ln(o)||o===!1)&&(t[r]=o)}return t}const nb=[...fi].reverse(),rb=fi.length;function ob(e){return t=>Promise.all(t.map(({animation:n,options:r})=>eb(e,n,r)))}function ib(e){let t=ob(e),n=Ql(),r=!0;const o=c=>(l,u)=>{const d=ln(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:h,transitionEnd:p,...y}=d;l={...l,...y,...p}}return l};function i(c){t=c(e)}function s(c){const{props:l}=e,u=ql(e.parent)||{},d=[],h=new Set;let p={},y=1/0;for(let g=0;g<rb;g++){const b=nb[g],x=n[b],T=l[b]!==void 0?l[b]:u[b],P=Ln(T),w=b===c?x.isActive:null;w===!1&&(y=g);let M=T===u[b]&&T!==l[b]&&P;if(M&&r&&e.manuallyAnimateOnMount&&(M=!1),x.protectedKeys={...p},!x.isActive&&w===null||!T&&!x.prevProp||mr(T)||typeof T=="boolean")continue;const A=sb(x.prevProp,T);let C=A||b===c&&x.isActive&&!M&&P||g>y&&P,L=!1;const $=Array.isArray(T)?T:[T];let J=$.reduce(o(b),{});w===!1&&(J={});const{prevResolvedValues:Ee={}}=x,de={...Ee,...J},_=U=>{C=!0,h.has(U)&&(L=!0,h.delete(U)),x.needsAnimating[U]=!0;const D=e.getValue(U);D&&(D.liveStyle=!1)};for(const U in de){const D=J[U],he=Ee[U];if(p.hasOwnProperty(U))continue;let we=!1;Ai(D)&&Ai(he)?we=!Xl(D,he):we=D!==he,we?D!=null?_(U):h.add(U):D!==void 0&&h.has(U)?_(U):x.protectedKeys[U]=!0}x.prevProp=T,x.prevResolvedValues=J,x.isActive&&(p={...p,...J}),r&&e.blockInitialAnimation&&(C=!1);const ee=M&&A;C&&(!ee||L)&&d.push(...$.map(U=>{const D={type:b};if(typeof U=="string"&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:he}=e,we=ln(he,U);if(he.enteringChildren&&we){const{delayChildren:Me}=we.transition||{};D.delay=Yl(he.enteringChildren,e,Me)}}return{animation:U,options:D}}))}if(h.size){const g={};if(typeof l.initial!="boolean"){const b=ln(e,Array.isArray(l.initial)?l.initial[0]:l.initial);b&&b.transition&&(g.transition=b.transition)}h.forEach(b=>{const x=e.getBaseTarget(b),T=e.getValue(b);T&&(T.liveStyle=!0),g[b]=x??null}),d.push({animation:g})}let m=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(c,l){if(n[c].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.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:i,getState:()=>n,reset:()=>{n=Ql(),r=!0}}}function sb(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xl(t,e):!1}function _t(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ql(){return{animate:_t(!0),whileInView:_t(),whileHover:_t(),whileTap:_t(),whileDrag:_t(),whileFocus:_t(),exit:_t()}}class gt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ab extends gt{constructor(t){super(t),t.animationState||(t.animationState=ib(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mr(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(){this.node.animationState.reset(),this.unmountControls?.()}}let cb=0;class lb extends gt{constructor(){super(...arguments),this.id=cb++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ub={animation:{Feature:ab},exit:{Feature:lb}};function _n(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function jn(e){return{point:{x:e.pageX,y:e.pageY}}}const db=e=>t=>li(t)&&e(t,jn(t));function Bn(e,t,n,r){return _n(e,t,db(n),r)}const Jl=1e-4,fb=1-Jl,hb=1+Jl,eu=.01,pb=0-eu,mb=0+eu;function Se(e){return e.max-e.min}function gb(e,t,n){return Math.abs(e-t)<=n}function tu(e,t,n,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=Se(n)/Se(t),e.translate=re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fb&&e.scale<=hb||isNaN(e.scale))&&(e.scale=1),(e.translate>=pb&&e.translate<=mb||isNaN(e.translate))&&(e.translate=0)}function $n(e,t,n,r){tu(e.x,t.x,n.x,r?r.originX:void 0),tu(e.y,t.y,n.y,r?r.originY:void 0)}function nu(e,t,n){e.min=n.min+t.min,e.max=e.min+Se(t)}function yb(e,t,n){nu(e.x,t.x,n.x),nu(e.y,t.y,n.y)}function ru(e,t,n){e.min=t.min-n.min,e.max=e.min+Se(t)}function Un(e,t,n){ru(e.x,t.x,n.x),ru(e.y,t.y,n.y)}function Fe(e){return[e("x"),e("y")]}const ou=({current:e})=>e?e.ownerDocument.defaultView:null,iu=(e,t)=>Math.abs(e-t);function vb(e,t){const n=iu(e.x,t.x),r=iu(e.y,t.y);return Math.sqrt(n**2+r**2)}class su{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Oi(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=vb(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!y)return;const{point:m}=h,{timestamp:g}=ve;this.history.push({...m,timestamp:g});const{onStart:b,onMove:x}=this.handlers;p||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Di(p,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:y,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Oi(h.type==="pointercancel"?this.lastMoveEventInfo:Di(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(h,b),m&&m(h,b)},!li(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=jn(t),c=Di(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=ve;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Oi(c,this.history)),this.removeListeners=Mn(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(),ht(this.updatePoint)}}function Di(e,t){return t?{point:t(e.point)}:e}function au(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Oi({point:e},t){return{point:e,delta:au(e,cu(t)),offset:au(e,bb(t)),velocity:wb(t,.1)}}function bb(e){return e[0]}function cu(e){return e[e.length-1]}function wb(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=cu(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ie(t)));)n--;if(!r)return{x:0,y:0};const i=ze(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Tb(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?re(n,e,r.max):Math.min(e,n)),e}function lu(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Eb(e,{top:t,left:n,bottom:r,right:o}){return{x:lu(e.x,n,o),y:lu(e.y,t,r)}}function uu(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 xb(e,t){return{x:uu(e.x,t.x),y:uu(e.y,t.y)}}function Sb(e,t){let n=.5;const r=Se(e),o=Se(t);return o>r?n=Dn(t.min,t.max-r,e.min):r>o&&(n=Dn(e.min,e.max-o,t.min)),tt(0,1,n)}function Ab(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Vi=.35;function Cb(e=Vi){return e===!1?e=0:e===!0&&(e=Vi),{x:du(e,"left","right"),y:du(e,"top","bottom")}}function du(e,t,n){return{min:fu(e,t),max:fu(e,n)}}function fu(e,t){return typeof e=="number"?e:e[t]||0}const Pb=new WeakMap;class Mb{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ue(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(jn(d).point)},s=(d,h)=>{const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Lv(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(b=>{let x=this.getAxisMotionValue(b).get()||0;if(Ze.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const P=T.layout.layoutBox[b];P&&(x=Se(P)*(parseFloat(x)/100))}}this.originPoint[b]=x}),m&&Q.postRender(()=>m(d,h)),Ci(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:m,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:b}=h;if(y&&this.currentDirection===null){this.currentDirection=Db(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,b),this.updateAxis("y",h.point,b),this.visualElement.render(),g&&g(d,h)},c=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>Fe(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new su(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:ou(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Q.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!br(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Tb(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&on(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Eb(r.layoutBox,t):this.constraints=!1,this.elastic=Cb(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fe(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Ab(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!on(t))return!1;const r=t.current;nt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=O1(r,o.root,this.visualElement.getTransformPagePoint());let s=xb(o.layout.layoutBox,i);if(n){const a=n(P1(s));this.hasMutatedConstraints=!!a,a&&(s=Vl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Fe(u=>{if(!br(u,n,this.currentDirection))return;let d=c&&c[u]||{};s&&(d={min:0,max:0});const h=o?200:1e6,p=o?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ci(this.visualElement,t),r.start(Pi(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Fe(n=>{const{drag:r}=this.getProps();if(!br(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-re(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!on(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Fe(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();o[s]=Sb({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(s=>{if(!br(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(re(c,l,o[s]))})}addListeners(){if(!this.visualElement.current)return;Pb.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();on(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Q.read(r);const s=_n(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Fe(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Vi,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function br(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Db(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ob extends gt{constructor(t){super(t),this.removeGroupControls=Ve,this.removeListeners=Ve,this.controls=new Mb(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 hu=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))};class Vb extends gt{constructor(){super(...arguments),this.removePointerDownListener=Ve}onPointerDown(t){this.session=new su(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ou(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:hu(t),onStart:hu(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Q.postRender(()=>o(i,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 wr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Wn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;const n=pu(e,t.target.x),r=pu(e,t.target.y);return`${n}% ${r}%`}},Fb={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=mt.parse(e);if(o.length>5)return r;const i=mt.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=c;const l=re(a,c,.5);return typeof o[2+s]=="number"&&(o[2+s]/=l),typeof o[3+s]=="number"&&(o[3+s]/=l),i(o)}};let Fi=!1;class kb extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;n1(Ib),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Fi&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),wr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Fi=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Q.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ci.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Fi=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function mu(e){const[t,n]=hl(),r=E.useContext(To);return v.jsx(kb,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(Dl),isPresent:t,safeToRemove:n})}const Ib={borderRadius:{...Wn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wn,borderTopRightRadius:Wn,borderBottomLeftRadius:Wn,borderBottomRightRadius:Wn,boxShadow:Fb};function Nb(e,t,n){const r=Te(e)?e:nn(e);return r.start(Pi("",r,t,n)),r.animation}const Lb=(e,t)=>e.depth-t.depth;class Rb{constructor(){this.children=[],this.isDirty=!1}add(t){So(this.children,t),this.isDirty=!0}remove(t){Ao(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lb),this.isDirty=!1,this.children.forEach(t)}}function _b(e,t){const n=Ae.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(ht(r),e(i-t))};return Q.setup(r,!0),()=>ht(r)}const gu=["TopLeft","TopRight","BottomLeft","BottomRight"],jb=gu.length,yu=e=>typeof e=="string"?parseFloat(e):e,vu=e=>typeof e=="number"||R.test(e);function Bb(e,t,n,r,o,i){o?(e.opacity=re(0,n.opacity??1,$b(r)),e.opacityExit=re(t.opacity??1,0,Ub(r))):i&&(e.opacity=re(t.opacity??1,n.opacity??1,r));for(let s=0;s<jb;s++){const a=`border${gu[s]}Radius`;let c=bu(t,a),l=bu(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||vu(c)===vu(l)?(e[a]=Math.max(re(yu(c),yu(l),r),0),(Ze.test(l)||Ze.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=re(t.rotate||0,n.rotate||0,r))}function bu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $b=wu(0,.5,hc),Ub=wu(.5,.95,Ve);function wu(e,t,n){return r=>r<e?0:r>t?1:n(Dn(e,t,r))}function Tu(e,t){e.min=t.min,e.max=t.max}function ke(e,t){Tu(e.x,t.x),Tu(e.y,t.y)}function Eu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function xu(e,t,n,r,o){return e-=t,e=vr(e,1/n,r),o!==void 0&&(e=vr(e,1/o,r)),e}function Wb(e,t=0,n=1,r=.5,o,i=e,s=e){if(Ze.test(t)&&(t=parseFloat(t),t=re(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=re(i.min,i.max,r);e===i&&(a-=t),e.min=xu(e.min,t,n,a,o),e.max=xu(e.max,t,n,a,o)}function Su(e,t,[n,r,o],i,s){Wb(e,t[n],t[r],t[o],t.scale,i,s)}const zb=["x","scaleX","originX"],Zb=["y","scaleY","originY"];function Au(e,t,n,r){Su(e.x,t,zb,n?n.x:void 0,r?r.x:void 0),Su(e.y,t,Zb,n?n.y:void 0,r?r.y:void 0)}function Cu(e){return e.translate===0&&e.scale===1}function Pu(e){return Cu(e.x)&&Cu(e.y)}function Mu(e,t){return e.min===t.min&&e.max===t.max}function Hb(e,t){return Mu(e.x,t.x)&&Mu(e.y,t.y)}function Du(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ou(e,t){return Du(e.x,t.x)&&Du(e.y,t.y)}function Vu(e){return Se(e.x)/Se(e.y)}function Fu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Kb{constructor(){this.members=[]}add(t){So(this.members,t),t.scheduleRender()}remove(t){if(Ao(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Gb(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:h,skewX:p,skewY:y}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const ki=["","X","Y","Z"],Yb=1e3;let Xb=0;function Ii(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ku(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Kl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Q,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ku(r)}function Iu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=Xb++,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(Jb),this.nodes.forEach(rw),this.nodes.forEach(ow),this.nodes.forEach(ew)},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 Rb)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Mo),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=fl(s)&&!Uv(s),this.instance=s;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;Q.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=_b(h,250),wr.hasAnimatedSinceResize&&(wr.hasAnimatedSinceResize=!1,this.nodes.forEach(Ru)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||l.getDefaultTransition()||lw,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=l.getProps(),b=!this.targetLayout||!Ou(this.targetLayout,p),x=!d&&h;if(this.options.layoutRoot||this.resumeFrom||x||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...ii(y,"layout"),onPlay:m,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,x)}else d||Ru(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ht(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(iw),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&&ku(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Lu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nw),this.nodes.forEach(qb),this.nodes.forEach(Qb)):this.nodes.forEach(Lu),this.clearAllSnapshots();const a=Ae.now();ve.delta=tt(0,1e3/60,a-ve.timestamp),ve.timestamp=a,ve.isProcessing=!0,Fo.update.process(ve),Fo.preRender.process(ve),Fo.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ci.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tw),this.sharedNodes.forEach(sw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Se(this.snapshot.measuredBox.x)&&!Se(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Pu(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;s&&this.instance&&(a||Rt(this.latestValues)||u)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return s&&(c=this.removeTransform(c)),uw(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ue();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(dw))){const{scroll:l}=this.root;l&&(sn(a.x,l.offset.x),sn(a.y,l.offset.y))}return a}removeElementScroll(s){const a=ue();if(ke(a,s),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:d}=l;l!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&ke(a,s),sn(a.x,u.offset.x),sn(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const c=ue();ke(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&&an(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Rt(u.latestValues)&&an(c,u.latestValues)}return Rt(this.latestValues)&&an(c,this.latestValues),c}removeTransform(s){const a=ue();ke(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Rt(l.latestValues))continue;Ei(l.latestValues)&&l.updateSnapshot();const u=ue(),d=l.measurePageBox();ke(u,d),Au(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Rt(this.latestValues)&&Au(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){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||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=ve.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Un(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ke(this.target,this.layout.layoutBox),Nl(this.target,this.targetDelta)):ke(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=ue(),this.relativeTargetOrigin=ue(),Un(this.relativeTargetOrigin,this.target,h.target),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ei(this.parent.latestValues)||Fl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ve.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;ke(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;D1(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ue());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Eu(this.prevProjectionDelta.x,this.projectionDelta.x),Eu(this.prevProjectionDelta.y,this.projectionDelta.y)),$n(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Fu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=cn(),this.projectionDelta=cn(),this.projectionDeltaWithTransform=cn()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=cn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ue(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,g=this.getStack(),b=!g||g.members.length<=1,x=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(cw));this.animationProgress=0;let T;this.mixTargetDelta=P=>{const w=P/1e3;_u(d.x,s.x,w),_u(d.y,s.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Un(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),aw(this.relativeTarget,this.relativeTargetOrigin,h,w),T&&Hb(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=ue()),ke(T,this.relativeTarget)),m&&(this.animationValues=u,Bb(u,l,this.latestValues,w,x,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ht(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{wr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=nn(0)),this.currentAnimation=Nb(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},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(Yb),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&&Wu(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||ue();const d=Se(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+d;const h=Se(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+h}ke(a,c),an(a,u),$n(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Kb),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(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.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&&Ii("z",s,l,this.animationValues);for(let u=0;u<ki.length;u++)Ii(`rotate${ki[u]}`,s,l,this.animationValues),Ii(`skew${ki[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=yr(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=yr(a?.pointerEvents)||""),this.hasProjected&&!Rt(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let d=Gb(this.projectionDeltaWithTransform,this.treeScale,u);c&&(d=c(u,d)),s.transform=d;const{x:h,y:p}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,l.animationValues?s.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in Rn){if(u[y]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:b}=Rn[y],x=d==="none"?u[y]:m(u[y],l);if(g){const T=g.length;for(let P=0;P<T;P++)s[g[P]]=x}else b?this.options.visualElement.renderState.vars[y]=x:s[y]=x}this.options.layoutId&&(s.pointerEvents=l===this?yr(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Nu),this.root.sharedNodes.clear()}}}function qb(e){e.updateLayout()}function Qb(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?Fe(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],h=Se(d);d.min=n[u].min,d.max=d.min+h}):Wu(o,t.layoutBox,n)&&Fe(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],h=Se(n[u]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const s=cn();$n(s,n,t.layoutBox);const a=cn();i?$n(a,e.applyTransform(r,!0),t.measuredBox):$n(a,n,t.layoutBox);const c=!Pu(s);let l=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:h}=u;if(d&&h){const p=ue();Un(p,t.layoutBox,d.layoutBox);const y=ue();Un(y,n,h.layoutBox),Ou(p,y)||(l=!0),u.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=p,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Jb(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 ew(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tw(e){e.clearSnapshot()}function Nu(e){e.clearMeasurements()}function Lu(e){e.isLayoutDirty=!1}function nw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ru(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rw(e){e.resolveTargetDelta()}function ow(e){e.calcProjection()}function iw(e){e.resetSkewAndRotation()}function sw(e){e.removeLeadSnapshot()}function _u(e,t,n){e.translate=re(t.translate,0,n),e.scale=re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ju(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function aw(e,t,n,r){ju(e.x,t.x,n.x,r),ju(e.y,t.y,n.y,r)}function cw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const lw={duration:.45,ease:[.4,0,.1,1]},Bu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$u=Bu("applewebkit/")&&!Bu("chrome/")?Math.round:Ve;function Uu(e){e.min=$u(e.min),e.max=$u(e.max)}function uw(e){Uu(e.x),Uu(e.y)}function Wu(e,t,n){return e==="position"||e==="preserve-aspect"&&!gb(Vu(t),Vu(n),.2)}function dw(e){return e!==e.root&&e.scroll?.wasRoot}const fw=Iu({attachResizeListener:(e,t)=>_n(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ni={current:void 0},zu=Iu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ni.current){const e=new fw({});e.mount(window),e.setOptions({layoutScroll:!0}),Ni.current=e}return Ni.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hw={pan:{Feature:Vb},drag:{Feature:Ob,ProjectionNode:zu,MeasureLayout:mu}};function Zu(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Q.postRender(()=>i(t,jn(t)))}class pw extends gt{mount(){const{current:t}=this.node;t&&(this.unmount=Rv(t,(n,r)=>(Zu(this.node,r,"Start"),o=>Zu(this.node,o,"End"))))}unmount(){}}class mw extends gt{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=Mn(_n(this.node.current,"focus",()=>this.onFocus()),_n(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Hu(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Q.postRender(()=>i(t,jn(t)))}class gw extends gt{mount(){const{current:t}=this.node;t&&(this.unmount=$v(t,(n,r)=>(Hu(this.node,r,"Start"),(o,{success:i})=>Hu(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Li=new WeakMap,Ri=new WeakMap,yw=e=>{const t=Li.get(e.target);t&&t(e)},vw=e=>{e.forEach(yw)};function bw({root:e,...t}){const n=e||document;Ri.has(n)||Ri.set(n,{});const r=Ri.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(vw,{root:e,...t})),r[o]}function ww(e,t,n){const r=bw(t);return Li.set(e,n),r.observe(e),()=>{Li.delete(e),r.unobserve(e)}}const Tw={some:0,all:1};class Ew extends gt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Tw[o]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=l?u:d;h&&h(c)};return ww(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(xw(t,n))&&this.startObserver()}unmount(){}}function xw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sw={...ub,...{inView:{Feature:Ew},tap:{Feature:gw},focus:{Feature:mw},hover:{Feature:pw}},...hw,...{layout:{ProjectionNode:zu,MeasureLayout:mu}}},_i=C1(Sw,j1),Aw="flex flex-col relative cursor-text min-w-0",Cw=`
|
|
83
|
+
`),()=>{m.contains(p)&&m.removeChild(p)}},[t]),(0,n.jsx)(If,{isPresent:t,childRef:o,sizeRef:s,children:g.cloneElement(e,{ref:o})})}var Rf=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,root:l})=>{let u=Ys(zf),d=(0,g.useId)(),f=!0,p=(0,g.useMemo)(()=>(f=!1,{id:d,initial:t,isPresent:r,custom:a,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;i&&i()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[r,u,i]);return o&&f&&(p={...p}),(0,g.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[r]),g.useEffect(()=>{!r&&!u.size&&i&&i()},[r]),s===`popLayout`&&(e=(0,n.jsx)(Lf,{isPresent:r,anchorX:c,root:l,children:e})),(0,n.jsx)(Qs.Provider,{value:p,children:e})};function zf(){return new Map}function Bf(e=!0){let t=(0,g.useContext)(Qs);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,g.useId)();(0,g.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,g.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Vf=e=>e.key||``;function Hf(e){let t=[];return g.Children.forEach(e,e=>{(0,g.isValidElement)(e)&&t.push(e)}),t}yt();var Uf=({children:e,custom:t,initial:r=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:o=`sync`,propagate:s=!1,anchorX:c=`left`,root:l})=>{let[u,d]=Bf(s),f=(0,g.useMemo)(()=>Hf(e),[e]),p=s&&!u?[]:f.map(Vf),m=(0,g.useRef)(!0),h=(0,g.useRef)(f),_=Ys(()=>new Map),[v,y]=(0,g.useState)(f),[b,x]=(0,g.useState)(f);Zs(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=Vf(b[e]);p.includes(t)?_.delete(t):_.get(t)!==!0&&_.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=Vf(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return o===`wait`&&S.length&&(e=S),x(Hf(e)),y(f),null}L.env.NODE_ENV!==`production`&&o===`wait`&&b.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);let{forceRender:C}=(0,g.useContext)(Js);return(0,n.jsx)(n.Fragment,{children:b.map(e=>{let g=Vf(e),v=s&&!u?!1:f===b||p.includes(g);return(0,n.jsx)(Rf,{isPresent:v,initial:!m.current||r?void 0:!1,custom:t,presenceAffectsLayout:a,mode:o,root:l,onExitComplete:v?void 0:()=>{if(_.has(g))_.set(g,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),s&&d?.(),i&&i())},anchorX:c,children:e},g)})})},Wf=(0,g.createContext)({strict:!1}),Gf={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`]},Kf={};for(let e in Gf)Kf[e]={isEnabled:t=>Gf[e].some(e=>!!t[e])};function qf(e){for(let t in e)Kf[t]={...Kf[t],...e[t]}}var Jf=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`.split(`.`));function Yf(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Jf.has(e)}function Xf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Zf=u((()=>{})),Qf=f({default:()=>ep}),$f,ep,tp=u((()=>{Zf(),$f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ep=Xf(function(e){return $f.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})})),np=e=>!Yf(e);function rp(e){typeof e==`function`&&(np=t=>t.startsWith(`on`)?!Yf(t):e(t))}try{rp((tp(),h(Qf)).default)}catch{}function ip(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||(np(i)||n===!0&&Yf(i)||!t&&!Yf(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var ap=(0,g.createContext)({});function op(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function sp(e){return typeof e==`string`||Array.isArray(e)}var cp=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],lp=[`initial`,...cp];function up(e){return op(e.animate)||lp.some(t=>sp(e[t]))}function dp(e){return!!(up(e)||e.variants)}function fp(e,t){if(up(e)){let{initial:t,animate:n}=e;return{initial:t===!1||sp(t)?t:void 0,animate:sp(n)?n:void 0}}return e.inherit===!1?{}:t}function pp(e){let{initial:t,animate:n}=fp(e,(0,g.useContext)(ap));return(0,g.useMemo)(()=>({initial:t,animate:n}),[mp(t),mp(n)])}function mp(e){return Array.isArray(e)?e.join(` `):e}var hp={};function gp(e){for(let t in e)hp[t]=e[t],el(t)&&(hp[t].isCSSVariable=!0)}function _p(e,{layout:t,layoutId:n}){return Ju.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!hp[e]||e===`opacity`)}var vp={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},yp=qu.length;function bp(e,t,n){let r=``,i=!0;for(let a=0;a<yp;a++){let o=qu[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===+!!o.startsWith(`scale`):parseFloat(s)===0,!c||n){let e=of(s,Zd[o]);if(!c){i=!1;let t=vp[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function xp(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Ju.has(e)){o=!0;continue}else if(el(e)){i[e]=n;continue}else{let t=of(n,Zd[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=bp(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Sp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Cp(e,t,n){for(let r in t)!X(t[r])&&!_p(r,n)&&(e[r]=t[r])}function wp({transformTemplate:e},t){return(0,g.useMemo)(()=>{let n=Sp();return xp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Tp(e,t){let n=e.style||{},r={};return Cp(r,n,e),Object.assign(r,wp(e,t)),r}function Ep(e,t){let n={},r=Tp(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}var Dp={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Op={offset:`strokeDashoffset`,array:`strokeDasharray`};function kp(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Dp:Op;e[a.offset]=K.transform(-r);let o=K.transform(t),s=K.transform(n);e[a.array]=`${o} ${s}`}function Ap(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(xp(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&kp(d,i,a,o,!1)}var jp=()=>({...Sp(),attrs:{}}),Mp=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Np(e,t,n,r){let i=(0,g.useMemo)(()=>{let n=jp();return Ap(n,t,Mp(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Cp(t,e.style,e),i.style={...t,...i.style}}return i}var Pp=[`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 Fp(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Pp.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ip(e,t,n,{latestValues:r},i,a=!1){let o=(Fp(e)?Np:Ep)(t,r,i,e),s=ip(t,typeof e==`string`,a),c=e===g.Fragment?{}:{...s,...o,ref:n},{children:l}=t,u=(0,g.useMemo)(()=>X(l)?l.get():l,[l]);return(0,g.createElement)(e,{...c,children:u})}function Lp(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Rp(e,t,n,r){if(typeof t==`function`){let[i,a]=Lp(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Lp(r);t=t(n===void 0?e.custom:n,i,a)}return t}function zp(e){return X(e)?e.get():e}function Bp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Vp(n,r,i,e),renderState:t()}}function Vp(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=zp(a[e]);let{initial:o,animate:s}=e,c=up(e),l=dp(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!op(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Rp(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Hp=e=>(t,n)=>{let r=(0,g.useContext)(ap),i=(0,g.useContext)(Qs),a=()=>Bp(e,t,r,i);return n?a():Ys(a)};function Up(e,t,n){let{style:r}=e,i={};for(let a in r)(X(r[a])||t.style&&X(t.style[a])||_p(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}var Wp=Hp({scrapeMotionValuesFromProps:Up,createRenderState:Sp});function Gp(e,t,n){let r=Up(e,t,n);for(let n in e)if(X(e[n])||X(t[n])){let t=qu.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Kp=Hp({scrapeMotionValuesFromProps:Gp,createRenderState:jp}),qp=Symbol.for(`motionComponentSymbol`);function Jp(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Yp(e,t,n){return(0,g.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):Jp(n)&&(n.current=r))},[t])}var Xp=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),Zp=`data-`+Xp(`framerAppearId`),Qp=(0,g.createContext)({});function $p(e,t,n,r,i){let{visualElement:a}=(0,g.useContext)(ap),o=(0,g.useContext)(Wf),s=(0,g.useContext)(Qs),c=(0,g.useContext)(Ff).reducedMotion,l=(0,g.useRef)(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));let u=l.current,d=(0,g.useContext)(Qp);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&em(l.current,n,i,d);let f=(0,g.useRef)(!1);(0,g.useInsertionEffect)(()=>{u&&f.current&&u.update(n,s)});let p=n[Zp],m=(0,g.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return Zs(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),(0,g.useEffect)(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),!1),u.enteringChildren=void 0)}),u}function em(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:tm(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Jp(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function tm(e){if(e)return e.options.allowProjection===!1?tm(e.parent):e.projection}yt();function nm(e,{forwardMotionProps:t=!1}={},r,i){r&&qf(r);let a=Fp(e)?Kp:Wp;function o(o,s){let c,l={...(0,g.useContext)(Ff),...o,layoutId:rm(o)},{isStatic:u}=l,d=pp(o),f=a(o,u);if(!u&&Xs){im(l,r);let t=am(l);c=t.MeasureLayout,d.visualElement=$p(e,f,l,i,t.ProjectionNode)}return(0,n.jsxs)(ap.Provider,{value:d,children:[c&&d.visualElement?(0,n.jsx)(c,{visualElement:d.visualElement,...l}):null,Ip(e,o,Yp(f,d.visualElement,s),f,u,t)]})}o.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let s=(0,g.forwardRef)(o);return s[qp]=e,s}function rm({layoutId:e}){let t=(0,g.useContext)(Js).id;return t&&e!==void 0?t+`-`+e:e}function im(e,t){let n=(0,g.useContext)(Wf).strict;if(L.env.NODE_ENV!==`production`&&t&&n){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?rc(!1,t,`lazy-strict-mode`):ic(!1,t,`lazy-strict-mode`)}}function am(e){let{drag:t,layout:n}=Kf;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}yt();function om(e,t){if(typeof Proxy>`u`)return nm;let n=new Map,r=(n,r)=>nm(n,r,e,t);return new Proxy((e,t)=>(L.env.NODE_ENV!==`production`&&yc(!1,`motion() is deprecated. Use motion.create() instead.`),r(e,t)),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,nm(a,void 0,e,t)),n.get(a))})}function sm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function cm({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lm(e,t){if(!t)return e;let 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 um(e){return e===void 0||e===1}function dm({scale:e,scaleX:t,scaleY:n}){return!um(e)||!um(t)||!um(n)}function fm(e){return dm(e)||pm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pm(e){return mm(e.x)||mm(e.y)}function mm(e){return e&&e!==`0%`}function hm(e,t,n){return n+t*(e-n)}function gm(e,t,n,r,i){return i!==void 0&&(e=hm(e,i,r)),hm(e,n,r)+t}function _m(e,t=0,n=1,r,i){e.min=gm(e.min,t,n,r,i),e.max=gm(e.max,t,n,r,i)}function vm(e,{x:t,y:n}){_m(e.x,t.translate,t.scale,t.originPoint),_m(e.y,n.translate,n.scale,n.originPoint)}var ym=.999999999999,bm=1.0000000000001;function xm(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&wm(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,vm(e,o)),r&&fm(a.latestValues)&&wm(e,a.latestValues))}t.x<bm&&t.x>ym&&(t.x=1),t.y<bm&&t.y>ym&&(t.y=1)}function Sm(e,t){e.min+=t,e.max+=t}function Cm(e,t,n,r,i=.5){_m(e,t,n,J(e.min,e.max,i),r)}function wm(e,t){Cm(e.x,t.x,t.scaleX,t.scale,t.originX),Cm(e.y,t.y,t.scaleY,t.scale,t.originY)}function Tm(e,t){return sm(lm(e.getBoundingClientRect(),t))}function Em(e,t,n){let r=Tm(e,n),{scroll:i}=t;return i&&(Sm(r.x,i.offset.x),Sm(r.y,i.offset.y)),r}var Dm=()=>({translate:0,scale:1,origin:0,originPoint:0}),Om=()=>({x:Dm(),y:Dm()}),km=()=>({min:0,max:0}),Z=()=>({x:km(),y:km()}),Am={current:null},jm={current:!1};function Mm(){if(jm.current=!0,Xs)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Am.current=e.matches;e.addEventListener(`change`,t),t()}else Am.current=!1}var Nm=new WeakMap;function Pm(e,t,n){for(let r in t){let i=t[r],a=n[r];if(X(i))e.addValue(r,i);else if(X(a))e.addValue(r,ff(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ff(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}yt();var Fm=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Im=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sd,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=()=>{let e=Zc.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,W.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=up(t),this.isVariantNode=dp(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&X(t)&&t.set(s[e])}}mount(e){this.current=e,Nm.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),jm.current||Mm(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:Am.current,L.env.NODE_ENV!==`production`&&yc(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),qc(this.notifyUpdate),qc(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=Ju.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&W.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Kf){let t=Kf[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Fm.length;t++){let n=Fm[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Pm(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=ff(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(oc(n)||cc(n))?n=parseFloat(n):!Pf(n)&&Rl.test(t)&&(n=ef(e,t)),this.setBaseTarget(e,X(n)?n.get():n)),X(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Rp(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!X(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new mc),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){pf.render(this.render)}},Lm=class extends Im{constructor(){super(...arguments),this.KeyframeResolver=rf}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;X(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Rm(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function zm(e){return window.getComputedStyle(e)}var Bm=class extends Lm{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Rm}readValueFromInstance(e,t){if(Ju.has(t))return this.projection?.isProjecting?Uu(t):Gu(e,t);{let n=zm(e),r=(el(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Tm(e,t)}build(e,t,n){xp(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Up(e,t,n)}},Vm=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 Hm(e,t,n,r){Rm(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Vm.has(n)?n:Xp(n),t.attrs[n])}var Um=class extends Lm{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ju.has(t)){let e=$d(t);return e&&e.default||0}return t=Vm.has(t)?t:Xp(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Gp(e,t,n)}build(e,t,n){Ap(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Hm(e,t,n,r)}mount(e){this.isSVGTag=Mp(e.tagName),super.mount(e)}},Wm=(e,t)=>Fp(e)?new Um(t):new Bm(t,{allowProjection:e!==g.Fragment});function Gm(e,t,n){let r=e.getProps();return Rp(r,t,n===void 0?r.custom:n,e)}var Km=e=>Array.isArray(e);function qm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ff(n))}function Jm(e){return Km(e)?e[e.length-1]||0:e}function Ym(e,t){let{transitionEnd:n={},transition:r={},...i}=Gm(e,t)||{};i={...i,...n};for(let t in i)qm(e,t,Jm(i[t]))}function Xm(e){return!!(X(e)&&e.add)}function Zm(e,t){let n=e.getValue(`willChange`);if(Xm(n))return n.add(t);if(!n&&ac.WillChange){let n=new ac.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Qm(e){return e.props[Zp]}var $m=e=>e!==null;function eh(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter($m),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}var th={type:`spring`,stiffness:500,damping:25,restSpeed:10},nh=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rh={type:`keyframes`,duration:.8},ih={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ah=(e,{keyframes:t})=>t.length>2?rh:Ju.has(e)?e.startsWith(`scale`)?nh(t[1]):th:ih;function oh({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var sh=(e,t,n,r={},i,a)=>o=>{let s=zd(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=hc(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};oh(s)||Object.assign(u,ah(e,u)),u.duration&&=hc(u.duration),u.repeatDelay&&=hc(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(kd(u),u.delay===0&&(d=!0)),(ac.instantAnimations||ac.skipAnimations)&&(d=!0,kd(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=eh(u.keyframes,s);if(e!==void 0){W.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Nu(u):new Pd(u)};function ch({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function lh(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&ch(l,t))continue;let o={delay:n,...zd(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=Qm(e);if(n){let e=window.MotionHandoffAnimation(n,t,W);e!==null&&(o.startTime=e,d=!0)}}Zm(e,t),r.start(sh(t,r,i,e.shouldReduceMotion&&Bd.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{W.update(()=>{o&&Ym(e,o)})}),c}function uh(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}function dh(e,t,n={}){let r=Gm(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(lh(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return fh(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function fh(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(dh(c,t,{...o,delay:n+(typeof r==`function`?0:r)+uh(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ph(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>dh(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=dh(e,t,n);else{let i=typeof t==`function`?Gm(e,t,n.custom):t;r=Promise.all(lh(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function mh(e,t){if(!Array.isArray(t))return!1;let 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}var hh=lp.length;function gh(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&gh(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<hh;n++){let r=lp[n],i=e.props[r];(sp(i)||i===!1)&&(t[r]=i)}return t}var _h=[...cp].reverse(),vh=cp.length;function yh(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ph(e,t,n)))}function bh(e){let t=yh(e),n=Ch(),r=!0,i=t=>(n,r)=>{let i=Gm(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=gh(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<vh;t++){let f=_h[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=sp(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||op(m)||typeof m==`boolean`)continue;let v=xh(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Km(t)&&Km(n)?!mh(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let ee=_&&v;y&&(!ee||b)&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Gm(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=uh(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=Gm(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Ch(),r=!0}}}function xh(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!mh(t,e):!1}function Sh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ch(){return{animate:Sh(!0),whileInView:Sh(),whileHover:Sh(),whileTap:Sh(),whileDrag:Sh(),whileFocus:Sh(),exit:Sh()}}var wh=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Th=class extends wh{constructor(e){super(e),e.animationState||=bh(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();op(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Eh=0,Dh={animation:{Feature:Th},exit:{Feature:class extends wh{constructor(){super(...arguments),this.id=Eh++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Oh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function kh(e){return{point:{x:e.pageX,y:e.pageY}}}var Ah=e=>t=>Sf(t)&&e(t,kh(t));function jh(e,t,n,r){return Oh(e,t,Ah(n),r)}var Mh=1e-4,Nh=1-Mh,Ph=1+Mh,Fh=.01,Ih=0-Fh,Lh=0+Fh;function Rh(e){return e.max-e.min}function zh(e,t,n){return Math.abs(e-t)<=n}function Bh(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=Rh(n)/Rh(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Nh&&e.scale<=Ph||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ih&&e.translate<=Lh||isNaN(e.translate))&&(e.translate=0)}function Vh(e,t,n,r){Bh(e.x,t.x,n.x,r?r.originX:void 0),Bh(e.y,t.y,n.y,r?r.originY:void 0)}function Hh(e,t,n){e.min=n.min+t.min,e.max=e.min+Rh(t)}function Uh(e,t,n){Hh(e.x,t.x,n.x),Hh(e.y,t.y,n.y)}function Wh(e,t,n){e.min=t.min-n.min,e.max=e.min+Rh(t)}function Gh(e,t,n){Wh(e.x,t.x,n.x),Wh(e.y,t.y,n.y)}function Kh(e){return[e(`x`),e(`y`)]}var qh=({current:e})=>e?e.ownerDocument.defaultView:null,Jh=(e,t)=>Math.abs(e-t);function Yh(e,t){let n=Jh(e.x,t.x),r=Jh(e.y,t.y);return Math.sqrt(n**2+r**2)}var Xh=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=$h(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Yh(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=G;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Zh(t,this.transformPagePoint),W.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=$h(e.type===`pointercancel`?this.lastMoveEventInfo:Zh(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Sf(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=Zh(kh(e),this.transformPagePoint),{point:s}=o,{timestamp:c}=G;this.history=[{...s,timestamp:c}];let{onSessionStart:l}=t;l&&l(e,$h(o,this.history)),this.removeListeners=fc(jh(this.contextWindow,`pointermove`,this.handlePointerMove),jh(this.contextWindow,`pointerup`,this.handlePointerUp),jh(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),qc(this.updatePoint)}};function Zh(e,t){return t?{point:t(e.point)}:e}function Qh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $h({point:e},t){return{point:e,delta:Qh(e,tg(t)),offset:Qh(e,eg(t)),velocity:ng(t,.1)}}function eg(e){return e[0]}function tg(e){return e[e.length-1]}function ng(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=tg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>hc(t)));)n--;if(!r)return{x:0,y:0};let a=gc(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function rg(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 ig(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function ag(e,{top:t,left:n,bottom:r,right:i}){return{x:ig(e.x,n,i),y:ig(e.y,t,r)}}function og(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 sg(e,t){return{x:og(e.x,t.x),y:og(e.y,t.y)}}function cg(e,t){let n=.5,r=Rh(e),i=Rh(t);return i>r?n=pc(t.min,t.max-r,e.min):r>i&&(n=pc(e.min,e.max-i,t.min)),tc(0,1,n)}function lg(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var ug=.35;function dg(e=ug){return e===!1?e=0:e===!0&&(e=ug),{x:fg(e,`left`,`right`),y:fg(e,`top`,`bottom`)}}function fg(e,t,n){return{min:pg(e,t),max:pg(e,n)}}function pg(e,t){return typeof e==`number`?e:e[t]||0}var mg=new WeakMap,hg=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(kh(e).point)},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=_f(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Kh(e=>{let t=this.getAxisMotionValue(e).get()||0;if(bl.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Rh(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&W.postRender(()=>i(e,t)),Zm(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=_g(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Kh(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Xh(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:qh(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&W.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!gg(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=rg(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Jp(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=ag(n.layoutBox,e):this.constraints=!1,this.elastic=dg(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Kh(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=lg(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Jp(e))return!1;let n=e.current;ic(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Em(n,r.root,this.visualElement.getTransformPagePoint()),a=sg(r.layout.layoutBox,i);if(t){let e=t(cm(a));this.hasMutatedConstraints=!!e,e&&(a=sm(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Kh(o=>{if(!gg(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Zm(this.visualElement,e),n.start(sh(e,n,0,t,this.visualElement,!1))}stopAnimation(){Kh(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Kh(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Kh(t=>{let{drag:n}=this.getProps();if(!gg(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-J(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Jp(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Kh(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=cg({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Kh(t=>{if(!gg(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(J(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;mg.set(this.visualElement,this);let e=this.visualElement.current,t=jh(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Jp(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),W.read(n);let a=Oh(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Kh(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=ug,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function gg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _g(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var vg=class extends wh{constructor(e){super(e),this.removeGroupControls=uc,this.removeListeners=uc,this.controls=new hg(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||uc}unmount(){this.removeGroupControls(),this.removeListeners()}},yg=e=>(t,n)=>{e&&W.postRender(()=>e(t,n))},bg=class extends wh{constructor(){super(...arguments),this.removePointerDownListener=uc}onPointerDown(e){this.session=new Xh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qh(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:yg(e),onStart:yg(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&W.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=jh(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},xg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Sg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Cg={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(K.test(e))e=parseFloat(e);else return e;return`${Sg(e,t.target.x)}% ${Sg(e,t.target.y)}%`}},wg={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Rl.parse(e);if(i.length>5)return r;let a=Rl.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=J(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Tg=!1,Eg=class extends g.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;gp(Og),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Tg&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),xg.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,Tg=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||W.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),pf.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Tg=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Dg(e){let[t,r]=Bf(),i=(0,g.useContext)(Js);return(0,n.jsx)(Eg,{...e,layoutGroup:i,switchLayoutGroup:(0,g.useContext)(Qp),isPresent:t,safeToRemove:r})}var Og={borderRadius:{...Cg,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Cg,borderTopRightRadius:Cg,borderBottomLeftRadius:Cg,borderBottomRightRadius:Cg,boxShadow:wg};function kg(e,t,n){let r=X(e)?e:ff(e);return r.start(sh(``,r,t,n)),r.animation}var Ag=(e,t)=>e.depth-t.depth,jg=class{constructor(){this.children=[],this.isDirty=!1}add(e){$s(this.children,e),this.isDirty=!0}remove(e){ec(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ag),this.isDirty=!1,this.children.forEach(e)}};function Mg(e,t){let n=Zc.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(qc(r),e(a-t))};return W.setup(r,!0),()=>qc(r)}var Ng=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],Pg=Ng.length,Fg=e=>typeof e==`string`?parseFloat(e):e,Ig=e=>typeof e==`number`||K.test(e);function Lg(e,t,n,r,i,a){i?(e.opacity=J(0,n.opacity??1,zg(r)),e.opacityExit=J(t.opacity??1,0,Bg(r))):a&&(e.opacity=J(t.opacity??1,n.opacity??1,r));for(let i=0;i<Pg;i++){let a=`border${Ng[i]}Radius`,o=Rg(t,a),s=Rg(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Ig(o)===Ig(s)?(e[a]=Math.max(J(Fg(o),Fg(s),r),0),(bl.test(s)||bl.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,r))}function Rg(e,t){return e[t]===void 0?e.borderRadius:e[t]}var zg=Vg(0,.5,Mc),Bg=Vg(.5,.95,uc);function Vg(e,t,n){return r=>r<e?0:r>t?1:n(pc(e,t,r))}function Hg(e,t){e.min=t.min,e.max=t.max}function Ug(e,t){Hg(e.x,t.x),Hg(e.y,t.y)}function Wg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Gg(e,t,n,r,i){return e-=t,e=hm(e,1/n,r),i!==void 0&&(e=hm(e,1/i,r)),e}function Kg(e,t=0,n=1,r=.5,i,a=e,o=e){if(bl.test(t)&&(t=parseFloat(t),t=J(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=J(a.min,a.max,r);e===a&&(s-=t),e.min=Gg(e.min,t,n,s,i),e.max=Gg(e.max,t,n,s,i)}function qg(e,t,[n,r,i],a,o){Kg(e,t[n],t[r],t[i],t.scale,a,o)}var Jg=[`x`,`scaleX`,`originX`],Yg=[`y`,`scaleY`,`originY`];function Xg(e,t,n,r){qg(e.x,t,Jg,n?n.x:void 0,r?r.x:void 0),qg(e.y,t,Yg,n?n.y:void 0,r?r.y:void 0)}function Zg(e){return e.translate===0&&e.scale===1}function Qg(e){return Zg(e.x)&&Zg(e.y)}function $g(e,t){return e.min===t.min&&e.max===t.max}function e_(e,t){return $g(e.x,t.x)&&$g(e.y,t.y)}function t_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function n_(e,t){return t_(e.x,t.x)&&t_(e.y,t.y)}function r_(e){return Rh(e.x)/Rh(e.y)}function i_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var a_=class{constructor(){this.members=[]}add(e){$s(this.members,e),e.scheduleRender()}remove(e){if(ec(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function o_(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var s_={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},c_=[``,`X`,`Y`,`Z`],l_=1e3,u_=0;function d_(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function f_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Qm(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,W,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&f_(r)}function p_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=u_++,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,Uc.value&&(s_.nodes=s_.calculatedTargetDeltas=s_.calculatedProjections=0),this.nodes.forEach(g_),this.nodes.forEach(C_),this.nodes.forEach(w_),this.nodes.forEach(__),Uc.addProjectionMetrics&&Uc.addProjectionMetrics(s_)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new jg)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new mc),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=jf(t)&&!Mf(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;W.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Mg(i,250),xg.hasAnimatedSinceResize&&(xg.hasAnimatedSinceResize=!1,this.nodes.forEach(S_)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||j_,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!n_(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...zd(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||S_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),qc(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(T_),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&f_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(y_);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(b_);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(x_),this.nodes.forEach(m_),this.nodes.forEach(h_)):this.nodes.forEach(b_),this.clearAllSnapshots();let e=Zc.now();G.delta=tc(0,1e3/60,e-G.timestamp),G.timestamp=e,G.isProcessing=!0,Jc.update.process(G),Jc.preRender.process(G),Jc.render.process(G),G.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(v_),this.sharedNodes.forEach(E_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Rh(this.snapshot.measuredBox.x)&&!Rh(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Qg(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||fm(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),F_(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Z();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(L_))){let{scroll:e}=this.root;e&&(Sm(t.x,e.offset.x),Sm(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Z();if(Ug(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Ug(t,e),Sm(t.x,i.offset.x),Sm(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=Z();Ug(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&wm(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),fm(r.latestValues)&&wm(n,r.latestValues)}return fm(this.latestValues)&&wm(n,this.latestValues),n}removeTransform(e){let t=Z();Ug(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!fm(n.latestValues))continue;dm(n.latestValues)&&n.updateSnapshot();let r=Z();Ug(r,n.measurePageBox()),Xg(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return fm(this.latestValues)&&Xg(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}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!==G.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!(!this.layout||!(r||i))){if(this.resolvedRelativeTargetAt=G.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),Gh(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Ug(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Uh(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ug(this.target,this.layout.layoutBox),vm(this.target,this.targetDelta)):Ug(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),Gh(this.relativeTargetOrigin,this.target,e.target),Ug(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Uc.value&&s_.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||dm(this.parent.latestValues)||pm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===G.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Ug(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;xm(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Z());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wg(this.prevProjectionDelta.x,this.projectionDelta.x),Wg(this.prevProjectionDelta.y,this.projectionDelta.y)),Vh(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!i_(this.projectionDelta.x,this.prevProjectionDelta.x)||!i_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Uc.value&&s_.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Om(),this.projectionDelta=Om(),this.projectionDeltaWithTransform=Om()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Om();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Z(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(A_));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;D_(a.x,e.x,n),D_(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gh(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),k_(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&e_(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=Z(),Ug(d,this.relativeTarget)),s&&(this.animationValues=i,Lg(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(qc(this.pendingAnimation),void 0),this.pendingAnimation=W.update(()=>{xg.hasAnimatedSinceResize=!0,Qc.layout++,this.motionValue||=ff(0),this.currentAnimation=kg(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Qc.layout--},onComplete:()=>{Qc.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(l_),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&I_(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Z();let t=Rh(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Rh(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Ug(t,n),wm(t,i),Vh(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new a_),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&d_(`z`,e,r,this.animationValues);for(let t=0;t<c_.length;t++)d_(`rotate${c_[t]}`,e,r,this.animationValues),d_(`skew${c_[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=zp(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=zp(t?.pointerEvents)||``),this.hasProjected&&!fm(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=o_(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in hp){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=hp[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?zp(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(y_),this.root.sharedNodes.clear()}}}function m_(e){e.updateLayout()}function h_(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?Kh(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Rh(r);r.min=n[e].min,r.max=r.min+i}):I_(i,t.layoutBox,n)&&Kh(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Rh(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Om();Vh(o,n,t.layoutBox);let s=Om();a?Vh(s,e.applyTransform(r,!0),t.measuredBox):Vh(s,n,t.layoutBox);let c=!Qg(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=Z();Gh(o,t.layoutBox,i.layoutBox);let s=Z();Gh(s,n,a.layoutBox),n_(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function g_(e){Uc.value&&s_.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function __(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function v_(e){e.clearSnapshot()}function y_(e){e.clearMeasurements()}function b_(e){e.isLayoutDirty=!1}function x_(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function S_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function C_(e){e.resolveTargetDelta()}function w_(e){e.calcProjection()}function T_(e){e.resetSkewAndRotation()}function E_(e){e.removeLeadSnapshot()}function D_(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 O_(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function k_(e,t,n,r){O_(e.x,t.x,n.x,r),O_(e.y,t.y,n.y,r)}function A_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var j_={duration:.45,ease:[.4,0,.1,1]},M_=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),N_=M_(`applewebkit/`)&&!M_(`chrome/`)?Math.round:uc;function P_(e){e.min=N_(e.min),e.max=N_(e.max)}function F_(e){P_(e.x),P_(e.y)}function I_(e,t,n){return e===`position`||e===`preserve-aspect`&&!zh(r_(t),r_(n),.2)}function L_(e){return e!==e.root&&e.scroll?.wasRoot}var R_=p_({attachResizeListener:(e,t)=>Oh(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),z_={current:void 0},B_=p_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!z_.current){let e=new R_({});e.mount(window),e.setOptions({layoutScroll:!0}),z_.current=e}return z_.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),V_={pan:{Feature:bg},drag:{Feature:vg,ProjectionNode:B_,MeasureLayout:Dg}};function H_(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&W.postRender(()=>i(t,kh(t)))}var U_=class extends wh{mount(){let{current:e}=this.node;e&&(this.unmount=bf(e,(e,t)=>(H_(this.node,t,`Start`),e=>H_(this.node,e,`End`))))}unmount(){}},W_=class extends wh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!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=fc(Oh(this.node.current,`focus`,()=>this.onFocus()),Oh(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function G_(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&W.postRender(()=>i(t,kh(t)))}var K_=class extends wh{mount(){let{current:e}=this.node;e&&(this.unmount=Af(e,(e,t)=>(G_(this.node,t,`Start`),(e,{success:t})=>G_(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}},q_=new WeakMap,J_=new WeakMap,Y_=e=>{let t=q_.get(e.target);t&&t(e)},X_=e=>{e.forEach(Y_)};function Z_({root:e,...t}){let n=e||document;J_.has(n)||J_.set(n,{});let r=J_.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(X_,{root:e,...t})),r[i]}function Q_(e,t,n){let r=Z_(t);return q_.set(e,n),r.observe(e),()=>{q_.delete(e),r.unobserve(e)}}var $_={some:0,all:1},ev=class extends wh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:$_[r]};return Q_(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(tv(e,t))&&this.startObserver()}unmount(){}};function tv({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var nv={inView:{Feature:ev},tap:{Feature:K_},focus:{Feature:W_},hover:{Feature:U_}},rv={layout:{ProjectionNode:B_,MeasureLayout:Dg}},iv=om({...Dh,...nv,...V_,...rv},Wm),av=`flex flex-col relative cursor-text min-w-0`,ov=`
|
|
84
84
|
peer transition-all
|
|
85
85
|
px-4 pt-4 pb-2 border border-solid rounded outline-none
|
|
86
86
|
border-gray-200 bg-white text-base-black text-base
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
data-[has-error=true]:border-feedback-danger-200
|
|
94
94
|
data-[is-loading=true]:animate-pulse
|
|
95
95
|
data-[has-prefix-icon=true]:pl-10
|
|
96
|
-
`,
|
|
96
|
+
`,sv=`
|
|
97
97
|
text-xs text-gray-400 px-4 ml-1 w-[125%]
|
|
98
98
|
absolute top-3 origin-top-left text-ellipsis overflow-hidden
|
|
99
99
|
scale-75 duration-300 text-nowrap
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
|
|
119
119
|
peer-focus:peer-data-[has-prefix-icon=true]:ml-7
|
|
120
120
|
peer-focus:peer-data-[has-prefix-icon=true]:w-[calc(125%-24px)]
|
|
121
|
-
`,
|
|
121
|
+
`,cv=`h-4 w-4 absolute left-4 top-1/2 -translate-y-1/2`,lv=`h-4 w-4 absolute right-4 top-1/2 -translate-y-1/2`;function uv({name:e,label:t,type:r=`text`,isDisabled:i,maxLength:a=255,prefixIcon:o,suffixIcon:s,className:c,fieldClassName:l,onChange:u,onFocus:d,onBlur:f}){let{isLoading:p}=Ws(),{isSubmitting:m}=ss(),[h,g]=js(e),_=e=>{u!==void 0&&u(e),h.onChange(e)},v=e=>{d!==void 0&&d(e)},y=e=>{f!==void 0&&f(e),h.onBlur(e)};return(0,n.jsxs)(`div`,{className:Ke(av,c||``),children:[(0,n.jsx)(Ms,{className:Ke(ov,l||``),type:r,id:e,name:e,placeholder:t,...r===`text`?{maxLength:a}:{max:a},disabled:p||i||m,"data-testid":`input-${e}`,"data-is-loading":p,"data-has-error":!!g.error&&g.touched,"data-has-prefix-icon":!!o,"data-1p-ignore":!0,onChange:_,onFocus:v,onBlur:y}),(0,n.jsx)(iv.label,{htmlFor:e,className:sv,children:t}),o!==void 0&&(0,n.jsx)(o,{className:cv}),s!==void 0&&(0,n.jsx)(s,{className:lv}),(0,n.jsx)(Hs,{"data-testid":`error-${e}`,name:e,component:`span`,className:Ks},`error-${e}`)]})}var dv=`flex flex-col relative w-full cursor-text`,fv=`
|
|
122
122
|
flex transition-all grow resize-none
|
|
123
123
|
px-4 pt-6 pb-1.5 border border-solid rounded outline-none
|
|
124
124
|
border-gray-200 bg-white text-black
|
|
@@ -131,11 +131,11 @@
|
|
|
131
131
|
data-[is-loading=true]:animate-pulse
|
|
132
132
|
data-[has-prefix-icon=true]:pl-10
|
|
133
133
|
data-[has-max-length=true]:pb-10
|
|
134
|
-
`,
|
|
134
|
+
`,pv=`
|
|
135
135
|
p-0 relative peer text-sm placeholder:text-transparent bg-transparent
|
|
136
136
|
max-h-56 min-h-14 w-full border-0 appearance-none
|
|
137
137
|
focus:outline-none resize-none
|
|
138
|
-
`,
|
|
138
|
+
`,mv=`
|
|
139
139
|
text-sm text-gray-400
|
|
140
140
|
absolute top-4 origin-top-left
|
|
141
141
|
scale-75 duration-300
|
|
@@ -150,27 +150,27 @@
|
|
|
150
150
|
peer-focus:scale-75
|
|
151
151
|
peer-focus:-translate-y-2
|
|
152
152
|
peer-data-[has-prefix-icon=true]:mx-10
|
|
153
|
-
`,
|
|
153
|
+
`,hv=`
|
|
154
154
|
h-4 w-4
|
|
155
155
|
absolute left-4 top-1/2 -translate-y-1/2
|
|
156
|
-
`,
|
|
156
|
+
`,gv=`
|
|
157
157
|
text-sm text-gray-400
|
|
158
158
|
absolute bottom-3.5 right-8 origin-bottom-right
|
|
159
|
-
`;function Lw({name:e,label:t,isDisabled:n,maxLength:r,rows:o=1,grow:i=!0,prefixIcon:s,className:a,onChange:c}){const{isLoading:l}=nr(),{isSubmitting:u}=Mt(),d=E.useRef(null),[h,p]=Pn(e);E.useEffect(()=>{!i||!d||d.current&&(d.current.style.height="0px",d.current.style.height=`${d.current.scrollHeight}px`)},[i,d,h.value]);const y=g=>{typeof c<"u"&&c(g),h.onChange(g)},m=()=>{d.current?.focus()};return v.jsxs("div",{className:`${Ow} ${a||""}`,children:[v.jsxs("div",{className:Vw,"data-is-loading":l,"data-has-prefix-icon":!!s,"data-has-max-length":!!r,onClick:m,children:[v.jsx(mo,{innerRef:d,component:"textarea",rows:o,className:Fw,id:e,name:e,placeholder:t,maxLength:r,disabled:l||n||u,onChange:y,"data-1p-ignore":!0}),v.jsx(_i.label,{htmlFor:e,className:kw,children:t}),typeof s<"u"&&v.jsx(s,{className:Iw}),!!r&&v.jsx("div",{className:Nw,children:`${p.value.length} / ${r}`})]}),v.jsx(yo,{name:e,component:"span",className:vo},`error-${e}`)]})}const Rw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),f.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),_w=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),f.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),jw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),f.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),Bw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z",opacity:"0.2"}),f.createElement("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z"}))]]),$w=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),f.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),Uw=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),f.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),Ww=new Map([["bold",f.createElement(f.Fragment,null,f.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",f.createElement(f.Fragment,null,f.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),f.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",f.createElement(f.Fragment,null,f.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",f.createElement(f.Fragment,null,f.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",f.createElement(f.Fragment,null,f.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",f.createElement(f.Fragment,null,f.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),zw=E.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),yt=f.forwardRef((e,t)=>{const{alt:n,color:r,size:o,weight:i,mirrored:s,children:a,weights:c,...l}=e,{color:u="currentColor",size:d,weight:h="regular",mirrored:p=!1,...y}=f.useContext(zw);return f.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:o??d,height:o??d,fill:r??u,viewBox:"0 0 256 256",transform:s||p?"scale(-1, 1)":void 0,...y,...l},!!n&&f.createElement("title",null,n),a,c.get(i??h))});yt.displayName="IconBase";const Gu=f.forwardRef((e,t)=>f.createElement(yt,{ref:t,...e,weights:Rw}));Gu.displayName="CaretLeftIcon";const Yu=f.forwardRef((e,t)=>f.createElement(yt,{ref:t,...e,weights:_w}));Yu.displayName="CaretRightIcon";const Xu=f.forwardRef((e,t)=>f.createElement(yt,{ref:t,...e,weights:jw}));Xu.displayName="CheckIcon";const qu=f.forwardRef((e,t)=>f.createElement(yt,{ref:t,...e,weights:Bw}));qu.displayName="SlidersIcon";const Qu=f.forwardRef((e,t)=>f.createElement(yt,{ref:t,...e,weights:$w}));Qu.displayName="SpinnerIcon";const Tr=f.forwardRef((e,t)=>f.createElement(yt,{ref:t,...e,weights:Uw}));Tr.displayName="XIcon";const Ju=f.forwardRef((e,t)=>f.createElement(yt,{ref:t,...e,weights:Ww}));Ju.displayName="XCircleIcon";const Zw="pr-10 truncate",Hw=`
|
|
159
|
+
`;function _v({name:e,label:t,isDisabled:r,maxLength:i,rows:a=1,grow:o=!0,prefixIcon:s,className:c,onChange:l}){let{isLoading:u}=Ws(),{isSubmitting:d}=ss(),f=(0,g.useRef)(null),[p,m,h]=js(e);return(0,g.useEffect)(()=>{!o||!f||f.current&&(f.current.style.height=`0px`,f.current.style.height=`${f.current.scrollHeight}px`)},[o,f,p.value]),(0,n.jsxs)(`div`,{className:`${dv} ${c||``}`,children:[(0,n.jsxs)(`div`,{className:fv,"data-is-loading":u,"data-has-prefix-icon":!!s,"data-has-max-length":!!i,onClick:()=>{f.current?.focus()},children:[(0,n.jsx)(Ms,{innerRef:f,component:`textarea`,rows:a,className:pv,id:e,name:e,placeholder:t,maxLength:i,disabled:u||r||d,onChange:e=>{l!==void 0&&l(e),p.onChange(e)},"data-1p-ignore":!0}),(0,n.jsx)(iv.label,{htmlFor:e,className:mv,children:t}),s!==void 0&&(0,n.jsx)(s,{className:hv}),!!i&&(0,n.jsx)(`div`,{className:gv,children:`${m.value.length} / ${i}`})]}),(0,n.jsx)(Hs,{name:e,component:`span`,className:Ks},`error-${e}`)]})}var vv=new Map([[`bold`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z`}))],[`duotone`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M160,48V208L80,128Z`,opacity:`0.2`}),g.createElement(`path`,{d:`M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z`}))],[`fill`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z`}))],[`light`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z`}))],[`regular`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z`}))],[`thin`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z`}))]]),yv=new Map([[`bold`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z`}))],[`duotone`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M176,128,96,208V48Z`,opacity:`0.2`}),g.createElement(`path`,{d:`M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z`}))],[`fill`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`light`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z`}))],[`regular`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`thin`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z`}))]]),bv=new Map([[`bold`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`}),g.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`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`}))]]),xv=new Map([[`bold`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M68,102.06V40a12,12,0,0,0-24,0v62.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V169.94a36,36,0,0,0,0-67.88ZM56,148a12,12,0,1,1,12-12A12,12,0,0,1,56,148ZM164,88a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0V54.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V121.94A36.07,36.07,0,0,0,164,88Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,128,100Zm108,68a36.07,36.07,0,0,0-24-33.94V40a12,12,0,0,0-24,0v94.06a36,36,0,0,0,0,67.88V216a12,12,0,0,0,24,0V201.94A36.07,36.07,0,0,0,236,168Zm-36,12a12,12,0,1,1,12-12A12,12,0,0,1,200,180Z`}))],[`duotone`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M80,136a24,24,0,1,1-24-24A24,24,0,0,1,80,136Zm48-72a24,24,0,1,0,24,24A24,24,0,0,0,128,64Zm72,80a24,24,0,1,0,24,24A24,24,0,0,0,200,144Z`,opacity:`0.2`}),g.createElement(`path`,{d:`M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z`}))],[`fill`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M84,136a28,28,0,0,1-20,26.83V216a8,8,0,0,1-16,0V162.83a28,28,0,0,1,0-53.66V40a8,8,0,0,1,16,0v69.17A28,28,0,0,1,84,136Zm52-74.83V40a8,8,0,0,0-16,0V61.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V114.83a28,28,0,0,0,0-53.66Zm72,80V40a8,8,0,0,0-16,0V141.17a28,28,0,0,0,0,53.66V216a8,8,0,0,0,16,0V194.83a28,28,0,0,0,0-53.66Z`}))],[`light`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M62,106.6V40a6,6,0,0,0-12,0v66.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V165.4a30,30,0,0,0,0-58.8ZM56,154a18,18,0,1,1,18-18A18,18,0,0,1,56,154Zm78-95.4V40a6,6,0,0,0-12,0V58.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V117.4a30,30,0,0,0,0-58.8ZM128,106a18,18,0,1,1,18-18A18,18,0,0,1,128,106Zm102,62a30.05,30.05,0,0,0-24-29.4V40a6,6,0,0,0-12,0v98.6a30,30,0,0,0,0,58.8V216a6,6,0,0,0,12,0V197.4A30.05,30.05,0,0,0,230,168Zm-30,18a18,18,0,1,1,18-18A18,18,0,0,1,200,186Z`}))],[`regular`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M64,105V40a8,8,0,0,0-16,0v65a32,32,0,0,0,0,62v49a8,8,0,0,0,16,0V167a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,56,152Zm80-95V40a8,8,0,0,0-16,0V57a32,32,0,0,0,0,62v97a8,8,0,0,0,16,0V119a32,32,0,0,0,0-62Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,128,104Zm104,64a32.06,32.06,0,0,0-24-31V40a8,8,0,0,0-16,0v97a32,32,0,0,0,0,62v17a8,8,0,0,0,16,0V199A32.06,32.06,0,0,0,232,168Zm-32,16a16,16,0,1,1,16-16A16,16,0,0,1,200,184Z`}))],[`thin`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M60,108.29V40a4,4,0,0,0-8,0v68.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V163.71a28,28,0,0,0,0-55.42ZM56,156a20,20,0,1,1,20-20A20,20,0,0,1,56,156Zm76-95.71V40a4,4,0,0,0-8,0V60.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V115.71a28,28,0,0,0,0-55.42ZM128,108a20,20,0,1,1,20-20A20,20,0,0,1,128,108Zm100,60a28,28,0,0,0-24-27.71V40a4,4,0,0,0-8,0V140.29a28,28,0,0,0,0,55.42V216a4,4,0,0,0,8,0V195.71A28,28,0,0,0,228,168Zm-28,20a20,20,0,1,1,20-20A20,20,0,0,1,200,188Z`}))]]),Sv=new Map([[`bold`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),g.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`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`}))]]),Cv=new Map([[`bold`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`}),g.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`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`,g.createElement(g.Fragment,null,g.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`}))]]),wv=new Map([[`bold`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`}))],[`duotone`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),g.createElement(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,g.createElement(g.Fragment,null,g.createElement(`path`,{d:`M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),Tv=(0,g.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),Ev=g.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=g.useContext(Tv);return g.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&g.createElement(`title`,null,n),s,c.get(a??f))});Ev.displayName=`IconBase`;var Dv=g.forwardRef((e,t)=>g.createElement(Ev,{ref:t,...e,weights:vv}));Dv.displayName=`CaretLeftIcon`;var Ov=g.forwardRef((e,t)=>g.createElement(Ev,{ref:t,...e,weights:yv}));Ov.displayName=`CaretRightIcon`;var kv=g.forwardRef((e,t)=>g.createElement(Ev,{ref:t,...e,weights:bv}));kv.displayName=`CheckIcon`;var Av=g.forwardRef((e,t)=>g.createElement(Ev,{ref:t,...e,weights:xv}));Av.displayName=`SlidersIcon`;var jv=g.forwardRef((e,t)=>g.createElement(Ev,{ref:t,...e,weights:Sv}));jv.displayName=`SpinnerIcon`;var Mv=g.forwardRef((e,t)=>g.createElement(Ev,{ref:t,...e,weights:Cv}));Mv.displayName=`XIcon`;var Nv=g.forwardRef((e,t)=>g.createElement(Ev,{ref:t,...e,weights:wv}));Nv.displayName=`XCircleIcon`;var Pv=`pr-10 truncate`,Fv=`
|
|
160
160
|
border-0 p-0 cursor-pointer
|
|
161
161
|
absolute top-1/2 -translate-y-1/2
|
|
162
162
|
right-4 bg-transparent
|
|
163
|
-
`,
|
|
163
|
+
`,Iv=`
|
|
164
164
|
h-4 w-4
|
|
165
|
-
`,
|
|
165
|
+
`,Lv=`
|
|
166
166
|
animate-spin h-4 w-4
|
|
167
167
|
absolute top-4 right-9
|
|
168
|
-
`;function
|
|
168
|
+
`;function Rv({name:e,label:t,isLoading:r,isDisabled:i,maxLength:a=255,prefixIcon:o,suffixIcon:s,className:c,onChange:l,onClear:u,onFocus:d,onBlur:f}){let[,p,m]=js(e);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(uv,{name:e,label:t,isDisabled:i,maxLength:a,prefixIcon:o,suffixIcon:s,className:c,fieldClassName:Pv,onChange:e=>{l!==void 0&&l(e)},onFocus:d,onBlur:f}),r&&(0,n.jsx)(jv,{className:Lv}),!!p.value&&(0,n.jsx)(`button`,{type:`button`,className:Fv,onClick:()=>{m.setValue(``),l!==void 0&&l({target:{value:``}}),u!==void 0&&u()},children:(0,n.jsx)(Mv,{className:Iv})})]})}var zv=`
|
|
169
169
|
group/checkbox
|
|
170
170
|
|
|
171
171
|
data-[is-disabled=true]:pointer-events-none
|
|
172
172
|
data-[is-disabled=true]:cursor-default
|
|
173
|
-
`,
|
|
173
|
+
`,Bv=`
|
|
174
174
|
w-5 h-5 rounded-md bg-white
|
|
175
175
|
peer relative shrink-0
|
|
176
176
|
appearance-none transition-colors
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
disabled:border-neutral-300
|
|
186
186
|
disabled:checked:bg-neutral-300
|
|
187
187
|
data-[has-error=true]:border-feedback-danger-200
|
|
188
|
-
`,
|
|
188
|
+
`,Vv=`
|
|
189
189
|
text-sm text-neutral-400 font-normal
|
|
190
190
|
transition-colors
|
|
191
191
|
group-hover/checkbox:text-base-black
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
group-data-[is-disabled=true]/checkbox:text-neutral-300
|
|
195
195
|
|
|
196
196
|
flex gap-2 cursor-pointer
|
|
197
|
-
`,
|
|
197
|
+
`,Hv=`absolute w-4 h-4 ml-0.5 mt-0.5 hidden peer-checked:block fill-white`;function Uv({name:e,label:t,className:r,fieldClassName:i,isDisabled:a,onChange:o,onFocus:s}){let{isLoading:c}=Ws(),{isSubmitting:l,validateField:u}=ss(),[d,f]=js(e);return(0,n.jsxs)(`div`,{className:Ke(zv,r||``),"data-is-disabled":a,children:[(0,n.jsxs)(`label`,{className:Vv,children:[(0,n.jsx)(Ms,{type:`checkbox`,name:e,className:Ke(Bv,i||``),onChange:t=>{o!==void 0&&o(t),d.onChange(t),setTimeout(()=>{d.onBlur(t),u(e)},0)},onFocus:e=>{s!==void 0&&s(e)},"data-has-error":!!f.error&&f.touched,disabled:c||a||l,"data-testid":`checkbox-${e}`}),t&&(0,n.jsx)(n.Fragment,{children:t}),(0,n.jsx)(kv,{className:Hv,size:20})]}),(0,n.jsx)(Hs,{"data-testid":`error-${e}`,name:e,component:`span`,className:Ks},`error-${e}`)]})}var Wv=`relative`,Gv=`
|
|
198
198
|
absolute left-0 right-0
|
|
199
199
|
list-none px-0 py-1
|
|
200
200
|
rounded-lg overflow-hidden
|
|
@@ -205,10 +205,10 @@
|
|
|
205
205
|
|
|
206
206
|
group-data-[direction="bottomToTop"]/search-and-select:bottom-0
|
|
207
207
|
group-data-[direction="bottomToTop"]/search-and-select:mb-1
|
|
208
|
-
`,
|
|
208
|
+
`,Kv=`
|
|
209
209
|
py-2.5 px-4 cursor-pointer transition-all
|
|
210
210
|
bg-white hover:bg-primary-10 hover:font-medium hover:text-black
|
|
211
|
-
`;function
|
|
211
|
+
`;function qv({isOpen:e,options:t,onSelect:r}){return e?(0,n.jsx)(`div`,{className:Wv,children:(0,n.jsx)(`ul`,{className:Gv,children:t.map((e,t)=>(0,n.jsx)(`li`,{className:Kv,onClick:()=>r(e.value),"data-testid":`search-select-option-${t}`,children:e.label},e.key))})}):null}var Jv=`relative group/search-and-select min-w-0 w-full`;function Yv({name:e,label:t,direction:r=`topToBottom`,options:i=[],selectedLabel:a,isLoading:o,isDisabled:s,clearOnSelect:c=!0,maxLength:l=255,prefixIcon:u,suffixIcon:d,className:f,onChange:p,onClear:m,onFocus:h,onBlur:_,onSelect:v}){let[y,b]=(0,g.useState)(!1),[,,x]=js(e),S=()=>{let e=i.length>0;y!==e&&b(e)};(0,g.useEffect)(()=>{S()},[i,S]),(0,g.useEffect)(()=>{x.setValue(a||``)},[a,x]);let C=e=>{S(),h!==void 0&&h(e)},w=e=>{setTimeout(()=>{b(!1),a===void 0&&c&&x.setValue(``),p!==void 0&&p({target:{value:``}}),_!==void 0&&_(e)},250)},T=e=>{v!==void 0&&v(e),b(!1),c&&x.setValue(``)};return(0,n.jsxs)(`div`,{className:Jv,tabIndex:0,"data-direction":r,children:[(0,n.jsx)(qv,{isOpen:y&&r===`bottomToTop`,options:i,onSelect:T}),(0,n.jsx)(Rv,{name:e,label:t,isLoading:o,isDisabled:s,maxLength:l,prefixIcon:u,suffixIcon:y?void 0:d,className:f,onChange:p,onClear:m,onBlur:w,onFocus:C}),(0,n.jsx)(qv,{isOpen:y&&r===`topToBottom`,options:i,onSelect:T})]})}var Xv=f({Button:()=>qs,Checkbox:()=>Uv,Input:()=>uv,Root:()=>Zv,Search:()=>Rv,SearchAndSelect:()=>Yv,Textarea:()=>_v});function Zv({isLoading:e=!1,enableReinitialize:t=!0,initialValues:r,validationSchema:i,validateOnMount:a=!1,isForcedDirty:o,onSubmit:s,className:c,children:l}){let[u,d]=(0,g.useState)(null);return(0,n.jsx)(Us.Provider,{value:{isLoading:e,isForcedDirty:o,onNavigationEvent:e=>{d(e)}},children:(0,n.jsx)(xs,{enableReinitialize:t,initialValues:r,validationSchema:i,validateOnMount:a,onSubmit:(e,t)=>{s===void 0?t.setSubmitting(!1):s(e).finally(()=>{t.setSubmitting(!1)})},children:e=>(0,n.jsx)(`form`,{onSubmit:e.handleSubmit,className:Ke(Gs,c),children:l})})})}var Qv=g.default.createContext({}),$v=()=>(0,g.useContext)(Qv);function ey({activeFilter:e,children:t}){let[r,i]=(0,g.useState)(!1);return(0,n.jsx)(Qv.Provider,{value:{activeFilter:e,isFiltersDialogOpen:r,setIsFiltersDialogOpen:i},children:t})}var ty=`
|
|
212
212
|
flex flex-col
|
|
213
213
|
items-center justify-center
|
|
214
214
|
rounded-full
|
|
@@ -223,11 +223,11 @@
|
|
|
223
223
|
hover:bg-primary-100
|
|
224
224
|
hover:text-base-white
|
|
225
225
|
hover:border-transparent
|
|
226
|
-
`,
|
|
226
|
+
`,ny=`
|
|
227
227
|
h-4 w-4
|
|
228
228
|
text-inherit
|
|
229
229
|
inline-block
|
|
230
|
-
`,
|
|
230
|
+
`,ry=({label:e})=>{let{setIsFiltersDialogOpen:t}=$v();return(0,n.jsx)(`button`,{"data-testid":`dialog-trigger`,className:ty,"aria-label":e||`All filters`,onClick:()=>t(!0),children:(0,n.jsx)(Av,{className:ny})})},iy=`relative overflow-hidden`,ay=`h-full flex gap-x-2 items-center overflow-auto no-scrollbar outline-px focus:outline-primary-100 -outline-offset-2`,oy=`h-full hidden md:flex items-center w-16 absolute from-base-white via-base-white to-transparent`,sy=`${oy} justify-start left-0 bg-gradient-to-r pl-1`,cy=`${oy} justify-end right-0 bg-gradient-to-l pr-1`,ly=`flex justify-center items-center border-2 border-gray-400 text-gray-400 rounded-full w-8 h-8 bg-base-white cursor-pointer hover:scale-110 transition-all`,uy=50,dy=128;function fy(e,t,n,r,i){if(e||t===n||!i?.current||!t||!r)return;let a=i.current.querySelector(`li[data-active='true']`);a&&i.current?.scroll({left:a.offsetLeft-dy,behavior:`smooth`})}var py=({activeFilter:e,leftArrowAriaLabel:t,rightArrowAriaLabel:r,children:i})=>{let{isFiltersDialogOpen:a}=$v(),[o,s]=(0,g.useState)(e),[c,l]=(0,g.useState)(a),[u,d]=(0,g.useState)(!1),[f,p]=(0,g.useState)(!0),m=(0,g.useRef)(null);return(0,g.useEffect)(()=>{l(a)},[a]),(0,g.useEffect)(()=>{s(e)},[e]),(0,g.useEffect)(()=>{fy(a,e,o,c,m)},[e,o,a,c]),(0,n.jsx)(`div`,{className:iy,"data-testid":`scroll-list-container`,children:(0,n.jsxs)(`ul`,{"data-testid":`scroll-list`,className:ay,ref:m,onScroll:e=>{let t=uy,n=e.currentTarget.scrollWidth-e.currentTarget.offsetWidth-uy;e.currentTarget.scrollLeft>t&&!u?d(!0):e.currentTarget.scrollLeft<t&&u&&d(!1),e.currentTarget.scrollLeft<n&&!f?p(!0):e.currentTarget.scrollLeft>n&&f&&p(!1)},tabIndex:0,children:[u&&(0,n.jsx)(`li`,{className:sy,children:(0,n.jsx)(`button`,{"data-testid":`left-arrow-button`,className:ly,"aria-label":t||`Scroll left`,onClick:()=>{m.current?.scroll({left:m.current.scrollLeft-m.current.clientWidth+dy,behavior:`smooth`})},children:(0,n.jsx)(Dv,{weight:`bold`})})}),i,f&&(0,n.jsx)(`li`,{className:cy,children:(0,n.jsx)(`button`,{"data-testid":`right-arrow-button`,className:ly,"aria-label":r||`Scroll right`,onClick:()=>{m.current?.scroll({left:m.current.scrollLeft+m.current.clientWidth-dy,behavior:`smooth`})},children:(0,n.jsx)(Ov,{weight:`bold`})})})]})})},my=`group list-none`,hy=`
|
|
231
231
|
text-gray-400 flex items-center gap-x-2 border border-gray-150
|
|
232
232
|
h-10 px-5 rounded-full cursor-pointer transition-colors -outline-offset-2
|
|
233
233
|
|
|
@@ -238,51 +238,51 @@
|
|
|
238
238
|
group-data-[active=true]:bg-[color:var(--background,_theme(colors.primary.100))]
|
|
239
239
|
group-data-[active=true]:text-base-white
|
|
240
240
|
group-data-[active=true]:border-transparent
|
|
241
|
-
`,bT="w-5 h-5",wT="text-sm font-medium leading-5 text-nowrap";function TT({filter:e,label:t,icon:n,iconBackgroundColor:r,iconFillColor:o,isActive:i,onSelectFilter:s}){const a=()=>{s&&s(e)};return v.jsx("li",{className:yT,"data-active":i,"data-testid":"filter-item","data-filter":e,children:v.jsxs("button",{onClick:a,className:vT,"data-testid":"filter-item-button",style:o?{"--background":o}:void 0,children:[r&&o?v.jsx(Is,{element:v.jsx(n,{}),backgroundColor:r,fillColor:o}):v.jsx(n,{className:bT,"data-testid":"filter-item-icon"}),v.jsx("p",{className:wT,"data-testid":"filter-item-label",children:t})]})})}function vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function sd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ad(...e){return t=>{let n=!1;const r=e.map(o=>{const i=sd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():sd(e[o],null)}}}}function Ce(...e){return f.useCallback(ad(...e),e)}function ET(e,t){const n=f.createContext(t),r=i=>{const{children:s,...a}=i,c=f.useMemo(()=>a,Object.values(a));return v.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function $i(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];const l=d=>{const{scope:h,children:p,...y}=d,m=h?.[e]?.[c]||a,g=f.useMemo(()=>y,Object.values(y));return v.jsx(m.Provider,{value:g,children:p})};l.displayName=i+"Provider";function u(d,h){const p=h?.[e]?.[c]||a,y=f.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=a?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,xT(o,...t)]}function xT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var bt=globalThis?.document?f.useLayoutEffect:()=>{},ST=f[" useId ".trim().toString()]||(()=>{}),AT=0;function Ui(e){const[t,n]=f.useState(ST());return bt(()=>{n(r=>r??String(AT++))},[e]),e||(t?`radix-${t}`:"")}var CT=f[" useInsertionEffect ".trim().toString()]||bt;function cd({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=PT({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const l=f.useCallback(u=>{if(a){const d=MT(u)?u(e):u;d!==e&&s.current?.(d)}else i(u)},[a,e,i,s]);return[c,l]}function PT({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return CT(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function MT(e){return typeof e=="function"}function Er(e){const t=DT(e),n=f.forwardRef((r,o)=>{const{children:i,...s}=r,a=f.Children.toArray(i),c=a.find(VT);if(c){const l=c.props.children,u=a.map(d=>d===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:d);return v.jsx(t,{...s,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,u):null})}return v.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function DT(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const s=kT(o),a=FT(i,o.props);return o.type!==f.Fragment&&(a.ref=r?ad(r,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var OT=Symbol("radix.slottable");function VT(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===OT}function FT(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function kT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=IT.reduce((e,t)=>{const n=Er(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Wi(e,t){e&&ys.flushSync(()=>e.dispatchEvent(t))}function Le(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function ld(e,t=globalThis?.document){const n=Le(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var NT="DismissableLayer",zi="dismissableLayer.update",LT="dismissableLayer.pointerDownOutside",RT="dismissableLayer.focusOutside",ud,dd=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fd=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(dd),[u,d]=f.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=f.useState({}),y=Ce(t,A=>d(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),x=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,w=BT(A=>{const C=A.target,L=[...l.branches].some($=>$.contains(C));!P||L||(o?.(A),s?.(A),A.defaultPrevented||a?.())},h),M=$T(A=>{const C=A.target;[...l.branches].some($=>$.contains(C))||(i?.(A),s?.(A),A.defaultPrevented||a?.())},h);return ld(A=>{x===l.layers.size-1&&(r?.(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ud=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),hd(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ud)}},[u,h,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),hd())},[u,l]),f.useEffect(()=>{const A=()=>p({});return document.addEventListener(zi,A),()=>document.removeEventListener(zi,A)},[]),v.jsx(ge.div,{...c,ref:y,style:{pointerEvents:T?P?"auto":"none":void 0,...e.style},onFocusCapture:vt(e.onFocusCapture,M.onFocusCapture),onBlurCapture:vt(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:vt(e.onPointerDownCapture,w.onPointerDownCapture)})});fd.displayName=NT;var _T="DismissableLayerBranch",jT=f.forwardRef((e,t)=>{const n=f.useContext(dd),r=f.useRef(null),o=Ce(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(ge.div,{...e,ref:o})});jT.displayName=_T;function BT(e,t=globalThis?.document){const n=Le(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){pd(LT,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $T(e,t=globalThis?.document){const n=Le(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&pd(RT,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hd(){const e=new CustomEvent(zi);document.dispatchEvent(e)}function pd(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Wi(o,i):o.dispatchEvent(i)}var Zi="focusScope.autoFocusOnMount",Hi="focusScope.autoFocusOnUnmount",md={bubbles:!1,cancelable:!0},UT="FocusScope",gd=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=f.useState(null),l=Le(o),u=Le(i),d=f.useRef(null),h=Ce(t,m=>c(m)),p=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let m=function(T){if(p.paused||!a)return;const P=T.target;a.contains(P)?d.current=P:wt(d.current,{select:!0})},g=function(T){if(p.paused||!a)return;const P=T.relatedTarget;P!==null&&(a.contains(P)||wt(d.current,{select:!0}))},b=function(T){if(document.activeElement===document.body)for(const w of T)w.removedNodes.length>0&&wt(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const x=new MutationObserver(b);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),x.disconnect()}}},[r,a,p.paused]),f.useEffect(()=>{if(a){bd.add(p);const m=document.activeElement;if(!a.contains(m)){const b=new CustomEvent(Zi,md);a.addEventListener(Zi,l),a.dispatchEvent(b),b.defaultPrevented||(WT(GT(yd(a)),{select:!0}),document.activeElement===m&&wt(a))}return()=>{a.removeEventListener(Zi,l),setTimeout(()=>{const b=new CustomEvent(Hi,md);a.addEventListener(Hi,u),a.dispatchEvent(b),b.defaultPrevented||wt(m??document.body,{select:!0}),a.removeEventListener(Hi,u),bd.remove(p)},0)}}},[a,l,u,p]);const y=f.useCallback(m=>{if(!n&&!r||p.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(g&&b){const x=m.currentTarget,[T,P]=zT(x);T&&P?!m.shiftKey&&b===P?(m.preventDefault(),n&&wt(T,{select:!0})):m.shiftKey&&b===T&&(m.preventDefault(),n&&wt(P,{select:!0})):b===x&&m.preventDefault()}},[n,r,p.paused]);return v.jsx(ge.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});gd.displayName=UT;function WT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wt(r,{select:t}),document.activeElement!==n)return}function zT(e){const t=yd(e),n=vd(t,e),r=vd(t.reverse(),e);return[n,r]}function yd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vd(e,t){for(const n of e)if(!ZT(n,{upTo:t}))return n}function ZT(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 HT(e){return e instanceof HTMLInputElement&&"select"in e}function wt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&HT(e)&&t&&e.select()}}var bd=KT();function KT(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=wd(e,t),e.unshift(t)},remove(t){e=wd(e,t),e[0]?.resume()}}}function wd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function GT(e){return e.filter(t=>t.tagName!=="A")}var YT="Portal",Ki=f.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=f.useState(!1);bt(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?ms.createPortal(v.jsx(ge.div,{...r,ref:t}),s):null});Ki.displayName=YT;function XT(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var xr=e=>{const{present:t,children:n}=e,r=qT(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=Ce(r.ref,QT(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};xr.displayName="Presence";function qT(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=XT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Sr(r.current);i.current=a==="mounted"?l:"none"},[a]),bt(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=Sr(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),bt(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=Sr(r.current).includes(p.animationName);if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=p=>{p.target===t&&(i.current=Sr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Sr(e){return e?.animationName||"none"}function QT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gi=0;function JT(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Td()),document.body.insertAdjacentElement("beforeend",e[1]??Td()),Gi++,()=>{Gi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Gi--}},[])}function Td(){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 He=function(){return He=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},He.apply(this,arguments)};function Ed(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function eE(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ar="right-scroll-bar-position",Cr="width-before-scroll-bar",tE="with-scroll-bars-hidden",nE="--removed-body-scroll-bar-size";function Yi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rE(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var oE=typeof window<"u"?f.useLayoutEffect:f.useEffect,xd=new WeakMap;function iE(e,t){var n=rE(null,function(r){return e.forEach(function(o){return Yi(o,r)})});return oE(function(){var r=xd.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Yi(a,null)}),i.forEach(function(a){o.has(a)||Yi(a,s)})}xd.set(n,e)},[e]),n}function sE(e){return e}function aE(e,t){t===void 0&&(t=sE);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var u=s;s=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){s.push(u),l()},filter:function(u){return s=s.filter(u),n}}}};return o}function cE(e){e===void 0&&(e={});var t=aE(null);return t.options=He({async:!0,ssr:!1},e),t}var Sd=function(e){var t=e.sideCar,n=Ed(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,He({},n))};Sd.isSideCarExport=!0;function lE(e,t){return e.useMedium(t),Sd}var Ad=cE(),Xi=function(){},Pr=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Xi,onWheelCapture:Xi,onTouchMoveCapture:Xi}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,y=e.inert,m=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,x=e.gapMode,T=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=h,w=iE([n,t]),M=He(He({},T),o);return f.createElement(f.Fragment,null,u&&f.createElement(P,{sideCar:Ad,removeScrollBar:l,shards:d,noIsolation:p,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:x}),s?f.cloneElement(f.Children.only(a),He(He({},M),{ref:w})):f.createElement(b,He({},M,{className:c,ref:w}),a))});Pr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Pr.classNames={fullWidth:Cr,zeroRight:Ar};var uE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function dE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uE();return t&&e.setAttribute("nonce",t),e}function fE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function hE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var pE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=dE())&&(fE(t,n),hE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mE=function(){var e=pE();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Cd=function(){var e=mE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},gE={left:0,top:0,right:0,gap:0},qi=function(e){return parseInt(e||"",10)||0},yE=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[qi(n),qi(r),qi(o)]},vE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gE;var t=yE(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])}},bE=Cd(),un="data-scroll-locked",wE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
242
|
-
|
|
243
|
-
overflow: hidden
|
|
244
|
-
padding-right:
|
|
241
|
+
`,gy=`w-5 h-5`,_y=`text-sm font-medium leading-5 text-nowrap`;function vy({filter:e,label:t,icon:r,iconBackgroundColor:i,iconFillColor:a,isActive:o,onSelectFilter:s}){return(0,n.jsx)(`li`,{className:my,"data-active":o,"data-testid":`filter-item`,"data-filter":e,children:(0,n.jsxs)(`button`,{onClick:()=>{s&&s(e)},className:hy,"data-testid":`filter-item-button`,style:a?{"--background":a}:void 0,children:[i&&a?(0,n.jsx)(tt,{element:(0,n.jsx)(r,{}),backgroundColor:i,fillColor:a}):(0,n.jsx)(r,{className:gy,"data-testid":`filter-item-icon`}),(0,n.jsx)(`p`,{className:_y,"data-testid":`filter-item-label`,children:t})]})})}function yy(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function by(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function xy(...e){return t=>{let n=!1,r=e.map(e=>{let r=by(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():by(e[t],null)}}}}function Sy(...e){return g.useCallback(xy(...e),e)}function Cy(e,t){let r=g.createContext(t),i=e=>{let{children:t,...i}=e,a=g.useMemo(()=>i,Object.values(i));return(0,n.jsx)(r.Provider,{value:a,children:t})};i.displayName=e+`Provider`;function a(n){let i=g.useContext(r);if(i)return i;if(t!==void 0)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}return[i,a]}function wy(e,t=[]){let r=[];function i(t,i){let a=g.createContext(i),o=r.length;r=[...r,i];let s=t=>{let{scope:r,children:i,...s}=t,c=r?.[e]?.[o]||a,l=g.useMemo(()=>s,Object.values(s));return(0,n.jsx)(c.Provider,{value:l,children:i})};s.displayName=t+`Provider`;function c(n,r){let s=r?.[e]?.[o]||a,c=g.useContext(s);if(c)return c;if(i!==void 0)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}return[s,c]}let a=()=>{let t=r.map(e=>g.createContext(e));return function(n){let r=n?.[e]||t;return g.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return a.scopeName=e,[i,Ty(a,...t)]}function Ty(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Ey=globalThis?.document?g.useLayoutEffect:()=>{},Dy=g.useId||(()=>void 0),Oy=0;function ky(e){let[t,n]=g.useState(Dy());return Ey(()=>{e||n(e=>e??String(Oy++))},[e]),e||(t?`radix-${t}`:``)}var Ay=g.useInsertionEffect||Ey;function jy({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=My({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=g.useRef(e!==void 0);g.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,g.useCallback(t=>{if(s){let n=Ny(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function My({defaultProp:e,onChange:t}){let[n,r]=g.useState(e),i=g.useRef(n),a=g.useRef(t);return Ay(()=>{a.current=t},[t]),g.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Ny(e){return typeof e==`function`}function Py(e){let t=Fy(e),r=g.forwardRef((e,r)=>{let{children:i,...a}=e,o=g.Children.toArray(i),s=o.find(Ly);if(s){let e=s.props.children,i=o.map(t=>t===s?g.Children.count(e)>1?g.Children.only(null):g.isValidElement(e)?e.props.children:null:t);return(0,n.jsx)(t,{...a,ref:r,children:g.isValidElement(e)?g.cloneElement(e,void 0,i):null})}return(0,n.jsx)(t,{...a,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}function Fy(e){let t=g.forwardRef((e,t)=>{let{children:n,...r}=e;if(g.isValidElement(n)){let e=zy(n),i=Ry(r,n.props);return n.type!==g.Fragment&&(i.ref=t?xy(t,e):e),g.cloneElement(n,i)}return g.Children.count(n)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Iy=Symbol(`radix.slottable`);function Ly(e){return g.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Iy}function Ry(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function zy(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Q=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let r=Py(`Primitive.${t}`),i=g.forwardRef((e,i)=>{let{asChild:a,...o}=e,s=a?r:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,n.jsx)(s,{...o,ref:i})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function By(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}function Vy(e){let t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...e)=>t.current?.(...e),[])}function Hy(e,t=globalThis?.document){let n=Vy(e);g.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Uy=`DismissableLayer`,Wy=`dismissableLayer.update`,Gy=`dismissableLayer.pointerDownOutside`,Ky=`dismissableLayer.focusOutside`,qy,Jy=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yy=g.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=g.useContext(Jy),[d,f]=g.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=g.useState({}),h=Sy(t,e=>f(e)),_=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_.indexOf(v),b=d?_.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=Qy(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!S||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},p),w=$y(e=>{let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return Hy(e=>{b===u.layers.size-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),g.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qy=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),eb(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=qy)}},[d,p,r,u]),g.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),eb())},[d,u]),g.useEffect(()=>{let e=()=>m({});return document.addEventListener(Wy,e),()=>document.removeEventListener(Wy,e)},[]),(0,n.jsx)(Q.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:yy(e.onFocusCapture,w.onFocusCapture),onBlurCapture:yy(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:yy(e.onPointerDownCapture,C.onPointerDownCapture)})});Yy.displayName=Uy;var Xy=`DismissableLayerBranch`,Zy=g.forwardRef((e,t)=>{let r=g.useContext(Jy),i=g.useRef(null),a=Sy(t,i);return g.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,n.jsx)(Q.div,{...e,ref:a})});Zy.displayName=Xy;function Qy(e,t=globalThis?.document){let n=Vy(e),r=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){tb(Gy,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $y(e,t=globalThis?.document){let n=Vy(e),r=g.useRef(!1);return g.useEffect(()=>{let e=e=>{e.target&&!r.current&&tb(Ky,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function eb(){let e=new CustomEvent(Wy);document.dispatchEvent(e)}function tb(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?By(i,a):i.dispatchEvent(a)}var nb=`focusScope.autoFocusOnMount`,rb=`focusScope.autoFocusOnUnmount`,ib={bubbles:!1,cancelable:!0},ab=`FocusScope`,ob=g.forwardRef((e,t)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=g.useState(null),u=Vy(a),d=Vy(o),f=g.useRef(null),p=Sy(t,e=>l(e)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(i){let e=function(e){if(m.paused||!c)return;let t=e.target;c.contains(t)?f.current=t:pb(f.current,{select:!0})},t=function(e){if(m.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||pb(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&pb(c)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,c,m.paused]),g.useEffect(()=>{if(c){mb.add(m);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(nb,ib);c.addEventListener(nb,u),c.dispatchEvent(t),t.defaultPrevented||(sb(_b(lb(c)),{select:!0}),document.activeElement===e&&pb(c))}return()=>{c.removeEventListener(nb,u),setTimeout(()=>{let t=new CustomEvent(rb,ib);c.addEventListener(rb,d),c.dispatchEvent(t),t.defaultPrevented||pb(e??document.body,{select:!0}),c.removeEventListener(rb,d),mb.remove(m)},0)}}},[c,u,d,m]);let h=g.useCallback(e=>{if(!r&&!i||m.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=cb(t);i&&a?!e.shiftKey&&n===a?(e.preventDefault(),r&&pb(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r&&pb(a,{select:!0})):n===t&&e.preventDefault()}},[r,i,m.paused]);return(0,n.jsx)(Q.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});ob.displayName=ab;function sb(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(pb(r,{select:t}),document.activeElement!==n)return}function cb(e){let t=lb(e);return[ub(t,e),ub(t.reverse(),e)]}function lb(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ub(e,t){for(let n of e)if(!db(n,{upTo:t}))return n}function db(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 fb(e){return e instanceof HTMLInputElement&&`select`in e}function pb(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fb(e)&&t&&e.select()}}var mb=hb();function hb(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=gb(e,t),e.unshift(t)},remove(t){e=gb(e,t),e[0]?.resume()}}}function gb(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function _b(e){return e.filter(e=>e.tagName!==`A`)}var vb=`Portal`,yb=g.forwardRef((e,t)=>{let{container:i,...a}=e,[o,s]=g.useState(!1);Ey(()=>s(!0),[]);let c=i||o&&globalThis?.document?.body;return c?r.default.createPortal((0,n.jsx)(Q.div,{...a,ref:t}),c):null});yb.displayName=vb;function bb(e,t){return g.useReducer((e,n)=>t[e][n]??e,e)}var xb=e=>{let{present:t,children:n}=e,r=Sb(t),i=typeof n==`function`?n({present:r.isPresent}):g.Children.only(n),a=Sy(r.ref,wb(i));return typeof n==`function`||r.isPresent?g.cloneElement(i,{ref:a}):null};xb.displayName=`Presence`;function Sb(e){let[t,n]=g.useState(),r=g.useRef(null),i=g.useRef(e),a=g.useRef(`none`),[o,s]=bb(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return g.useEffect(()=>{let e=Cb(r.current);a.current=o===`mounted`?e:`none`},[o]),Ey(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Cb(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Ey(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Cb(r.current).includes(a.animationName);if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Cb(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:g.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Cb(e){return e?.animationName||`none`}function wb(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tb=0;function Eb(){g.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Db()),document.body.insertAdjacentElement(`beforeend`,e[1]??Db()),Tb++,()=>{Tb===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Tb--}},[])}function Db(){let 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 Ob=function(){return Ob=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ob.apply(this,arguments)};function kb(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 Ab(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var jb=`right-scroll-bar-position`,Mb=`width-before-scroll-bar`,Nb=`with-scroll-bars-hidden`,Pb=`--removed-body-scroll-bar-size`;function Fb(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Ib(e,n){var r=(0,t.useState)(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0];return r.callback=n,r.facade}var Lb=typeof window<`u`?t.useLayoutEffect:t.useEffect,Rb=new WeakMap;function zb(e,t){var n=Ib(t||null,function(t){return e.forEach(function(e){return Fb(e,t)})});return Lb(function(){var t=Rb.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Fb(e,null)}),i.forEach(function(e){r.has(e)||Fb(e,a)})}Rb.set(n,e)},[e]),n}function Bb(e){return e}function Vb(e,t){t===void 0&&(t=Bb);var n=[],r=!1;return{read:function(){if(r)throw 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(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Hb(e){e===void 0&&(e={});var t=Vb(null);return t.options=Ob({async:!0,ssr:!1},e),t}var Ub=function(e){var n=e.sideCar,r=kb(e,[`sideCar`]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw Error(`Sidecar medium not found`);return t.createElement(i,Ob({},r))};Ub.isSideCarExport=!0;function Wb(e,t){return e.useMedium(t),Ub}var Gb=Hb(),Kb=function(){},qb=t.forwardRef(function(e,n){var r=t.useRef(null),i=t.useState({onScrollCapture:Kb,onWheelCapture:Kb,onTouchMoveCapture:Kb}),a=i[0],o=i[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=kb(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=p,S=zb([r,n]),C=Ob(Ob({},b),a);return t.createElement(t.Fragment,null,d&&t.createElement(x,{sideCar:Gb,removeScrollBar:u,shards:f,noIsolation:m,inert:h,setCallbacks:o,allowPinchZoom:!!g,lockRef:r,gapMode:y}),s?t.cloneElement(t.Children.only(c),Ob(Ob({},C),{ref:S})):t.createElement(v,Ob({},C,{className:l,ref:S}),c))});qb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qb.classNames={fullWidth:Mb,zeroRight:jb};var Jb,Yb=function(){if(Jb)return Jb;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Xb(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Yb();return t&&e.setAttribute(`nonce`,t),e}function Zb(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qb(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var $b=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xb())&&(Zb(t,n),Qb(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ex=function(){var e=$b();return function(n,r){t.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},tx=function(){var e=ex();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},nx={left:0,top:0,right:0,gap:0},rx=function(e){return parseInt(e||``,10)||0},ix=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[rx(n),rx(r),rx(i)]},ax=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return nx;var t=ix(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])}},ox=tx(),sx=`data-scroll-locked`,cx=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
242
|
+
.${Nb} {
|
|
243
|
+
overflow: hidden ${r};
|
|
244
|
+
padding-right: ${s}px ${r};
|
|
245
245
|
}
|
|
246
|
-
body[
|
|
247
|
-
overflow: hidden
|
|
246
|
+
body[${sx}] {
|
|
247
|
+
overflow: hidden ${r};
|
|
248
248
|
overscroll-behavior: contain;
|
|
249
|
-
|
|
250
|
-
padding-left:
|
|
251
|
-
padding-top:
|
|
252
|
-
padding-right:
|
|
249
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
250
|
+
padding-left: ${i}px;
|
|
251
|
+
padding-top: ${a}px;
|
|
252
|
+
padding-right: ${o}px;
|
|
253
253
|
margin-left:0;
|
|
254
254
|
margin-top:0;
|
|
255
|
-
margin-right:
|
|
256
|
-
|
|
255
|
+
margin-right: ${s}px ${r};
|
|
256
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
|
|
260
|
-
right:
|
|
259
|
+
.${jb} {
|
|
260
|
+
right: ${s}px ${r};
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
|
|
264
|
-
margin-right:
|
|
263
|
+
.${Mb} {
|
|
264
|
+
margin-right: ${s}px ${r};
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
|
|
268
|
-
right: 0
|
|
267
|
+
.${jb} .${jb} {
|
|
268
|
+
right: 0 ${r};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
|
|
272
|
-
margin-right: 0
|
|
271
|
+
.${Mb} .${Mb} {
|
|
272
|
+
margin-right: 0 ${r};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
body[
|
|
276
|
-
|
|
275
|
+
body[${sx}] {
|
|
276
|
+
${Pb}: ${s}px;
|
|
277
277
|
}
|
|
278
|
-
`
|
|
279
|
-
.block-interactivity
|
|
280
|
-
.allow-interactivity
|
|
281
|
-
`
|
|
278
|
+
`},lx=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ux=function(){t.useEffect(function(){return document.body.setAttribute(sx,(lx()+1).toString()),function(){var e=lx()-1;e<=0?document.body.removeAttribute(sx):document.body.setAttribute(sx,e.toString())}},[])},dx=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?`margin`:i;ux();var o=t.useMemo(function(){return ax(a)},[a]);return t.createElement(ox,{styles:cx(o,!n,a,r?``:`!important`)})},fx=!1;if(typeof window<`u`)try{var px=Object.defineProperty({},`passive`,{get:function(){return fx=!0,!0}});window.addEventListener(`test`,px,px),window.removeEventListener(`test`,px,px)}catch{fx=!1}var mx=fx?{passive:!1}:!1,hx=function(e){return e.tagName===`TEXTAREA`},gx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!hx(e)&&n[t]===`visible`)},_x=function(e){return gx(e,`overflowY`)},vx=function(e){return gx(e,`overflowX`)},yx=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Sx(e,r)){var i=Cx(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bx=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},xx=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Sx=function(e,t){return e===`v`?_x(t):vx(t)},Cx=function(e,t){return e===`v`?bx(t):xx(t)},wx=function(e,t){return e===`h`&&t===`rtl`?-1:1},Tx=function(e,t,n,r,i){var a=wx(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{var p=Cx(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Sx(e,s)&&(d+=h,f+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Ex=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Dx=function(e){return[e.deltaX,e.deltaY]},Ox=function(e){return e&&`current`in e?e.current:e},kx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ax=function(e){return`
|
|
279
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
280
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
281
|
+
`},jx=0,Mx=[];function Nx(e){var n=t.useRef([]),r=t.useRef([0,0]),i=t.useRef(),a=t.useState(jx++)[0],o=t.useState(tx)[0],s=t.useRef(e);t.useEffect(function(){s.current=e},[e]),t.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=Ab([e.lockRef.current],(e.shards||[]).map(Ox),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=t.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var n=Ex(e),a=r.current,o=`deltaX`in e?e.deltaX:a[0]-n[0],c=`deltaY`in e?e.deltaY:a[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=yx(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=yx(d,u)),!f)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var p=i.current||l;return Tx(p,t,e,p===`h`?o:c,!0)},[]),l=t.useCallback(function(e){var t=e;if(!(!Mx.length||Mx[Mx.length-1]!==o)){var r=`deltaY`in t?Dx(t):Ex(t),i=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&kx(e.delta,r)})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(Ox).filter(Boolean).filter(function(e){return e.contains(t.target)});(a.length>0?c(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=t.useCallback(function(e,t,r,i){var a={name:e,delta:t,target:r,should:i,shadowParent:Px(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=t.useCallback(function(e){r.current=Ex(e),i.current=void 0},[]),f=t.useCallback(function(t){u(t.type,Dx(t),t.target,c(t,e.lockRef.current))},[]),p=t.useCallback(function(t){u(t.type,Ex(t),t.target,c(t,e.lockRef.current))},[]);t.useEffect(function(){return Mx.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,mx),document.addEventListener(`touchmove`,l,mx),document.addEventListener(`touchstart`,d,mx),function(){Mx=Mx.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,mx),document.removeEventListener(`touchmove`,l,mx),document.removeEventListener(`touchstart`,d,mx)}},[]);var m=e.removeScrollBar,h=e.inert;return t.createElement(t.Fragment,null,h?t.createElement(o,{styles:Ax(a)}):null,m?t.createElement(dx,{gapMode:e.gapMode}):null)}function Px(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Fx=Wb(Gb,Nx),Ix=t.forwardRef(function(e,n){return t.createElement(qb,Ob({},e,{ref:n,sideCar:Fx}))});Ix.classNames=qb.classNames;var Lx=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Rx=new WeakMap,zx=new WeakMap,Bx={},Vx=0,Hx=function(e){return e&&(e.host||Hx(e.parentNode))},Ux=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Hx(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Wx=function(e,t,n,r){var i=Ux(t,Array.isArray(e)?e:[e]);Bx[n]||(Bx[n]=new WeakMap);var a=Bx[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Rx.get(e)||0)+1,l=(a.get(e)||0)+1;Rx.set(e,c),a.set(e,l),o.push(e),c===1&&i&&zx.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Vx++,function(){o.forEach(function(e){var t=Rx.get(e)-1,i=a.get(e)-1;Rx.set(e,t),a.set(e,i),t||(zx.has(e)||e.removeAttribute(r),zx.delete(e)),i||e.removeAttribute(n)}),Vx--,Vx||(Rx=new WeakMap,Rx=new WeakMap,zx=new WeakMap,Bx={})}},Gx=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Lx(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),Wx(r,i,n,`aria-hidden`)):function(){return null}},Kx=`Dialog`,[qx,Jx]=wy(Kx),[Yx,Xx]=qx(Kx),Zx=e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=g.useRef(null),l=g.useRef(null),[u,d]=jy({prop:i,defaultProp:a??!1,onChange:o,caller:Kx});return(0,n.jsx)(Yx,{scope:t,triggerRef:c,contentRef:l,contentId:ky(),titleId:ky(),descriptionId:ky(),open:u,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};Zx.displayName=Kx;var Qx=`DialogTrigger`,$x=g.forwardRef((e,t)=>{let{__scopeDialog:r,...i}=e,a=Xx(Qx,r),o=Sy(t,a.triggerRef);return(0,n.jsx)(Q.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.contentId,"data-state":yS(a.open),...i,ref:o,onClick:yy(e.onClick,a.onOpenToggle)})});$x.displayName=Qx;var eS=`DialogPortal`,[tS,nS]=qx(eS,{forceMount:void 0}),rS=e=>{let{__scopeDialog:t,forceMount:r,children:i,container:a}=e,o=Xx(eS,t);return(0,n.jsx)(tS,{scope:t,forceMount:r,children:g.Children.map(i,e=>(0,n.jsx)(xb,{present:r||o.open,children:(0,n.jsx)(yb,{asChild:!0,container:a,children:e})}))})};rS.displayName=eS;var iS=`DialogOverlay`,aS=g.forwardRef((e,t)=>{let r=nS(iS,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=Xx(iS,e.__scopeDialog);return o.modal?(0,n.jsx)(xb,{present:i||o.open,children:(0,n.jsx)(sS,{...a,ref:t})}):null});aS.displayName=iS;var oS=Py(`DialogOverlay.RemoveScroll`),sS=g.forwardRef((e,t)=>{let{__scopeDialog:r,...i}=e,a=Xx(iS,r);return(0,n.jsx)(Ix,{as:oS,allowPinchZoom:!0,shards:[a.contentRef],children:(0,n.jsx)(Q.div,{"data-state":yS(a.open),...i,ref:t,style:{pointerEvents:`auto`,...i.style}})})}),cS=`DialogContent`,lS=g.forwardRef((e,t)=>{let r=nS(cS,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=Xx(cS,e.__scopeDialog);return(0,n.jsx)(xb,{present:i||o.open,children:o.modal?(0,n.jsx)(uS,{...a,ref:t}):(0,n.jsx)(dS,{...a,ref:t})})});lS.displayName=cS;var uS=g.forwardRef((e,t)=>{let r=Xx(cS,e.__scopeDialog),i=g.useRef(null),a=Sy(t,r.contentRef,i);return g.useEffect(()=>{let e=i.current;if(e)return Gx(e)},[]),(0,n.jsx)(fS,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yy(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:yy(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:yy(e.onFocusOutside,e=>e.preventDefault())})}),dS=g.forwardRef((e,t)=>{let r=Xx(cS,e.__scopeDialog),i=g.useRef(!1),a=g.useRef(!1);return(0,n.jsx)(fS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,t.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&a.current&&t.preventDefault()}})}),fS=g.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,c=Xx(cS,r),l=g.useRef(null),u=Sy(t,l);return Eb(),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ob,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,n.jsx)(Yy,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":yS(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(CS,{titleId:c.titleId}),(0,n.jsx)(TS,{contentRef:l,descriptionId:c.descriptionId})]})]})}),pS=`DialogTitle`,mS=g.forwardRef((e,t)=>{let{__scopeDialog:r,...i}=e,a=Xx(pS,r);return(0,n.jsx)(Q.h2,{id:a.titleId,...i,ref:t})});mS.displayName=pS;var hS=`DialogDescription`,gS=g.forwardRef((e,t)=>{let{__scopeDialog:r,...i}=e,a=Xx(hS,r);return(0,n.jsx)(Q.p,{id:a.descriptionId,...i,ref:t})});gS.displayName=hS;var _S=`DialogClose`,vS=g.forwardRef((e,t)=>{let{__scopeDialog:r,...i}=e,a=Xx(_S,r);return(0,n.jsx)(Q.button,{type:`button`,...i,ref:t,onClick:yy(e.onClick,()=>a.onOpenChange(!1))})});vS.displayName=_S;function yS(e){return e?`open`:`closed`}var bS=`DialogTitleWarning`,[xS,SS]=Cy(bS,{contentName:cS,titleName:pS,docsSlug:`dialog`}),CS=({titleId:e})=>{let t=SS(bS),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
282
282
|
|
|
283
283
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
284
284
|
|
|
285
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return
|
|
285
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wS=`DialogDescriptionWarning`,TS=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${SS(wS).contentName}}.`;return g.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},ES=Zx,DS=rS,OS=aS,kS=lS,AS=mS,jS=gS,MS=vS,NS=`fixed top-0 left-0 right-0 bottom-0 z-20 opacity-40 bg-gray-400 rounded inset-0`,PS=`
|
|
286
286
|
fixed top-0 left-0 h-full w-full
|
|
287
287
|
|
|
288
288
|
md:top-1/2 md:max-h-[475px] md:-translate-y-1/2
|
|
@@ -291,17 +291,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
291
291
|
bg-base-white
|
|
292
292
|
py-6
|
|
293
293
|
z-30
|
|
294
|
-
`,
|
|
294
|
+
`,FS=`text-center font-semibold text-gray-800`,IS=`font-medium leading-6 text-gray-400 mt-8 mb-6 px-4`,LS=`absolute top-5 right-5`,RS=`h-8 w-8 text-gray-250 hover:text-gray-400 transition-colors`,zS=`h-full flex flex-col justify-between`,BS=`px-4 pb-4 flex flex-wrap gap-2 overflow-y-auto`,VS=`p-6 border-t border-gray-200 flex justify-between items-center`,HS=`md:w-52`,US=({title:e,description:t,applyLabel:r,resetLabel:i,onReset:a,onApply:o,onClose:s,children:c})=>{let{isFiltersDialogOpen:l,setIsFiltersDialogOpen:u}=$v();return(0,n.jsx)(ES,{open:l,children:(0,n.jsxs)(DS,{children:[(0,n.jsx)(OS,{className:NS,"data-testid":`dialog-overlay`}),(0,n.jsxs)(kS,{className:PS,"data-testid":`dialog-content`,children:[(0,n.jsx)(AS,{className:FS,"data-testid":`dialog-title`,children:e}),(0,n.jsx)(MS,{className:LS,onClick:()=>{u(!1),typeof s==`function`&&s()},"data-testid":`dialog-close`,children:(0,n.jsx)(Nv,{className:RS})}),(0,n.jsxs)(`div`,{className:zS,"data-testid":`dialog-filters`,children:[(0,n.jsx)(jS,{className:IS,"data-testid":`dialog-description`,children:t}),(0,n.jsx)(`div`,{className:BS,"data-testid":`dialog-filter-children`,children:c}),(0,n.jsxs)(`div`,{className:VS,"data-testid":`dialog-footer`,children:[(0,n.jsx)(Ye,{variant:`ghost`,onClick:()=>{a(),u(!1)},"data-testid":`dialog-reset-button`,children:i}),(0,n.jsx)(Ye,{className:HS,onClick:()=>{o(),u(!1)},"data-testid":`dialog-apply-button`,children:r})]})]})]})]})})},WS=f({Dialog:()=>US,DialogTrigger:()=>ry,Filter:()=>vy,Root:()=>GS,ScrollList:()=>py});function GS(e){return(0,n.jsx)(ey,{children:e.children})}var KS=`fixed inset-0 bg-black/50 data-[state=open]:animate-overlayShow z-10`,qS=`
|
|
295
295
|
fixed left-1/2 top-1/2 z-10
|
|
296
296
|
-translate-x-1/2 -translate-y-1/2
|
|
297
297
|
shadow-lg focus:outline-none
|
|
298
298
|
|
|
299
299
|
data-[state=open]:animate-contentShow
|
|
300
|
-
`,f2="flex flex-col gap-y-6 whitespace-pre-line",h2="flex items-center justify-between m-0 text-2xl text-gray-800",p2="m-0",m2="h-8 w-8 cursor-pointer transition-colors hover:bg-gray-200 rounded-full flex items-center justify-center",g2="flex justify-end gap-2",y2=({title:e,description:t,isOpen:n,children:r,onClose:o})=>v.jsx(qd,{open:n,children:v.jsxs(Qd,{children:[v.jsx(Jd,{className:u2}),v.jsx(ef,{className:d2,children:v.jsx(ks,{children:v.jsxs("div",{className:f2,children:[v.jsxs(tf,{className:h2,children:[v.jsx("span",{children:e}),v.jsx(Tr,{size:32,className:m2,onClick:o})]}),v.jsx(nf,{className:p2,children:t}),v.jsx("div",{className:g2,children:r})]})})})]})});function Pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function v2(e){const t=e+"CollectionProvider",[n,r]=$i(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:b}=m,x=E.useRef(null),T=E.useRef(new Map).current;return v.jsx(o,{scope:g,itemMap:T,collectionRef:x,children:b})};s.displayName=t;const a=e+"CollectionSlot",c=Er(a),l=E.forwardRef((m,g)=>{const{scope:b,children:x}=m,T=i(a,b),P=Ce(g,T.collectionRef);return v.jsx(c,{ref:P,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Er(u),p=E.forwardRef((m,g)=>{const{scope:b,children:x,...T}=m,P=E.useRef(null),w=Ce(g,P),M=i(u,b);return E.useEffect(()=>(M.itemMap.set(P,{ref:P,...T}),()=>{M.itemMap.delete(P)})),v.jsx(h,{[d]:"",ref:w,children:x})});p.displayName=u;function y(m){const g=i(e+"CollectionConsumer",m);return E.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const T=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((M,A)=>T.indexOf(M.ref.current)-T.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},y,r]}var b2="DismissableLayer",rs="dismissableLayer.update",w2="dismissableLayer.pointerDownOutside",T2="dismissableLayer.focusOutside",rf,of=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sf=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(of),[u,d]=f.useState(null),h=u?.ownerDocument??globalThis?.document,[,p]=f.useState({}),y=Ce(t,A=>d(A)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),x=u?m.indexOf(u):-1,T=l.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,w=x2(A=>{const C=A.target,L=[...l.branches].some($=>$.contains(C));!P||L||(o?.(A),s?.(A),A.defaultPrevented||a?.())},h),M=S2(A=>{const C=A.target;[...l.branches].some($=>$.contains(C))||(i?.(A),s?.(A),A.defaultPrevented||a?.())},h);return ld(A=>{x===l.layers.size-1&&(r?.(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),f.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(rf=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),cf(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=rf)}},[u,h,n,l]),f.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),cf())},[u,l]),f.useEffect(()=>{const A=()=>p({});return document.addEventListener(rs,A),()=>document.removeEventListener(rs,A)},[]),v.jsx(ge.div,{...c,ref:y,style:{pointerEvents:T?P?"auto":"none":void 0,...e.style},onFocusCapture:Pe(e.onFocusCapture,M.onFocusCapture),onBlurCapture:Pe(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Pe(e.onPointerDownCapture,w.onPointerDownCapture)})});sf.displayName=b2;var E2="DismissableLayerBranch",af=f.forwardRef((e,t)=>{const n=f.useContext(of),r=f.useRef(null),o=Ce(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(ge.div,{...e,ref:o})});af.displayName=E2;function x2(e,t=globalThis?.document){const n=Le(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){lf(w2,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function S2(e,t=globalThis?.document){const n=Le(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&lf(T2,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function cf(){const e=new CustomEvent(rs);document.dispatchEvent(e)}function lf(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Wi(o,i):o.dispatchEvent(i)}var A2=sf,C2=af;function P2(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var uf=e=>{const{present:t,children:n}=e,r=M2(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=Ce(r.ref,D2(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};uf.displayName="Presence";function M2(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=P2(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Ir(r.current);i.current=a==="mounted"?l:"none"},[a]),bt(()=>{const l=r.current,u=o.current;if(u!==e){const h=i.current,p=Ir(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),bt(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const m=Ir(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=p=>{p.target===t&&(i.current=Ir(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ir(e){return e?.animationName||"none"}function D2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var O2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),V2="VisuallyHidden",os=f.forwardRef((e,t)=>v.jsx(ge.span,{...e,ref:t,style:{...O2,...e.style}}));os.displayName=V2;var is="ToastProvider",[ss,F2,k2]=v2("Toast"),[df]=$i("Toast",[k2]),[I2,Nr]=df(is),ff=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,c]=f.useState(null),[l,u]=f.useState(0),d=f.useRef(!1),h=f.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${is}\`. Expected non-empty \`string\`.`),v.jsx(ss.Provider,{scope:t,children:v.jsx(I2,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange:c,onToastAdd:f.useCallback(()=>u(p=>p+1),[]),onToastRemove:f.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:s})})};ff.displayName=is;var hf="ToastViewport",N2=["F8"],as="toast.viewportPause",cs="toast.viewportResume",pf=f.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=N2,label:o="Notifications ({hotkey})",...i}=e,s=Nr(hf,n),a=F2(n),c=f.useRef(null),l=f.useRef(null),u=f.useRef(null),d=f.useRef(null),h=Ce(t,d,s.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;f.useEffect(()=>{const g=b=>{r.length!==0&&r.every(T=>b[T]||b.code===T)&&d.current?.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r]),f.useEffect(()=>{const g=c.current,b=d.current;if(y&&g&&b){const x=()=>{if(!s.isClosePausedRef.current){const M=new CustomEvent(as);b.dispatchEvent(M),s.isClosePausedRef.current=!0}},T=()=>{if(s.isClosePausedRef.current){const M=new CustomEvent(cs);b.dispatchEvent(M),s.isClosePausedRef.current=!1}},P=M=>{!g.contains(M.relatedTarget)&&T()},w=()=>{g.contains(document.activeElement)||T()};return g.addEventListener("focusin",x),g.addEventListener("focusout",P),g.addEventListener("pointermove",x),g.addEventListener("pointerleave",w),window.addEventListener("blur",x),window.addEventListener("focus",T),()=>{g.removeEventListener("focusin",x),g.removeEventListener("focusout",P),g.removeEventListener("pointermove",x),g.removeEventListener("pointerleave",w),window.removeEventListener("blur",x),window.removeEventListener("focus",T)}}},[y,s.isClosePausedRef]);const m=f.useCallback(({tabbingDirection:g})=>{const x=a().map(T=>{const P=T.ref.current,w=[P,...G2(P)];return g==="forwards"?w:w.reverse()});return(g==="forwards"?x.reverse():x).flat()},[a]);return f.useEffect(()=>{const g=d.current;if(g){const b=x=>{const T=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!T){const w=document.activeElement,M=x.shiftKey;if(x.target===g&&M){l.current?.focus();return}const L=m({tabbingDirection:M?"backwards":"forwards"}),$=L.findIndex(J=>J===w);us(L.slice($+1))?x.preventDefault():M?l.current?.focus():u.current?.focus()}};return g.addEventListener("keydown",b),()=>g.removeEventListener("keydown",b)}},[a,m]),v.jsxs(C2,{ref:c,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&v.jsx(ls,{ref:l,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});us(g)}}),v.jsx(ss.Slot,{scope:n,children:v.jsx(ge.ol,{tabIndex:-1,...i,ref:h})}),y&&v.jsx(ls,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});us(g)}})]})});pf.displayName=hf;var mf="ToastFocusProxy",ls=f.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Nr(mf,n);return v.jsx(os,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{const a=s.relatedTarget;!i.viewport?.contains(a)&&r()}})});ls.displayName=mf;var zn="Toast",L2="toast.swipeStart",R2="toast.swipeMove",_2="toast.swipeCancel",j2="toast.swipeEnd",gf=f.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,c]=cd({prop:r,defaultProp:o??!0,onChange:i,caller:zn});return v.jsx(uf,{present:n||a,children:v.jsx(U2,{open:a,...s,ref:t,onClose:()=>c(!1),onPause:Le(e.onPause),onResume:Le(e.onResume),onSwipeStart:Pe(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Pe(e.onSwipeMove,l=>{const{x:u,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Pe(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Pe(e.onSwipeEnd,l=>{const{x:u,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),c(!1)})})})});gf.displayName=zn;var[B2,$2]=df(zn,{onClose(){}}),U2=f.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:p,...y}=e,m=Nr(zn,n),[g,b]=f.useState(null),x=Ce(t,_=>b(_)),T=f.useRef(null),P=f.useRef(null),w=o||m.duration,M=f.useRef(0),A=f.useRef(w),C=f.useRef(0),{onToastAdd:L,onToastRemove:$}=m,J=Le(()=>{g?.contains(document.activeElement)&&m.viewport?.focus(),s()}),Ee=f.useCallback(_=>{!_||_===1/0||(window.clearTimeout(C.current),M.current=new Date().getTime(),C.current=window.setTimeout(J,_))},[J]);f.useEffect(()=>{const _=m.viewport;if(_){const ee=()=>{Ee(A.current),l?.()},ie=()=>{const U=new Date().getTime()-M.current;A.current=A.current-U,window.clearTimeout(C.current),c?.()};return _.addEventListener(as,ie),_.addEventListener(cs,ee),()=>{_.removeEventListener(as,ie),_.removeEventListener(cs,ee)}}},[m.viewport,w,c,l,Ee]),f.useEffect(()=>{i&&!m.isClosePausedRef.current&&Ee(w)},[i,w,m.isClosePausedRef,Ee]),f.useEffect(()=>(L(),()=>$()),[L,$]);const de=f.useMemo(()=>g?Sf(g):null,[g]);return m.viewport?v.jsxs(v.Fragment,{children:[de&&v.jsx(W2,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:de}),v.jsx(B2,{scope:n,onClose:J,children:ys.createPortal(v.jsx(ss.ItemSlot,{scope:n,children:v.jsx(A2,{asChild:!0,onEscapeKeyDown:Pe(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||J(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(ge.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Pe(e.onKeyDown,_=>{_.key==="Escape"&&(a?.(_.nativeEvent),_.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,J()))}),onPointerDown:Pe(e.onPointerDown,_=>{_.button===0&&(T.current={x:_.clientX,y:_.clientY})}),onPointerMove:Pe(e.onPointerMove,_=>{if(!T.current)return;const ee=_.clientX-T.current.x,ie=_.clientY-T.current.y,U=!!P.current,D=["left","right"].includes(m.swipeDirection),he=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,we=D?he(0,ee):0,Me=D?0:he(0,ie),xe=_.pointerType==="touch"?10:2,X={x:we,y:Me},ae={originalEvent:_,delta:X};U?(P.current=X,Lr(R2,d,ae,{discrete:!1})):Af(X,m.swipeDirection,xe)?(P.current=X,Lr(L2,u,ae,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(ee)>xe||Math.abs(ie)>xe)&&(T.current=null)}),onPointerUp:Pe(e.onPointerUp,_=>{const ee=P.current,ie=_.target;if(ie.hasPointerCapture(_.pointerId)&&ie.releasePointerCapture(_.pointerId),P.current=null,T.current=null,ee){const U=_.currentTarget,D={originalEvent:_,delta:ee};Af(ee,m.swipeDirection,m.swipeThreshold)?Lr(j2,p,D,{discrete:!0}):Lr(_2,h,D,{discrete:!0}),U.addEventListener("click",he=>he.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),W2=e=>{const{__scopeToast:t,children:n,...r}=e,o=Nr(zn,t),[i,s]=f.useState(!1),[a,c]=f.useState(!1);return H2(()=>s(!0)),f.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:v.jsx(Ki,{asChild:!0,children:v.jsx(os,{...r,children:i&&v.jsxs(v.Fragment,{children:[o.label," ",n]})})})},z2="ToastTitle",yf=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(ge.div,{...r,ref:t})});yf.displayName=z2;var Z2="ToastDescription",vf=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(ge.div,{...r,ref:t})});vf.displayName=Z2;var bf="ToastAction",wf=f.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?v.jsx(xf,{altText:n,asChild:!0,children:v.jsx(Ef,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${bf}\`. Expected non-empty \`string\`.`),null)});wf.displayName=bf;var Tf="ToastClose",Ef=f.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=$2(Tf,n);return v.jsx(xf,{asChild:!0,children:v.jsx(ge.button,{type:"button",...r,ref:t,onClick:Pe(e.onClick,o.onClose)})})});Ef.displayName=Tf;var xf=f.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return v.jsx(ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Sf(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),K2(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Sf(r))}}),t}function Lr(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Wi(o,i):o.dispatchEvent(i)}var Af=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function H2(e=()=>{}){const t=Le(e);bt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function K2(e){return e.nodeType===e.ELEMENT_NODE}function G2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function us(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Y2=ff,X2=pf,q2=gf,Q2=yf,J2=vf,ex=wf;const tx=`
|
|
300
|
+
`,JS=`flex flex-col gap-y-6 whitespace-pre-line`,YS=`flex items-center justify-between m-0 text-2xl text-gray-800`,XS=`m-0`,ZS=`h-8 w-8 cursor-pointer transition-colors hover:bg-gray-200 rounded-full flex items-center justify-center`,QS=`flex justify-end gap-2`,$S=({title:e,description:t,isOpen:r,children:i,onClose:a})=>(0,n.jsx)(ES,{open:r,children:(0,n.jsxs)(DS,{children:[(0,n.jsx)(OS,{className:KS}),(0,n.jsx)(kS,{className:qS,children:(0,n.jsx)(Qe,{children:(0,n.jsxs)(`div`,{className:JS,children:[(0,n.jsxs)(AS,{className:YS,children:[(0,n.jsx)(`span`,{children:e}),(0,n.jsx)(Mv,{size:32,className:ZS,onClick:a})]}),(0,n.jsx)(jS,{className:XS,children:t}),(0,n.jsx)(`div`,{className:QS,children:i})]})})})]})});typeof window<`u`&&window.document&&window.document.createElement;function eC(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function tC(e){let t=e+`CollectionProvider`,[r,i]=wy(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,i=g.default.useRef(null),o=g.default.useRef(new Map).current;return(0,n.jsx)(a,{scope:t,itemMap:o,collectionRef:i,children:r})};s.displayName=t;let c=e+`CollectionSlot`,l=Py(c),u=g.default.forwardRef((e,t)=>{let{scope:r,children:i}=e;return(0,n.jsx)(l,{ref:Sy(t,o(c,r).collectionRef),children:i})});u.displayName=c;let d=e+`CollectionItemSlot`,f=`data-radix-collection-item`,p=Py(d),m=g.default.forwardRef((e,t)=>{let{scope:r,children:i,...a}=e,s=g.default.useRef(null),c=Sy(t,s),l=o(d,r);return g.default.useEffect(()=>(l.itemMap.set(s,{ref:s,...a}),()=>void l.itemMap.delete(s))),(0,n.jsx)(p,{[f]:``,ref:c,children:i})});m.displayName=d;function h(t){let n=o(e+`CollectionConsumer`,t);return g.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},h,i]}var nC=`DismissableLayer`,rC=`dismissableLayer.update`,iC=`dismissableLayer.pointerDownOutside`,aC=`dismissableLayer.focusOutside`,oC,sC=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cC=g.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=g.useContext(sC),[d,f]=g.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=g.useState({}),h=Sy(t,e=>f(e)),_=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_.indexOf(v),b=d?_.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=dC(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!S||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},p),w=fC(e=>{let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return Hy(e=>{b===u.layers.size-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),g.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(oC=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),pC(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=oC)}},[d,p,r,u]),g.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),pC())},[d,u]),g.useEffect(()=>{let e=()=>m({});return document.addEventListener(rC,e),()=>document.removeEventListener(rC,e)},[]),(0,n.jsx)(Q.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:eC(e.onFocusCapture,w.onFocusCapture),onBlurCapture:eC(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:eC(e.onPointerDownCapture,C.onPointerDownCapture)})});cC.displayName=nC;var lC=`DismissableLayerBranch`,uC=g.forwardRef((e,t)=>{let r=g.useContext(sC),i=g.useRef(null),a=Sy(t,i);return g.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,n.jsx)(Q.div,{...e,ref:a})});uC.displayName=lC;function dC(e,t=globalThis?.document){let n=Vy(e),r=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){mC(iC,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function fC(e,t=globalThis?.document){let n=Vy(e),r=g.useRef(!1);return g.useEffect(()=>{let e=e=>{e.target&&!r.current&&mC(aC,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pC(){let e=new CustomEvent(rC);document.dispatchEvent(e)}function mC(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?By(i,a):i.dispatchEvent(a)}var hC=cC,gC=uC;function _C(e,t){return g.useReducer((e,n)=>t[e][n]??e,e)}var vC=e=>{let{present:t,children:n}=e,r=yC(t),i=typeof n==`function`?n({present:r.isPresent}):g.Children.only(n),a=Sy(r.ref,xC(i));return typeof n==`function`||r.isPresent?g.cloneElement(i,{ref:a}):null};vC.displayName=`Presence`;function yC(e){let[t,n]=g.useState(),r=g.useRef(null),i=g.useRef(e),a=g.useRef(`none`),[o,s]=_C(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return g.useEffect(()=>{let e=bC(r.current);a.current=o===`mounted`?e:`none`},[o]),Ey(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=bC(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Ey(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=bC(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=bC(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:g.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function bC(e){return e?.animationName||`none`}function xC(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var SC=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),CC=`VisuallyHidden`,wC=g.forwardRef((e,t)=>(0,n.jsx)(Q.span,{...e,ref:t,style:{...SC,...e.style}}));wC.displayName=CC;var TC=`ToastProvider`,[EC,DC,OC]=tC(`Toast`),[kC,AC]=wy(`Toast`,[OC]),[jC,MC]=kC(TC),NC=e=>{let{__scopeToast:t,label:r=`Notification`,duration:i=5e3,swipeDirection:a=`right`,swipeThreshold:o=50,children:s}=e,[c,l]=g.useState(null),[u,d]=g.useState(0),f=g.useRef(!1),p=g.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${TC}\`. Expected non-empty \`string\`.`),(0,n.jsx)(EC.Provider,{scope:t,children:(0,n.jsx)(jC,{scope:t,label:r,duration:i,swipeDirection:a,swipeThreshold:o,toastCount:u,viewport:c,onViewportChange:l,onToastAdd:g.useCallback(()=>d(e=>e+1),[]),onToastRemove:g.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:s})})};NC.displayName=TC;var PC=`ToastViewport`,FC=[`F8`],IC=`toast.viewportPause`,LC=`toast.viewportResume`,RC=g.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:i=FC,label:a=`Notifications ({hotkey})`,...o}=e,s=MC(PC,r),c=DC(r),l=g.useRef(null),u=g.useRef(null),d=g.useRef(null),f=g.useRef(null),p=Sy(t,f,s.onViewportChange),m=i.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),h=s.toastCount>0;g.useEffect(()=>{let e=e=>{i.length!==0&&i.every(t=>e[t]||e.code===t)&&f.current?.focus()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[i]),g.useEffect(()=>{let e=l.current,t=f.current;if(h&&e&&t){let n=()=>{if(!s.isClosePausedRef.current){let e=new CustomEvent(IC);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},r=()=>{if(s.isClosePausedRef.current){let e=new CustomEvent(LC);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[h,s.isClosePausedRef]);let _=g.useCallback(({tabbingDirection:e})=>{let t=c().map(t=>{let n=t.ref.current,r=[n,...dw(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[c]);return g.useEffect(()=>{let e=f.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){u.current?.focus();return}let i=_({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);fw(i.slice(a+1))?t.preventDefault():r?u.current?.focus():d.current?.focus()}};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[c,_]),(0,n.jsxs)(gC,{ref:l,role:`region`,"aria-label":a.replace(`{hotkey}`,m),tabIndex:-1,style:{pointerEvents:h?void 0:`none`},children:[h&&(0,n.jsx)(BC,{ref:u,onFocusFromOutsideViewport:()=>{fw(_({tabbingDirection:`forwards`}))}}),(0,n.jsx)(EC.Slot,{scope:r,children:(0,n.jsx)(Q.ol,{tabIndex:-1,...o,ref:p})}),h&&(0,n.jsx)(BC,{ref:d,onFocusFromOutsideViewport:()=>{fw(_({tabbingDirection:`backwards`}))}})]})});RC.displayName=PC;var zC=`ToastFocusProxy`,BC=g.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:i,...a}=e,o=MC(zC,r);return(0,n.jsx)(wC,{tabIndex:0,...a,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;o.viewport?.contains(t)||i()}})});BC.displayName=zC;var VC=`Toast`,HC=`toast.swipeStart`,UC=`toast.swipeMove`,WC=`toast.swipeCancel`,GC=`toast.swipeEnd`,KC=g.forwardRef((e,t)=>{let{forceMount:r,open:i,defaultOpen:a,onOpenChange:o,...s}=e,[c,l]=jy({prop:i,defaultProp:a??!0,onChange:o,caller:VC});return(0,n.jsx)(vC,{present:r||c,children:(0,n.jsx)(YC,{open:c,...s,ref:t,onClose:()=>l(!1),onPause:Vy(e.onPause),onResume:Vy(e.onResume),onSwipeStart:eC(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:eC(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:eC(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:eC(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),l(!1)})})})});KC.displayName=VC;var[qC,JC]=kC(VC,{onClose(){}}),YC=g.forwardRef((e,t)=>{let{__scopeToast:i,type:a=`foreground`,duration:o,open:s,onClose:c,onEscapeKeyDown:l,onPause:u,onResume:d,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:h,..._}=e,v=MC(VC,i),[y,b]=g.useState(null),x=Sy(t,e=>b(e)),S=g.useRef(null),C=g.useRef(null),w=o||v.duration,T=g.useRef(0),ee=g.useRef(w),te=g.useRef(0),{onToastAdd:ne,onToastRemove:E}=v,D=Vy(()=>{y?.contains(document.activeElement)&&v.viewport?.focus(),c()}),re=g.useCallback(e=>{!e||e===1/0||(window.clearTimeout(te.current),T.current=new Date().getTime(),te.current=window.setTimeout(D,e))},[D]);g.useEffect(()=>{let e=v.viewport;if(e){let t=()=>{re(ee.current),d?.()},n=()=>{let e=new Date().getTime()-T.current;ee.current-=e,window.clearTimeout(te.current),u?.()};return e.addEventListener(IC,n),e.addEventListener(LC,t),()=>{e.removeEventListener(IC,n),e.removeEventListener(LC,t)}}},[v.viewport,w,u,d,re]),g.useEffect(()=>{s&&!v.isClosePausedRef.current&&re(w)},[s,w,v.isClosePausedRef,re]),g.useEffect(()=>(ne(),()=>E()),[ne,E]);let ie=g.useMemo(()=>y?ow(y):null,[y]);return v.viewport?(0,n.jsxs)(n.Fragment,{children:[ie&&(0,n.jsx)(XC,{__scopeToast:i,role:`status`,"aria-live":a===`foreground`?`assertive`:`polite`,children:ie}),(0,n.jsx)(qC,{scope:i,onClose:D,children:r.createPortal((0,n.jsx)(EC.ItemSlot,{scope:i,children:(0,n.jsx)(hC,{asChild:!0,onEscapeKeyDown:eC(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||D(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,n.jsx)(Q.li,{tabIndex:0,"data-state":s?`open`:`closed`,"data-swipe-direction":v.swipeDirection,..._,ref:x,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:eC(e.onKeyDown,e=>{e.key===`Escape`&&(l?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:eC(e.onPointerDown,e=>{e.button===0&&(S.current={x:e.clientX,y:e.clientY})}),onPointerMove:eC(e.onPointerMove,e=>{if(!S.current)return;let t=e.clientX-S.current.x,n=e.clientY-S.current.y,r=!!C.current,i=[`left`,`right`].includes(v.swipeDirection),a=[`left`,`up`].includes(v.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},u={originalEvent:e,delta:l};r?(C.current=l,sw(UC,p,u,{discrete:!1})):cw(l,v.swipeDirection,c)?(C.current=l,sw(HC,f,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(S.current=null)}),onPointerUp:eC(e.onPointerUp,e=>{let t=C.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),C.current=null,S.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};cw(t,v.swipeDirection,v.swipeThreshold)?sw(GC,h,r,{discrete:!0}):sw(WC,m,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),XC=e=>{let{__scopeToast:t,children:r,...i}=e,a=MC(VC,t),[o,s]=g.useState(!1),[c,l]=g.useState(!1);return lw(()=>s(!0)),g.useEffect(()=>{let e=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(e)},[]),c?null:(0,n.jsx)(yb,{asChild:!0,children:(0,n.jsx)(wC,{...i,children:o&&(0,n.jsxs)(n.Fragment,{children:[a.label,` `,r]})})})},ZC=`ToastTitle`,QC=g.forwardRef((e,t)=>{let{__scopeToast:r,...i}=e;return(0,n.jsx)(Q.div,{...i,ref:t})});QC.displayName=ZC;var $C=`ToastDescription`,ew=g.forwardRef((e,t)=>{let{__scopeToast:r,...i}=e;return(0,n.jsx)(Q.div,{...i,ref:t})});ew.displayName=$C;var tw=`ToastAction`,nw=g.forwardRef((e,t)=>{let{altText:r,...i}=e;return r.trim()?(0,n.jsx)(aw,{altText:r,asChild:!0,children:(0,n.jsx)(iw,{...i,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${tw}\`. Expected non-empty \`string\`.`),null)});nw.displayName=tw;var rw=`ToastClose`,iw=g.forwardRef((e,t)=>{let{__scopeToast:r,...i}=e,a=JC(rw,r);return(0,n.jsx)(aw,{asChild:!0,children:(0,n.jsx)(Q.button,{type:`button`,...i,ref:t,onClick:eC(e.onClick,a.onClose)})})});iw.displayName=rw;var aw=g.forwardRef((e,t)=>{let{__scopeToast:r,altText:i,...a}=e;return(0,n.jsx)(Q.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":i||void 0,...a,ref:t})});function ow(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),uw(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n)if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...ow(e))}}),t}function sw(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?By(i,a):i.dispatchEvent(a)}var cw=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n};function lw(e=()=>{}){let t=Vy(e);Ey(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}function uw(e){return e.nodeType===e.ELEMENT_NODE}function dw(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fw(e){let t=document.activeElement;return e.some(e=>e===t?!0:(e.focus(),document.activeElement!==t))}var pw=NC,mw=RC,hw=KC,gw=QC,_w=ew,vw=nw,yw=`
|
|
301
301
|
fixed z-10 top-6
|
|
302
302
|
w-[80%] left-[10%]
|
|
303
303
|
md:w-[60%] md:left-[20%]
|
|
304
|
-
`,
|
|
304
|
+
`,bw=`relative`,xw=`flex-1`,Sw=`font-medium text-base`,Cw=`text-sm font-normal align-left`,ww=`h-5 w-5`,Tw=`border-none bg-transparent cursor-pointer p-0`,Ew=`
|
|
305
305
|
group rounded-lg my-2 p-4
|
|
306
306
|
flex items-start justify-between gap-x-2 md:gap-x-3
|
|
307
307
|
|
|
@@ -309,7 +309,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
309
309
|
data-[variant="success"]:bg-feedback-success-50
|
|
310
310
|
data-[variant="information"]:bg-feedback-info-50
|
|
311
311
|
data-[variant="warning"]:bg-feedback-warning-50
|
|
312
|
-
`,
|
|
312
|
+
`,Dw=`text-primary-100 ml-1`,Ow=`
|
|
313
313
|
h-10 w-10 p-2 pl-2.5
|
|
314
314
|
rounded-lg flex items-center justify-between
|
|
315
315
|
|
|
@@ -321,7 +321,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
321
321
|
group-data-[variant="success"]:bg-feedback-success-100
|
|
322
322
|
group-data-[variant="information"]:bg-feedback-info-100
|
|
323
323
|
group-data-[variant="warning"]:bg-feedback-warning-100
|
|
324
|
-
`,
|
|
324
|
+
`,kw=({toasts:e,onClose:t})=>(0,n.jsx)(`div`,{className:yw,children:(0,n.jsx)(Uf,{children:e.map(e=>(0,n.jsx)(iv.div,{className:bw,initial:{translateY:-25,opacity:0},animate:{translateY:0,opacity:1},exit:{translateY:-25,opacity:0},transition:{duration:.2},children:(0,n.jsxs)(pw,{swipeDirection:`right`,children:[(0,n.jsxs)(hw,{className:Ew,"data-variant":e.variant,duration:e.timeout||5e3,children:[(0,n.jsx)(gw,{children:(0,n.jsx)(`div`,{className:Ow,"data-variant":e.variant})}),(0,n.jsxs)(_w,{className:xw,children:[(0,n.jsx)(`div`,{className:Sw,children:e.title}),(0,n.jsxs)(`div`,{className:Cw,children:[e.description,e.action&&e.actionCallback&&(0,n.jsx)(`button`,{onClick:e.actionCallback,className:Dw,children:e.action})]})]}),(0,n.jsx)(vw,{asChild:!0,altText:`Close Toast Alert`,children:t&&(0,n.jsx)(`button`,{className:Tw,onClick:()=>e.id&&t(e.id),type:`button`,children:(0,n.jsx)(Mv,{className:ww})})})]}),(0,n.jsx)(mw,{})]})},e.id))})}),$=[];for(let e=0;e<256;++e)$.push((e+256).toString(16).slice(1));function Aw(e,t=0){return($[e[t+0]]+$[e[t+1]]+$[e[t+2]]+$[e[t+3]]+`-`+$[e[t+4]]+$[e[t+5]]+`-`+$[e[t+6]]+$[e[t+7]]+`-`+$[e[t+8]]+$[e[t+9]]+`-`+$[e[t+10]]+$[e[t+11]]+$[e[t+12]]+$[e[t+13]]+$[e[t+14]]+$[e[t+15]]).toLowerCase()}var jw=new Uint8Array(16);function Mw(){return crypto.getRandomValues(jw)}function Nw(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():Pw(e,t,n)}function Pw(e,t,n){e||={};let r=e.random??e.rng?.()??Mw();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Aw(r)}var Fw=(0,g.createContext)({toastAlerts:[],openToastAlert:()=>{},closeToastAlerts:()=>{}}),Iw=()=>(0,g.useContext)(Fw),Lw=({children:e})=>{let[t,r]=(0,g.useState)([]),i=e=>r(t=>t.filter(t=>t.id!==e));return(0,n.jsxs)(Fw.Provider,{value:{toastAlerts:t,openToastAlert:({title:e,description:t,metadata:n,variant:a,action:o,actionCallback:s,timeout:c=5e3})=>{let l=`${Nw()}`;r(r=>[...r,{id:l,title:e,description:t,metadata:n,timeout:c,variant:a,action:o,actionCallback:s}]),setTimeout(()=>i(l),c)},closeToastAlerts:i},children:[e,(0,n.jsx)(kw,{toasts:t,onClose:i})]})},Rw=`
|
|
325
325
|
text-center text-xs
|
|
326
326
|
leading-4 font-normal capitalize
|
|
327
327
|
rounded-md
|
|
@@ -347,4 +347,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
347
347
|
data-[bottom-right-rounded="false"]:px-2.5
|
|
348
348
|
data-[bottom-left-rounded="false"]:rounded-bl-none
|
|
349
349
|
data-[bottom-left-rounded="false"]:px-2.5
|
|
350
|
-
`,
|
|
350
|
+
`;e.Button=Ye,e.Card=Qe,e.ColorIcon=tt,Object.defineProperty(e,`Form`,{enumerable:!0,get:function(){return Xv}}),Object.defineProperty(e,`HorizontalScrollFilters`,{enumerable:!0,get:function(){return WS}}),e.Modal=$S,e.Tag=({children:e,variant:t=`dark`,isVisible:r=!0,isTopLeftRounded:i=!0,isTopRightRounded:a=!0,isBottomRightRounded:o=!0,isBottomLeftRounded:s=!0})=>r?(0,n.jsx)(`div`,{className:Rw,"data-variant":t,"data-top-left-rounded":i,"data-top-right-rounded":a,"data-bottom-right-rounded":o,"data-bottom-left-rounded":s,"data-testid":`tag-component`,children:e}):null,e.ToastAlerts=kw,e.ToastAlertsProvider=Lw,e.useToastAlerts=Iw});
|