lizaui 3.0.17 → 3.0.19
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/button/index.cjs.js +1 -1
- package/dist/button/index.es.js +1 -1
- package/dist/calendar/index.cjs.js +1 -1
- package/dist/calendar/index.es.js +1 -1
- package/dist/chunks/{button-BFiQhp-f.js → button-DY6HAc8R.js} +1047 -907
- package/dist/chunks/button-DY6HAc8R.js.map +1 -0
- package/dist/chunks/button-DbkElM5k.js +10 -0
- package/dist/chunks/button-DbkElM5k.js.map +1 -0
- package/dist/chunks/index-BxJKdzwL.js +6383 -0
- package/dist/chunks/index-BxJKdzwL.js.map +1 -0
- package/dist/chunks/index-Dtsw1VqP.js +65 -0
- package/dist/chunks/index-Dtsw1VqP.js.map +1 -0
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/pagination/index.cjs.js +1 -1
- package/dist/pagination/index.es.js +2 -2
- package/dist/types/switch.type.d.ts +3 -0
- package/dist/types/switch.type.d.ts.map +1 -1
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.cjs.js.map +1 -1
- package/dist/ui/index.es.js +5 -5
- package/dist/ui/index.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/button-BFiQhp-f.js.map +0 -1
- package/dist/chunks/button-CBLcH0I-.js +0 -10
- package/dist/chunks/button-CBLcH0I-.js.map +0 -1
- package/dist/chunks/index-jBeQP53E.js +0 -65
- package/dist/chunks/index-jBeQP53E.js.map +0 -1
- package/dist/chunks/index-ui7isTRa.js +0 -5030
- package/dist/chunks/index-ui7isTRa.js.map +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";const R=require("./jsx-runtime-DFswc9zO.js"),p=require("react"),Ke=require("./refs-DLih6QCP.js"),Os=require("./tv-C5lw0tnu.js"),z=require("./classes-P14wj2Ze.js"),S=require("./variants-BUTPDD09.js"),ks=require("./clsx-C11secjj.js"),Ns=require("./index-D2_xS2pD.js");function js(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const dt=js(p);function Ls(e,t,n){return Math.min(Math.max(e,t),n)}function Bs(e){return`${e}-${Math.floor(Math.random()*1e6)}`}const bn=Os.tv({base:["z-0","cursor-pointer","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]",...z.dataFocusVisibleClasses],variants:{variant:{solid:"",bordered:"border-[2px] bg-transparent",light:"bg-transparent",flat:"",faded:"border-[2px]",shadow:"",ghost:"border-[2px] bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-sm",md:"px-4 min-w-20 h-10 text-sm gap-2 rounded-md",lg:"px-6 min-w-24 h-12 text-md gap-3 rounded-lg"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-80 pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:S.colorVariants.solid.default},{variant:"solid",color:"primary",class:S.colorVariants.solid.primary},{variant:"solid",color:"secondary",class:S.colorVariants.solid.secondary},{variant:"solid",color:"success",class:S.colorVariants.solid.success},{variant:"solid",color:"warning",class:S.colorVariants.solid.warning},{variant:"solid",color:"danger",class:S.colorVariants.solid.danger},{variant:"shadow",color:"default",class:S.colorVariants.shadow.default},{variant:"shadow",color:"primary",class:S.colorVariants.shadow.primary},{variant:"shadow",color:"secondary",class:S.colorVariants.shadow.secondary},{variant:"shadow",color:"success",class:S.colorVariants.shadow.success},{variant:"shadow",color:"warning",class:S.colorVariants.shadow.warning},{variant:"shadow",color:"danger",class:S.colorVariants.shadow.danger},{variant:"bordered",color:"default",class:S.colorVariants.bordered.default},{variant:"bordered",color:"primary",class:S.colorVariants.bordered.primary},{variant:"bordered",color:"secondary",class:S.colorVariants.bordered.secondary},{variant:"bordered",color:"success",class:S.colorVariants.bordered.success},{variant:"bordered",color:"warning",class:S.colorVariants.bordered.warning},{variant:"bordered",color:"danger",class:S.colorVariants.bordered.danger},{variant:"flat",color:"default",class:S.colorVariants.flat.default},{variant:"flat",color:"primary",class:S.colorVariants.flat.primary},{variant:"flat",color:"secondary",class:S.colorVariants.flat.secondary},{variant:"flat",color:"success",class:S.colorVariants.flat.success},{variant:"flat",color:"warning",class:S.colorVariants.flat.warning},{variant:"flat",color:"danger",class:S.colorVariants.flat.danger},{variant:"faded",color:"default",class:S.colorVariants.faded.default},{variant:"faded",color:"primary",class:S.colorVariants.faded.primary},{variant:"faded",color:"secondary",class:S.colorVariants.faded.secondary},{variant:"faded",color:"success",class:S.colorVariants.faded.success},{variant:"faded",color:"warning",class:S.colorVariants.faded.warning},{variant:"faded",color:"danger",class:S.colorVariants.faded.danger},{variant:"light",color:"default",class:[S.colorVariants.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[S.colorVariants.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[S.colorVariants.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[S.colorVariants.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[S.colorVariants.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[S.colorVariants.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[S.colorVariants.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[S.colorVariants.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[S.colorVariants.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[S.colorVariants.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[S.colorVariants.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[S.colorVariants.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:z.collapseAdjacentVariantBorders.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:z.collapseAdjacentVariantBorders.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:z.collapseAdjacentVariantBorders.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:z.collapseAdjacentVariantBorders.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:z.collapseAdjacentVariantBorders.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:z.collapseAdjacentVariantBorders.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"hover:opacity-80"}]});function Ks(e={}){const[t,n]=p.useState([]),s=p.useCallback(i=>{const o=i.target,a=Math.max(o.clientWidth,o.clientHeight);n(c=>[...c,{key:Bs(c.length.toString()),size:a,x:i.x-a/2,y:i.y-a/2}])},[]),r=p.useCallback(i=>{n(o=>o.filter(a=>a.key!==i))},[]);return{ripples:t,onClear:r,onPress:s,...e}}function $s(e){const{id:t,classNames:n,className:s,asChild:r,children:i,isLoading:o=!1,disabled:a=!1,isIconOnly:c=!1,onClick:u,startContent:l,endContent:d,spinner:f=null,spinnerPlacement:h="start",type:g="button",...x}=e,T=Ke.useDOMRef(e.ref),m=p.useId(),A=t||m,{onPress:b,onClear:C,ripples:y}=Ks(),w=p.useMemo(()=>bn({size:e.size,color:e.color,variant:e.variant,radius:e.radius,fullWidth:e.fullWidth,isDisabled:a||o,disableAnimation:e.disableAnimation,isIconOnly:c,isInGroup:e.isInGroup,className:s}),[e,s,a,o,c]),M=p.useCallback(N=>{if(a){N.preventDefault();return}u==null||u(N)},[u,a]),V=N=>p.isValidElement(N)?p.cloneElement(N,{}):null,I=V(l),D=V(d),W=N=>{const je=N.currentTarget.getBoundingClientRect(),F={target:N.currentTarget,x:N.clientX-je.left,y:N.clientY-je.top};b(F)},ye=()=>({className:ks.clsx(w,n==null?void 0:n.base),"data-disabled":Ke.dataAttr(a),"data-loading":Ke.dataAttr(o),onClick:M,onPointerDown:W,"data-slot":"button","aria-disabled":a,id:A,type:g,...x}),Ne=p.useCallback(()=>({ripples:y,onClear:C}),[y,C]),be=r?Ns.Slot:"button";return{domRef:T,isIconOnly:c,Component:be,children:i,isLoading:o,spinner:f,spinnerPlacement:h,startContent:I,endContent:D,getButtonProps:ye,getRippleProps:Ne}}const vn=p.createContext({});function ft(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const ht=typeof window<"u",xn=ht?p.useLayoutEffect:p.useEffect,Ee=p.createContext(null);function Ws(e,t){e.indexOf(t)===-1&&e.push(t)}function Gs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const X=(e,t,n)=>n>t?t:n<e?e:n;let pe=()=>{},Z=()=>{};process.env.NODE_ENV!=="production"&&(pe=(e,t)=>{},Z=(e,t)=>{if(!e)throw new Error(t)});const $={},wn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function zs(e){return typeof e=="object"&&e!==null}const Vn=e=>/^0[^.\s]+$/u.test(e);function pt(e){let t;return()=>(t===void 0&&(t=e()),t)}const ne=e=>e,_s=(e,t)=>n=>t(e(n)),Ie=(...e)=>e.reduce(_s),Tn=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class Sn{constructor(){this.subscriptions=[]}add(t){return Ws(this.subscriptions,t),()=>Gs(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i<r;i++){const o=this.subscriptions[i];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const L=e=>e*1e3,K=e=>e/1e3;function An(e,t){return t?e*(1e3/t):0}const Bt=new Set;function mt(e,t,n){e||Bt.has(t)||Bt.add(t)}const Cn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Us=1e-7,Hs=12;function qs(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=Cn(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>Us&&++a<Hs);return o}function me(e,t,n,s){if(e===t&&n===s)return ne;const r=i=>qs(i,0,1,e,n);return i=>i===0||i===1?i:Cn(r(i),t,s)}const Mn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pn=e=>t=>1-e(1-t),Rn=me(.33,1.53,.69,.99),gt=Pn(Rn),En=Mn(gt),In=e=>(e*=2)<1?.5*gt(e):.5*(2-Math.pow(2,-10*(e-1))),yt=e=>1-Math.sin(Math.acos(e)),Ys=Pn(yt),Fn=Mn(yt),Xs=me(.42,0,1,1),Zs=me(0,0,.58,1),Dn=me(.42,0,.58,1),Js=e=>Array.isArray(e)&&typeof e[0]!="number",On=e=>Array.isArray(e)&&typeof e[0]=="number",Kt={linear:ne,easeIn:Xs,easeInOut:Dn,easeOut:Zs,circIn:yt,circInOut:Fn,circOut:Ys,backIn:gt,backInOut:En,backOut:Rn,anticipate:In},Qs=e=>typeof e=="string",$t=e=>{if(On(e)){Z(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,s,r]=e;return me(t,n,s,r)}else if(Qs(e))return Z(Kt[e]!==void 0,`Invalid easing type '${e}'`),Kt[e];return e},ve=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function er(e,t){let n=new Set,s=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){o.has(l)&&(u.schedule(l),e()),l(a)}const u={schedule:(l,d=!1,f=!1)=>{const g=f&&r?n:s;return d&&o.add(l),g.has(l)||g.add(l),l},cancel:l=>{s.delete(l),o.delete(l)},process:l=>{if(a=l,r){i=!0;return}r=!0,[n,s]=[s,n],n.forEach(c),n.clear(),r=!1,i&&(i=!1,u.process(l))}};return u}const tr=40;function kn(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=ve.reduce((b,C)=>(b[C]=er(i),b),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:d,preRender:f,render:h,postRender:g}=o,x=()=>{const b=$.useManualTiming?r.timestamp:performance.now();n=!1,$.useManualTiming||(r.delta=s?1e3/60:Math.max(Math.min(b-r.timestamp,tr),1)),r.timestamp=b,r.isProcessing=!0,a.process(r),c.process(r),u.process(r),l.process(r),d.process(r),f.process(r),h.process(r),g.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(x))},T=()=>{n=!0,s=!0,r.isProcessing||e(x)};return{schedule:ve.reduce((b,C)=>{const y=o[C];return b[C]=(w,M=!1,V=!1)=>(n||T(),y.schedule(w,M,V)),b},{}),cancel:b=>{for(let C=0;C<ve.length;C++)o[ve[C]].cancel(b)},state:r,steps:o}}const{schedule:j,cancel:qe,state:Se}=kn(typeof requestAnimationFrame<"u"?requestAnimationFrame:ne,!0);let Ve;function nr(){Ve=void 0}const k={now:()=>(Ve===void 0&&k.set(Se.isProcessing||$.useManualTiming?Se.timestamp:performance.now()),Ve),set:e=>{Ve=e,queueMicrotask(nr)}},Nn=e=>t=>typeof t=="string"&&t.startsWith(e),jn=Nn("--"),sr=Nn("var(--"),bt=e=>sr(e)?rr.test(e.split("/*")[0].trim()):!1,rr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,se={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ue={...se,transform:e=>X(0,1,e)},xe={...se,default:1},ce=e=>Math.round(e*1e5)/1e5,vt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ir(e){return e==null}const or=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xt=(e,t)=>n=>!!(typeof n=="string"&&or.test(n)&&n.startsWith(e)||t&&!ir(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ln=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(vt);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ar=e=>X(0,255,e),$e={...se,transform:e=>Math.round(ar(e))},U={test:xt("rgb","red"),parse:Ln("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+$e.transform(e)+", "+$e.transform(t)+", "+$e.transform(n)+", "+ce(ue.transform(s))+")"};function lr(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Ye={test:xt("#"),parse:lr,transform:U.transform},ge=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),G=ge("deg"),ee=ge("%"),v=ge("px"),cr=ge("vh"),ur=ge("vw"),Wt={...ee,parse:e=>ee.parse(e)/100,transform:e=>ee.transform(e*100)},J={test:xt("hsl","hue"),parse:Ln("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+ee.transform(ce(t))+", "+ee.transform(ce(n))+", "+ce(ue.transform(s))+")"},E={test:e=>U.test(e)||Ye.test(e)||J.test(e),parse:e=>U.test(e)?U.parse(e):J.test(e)?J.parse(e):Ye.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?U.transform(e):J.transform(e),getAnimatableNone:e=>{const t=E.parse(e);return t.alpha=0,E.transform(t)}},dr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fr(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(vt))==null?void 0:t.length)||0)+(((n=e.match(dr))==null?void 0:n.length)||0)>0}const Bn="number",Kn="color",hr="var",pr="var(",Gt="${}",mr=/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 de(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(mr,c=>(E.test(c)?(s.color.push(i),r.push(Kn),n.push(E.parse(c))):c.startsWith(pr)?(s.var.push(i),r.push(hr),n.push(c)):(s.number.push(i),r.push(Bn),n.push(parseFloat(c))),++i,Gt)).split(Gt);return{values:n,split:a,indexes:s,types:r}}function $n(e){return de(e).values}function Wn(e){const{split:t,types:n}=de(e),s=t.length;return r=>{let i="";for(let o=0;o<s;o++)if(i+=t[o],r[o]!==void 0){const a=n[o];a===Bn?i+=ce(r[o]):a===Kn?i+=E.transform(r[o]):i+=r[o]}return i}}const gr=e=>typeof e=="number"?0:E.test(e)?E.getAnimatableNone(e):e;function yr(e){const t=$n(e);return Wn(e)(t.map(gr))}const re={test:fr,parse:$n,createTransformer:Wn,getAnimatableNone:yr};function We(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 br({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=We(c,a,e+1/3),i=We(c,a,e),o=We(c,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function Ae(e,t){return n=>n>0?t:e}const Fe=(e,t,n)=>e+(t-e)*n,Ge=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},vr=[Ye,U,J],xr=e=>vr.find(t=>t.test(e));function zt(e){const t=xr(e);if(pe(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===J&&(n=br(n)),n}const _t=(e,t)=>{const n=zt(e),s=zt(t);if(!n||!s)return Ae(e,t);const r={...n};return i=>(r.red=Ge(n.red,s.red,i),r.green=Ge(n.green,s.green,i),r.blue=Ge(n.blue,s.blue,i),r.alpha=Fe(n.alpha,s.alpha,i),U.transform(r))},Xe=new Set(["none","hidden"]);function wr(e,t){return Xe.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Vr(e,t){return n=>Fe(e,t,n)}function wt(e){return typeof e=="number"?Vr:typeof e=="string"?bt(e)?Ae:E.test(e)?_t:Ar:Array.isArray(e)?Gn:typeof e=="object"?E.test(e)?_t:Tr:Ae}function Gn(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>wt(i)(i,t[o]));return i=>{for(let o=0;o<s;o++)n[o]=r[o](i);return n}}function Tr(e,t){const n={...e,...t},s={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(s[r]=wt(e[r])(e[r],t[r]));return r=>{for(const i in s)n[i]=s[i](r);return n}}function Sr(e,t){const n=[],s={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const i=t.types[r],o=e.indexes[i][s[i]],a=e.values[o]??0;n[r]=a,s[i]++}return n}const Ar=(e,t)=>{const n=re.createTransformer(t),s=de(e),r=de(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Xe.has(e)&&!r.values.length||Xe.has(t)&&!s.values.length?wr(e,t):Ie(Gn(Sr(s,r),r.values),n):(pe(!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.`),Ae(e,t))};function zn(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Fe(e,t,n):wt(e)(e,t)}const Cr=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>j.update(t,n),stop:()=>qe(t),now:()=>Se.isProcessing?Se.timestamp:k.now()}},_n=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)s+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Ce=2e4;function Vt(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Ce;)t+=n,s=e.next(t);return t>=Ce?1/0:t}function Mr(e,t=100,n){const s=n({...e,keyframes:[0,t]}),r=Math.min(Vt(s),Ce);return{type:"keyframes",ease:i=>s.next(r*i).value/t,duration:K(r)}}const Pr=5;function Un(e,t,n){const s=Math.max(t-Pr,0);return An(n-e(s),t-s)}const P={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},ze=.001;function Rr({duration:e=P.duration,bounce:t=P.bounce,velocity:n=P.velocity,mass:s=P.mass}){let r,i;pe(e<=L(P.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=X(P.minDamping,P.maxDamping,o),e=X(P.minDuration,P.maxDuration,K(e)),o<1?(r=u=>{const l=u*o,d=l*e,f=l-n,h=Ze(u,o),g=Math.exp(-d);return ze-f/h*g},i=u=>{const d=u*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,g=Math.exp(-d),x=Ze(Math.pow(u,2),o);return(-r(u)+ze>0?-1:1)*((f-h)*g)/x}):(r=u=>{const l=Math.exp(-u*e),d=(u-n)*e+1;return-ze+l*d},i=u=>{const l=Math.exp(-u*e),d=(n-u)*(e*e);return l*d});const a=5/e,c=Ir(r,i,a);if(e=L(e),isNaN(c))return{stiffness:P.stiffness,damping:P.damping,duration:e};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:e}}}const Er=12;function Ir(e,t,n){let s=n;for(let r=1;r<Er;r++)s=s-e(s)/t(s);return s}function Ze(e,t){return e*Math.sqrt(1-t*t)}const Fr=["duration","bounce"],Dr=["stiffness","damping","mass"];function Ut(e,t){return t.some(n=>e[n]!==void 0)}function Or(e){let t={velocity:P.velocity,stiffness:P.stiffness,damping:P.damping,mass:P.mass,isResolvedFromDuration:!1,...e};if(!Ut(e,Dr)&&Ut(e,Fr))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*X(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:P.mass,stiffness:r,damping:i}}else{const n=Rr(e);t={...t,...n,mass:P.mass},t.isResolvedFromDuration=!0}return t}function Me(e=P.visualDuration,t=P.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:u,mass:l,duration:d,velocity:f,isResolvedFromDuration:h}=Or({...n,velocity:-K(n.velocity||0)}),g=f||0,x=u/(2*Math.sqrt(c*l)),T=o-i,m=K(Math.sqrt(c/l)),A=Math.abs(T)<5;s||(s=A?P.restSpeed.granular:P.restSpeed.default),r||(r=A?P.restDelta.granular:P.restDelta.default);let b;if(x<1){const y=Ze(m,x);b=w=>{const M=Math.exp(-x*m*w);return o-M*((g+x*m*T)/y*Math.sin(y*w)+T*Math.cos(y*w))}}else if(x===1)b=y=>o-Math.exp(-m*y)*(T+(g+m*T)*y);else{const y=m*Math.sqrt(x*x-1);b=w=>{const M=Math.exp(-x*m*w),V=Math.min(y*w,300);return o-M*((g+x*m*T)*Math.sinh(V)+y*T*Math.cosh(V))/y}}const C={calculatedDuration:h&&d||null,next:y=>{const w=b(y);if(h)a.done=y>=d;else{let M=y===0?g:0;x<1&&(M=y===0?L(g):Un(b,y,w));const V=Math.abs(M)<=s,I=Math.abs(o-w)<=r;a.done=V&&I}return a.value=a.done?o:w,a},toString:()=>{const y=Math.min(Vt(C),Ce),w=_n(M=>C.next(y*M).value,y,30);return y+"ms "+w},toTransition:()=>{}};return C}Me.applyToOptions=e=>{const t=Mr(e,100,Me);return e.ease=t.ease,e.duration=L(t.duration),e.type="keyframes",e};function Je({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:u=.5,restSpeed:l}){const d=e[0],f={done:!1,value:d},h=V=>a!==void 0&&V<a||c!==void 0&&V>c,g=V=>a===void 0?c:c===void 0||Math.abs(a-V)<Math.abs(c-V)?a:c;let x=n*t;const T=d+x,m=o===void 0?T:o(T);m!==T&&(x=m-d);const A=V=>-x*Math.exp(-V/s),b=V=>m+A(V),C=V=>{const I=A(V),D=b(V);f.done=Math.abs(I)<=u,f.value=f.done?m:D};let y,w;const M=V=>{h(f.value)&&(y=V,w=Me({keyframes:[f.value,g(f.value)],velocity:Un(b,V,f.value),damping:r,stiffness:i,restDelta:u,restSpeed:l}))};return M(0),{calculatedDuration:null,next:V=>{let I=!1;return!w&&y===void 0&&(I=!0,C(V),M(V)),y!==void 0&&V>=y?w.next(V-y):(!I&&C(V),f)}}}function kr(e,t,n){const s=[],r=n||$.mix||zn,i=e.length-1;for(let o=0;o<i;o++){let a=r(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||ne:t;a=Ie(c,a)}s.push(a)}return s}function Nr(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const i=e.length;if(Z(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=kr(t,s,r),c=a.length,u=l=>{if(o&&l<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(l<e[d+1]);d++);const f=Tn(e[d],e[d+1],l);return a[d](f)};return n?l=>u(X(e[0],e[i-1],l)):u}function jr(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=Tn(0,t,s);e.push(Fe(n,1,r))}}function Lr(e){const t=[0];return jr(t,e.length-1),t}function Br(e,t){return e.map(n=>n*t)}function Kr(e,t){return e.map(()=>t||Dn).splice(0,e.length-1)}function Q({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=Js(s)?s.map($t):$t(s),i={done:!1,value:t[0]},o=Br(n&&n.length===t.length?n:Lr(t),e),a=Nr(o,t,{ease:Array.isArray(r)?r:Kr(t,r)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const $r=e=>e!==null;function Tt(e,{repeat:t,repeatType:n="loop"},s,r=1){const i=e.filter($r),a=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||s===void 0?i[a]:s}const Wr={decay:Je,inertia:Je,tween:Q,keyframes:Q,spring:Me};function Hn(e){typeof e.type=="string"&&(e.type=Wr[e.type])}class St{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 Gr=e=>e/100;class At extends St{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,r;const{motionValue:n}=this.options;n&&n.updatedAt!==k.now()&&this.tick(k.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(s=this.options).onStop)==null||r.call(s))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Hn(t);const{type:n=Q,repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const c=n||Q;process.env.NODE_ENV!=="production"&&c!==Q&&Z(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`),c!==Q&&typeof a[0]!="number"&&(this.mixKeyframes=Ie(Gr,zn(a[0],a[1])),a=[0,100]);const u=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Vt(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(s+1)-r,this.generator=u}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:s,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:d,repeatType:f,repeatDelay:h,type:g,onUpdate:x,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?m<0:m>r;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let b=this.currentTime,C=s;if(d){const V=Math.min(this.currentTime,r)/a;let I=Math.floor(V),D=V%1;!D&&V>=1&&(D=1),D===1&&I--,I=Math.min(I,d+1),!!(I%2)&&(f==="reverse"?(D=1-D,h&&(D-=h/a)):f==="mirror"&&(C=o)),b=X(0,1,D)*a}const y=A?{done:!1,value:l[0]}:C.next(b);i&&(y.value=i(y.value));let{done:w}=y;!A&&c!==null&&(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return M&&g!==Je&&(y.value=Tt(l,this.options,T,this.speed)),x&&x(y.value),M&&this.finish(),y}then(t,n){return this.finished.then(t,n)}get duration(){return K(this.calculatedDuration)}get time(){return K(this.currentTime)}set time(t){var n;t=L(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(k.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=K(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=Cr,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(r=this.options).onPlay)==null||i.call(r);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),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(k.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function zr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const H=e=>e*180/Math.PI,Qe=e=>{const t=H(Math.atan2(e[1],e[0]));return et(t)},_r={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qe,rotateZ:Qe,skewX:e=>H(Math.atan(e[1])),skewY:e=>H(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},et=e=>(e=e%360,e<0&&(e+=360),e),Ht=Qe,qt=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Yt=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ur={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:qt,scaleY:Yt,scale:e=>(qt(e)+Yt(e))/2,rotateX:e=>et(H(Math.atan2(e[6],e[5]))),rotateY:e=>et(H(Math.atan2(-e[2],e[0]))),rotateZ:Ht,rotate:Ht,skewX:e=>H(Math.atan(e[4])),skewY:e=>H(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tt(e){return e.includes("scale")?1:0}function nt(e,t){if(!e||e==="none")return tt(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,r;if(n)s=Ur,r=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=_r,r=a}if(!r)return tt(t);const i=s[t],o=r[1].split(",").map(qr);return typeof i=="function"?i(o):o[i]}const Hr=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nt(n,t)};function qr(e){return parseFloat(e.trim())}const ie=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oe=new Set(ie),Xt=e=>e===se||e===v,Yr=new Set(["x","y","z"]),Xr=ie.filter(e=>!Yr.has(e));function Zr(e){const t=[];return Xr.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const q={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})=>nt(t,"x"),y:(e,{transform:t})=>nt(t,"y")};q.translateX=q.x;q.translateY=q.y;const Y=new Set;let st=!1,rt=!1,it=!1;function qn(){if(rt){const e=Array.from(Y).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=Zr(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))==null||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}rt=!1,st=!1,Y.forEach(e=>e.complete(it)),Y.clear()}function Yn(){Y.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rt=!0)})}function Jr(){it=!0,Yn(),qn(),it=!1}class Ct{constructor(t,n,s,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Y.add(this),st||(st=!0,j.read(Yn),j.resolveKeyframes(qn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;if(t[0]===null){const i=r==null?void 0:r.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(s&&n){const a=s.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),r&&i===void 0&&r.set(t[0])}zr(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Y.delete(this)}cancel(){this.state==="scheduled"&&(Y.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Qr=e=>e.startsWith("--");function ei(e,t,n){Qr(t)?e.style.setProperty(t,n):e.style[t]=n}const ti=pt(()=>window.ScrollTimeline!==void 0),ni={};function si(e,t){const n=pt(e);return()=>ni[t]??n()}const Xn=si(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),le=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Zt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:le([0,.65,.55,1]),circOut:le([.55,0,1,.45]),backIn:le([.31,.01,.66,-.59]),backOut:le([.33,1.53,.69,.99])};function Zn(e,t){if(e)return typeof e=="function"?Xn()?_n(e,t):"ease-out":On(e)?le(e):Array.isArray(e)?e.map(n=>Zn(n,t)||Zt.easeOut):Zt[e]}function ri(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[t]:n};c&&(l.offset=c);const d=Zn(a,r);Array.isArray(d)&&(l.easing=d);const f={delay:s,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(l,f)}function Jn(e){return typeof e=="function"&&"applyToOptions"in e}function ii({type:e,...t}){return Jn(e)&&Xn()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class oi extends St{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:s,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Z(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const u=ii(t);this.animation=ri(n,s,r,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const l=Tt(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):ei(n,s,l),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,s;const t=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return K(Number(t))}get time(){return K(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=L(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&ti()?(this.animation.timeline=t,ne):n(this)}}const Qn={anticipate:In,backInOut:En,circInOut:Fn};function ai(e){return e in Qn}function li(e){typeof e.ease=="string"&&ai(e.ease)&&(e.ease=Qn[e.ease])}const Jt=10;class ci extends oi{constructor(t){li(t),Hn(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:r,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new At({...o,autoplay:!1}),c=L(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Jt).value,a.sample(c).value,Jt),a.stop()}}const Qt=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(re.test(e)||e==="0")&&!e.startsWith("url("));function ui(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 di(e,t,n,s){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Qt(r,t),a=Qt(i,t);return pe(o===a,`You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`),!o||!a?!1:ui(e)||(n==="spring"||Jn(n))&&s}function Mt(e){return zs(e)&&"offsetHeight"in e}const fi=new Set(["opacity","clipPath","filter","transform"]),hi=pt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function pi(e){var u;const{motionValue:t,name:n,repeatDelay:s,repeatType:r,damping:i,type:o}=e;if(!Mt((u=t==null?void 0:t.owner)==null?void 0:u.current))return!1;const{onUpdate:a,transformTemplate:c}=t.owner.getProps();return hi()&&n&&fi.has(n)&&(n!=="transform"||!c)&&!a&&!s&&r!=="mirror"&&i!==0&&o!=="inertia"}const mi=40;class gi extends St{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:c,motionValue:u,element:l,...d}){var g;super(),this.stop=()=>{var x,T;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=k.now();const f={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,name:c,motionValue:u,element:l,...d},h=(l==null?void 0:l.KeyframeResolver)||Ct;this.keyframeResolver=new h(a,(x,T,m)=>this.onKeyframesResolved(x,T,f,!m),c,u,l),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(t,n,s,r){this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=k.now(),di(t,i,o,a)||(($.instantAnimations||!c)&&(l==null||l(Tt(t,s,n))),t[0]=t[t.length-1],s.duration=0,s.repeat=0);const f={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>mi?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},h=!u&&pi(f)?new ci({...f,element:f.motionValue.owner.current}):new At(f);h.finished.then(()=>this.notifyFinished()).catch(ne),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Jr()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const yi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bi(e){const t=yi.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}const vi=4;function es(e,t,n=1){Z(n<=vi,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[s,r]=bi(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return wn(o)?parseFloat(o):o}return bt(r)?es(r,t,n+1):r}function ts(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ns=new Set(["width","height","top","left","right","bottom",...ie]),xi={test:e=>e==="auto",parse:e=>e},ss=e=>t=>t.test(e),rs=[se,v,ee,G,ur,cr,xi],en=e=>rs.find(ss(e));function wi(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vn(e):!0}const Vi=new Set(["brightness","contrast","saturate","opacity"]);function Ti(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(vt)||[];if(!s)return e;const r=n.replace(s,"");let i=Vi.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const Si=/\b([a-z-]*)\(.*?\)/gu,ot={...re,getAnimatableNone:e=>{const t=e.match(Si);return t?t.map(Ti).join(" "):e}},tn={...se,transform:Math.round},Ai={rotate:G,rotateX:G,rotateY:G,rotateZ:G,scale:xe,scaleX:xe,scaleY:xe,scaleZ:xe,skew:G,skewX:G,skewY:G,distance:v,translateX:v,translateY:v,translateZ:v,x:v,y:v,z:v,perspective:v,transformPerspective:v,opacity:ue,originX:Wt,originY:Wt,originZ:v},Pt={borderWidth:v,borderTopWidth:v,borderRightWidth:v,borderBottomWidth:v,borderLeftWidth:v,borderRadius:v,radius:v,borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomRightRadius:v,borderBottomLeftRadius:v,width:v,maxWidth:v,height:v,maxHeight:v,top:v,right:v,bottom:v,left:v,padding:v,paddingTop:v,paddingRight:v,paddingBottom:v,paddingLeft:v,margin:v,marginTop:v,marginRight:v,marginBottom:v,marginLeft:v,backgroundPositionX:v,backgroundPositionY:v,...Ai,zIndex:tn,fillOpacity:ue,strokeOpacity:ue,numOctaves:tn},Ci={...Pt,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:ot,WebkitFilter:ot},is=e=>Ci[e];function os(e,t){let n=is(e);return n!==ot&&(n=re),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Mi=new Set(["auto","none","0"]);function Pi(e,t,n){let s=0,r;for(;s<e.length&&!r;){const i=e[s];typeof i=="string"&&!Mi.has(i)&&de(i).values.length&&(r=e[s]),s++}if(r&&n)for(const i of t)e[i]=os(n,r)}class Ri extends Ct{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),bt(u))){const l=es(u,n.current);l!==void 0&&(t[c]=l),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ns.has(s)||t.length!==2)return;const[r,i]=t,o=en(r),a=en(i);if(o!==a)if(Xt(o)&&Xt(a))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else q[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let r=0;r<t.length;r++)(t[r]===null||wi(t[r]))&&s.push(r);s.length&&Pi(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=q[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(s,r).jump(r,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=s.length-1,o=s[i];s[i]=q[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function Ei(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const r=(n==null?void 0:n[e])??s.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const as=(e,t)=>t&&typeof e=="number"?t.transform(e):e,nn=30,Ii=e=>!isNaN(parseFloat(e));class Fi{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{var o,a;const i=k.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();r&&((a=this.events.renderRequest)==null||a.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=k.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ii(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&mt(!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 Sn);const s=this.events[t].add(n);return t==="change"?()=>{s(),j.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=k.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nn);return An(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pe(e,t){return new Fi(e,t)}const{schedule:Di}=kn(queueMicrotask,!1),Oi={y:!1};function ki(){return Oi.y}function ls(e,t){const n=Ei(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function sn(e){return!(e.pointerType==="touch"||ki())}function Ni(e,t,n={}){const[s,r,i]=ls(e,n),o=a=>{if(!sn(a))return;const{target:c}=a,u=t(c,a);if(typeof u!="function"||!c)return;const l=d=>{sn(d)&&(u(d),c.removeEventListener("pointerleave",l))};c.addEventListener("pointerleave",l,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}const cs=(e,t)=>t?e===t?!0:cs(e,t.parentElement):!1,ji=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Li=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Bi(e){return Li.has(e.tagName)||e.tabIndex!==-1}const Te=new WeakSet;function rn(e){return t=>{t.key==="Enter"&&e(t)}}function _e(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ki=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=rn(()=>{if(Te.has(n))return;_e(n,"down");const r=rn(()=>{_e(n,"up")}),i=()=>_e(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function on(e){return ji(e)&&!0}function $i(e,t,n={}){const[s,r,i]=ls(e,n),o=a=>{const c=a.currentTarget;if(!on(a))return;Te.add(c);const u=t(c,a),l=(h,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Te.has(c)&&Te.delete(c),on(h)&&typeof u=="function"&&u(h,{success:g})},d=h=>{l(h,c===window||c===document||n.useGlobalTarget||cs(c,h.target))},f=h=>{l(h,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),Mt(a)&&(a.addEventListener("focus",u=>Ki(u,r)),!Bi(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}const O=e=>!!(e&&e.getVelocity),Wi=[...rs,E,re],Gi=e=>Wi.find(ss(e)),Rt=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class zi extends dt.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,r=Mt(s)&&s.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=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function _i({children:e,isPresent:t,anchorX:n}){const s=p.useId(),r=p.useRef(null),i=p.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=p.useContext(Rt);return p.useInsertionEffect(()=>{const{width:a,height:c,top:u,left:l,right:d}=i.current;if(t||!r.current||!a||!c)return;const f=n==="left"?`left: ${l}`:`right: ${d}`;r.current.dataset.motionPopId=s;const h=document.createElement("style");return o&&(h.nonce=o),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${s}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${a}px !important;
|
|
5
|
-
height: ${c}px !important;
|
|
6
|
-
${f}px !important;
|
|
7
|
-
top: ${u}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[t]),R.jsxRuntimeExports.jsx(zi,{isPresent:t,childRef:r,sizeRef:i,children:dt.cloneElement(e,{ref:r})})}const Ui=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=ft(Hi),u=p.useId();let l=!0,d=p.useMemo(()=>(l=!1,{id:u,initial:t,isPresent:n,custom:r,onExitComplete:f=>{c.set(f,!0);for(const h of c.values())if(!h)return;s&&s()},register:f=>(c.set(f,!1),()=>c.delete(f))}),[n,c,s]);return i&&l&&(d={...d}),p.useMemo(()=>{c.forEach((f,h)=>c.set(h,!1))},[n]),dt.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),o==="popLayout"&&(e=R.jsxRuntimeExports.jsx(_i,{isPresent:n,anchorX:a,children:e})),R.jsxRuntimeExports.jsx(Ee.Provider,{value:d,children:e})};function Hi(){return new Map}function qi(e=!0){const t=p.useContext(Ee);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=p.useId();p.useEffect(()=>{if(e)return r(i)},[e]);const o=p.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const we=e=>e.key||"";function an(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const us=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,u]=qi(o),l=p.useMemo(()=>an(e),[e]),d=o&&!c?[]:l.map(we),f=p.useRef(!0),h=p.useRef(l),g=ft(()=>new Map),[x,T]=p.useState(l),[m,A]=p.useState(l);xn(()=>{f.current=!1,h.current=l;for(let y=0;y<m.length;y++){const w=we(m[y]);d.includes(w)?g.delete(w):g.get(w)!==!0&&g.set(w,!1)}},[m,d.length,d.join("-")]);const b=[];if(l!==x){let y=[...l];for(let w=0;w<m.length;w++){const M=m[w],V=we(M);d.includes(V)||(y.splice(w,0,M),b.push(M))}return i==="wait"&&b.length&&(y=b),A(an(y)),T(l),null}process.env.NODE_ENV!=="production"&&i==="wait"&&m.length>1;const{forceRender:C}=p.useContext(vn);return R.jsxRuntimeExports.jsx(R.jsxRuntimeExports.Fragment,{children:m.map(y=>{const w=we(y),M=o&&!c?!1:l===m||d.includes(w),V=()=>{if(g.has(w))g.set(w,!0);else return;let I=!0;g.forEach(D=>{D||(I=!1)}),I&&(C==null||C(),A(h.current),o&&(u==null||u()),s&&s())};return R.jsxRuntimeExports.jsx(Ui,{isPresent:M,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,onExitComplete:M?void 0:V,anchorX:a,children:y},w)})})},Et=p.createContext({strict:!1}),ln={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"]},te={};for(const e in ln)te[e]={isEnabled:t=>ln[e].some(n=>!!t[n])};function cn(e){for(const t in e)te[t]={...te[t],...e[t]}}function Yi({children:e,features:t,strict:n=!1}){const[,s]=p.useState(!Ue(t)),r=p.useRef(void 0);if(!Ue(t)){const{renderer:i,...o}=t;r.current=i,cn(o)}return p.useEffect(()=>{Ue(t)&&t().then(({renderer:i,...o})=>{cn(o),r.current=i,s(!0)})},[]),R.jsxRuntimeExports.jsx(Et.Provider,{value:{renderer:r.current,strict:n},children:e})}function Ue(e){return typeof e=="function"}const Xi=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 Re(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Xi.has(e)}let ds=e=>!Re(e);function Zi(e){typeof e=="function"&&(ds=t=>t.startsWith("on")?!Re(t):e(t))}try{Zi(require("@emotion/is-prop-valid").default)}catch{}function Ji(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(ds(r)||n===!0&&Re(r)||!t&&!Re(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function Qi(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>(process.env.NODE_ENV!=="production"&&mt(!1,"motion() is deprecated. Use motion.create() instead."),e(...s));return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const De=p.createContext({});function Oe(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fe(e){return typeof e=="string"||Array.isArray(e)}const It=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ft=["initial",...It];function ke(e){return Oe(e.animate)||Ft.some(t=>fe(e[t]))}function fs(e){return!!(ke(e)||e.variants)}function eo(e,t){if(ke(e)){const{initial:n,animate:s}=e;return{initial:n===!1||fe(n)?n:void 0,animate:fe(s)?s:void 0}}return e.inherit!==!1?t:{}}function to(e){const{initial:t,animate:n}=eo(e,p.useContext(De));return p.useMemo(()=>({initial:t,animate:n}),[un(t),un(n)])}function un(e){return Array.isArray(e)?e.join(" "):e}const no=Symbol.for("motionComponentSymbol");function hs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function so(e,t,n){return p.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):hs(n)&&(n.current=s))},[t])}const Dt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ro="framerAppearId",ps="data-"+Dt(ro),io=p.createContext({});function oo(e,t,n,s,r){var x,T;const{visualElement:i}=p.useContext(De),o=p.useContext(Et),a=p.useContext(Ee),c=p.useContext(Rt).reducedMotion,u=p.useRef(null);s=s||o.renderer,!u.current&&s&&(u.current=s(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const l=u.current,d=p.useContext(io);l&&!l.projection&&r&&(l.type==="html"||l.type==="svg")&&ao(u.current,n,r,d);const f=p.useRef(!1);p.useInsertionEffect(()=>{l&&f.current&&l.update(n,a)});const h=n[ps],g=p.useRef(!!h&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,h))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,h)));return xn(()=>{l&&(f.current=!0,window.MotionIsMounted=!0,l.updateFeatures(),Di.render(l.render),g.current&&l.animationState&&l.animationState.animateChanges())}),p.useEffect(()=>{l&&(!g.current&&l.animationState&&l.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,h)}),g.current=!1))}),l}function ao(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutCrossfade:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ms(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&hs(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,crossfade:l,layoutScroll:c,layoutRoot:u})}function ms(e){if(e)return e.options.allowProjection!==!1?e.projection:ms(e.parent)}function lo({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){function i(a,c){let u;const l={...p.useContext(Rt),...a,layoutId:co(a)},{isStatic:d}=l,f=to(a),h=s(a,d);if(!d&&ht){uo(l,e);const g=fo(l);u=g.MeasureLayout,f.visualElement=oo(r,h,l,t,g.ProjectionNode)}return R.jsxRuntimeExports.jsxs(De.Provider,{value:f,children:[u&&f.visualElement?R.jsxRuntimeExports.jsx(u,{visualElement:f.visualElement,...l}):null,n(r,a,so(h,f.visualElement,c),h,d,f.visualElement)]})}i.displayName=`motion.${typeof r=="string"?r:`create(${r.displayName??r.name??""})`}`;const o=p.forwardRef(i);return o[no]=r,o}function co({layoutId:e}){const t=p.useContext(vn).id;return t&&e!==void 0?t+"-"+e:e}function uo(e,t){p.useContext(Et).strict,process.env.NODE_ENV}function fo(e){const{drag:t,layout:n}=te;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const ho={};function gs(e,{layout:t,layoutId:n}){return oe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ho[e]||e==="opacity")}const po={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mo=ie.length;function go(e,t,n){let s="",r=!0;for(let i=0;i<mo;i++){const o=ie[i],a=e[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const u=as(a,Pt[o]);if(!c){r=!1;const l=po[o]||o;s+=`${l}(${u}) `}n&&(t[o]=u)}}return s=s.trim(),n?s=n(t,r?"":s):r&&(s="none"),s}function Ot(e,t,n){const{style:s,vars:r,transformOrigin:i}=e;let o=!1,a=!1;for(const c in t){const u=t[c];if(oe.has(c)){o=!0;continue}else if(jn(c)){r[c]=u;continue}else{const l=as(u,Pt[c]);c.startsWith("origin")?(a=!0,i[c]=l):s[c]=l}}if(t.transform||(o||n?s.transform=go(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=i;s.transformOrigin=`${c} ${u} ${l}`}}const kt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ys(e,t,n){for(const s in t)!O(t[s])&&!gs(s,n)&&(e[s]=t[s])}function yo({transformTemplate:e},t){return p.useMemo(()=>{const n=kt();return Ot(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bo(e,t){const n=e.style||{},s={};return ys(s,n,e),Object.assign(s,yo(e,t)),s}function vo(e,t){const n={},s=bo(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,n}const xo={offset:"stroke-dashoffset",array:"stroke-dasharray"},wo={offset:"strokeDashoffset",array:"strokeDasharray"};function Vo(e,t,n=1,s=0,r=!0){e.pathLength=1;const i=r?xo:wo;e[i.offset]=v.transform(-s);const o=v.transform(t),a=v.transform(n);e[i.array]=`${o} ${a}`}function bs(e,{attrX:t,attrY:n,attrScale:s,pathLength:r,pathSpacing:i=1,pathOffset:o=0,...a},c,u,l){if(Ot(e,a,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(l==null?void 0:l.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),r!==void 0&&Vo(d,r,i,o,!1)}const vs=()=>({...kt(),attrs:{}}),xs=e=>typeof e=="string"&&e.toLowerCase()==="svg";function To(e,t,n,s){const r=p.useMemo(()=>{const i=vs();return bs(i,t,xs(s),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ys(i,e.style,e),r.style={...i,...r.style}}return r}const So=["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 Nt(e){return typeof e!="string"||e.includes("-")?!1:!!(So.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ao(e=!1){return(n,s,r,{latestValues:i},o)=>{const c=(Nt(n)?To:vo)(s,i,o,n),u=Ji(s,typeof n=="string",e),l=n!==p.Fragment?{...u,...c,ref:r}:{},{children:d}=s,f=p.useMemo(()=>O(d)?d.get():d,[d]);return p.createElement(n,{...l,children:f})}}function dn(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function jt(e,t,n,s){if(typeof t=="function"){const[r,i]=dn(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=dn(s);t=t(n!==void 0?n:e.custom,r,i)}return t}function Co(e){return O(e)?e.get():e}function Mo({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,r){return{latestValues:Po(n,s,r,e),renderState:t()}}const ws=e=>(t,n)=>{const s=p.useContext(De),r=p.useContext(Ee),i=()=>Mo(e,t,s,r);return n?i():ft(i)};function Po(e,t,n,s){const r={},i=s(e,{});for(const f in i)r[f]=Co(i[f]);let{initial:o,animate:a}=e;const c=ke(e),u=fs(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let l=n?n.initial===!1:!1;l=l||o===!1;const d=l?a:o;if(d&&typeof d!="boolean"&&!Oe(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const g=jt(e,f[h]);if(g){const{transitionEnd:x,transition:T,...m}=g;for(const A in m){let b=m[A];if(Array.isArray(b)){const C=l?b.length-1:0;b=b[C]}b!==null&&(r[A]=b)}for(const A in x)r[A]=x[A]}}}return r}function Lt(e,t,n){var i;const{style:s}=e,r={};for(const o in s)(O(s[o])||t.style&&O(t.style[o])||gs(o,e)||((i=n==null?void 0:n.getValue(o))==null?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}const Ro={useVisualState:ws({scrapeMotionValuesFromProps:Lt,createRenderState:kt})};function Vs(e,t,n){const s=Lt(e,t,n);for(const r in e)if(O(e[r])||O(t[r])){const i=ie.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}const Eo={useVisualState:ws({scrapeMotionValuesFromProps:Vs,createRenderState:vs})};function Io(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...Nt(s)?Eo:Ro,preloadedFeatures:e,useRender:Ao(r),createVisualElement:t,Component:s};return lo(o)}}const Fo=Io(),Do=Qi(Fo);function he(e,t,n){const s=e.getProps();return jt(s,t,n!==void 0?n:s.custom,e)}const at=e=>Array.isArray(e);function Oo(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pe(n))}function ko(e){return at(e)?e[e.length-1]||0:e}function No(e,t){const n=he(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=ko(i[o]);Oo(e,o,a)}}function jo(e){return!!(O(e)&&e.add)}function Lo(e,t){const n=e.getValue("willChange");if(jo(n))return n.add(t);if(!n&&$.WillChange){const s=new $.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Bo(e){return e.props[ps]}const Ko=e=>e!==null;function $o(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(Ko),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}const Wo={type:"spring",stiffness:500,damping:25,restSpeed:10},Go=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zo={type:"keyframes",duration:.8},_o={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uo=(e,{keyframes:t})=>t.length>2?zo:oe.has(e)?e.startsWith("scale")?Go(t[1]):Wo:_o;function Ho({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:u,...l}){return!!Object.keys(l).length}const qo=(e,t,n,s={},r,i)=>o=>{const a=ts(s,e)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-L(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};Ho(a)||Object.assign(l,Uo(e,l)),l.duration&&(l.duration=L(l.duration)),l.repeatDelay&&(l.repeatDelay=L(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let d=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(l.duration=0,l.delay===0&&(d=!0)),($.instantAnimations||$.skipAnimations)&&(d=!0,l.duration=0,l.delay=0),l.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=$o(l.keyframes,a);if(f!==void 0){j.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new At(l):new gi(l)};function Yo({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Ts(e,t,{delay:n=0,transitionOverride:s,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...a}=t;s&&(i=s);const c=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const l in a){const d=e.getValue(l,e.latestValues[l]??null),f=a[l];if(f===void 0||u&&Yo(u,l))continue;const h={delay:n,...ts(i||{},l)},g=d.get();if(g!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===g&&!h.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const m=Bo(e);if(m){const A=window.MotionHandoffAnimation(m,l,j);A!==null&&(h.startTime=A,x=!0)}}Lo(e,l),d.start(qo(l,d,f,e.shouldReduceMotion&&ns.has(l)?{type:!1}:h,e,x));const T=d.animation;T&&c.push(T)}return o&&Promise.all(c).then(()=>{j.update(()=>{o&&No(e,o)})}),c}function lt(e,t,n={}){var c;const s=he(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);const i=s?()=>Promise.all(Ts(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:d,staggerDirection:f}=r;return Xo(e,t,l+u,d,f,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[u,l]=a==="beforeChildren"?[i,o]:[o,i];return u().then(()=>l())}else return Promise.all([i(),o(n.delay)])}function Xo(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,c=r===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(e.variantChildren).sort(Zo).forEach((u,l)=>{u.notify("AnimationStart",t),o.push(lt(u,t,{...i,delay:n+c(l)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function Zo(e,t){return e.sortNodePosition(t)}function Jo(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>lt(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=lt(e,t,n);else{const r=typeof t=="function"?he(e,t,n.custom):t;s=Promise.all(Ts(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function Ss(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const Qo=Ft.length;function As(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?As(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Qo;n++){const s=Ft[n],r=e.props[s];(fe(r)||r===!1)&&(t[s]=r)}return t}const ea=[...It].reverse(),ta=It.length;function na(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Jo(e,n,s)))}function sa(e){let t=na(e),n=fn(),s=!0;const r=c=>(u,l)=>{var f;const d=he(e,l,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:g,...x}=d;u={...u,...x,...g}}return u};function i(c){t=c(e)}function o(c){const{props:u}=e,l=As(e.parent)||{},d=[],f=new Set;let h={},g=1/0;for(let T=0;T<ta;T++){const m=ea[T],A=n[m],b=u[m]!==void 0?u[m]:l[m],C=fe(b),y=m===c?A.isActive:null;y===!1&&(g=T);let w=b===l[m]&&b!==u[m]&&C;if(w&&s&&e.manuallyAnimateOnMount&&(w=!1),A.protectedKeys={...h},!A.isActive&&y===null||!b&&!A.prevProp||Oe(b)||typeof b=="boolean")continue;const M=ra(A.prevProp,b);let V=M||m===c&&A.isActive&&!w&&C||T>g&&C,I=!1;const D=Array.isArray(b)?b:[b];let W=D.reduce(r(m),{});y===!1&&(W={});const{prevResolvedValues:ye={}}=A,Ne={...ye,...W},be=F=>{V=!0,f.has(F)&&(I=!0,f.delete(F)),A.needsAnimating[F]=!0;const B=e.getValue(F);B&&(B.liveStyle=!1)};for(const F in Ne){const B=W[F],Le=ye[F];if(h.hasOwnProperty(F))continue;let Be=!1;at(B)&&at(Le)?Be=!Ss(B,Le):Be=B!==Le,Be?B!=null?be(F):f.add(F):B!==void 0&&f.has(F)?be(F):A.protectedKeys[F]=!0}A.prevProp=b,A.prevResolvedValues=W,A.isActive&&(h={...h,...W}),s&&e.blockInitialAnimation&&(V=!1),V&&(!(w&&M)||I)&&d.push(...D.map(F=>({animation:F,options:{type:m}})))}if(f.size){const T={};if(typeof u.initial!="boolean"){const m=he(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(T.transition=m.transition)}f.forEach(m=>{const A=e.getBaseTarget(m),b=e.getValue(m);b&&(b.liveStyle=!0),T[m]=A??null}),d.push({animation:T})}let x=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),s=!1,x?t(d):Promise.resolve()}function a(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var h;return(h=f.animationState)==null?void 0:h.setActive(c,u)}),n[c].isActive=u;const l=o(c);for(const f in n)n[f].protectedKeys={};return l}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=fn(),s=!0}}}function ra(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ss(t,e):!1}function _(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fn(){return{animate:_(!0),whileInView:_(),whileHover:_(),whileTap:_(),whileDrag:_(),whileFocus:_(),exit:_()}}class ae{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ia extends ae{constructor(t){super(t),t.animationState||(t.animationState=sa(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Oe(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let oa=0;class aa extends ae{constructor(){super(...arguments),this.id=oa++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.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 la={animation:{Feature:ia},exit:{Feature:aa}};function hn(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Cs(e){return{point:{x:e.pageX,y:e.pageY}}}function ca({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function ua(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}const pn=()=>({min:0,max:0}),Ms=()=>({x:pn(),y:pn()});function da(e,t){return ca(ua(e.getBoundingClientRect(),t))}function mn(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&j.postRender(()=>i(t,Cs(t)))}class fa extends ae{mount(){const{current:t}=this.node;t&&(this.unmount=Ni(t,(n,s)=>(mn(this.node,s,"Start"),r=>mn(this.node,r,"End"))))}unmount(){}}class ha extends ae{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=Ie(hn(this.node.current,"focus",()=>this.onFocus()),hn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gn(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&j.postRender(()=>i(t,Cs(t)))}class pa extends ae{mount(){const{current:t}=this.node;t&&(this.unmount=$i(t,(n,s)=>(gn(this.node,s,"Start"),(r,{success:i})=>gn(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ct=new WeakMap,He=new WeakMap,ma=e=>{const t=ct.get(e.target);t&&t(e)},ga=e=>{e.forEach(ma)};function ya({root:e,...t}){const n=e||document;He.has(n)||He.set(n,{});const s=He.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(ga,{root:e,...t})),s[r]}function ba(e,t,n){const s=ya(t);return ct.set(e,n),s.observe(e),()=>{ct.delete(e),s.unobserve(e)}}const va={some:0,all:1};class xa extends ae{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:va[r]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:d}=this.node.getProps(),f=u?l:d;f&&f(c)};return ba(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wa(t,n))&&this.startObserver()}unmount(){}}function wa({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Va={inView:{Feature:xa},tap:{Feature:pa},focus:{Feature:ha},hover:{Feature:fa}},ut={current:null},Ps={current:!1};function Ta(){if(Ps.current=!0,!!ht)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ut.current=e.matches;e.addListener(t),t()}else ut.current=!1}const Sa=new WeakMap;function Aa(e,t,n){for(const s in t){const r=t[s],i=n[s];if(O(r))e.addValue(s,r);else if(O(i))e.addValue(s,Pe(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,Pe(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const yn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ca{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ct,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=k.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,j.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=ke(n),this.isVariantNode=fs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];c[f]!==void 0&&O(h)&&h.set(c[f],!1)}}mount(t){this.current=t,Sa.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,s)=>this.bindToMotionValue(s,n)),Ps.current||Ta(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ut.current,process.env.NODE_ENV!=="production"&&mt(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),qe(this.notifyUpdate),qe(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=oe.has(t);s&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&j.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i(),o&&o(),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 te){const n=te[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(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):Ms()}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 s=0;s<yn.length;s++){const r=yn[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=t[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=Aa(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 s=this.values.get(t);n!==s&&(s&&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 s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Pe(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(wn(s)||Vn(s))?s=parseFloat(s):!Gi(s)&&re.test(n)&&(s=os(t,n)),this.setBaseTarget(t,O(s)?s.get():s)),O(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=jt(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(s=o[t])}if(n&&s!==void 0)return s;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!O(r)?r:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Sn),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Rs extends Ca{constructor(){super(...arguments),this.KeyframeResolver=Ri}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:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;O(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Es(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}function Ma(e){return window.getComputedStyle(e)}class Pa extends Rs{constructor(){super(...arguments),this.type="html",this.renderInstance=Es}readValueFromInstance(t,n){var s;if(oe.has(n))return(s=this.projection)!=null&&s.isProjecting?tt(n):Hr(t,n);{const r=Ma(t),i=(jn(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return da(t,n)}build(t,n,s){Ot(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Lt(t,n,s)}}const Is=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 Ra(e,t,n,s){Es(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(Is.has(r)?r:Dt(r),t.attrs[r])}class Ea extends Rs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ms}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(oe.has(n)){const s=is(n);return s&&s.default||0}return n=Is.has(n)?n:Dt(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Vs(t,n,s)}build(t,n,s){bs(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,r){Ra(t,n,s,r)}mount(t){this.isSVGTag=xs(t.tagName),super.mount(t)}}const Ia=(e,t)=>Nt(e)?new Ea(t):new Pa(t,{allowProjection:e!==p.Fragment}),Fa={renderer:Ia,...la,...Va},Fs=e=>{const{ripples:t=[],motionProps:n,color:s="currentColor",style:r,onClear:i}=e;return R.jsxRuntimeExports.jsx(R.jsxRuntimeExports.Fragment,{children:t.map(o=>{const a=Ls(.01*o.size,.2,o.size>100?.75:.5);return R.jsxRuntimeExports.jsx(Yi,{features:Fa,children:R.jsxRuntimeExports.jsx(us,{mode:"popLayout",children:R.jsxRuntimeExports.jsx(Do.span,{animate:{transform:"scale(2)",opacity:0},className:"ripple-item-span",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:s,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:o.y,left:o.x,width:`${o.size}px`,height:`${o.size}px`,...r},transition:{duration:a},onAnimationComplete:()=>{i(o.key)},...n})})},o.key)})})};Fs.displayName="LizaUI.Ripple";const Da=()=>R.jsxRuntimeExports.jsx("div",{"aria-label":"Loading",className:"relative inline-flex flex-col gap-2 items-center justify-center",children:R.jsxRuntimeExports.jsxs("div",{className:"relative flex w-5 h-5",children:[R.jsxRuntimeExports.jsx("i",{className:"absolute w-full h-full rounded-full border-2 border-b-current animate-spinner-ease-spin border-solid border-t-transparent border-l-transparent border-r-transparent"}),R.jsxRuntimeExports.jsx("i",{className:"absolute w-full h-full rounded-full border-2 border-b-current opacity-75 animate-spinner-linear-spin border-dotted border-t-transparent border-l-transparent border-r-transparent"})]})}),Ds=p.forwardRef((e,t)=>{const{Component:n,domRef:s,children:r,isIconOnly:i,isLoading:o,spinner:a,spinnerPlacement:c,startContent:u,endContent:l,getButtonProps:d,getRippleProps:f}=$s({...e,ref:t}),h=p.useMemo(()=>R.jsxRuntimeExports.jsx(Da,{}),[]),g=a??h;return R.jsxRuntimeExports.jsxs(n,{...d(),ref:s,children:[u,o&&c==="start"&&g,o&&i?null:r,o&&c==="end"&&g,l,R.jsxRuntimeExports.jsx(Fs,{...f()})]})});Ds.displayName="Custom.Button";exports.AnimatePresence=us;exports.Button=Ds;exports.button=bn;
|
|
10
|
-
//# sourceMappingURL=button-CBLcH0I-.js.map
|