PageSourceSearch

https://diptendubarman.in/_next/static/chunks/0sdvr_ji7k54j.js

js diptendubarman.in collected 2026-10-09 22:07:29 UTC 166,916 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67881,91918,25913,47163,t=>{"use strict";let e,i,n,r,s;var o,a=t.i(43476),l=t.i(71645),u=Object.defineProperty,h=(t,e)=>u(t,"name",{value:e,configurable:!0});function c(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function d(...t){return e=>{let i=!1,n=t.map(t=>{let n=c(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():c(t[e],null)}}}}function p(...t){return l.useCallback(d(...t),t)}h(c,"setRef"),h(d,"composeRefs"),h(p,"useComposedRefs");var m=Object.defineProperty,f=(t,e)=>m(t,"name",{value:e,configurable:!0});function g(t){let e=l.forwardRef((e,i)=>{let{children:n,...r}=e,s=null,o=!1,a=[];T(n)&&"function"==typeof M&&(n=M(n._payload)),l.Children.forEach(n,t=>{if(k(t)){o=!0;let e="child"in t.props?t.props.child:t.props.children;T(e)&&"function"==typeof M&&(e=M(e._payload)),s=b(t,e),a.push(s?.props?.children)}else a.push(t)}),s?s=l.cloneElement(s,void 0,a):!o&&1===l.Children.count(n)&&l.isValidElement(n)&&(s=n);let u=s?w(s):void 0,h=p(i,u);if(!s){if(n||0===n)throw Error(o?A(t):E(t));return n}let c=x(r,s.props??{});return s.type!==l.Fragment&&(c.ref=i?h:u),l.cloneElement(s,c)});return e.displayName=`${t}.Slot`,e}f(g,"createSlot");var y=g("Slot"),v=Symbol.for("radix.slottable");f(function(t){let e=f(t=>"child"in t?t.children(t.child):t.children,"Slottable");return e.displayName=`${t}.Slottable`,e.__radixId=v,e},"createSlottable");var b=f((t,e)=>{if("child"in t.props){let e=t.props.child;return l.isValidElement(e)?l.cloneElement(e,void 0,t.props.children(e.props.children)):null}return l.isValidElement(e)?e:null},"getSlottableElementFromSlottable");function x(t,e){let i={...e};for(let n in e){let r=t[n],s=e[n];/^on[A-Z]/.test(n)?r&&s?i[n]=(...t)=>{let e=s(...t);return r(...t),e}:r&&(i[n]=r):"style"===n?i[n]={...r,...s}:"className"===n&&(i[n]=[r,s].filter(Boolean).join(" "))}return{...t,...i}}function w(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,i=e&&"isReactWarning"in e&&e.isReactWarning;return i?t.ref:(i=(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?t.props.ref:t.props.ref||t.ref}function k(t){return l.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===v}f(x,"mergeProps"),f(w,"getElementRef"),f(k,"isSlottable");var S=Symbol.for("react.lazy");function T(t){return null!=t&&"object"==typeof t&&"$$typeof"in t&&t.$$typeof===S&&"_payload"in t&&P(t._payload)}function P(t){return"object"==typeof t&&null!==t&&"then"in t}f(T,"isLazyComponent"),f(P,"isPromiseLike");var E=f(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),A=f(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),M=l[" use ".trim().toString()];function C(){for(var t,e,i=0,n="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=function t(e){var i,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(n=t(e[i]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}(t))&&(n&&(n+=" "),n+=e);return n}t.s(["Slot",0,y,"createSlot",0,g],91918);let V=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,R=(t,e)=>i=>{var n;if((null==e?void 0:e.variants)==null)return C(t,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:r,defaultVariants:s}=e,o=Object.keys(r).map(t=>{let e=null==i?void 0:i[t],n=null==s?void 0:s[t];if(null===e)return null;let o=V(e)||V(n);return r[t][o]}),a=i&&Object.entries(i).reduce((t,e)=>{let[i,n]=e;return void 0===n||(t[i]=n),t},{});return C(t,o,null==e||null==(n=e.compoundVariants)?void 0:n.reduce((t,e)=>{let{class:i,className:n,...r}=e;return Object.entries(r).every(t=>{let[e,i]=t;return Array.isArray(i)?i.includes({...s,...a}[e]):({...s,...a})[e]===i})?[...t,i,n]:t},[]),null==i?void 0:i.class,null==i?void 0:i.className)};t.s(["cva",0,R],25913);let D=(t=new Map,e=null,i)=>({nextPart:t,validators:e,classGroupId:i}),L=[],j=(t,e,i)=>{if(0==t.length-e)return i.classGroupId;let n=t[e],r=i.nextPart.get(n);if(r){let i=j(t,e+1,r);if(i)return i}let s=i.validators;if(null===s)return;let o=0===e?t.join("-"):t.slice(e).join("-"),a=s.length;for(let t=0;t<a;t++){let e=s[t];if(e.validator(o))return e.classGroupId}},I=(t,e)=>{let i=D();for(let n in t)B(t[n],i,n,e);return i},B=(t,e,i,n)=>{let r=t.length;for(let s=0;s<r;s++)F(t[s],e,i,n)},F=(t,e,i,n)=>{"string"==typeof t?O(t,e,i):"function"==typeof t?z(t,e,i,n):N(t,e,i,n)},O=(t,e,i)=>{(""===t?e:$(e,t)).classGroupId=i},z=(t,e,i,n)=>{U(t)?B(t(n),e,i,n):(null===e.validators&&(e.validators=[]),e.validators.push({classGroupId:i,validator:t}))},N=(t,e,i,n)=>{let r=Object.entries(t),s=r.length;for(let t=0;t<s;t++){let[s,o]=r[t];B(o,$(e,s),i,n)}},$=(t,e)=>{let i=t,n=e.split("-"),r=n.length;for(let t=0;t<r;t++){let e=n[t],r=i.nextPart.get(e);r||(r=D(),i.nextPart.set(e,r)),i=r}return i},U=t=>"isThemeGetter"in t&&!0===t.isThemeGetter,W=[],H=(t,e,i,n,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:i,maybePostfixModifierPosition:n,isExternal:r}),G=/\s+/,Y=t=>{let e;if("string"==typeof t)return t;let i="";for(let n=0;n<t.length;n++)t[n]&&(e=Y(t[n]))&&(i&&(i+=" "),i+=e);return i},X=[],K=t=>{let e=e=>e[t]||X;return e.isThemeGetter=!0,e},_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,q=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Z=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Q=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,J=/\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$/,tt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,te=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ti=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tn=t=>Z.test(t),tr=t=>!!t&&!Number.isNaN(Number(t)),ts=t=>!!t&&Number.isInteger(Number(t)),to=t=>
1t.endsWith("%")&&tr(t.slice(0,-1)),ta=t=>Q.test(t),tl=()=>!0,tu=t=>J.test(t)&&!tt.test(t),th=()=>!1,tc=t=>te.test(t),td=t=>ti.test(t),tp=t=>!tg(t)&&!tT(t),tm=t=>t.startsWith("@container")&&("/"===t[10]&&void 0!==t[11]||"s"===t[11]&&void 0!==t[16]&&t.startsWith("-size/",10)||"n"===t[11]&&void 0!==t[18]&&t.startsWith("-normal/",10)),tf=t=>tD(t,tB,th),tg=t=>_.test(t),ty=t=>tD(t,tF,tu),tv=t=>tD(t,tO,tr),tb=t=>tD(t,tN,tl),tx=t=>tD(t,tz,th),tw=t=>tD(t,tj,th),tk=t=>tD(t,tI,td),tS=t=>tD(t,t$,tc),tT=t=>q.test(t),tP=t=>tL(t,tF),tE=t=>tL(t,tz),tA=t=>tL(t,tj),tM=t=>tL(t,tB),tC=t=>tL(t,tI),tV=t=>tL(t,t$,!0),tR=t=>tL(t,tN,!0),tD=(t,e,i)=>{let n=_.exec(t);return!!n&&(n[1]?e(n[1]):i(n[2]))},tL=(t,e,i=!1)=>{let n=q.exec(t);return!!n&&(n[1]?e(n[1]):i)},tj=t=>"position"===t||"percentage"===t,tI=t=>"image"===t||"url"===t,tB=t=>"length"===t||"size"===t||"bg-size"===t,tF=t=>"length"===t,tO=t=>"number"===t,tz=t=>"family-name"===t,tN=t=>"number"===t||"weight"===t,t$=t=>"shadow"===t,tU=(o=()=>{let t=K("color"),e=K("font"),i=K("text"),n=K("font-weight"),r=K("tracking"),s=K("leading"),o=K("breakpoint"),a=K("container"),l=K("spacing"),u=K("radius"),h=K("shadow"),c=K("inset-shadow"),d=K("text-shadow"),p=K("drop-shadow"),m=K("blur"),f=K("perspective"),g=K("aspect"),y=K("ease"),v=K("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...x(),tT,tg],k=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],T=()=>[tT,tg,l],P=()=>[tn,"full","auto",...T()],E=()=>[ts,"none","subgrid",tT,tg],A=()=>["auto",{span:["full",ts,tT,tg]},ts,tT,tg],M=()=>[ts,"auto",tT,tg],C=()=>["auto","min","max","fr",tT,tg],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...T()],L=()=>[tn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],j=()=>[tn,"screen","full","dvw","lvw","svw","min","max","fit",...T()],I=()=>[tn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],B=()=>[t,tT,tg],F=()=>[...x(),tA,tw,{position:[tT,tg]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",tM,tf,{size:[tT,tg]}],N=()=>[to,tP,ty],$=()=>["","none","full",u,tT,tg],U=()=>["",tr,tP,ty],W=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[tr,to,tA,tw],Y=()=>["","none",m,tT,tg],X=()=>["none",tr,tT,tg],_=()=>["none",tr,tT,tg],q=()=>[tr,tT,tg],Z=()=>[tn,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ta],breakpoint:[ta],color:[tl],container:[ta],"drop-shadow":[ta],ease:["in","out","in-out"],font:[tp],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ta],shadow:[ta],spacing:["px",tr],text:[ta],"text-shadow":[ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",tn,tg,tT,g]}],container:["container"],"container-type":[{"@container":["","normal","size",tT,tg]}],"container-named":[tm],columns:[{columns:[tr,tg,tT,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}
vendor: 4,771 bytes, line 1
1],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[ts,"auto",tT,tg]}],basis:[{basis:[tn,"full","auto",a,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[tr,tn,"auto","initial","none",tg]}],grow:[{grow:["",tr,tT,tg]}],shrink:[{shrink:["",tr,tT,tg]}],order:[{order:[ts,"first","last","none",tT,tg]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...j()]}],"min-inline-size":[{"min-inline":["auto",...j()]}],"max-inline-size":[{"max-inline":["none",...j()]}],"block-size":[{block:["auto",...I()]}],"min-block-size":[{"min-block":["auto",...I()]}],"max-block-size":[{"max-block":["none",...I()]}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",i,tP,ty]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,tR,tb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",to,tg]}],"font-family":[{font:[tE,tx,e]}],"font-features":[{"font-features":[tg]}],"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:[r,tT,tg]}],"line-clamp":[{"line-clamp":[tr,"none",tT,tv]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",tT,tg]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",tT,tg]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[tr,"from-font","auto",tT,ty]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[tr,"auto",tT,tg]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"tab-size":[{tab:[ts,tT,tg]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tT,tg]}],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",tT,tg]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ts,tT,tg],radial:["",tT,tg],conic:[ts,tT,tg]},tC,tk]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:N()}
1],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 5,740 bytes, line 1
1],"divide-color":[{divide:B()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[tr,tT,tg]}],"outline-w":[{outline:["",tr,tP,ty]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",h,tV,tS]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",c,tV,tS]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[tr,ty]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",d,tV,tS]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[tr,tT,tg]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"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":[tr]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[tT,tg]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":x()}],"mask-image-conic-pos":[{"mask-conic":[tr]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",tT,tg]}],filter:[{filter:["","none",tT,tg]}],blur:[{blur:Y()}],brightness:[{brightness:[tr,tT,tg]}],contrast:[{contrast:[tr,tT,tg]}],"drop-shadow":[{"drop-shadow":["","none",p,tV,tS]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",tr,tT,tg]}],"hue-rotate":[{"hue-rotate":[tr,tT,tg]}],invert:[{invert:["",tr,tT,tg]}],saturate:[{saturate:[tr,tT,tg]}],sepia:[{sepia:["",tr,tT,tg]}],"backdrop-filter":[{"backdrop-filter":["","none",tT,tg]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[tr,tT,tg]}],"backdrop-contrast":[{"backdrop-contrast":[tr,tT,tg]}],"backdrop-grayscale":[{"backdrop-grayscale":["",tr,tT,tg]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[tr,tT,tg]}],"backdrop-invert":[{"backdrop-invert":["",tr,tT,tg]}],"backdrop-opacity":[{"backdrop-opacity":[tr,tT,tg]}],"backdrop-saturate":[{"backdrop-saturate":[tr,tT,tg]}],"backdrop-sepia":[{"backdrop-sepia":["",tr,tT,tg]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",tT,tg]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[tr,"initial",tT,tg]}],ease:[{ease:["linear","initial",y,tT,tg]}],delay:[{delay:[tr,tT,tg]}],animate:[{animate:["none",v,tT,tg]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,tT,tg]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[tT,tg,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],zoom:[{zoom:[ts,tT,tg]}],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}
vendor: 5,039 bytes, line 1
1],"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",tT,tg]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":B()}],"scrollbar-track-color":[{"scrollbar-track":B()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",tT,tg]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[tr,tP,ty,tv]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},s=t=>{let r=i(t);
1if(r)return r;let s=((t,e)=>{let{parseClassName:i,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:s,postfixLookupClassGroupIds:o}=e,a=[],l=t.trim().split(G),u="";for(let t=l.length-1;t>=0;t-=1){let e,h=l[t],{isExternal:c,modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:f}=i(h);if(c){u=h+(u.length>0?" "+u:u);continue}let g=!!f;if(g){let t=(e=n(m.substring(0,f)))&&o[e]?n(m):void 0;t&&t!==e&&(e=t,g=!1)}else e=n(m);if(!e){if(!g||!(e=n(m))){u=h+(u.length>0?" "+u:u);continue}g=!1}let y=0===d.length?"":1===d.length?d[0]:s(d).join(":"),v=p?y+"!":y,b=v+e;if(a.indexOf(b)>-1)continue;a.push(b);let x=r(e,g);for(let t=0;t<x.length;++t){let e=x[t];a.push(v+e)}u=h+(u.length>0?" "+u:u)}return u})(t,e);return n(t,s),s},r=t=>{var a;let l;return i=(e={cache:(t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,i=Object.create(null),n=Object.create(null),r=(r,s)=>{i[r]=s,++e>t&&(e=0,n=i,i=Object.create(null))};return{get(t){let e=i[t];return void 0!==e?e:void 0!==(e=n[t])?(r(t,e),e):void 0},set(t,e){t in i?i[t]=e:r(t,e)}}})((a=[].reduce((t,e)=>e(t),o())).cacheSize),parseClassName:(t=>{let{prefix:e,experimentalParseClassName:i}=t,n=t=>{let e,i=[],n=0,r=0,s=0,o=t.length;for(let a=0;a<o;a++){let o=t[a];if(0===n&&0===r){if(":"===o){i.push(t.slice(s,a)),s=a+1;continue}if("/"===o){e=a;continue}}"["===o?n++:"]"===o?n--:"("===o?r++:")"===o&&r--}let a=0===i.length?t:t.slice(s),l=a,u=!1;return a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0),H(i,u,l,e&&e>s?e-s:void 0)};if(e){let t=e+":",i=n;n=e=>e.startsWith(t)?i(e.slice(t.length)):H(W,!1,e,void 0,!0)}if(i){let t=n;n=e=>i({className:e,parseClassName:t})}return n})(a),sortModifiers:(l=new Map,a.orderSensitiveModifiers.forEach((t,e)=>{l.set(t,1e6+e)}),t=>{let e=[],i=[];for(let n=0;n<t.length;n++){let r=t[n],s="["===r[0],o=l.has(r);s||o?(i.length>0&&(i.sort(),e.push(...i),i=[]),e.push(r)):i.push(r)}return i.length>0&&(i.sort(),e.push(...i)),e}),postfixLookupClassGroupIds:(t=>{let e=Object.create(null),i=t.postfixLookupClassGroups;if(i)for(let t=0;t<i.length;t++)e[i[t]]=!0;return e})(a),...(t=>{let e=(t=>{let{theme:e,classGroups:i}=t;return I(i,e)})(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:t=>{if(t.startsWith("[")&&t.endsWith("]")){var i;let e,n,r;return -1===(i=t).slice(1,-1).indexOf(":")?void 0:(n=(e=i.slice(1,-1)).indexOf(":"),(r=e.slice(0,n))?"arbitrary.."+r:void 0)}let n=t.split("-"),r=+(""===n[0]&&n.length>1);return j(n,r,e)},getConflictingClassGroupIds:(t,e)=>{if(e){let e=n[t],r=i[t];if(e){if(r){let t=Array(r.length+e.length);for(let e=0;e<r.length;e++)t[e]=r[e];for(let i=0;i<e.length;i++)t[r.length+i]=e[i];return t}return e}return r||L}return i[t]||L}}})(a)}).cache.get,n=e.cache.set,r=s,s(t)},(...t)=>r(((...t)=>{let e,i,n=0,r="";for(;n<t.length;)(e=t[n++])&&(i=Y(e))&&(r&&(r+=" "),r+=i);return r})(...t)));function tW(...t){return tU(C(t))}t.s(["cn",0,tW],47163);let tH=R("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),tG=l.forwardRef(({className:t,variant:e,size:i,asChild:n=!1,...r},s)=>(0,a.jsx)(n?y:"button",{className:tW(tH({variant:e,size:i,className:t})),ref:s,...r}));tG.displayName="Button",t.s(["Button",0,tG],67881)},88653,t=>{"use strict";var e=t.i(43476),i=t.i(71645),n=t.i(31178),r=t.i(47414),s=t.i(74008),o=t.i(21476),a=t.i(72846),l=i,u=t.i(37806);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class c extends l.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,a.isHTMLElement)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,
1i=(0,a.isHTMLElement)(t)&&t.offsetWidth||0,n=(0,a.isHTMLElement)(t)&&t.offsetHeight||0,r=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top,s.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:n,anchorX:r,anchorY:s,root:o,pop:a}){let p=(0,l.useId)(),m=(0,l.useRef)(null),f=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=(0,l.useContext)(u.MotionConfigContext),y=function(...t){return i.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=h(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():h(t[e],null)}}}}(...t),t)}(m,!1!==a?t.props?.ref??t?.ref:void 0);return(0,l.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:l,right:u,bottom:h,direction:c}=f.current;if(n||!1===a||!m.current||!t||!e)return;let d="rtl"===c,y="left"===r?d?`right: ${u}`:`left: ${l}`:d?`left: ${l}`:`right: ${u}`,v="bottom"===s?`bottom: ${h}`:`top: ${i}`;m.current.dataset.motionPopId=p;let b=document.createElement("style");g&&(b.nonce=g);let x=o??document.head;return x.appendChild(b),b.sheet&&b.sheet.insertRule(`
2          [data-motion-pop-id="${p}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${e}px !important;
6            ${y}px !important;
7            ${v}px !important;
8          }
9        `),()=>{m.current?.removeAttribute("data-motion-pop-id"),x.contains(b)&&x.removeChild(b)}},[n]),(0,e.jsx)(c,{isPresent:n,childRef:m,sizeRef:f,pop:a,children:!1===a?t:l.cloneElement(t,{ref:y})})}let p=({children:t,initial:n,isPresent:a,onExitComplete:l,custom:u,presenceAffectsLayout:h,mode:c,anchorX:p,anchorY:f,root:g})=>{let y=(0,r.useConstant)(m),v=(0,i.useId)(),b=(0,i.useRef)(a),x=(0,i.useRef)(l);(0,s.useIsomorphicLayoutEffect)(()=>{b.current=a,x.current=l});let w=!0,k=(0,i.useMemo)(()=>(w=!1,{id:v,initial:n,isPresent:a,custom:u,onExitComplete:t=>{for(let e of(y.set(t,!0),y.values()))if(!e)return;l&&l()},register:t=>(y.set(t,!1),()=>{y.delete(t),b.current||y.size||x.current?.()})}),[a,y,l]);return h&&w&&(k={...k}),(0,i.useMemo)(()=>{y.forEach((t,e)=>y.set(e,!1))},[a]),i.useEffect(()=>{a||y.size||!l||l()},[a]),t=(0,e.jsx)(d,{pop:"popLayout"===c,isPresent:a,anchorX:p,anchorY:f,root:g,children:t}),(0,e.jsx)(o.PresenceContext.Provider,{value:k,children:t})};function m(){return new Map}var f=t.i(64978);let g=t=>t.key||"";function y(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}t.s(["AnimatePresence",0,({children:t,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left",anchorY:m="top",root:v})=>{let[b,x]=(0,f.usePresence)(c),w=(0,i.useMemo)(()=>y(t),[t]),k=c&&!b?[]:w.map(g),S=(0,i.useRef)(!0),T=(0,i.useRef)(w),P=(0,r.useConstant)(()=>new Map),E=(0,i.useRef)(new Set),[A,M]=(0,i.useState)(w),[C,V]=(0,i.useState)(w);(0,s.useIsomorphicLayoutEffect)(()=>{!c||b||C.length||x?.()},[b,c,C.length,x]),(0,s.useIsomorphicLayoutEffect)(()=>{S.current=!1,T.current=w;for(let t=0;t<C.length;t++){let e=g(C[t]);k.includes(e)?(P.delete(e),E.current.delete(e)):!0!==P.get(e)&&P.set(e,!1)}},[C,k.length,k.join("-")]);let R=[];if(w!==A){let t=[...w];for(let e=0;e<C.length;e++){let i=C[e],n=g(i);k.includes(n)||(t.splice(e,0,i),R.push(i))}return"wait"===h&&R.length&&(t=R),V(y(t)),M(w),null}let{forceRender:D}=(0,i.useContext)(n.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:C.map(t=>{let i=g(t),n=(!c||!!b)&&(w===C||k.includes(i));return(0,e.jsx)(p,{isPresent:n,initial:(!S.current||!!a)&&void 0,custom:o,presenceAffectsLayout:u,mode:h,root:v,onExitComplete:n?void 0:()=>{if(E.current.has(i)||!P.has(i))return;E.current.add(i),P.set(i,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(D?.(),V(T.current),c&&x?.(),l&&l())},anchorX:d,anchorY:m,children:t},i)})})}],88653)},46932,87022,31178,37806,21476,47414,74008,64978,72846,75254,35854,t=>{"use strict";let e,i,n,r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set([...r,"pathRotation"]),o=(t,e,i)=>i>e?e:i<t?t:i,a={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},l={...a,transform:t=>o(0,1,t)},u={...a,default:1},h=t=>Math.round(1e5*t)/1e5,c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,d=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,p=(t,e)=>i=>!!("string"==typeof i&&d.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),m=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(c);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},f={...a,transform:t=>Math.round(o(0,255,t))},g={test:p("rgb","red"),parse:m("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+f.transform(t)+", "+f.transform(e)+", "+f.transform(i)+", "+h(l.transform(n))+")"},y={test:p("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
9a:r?parseInt(r,16)/255:1}},transform:g.transform},v=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),b=v("deg"),x=v("%"),w=v("px"),k=v("vh"),S=v("vw"),T={...x,parse:t=>x.parse(t)/100,transform:t=>x.transform(100*t)},P={test:p("hsl","hue"),parse:m("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+x.transform(h(e))+", "+x.transform(h(i))+", "+h(l.transform(n))+")"},E={test:t=>g.test(t)||y.test(t)||P.test(t),parse:t=>g.test(t)?g.parse(t):P.test(t)?P.parse(t):y.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?g.transform(t):P.transform(t),getAnimatableNone:t=>{let e=E.parse(t);return e.alpha=0,E.transform(e)}},A=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,M="number",C="color",V=/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 R(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(V,t=>(E.test(t)?(n.color.push(s),r.push(C),i.push(E.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(M),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function D({split:t,types:e}){let i=t.length;return n=>{let r="";for(let s=0;s<i;s++)if(r+=t[s],void 0!==n[s]){let t=e[s];t===M?r+=h(n[s]):t===C?r+=E.transform(n[s]):r+=n[s]}return r}}let L={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(c)?.length||0)+(t.match(A)?.length||0)>0},parse:function(t){return R(t).values},createTransformer:function(t){return D(R(t))},getAnimatableNone:function(t){let e=R(t);return D(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:E.test(t)?E.getAnimatableNone(t):t)(t,e.split[i])))}},j=new Set(["brightness","contrast","saturate","opacity"]);function I(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(c)||[];if(!n)return t;let r=i.replace(n,""),s=+!!j.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let B=/\b([a-z-]*)\(.*?\)/gu,F={...L,getAnimatableNone:t=>{let e=t.match(B);return e?e.map(I).join(" "):t}},O={...L,getAnimatableNone:t=>{let e=L.parse(t);return L.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...a,transform:Math.round},N={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,rotate:b,pathRotation:b,rotateX:b,rotateY:b,rotateZ:b,scale:u,scaleX:u,scaleY:u,scaleZ:u,skew:b,skewX:b,skewY:b,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:l,originX:T,originY:T,originZ:w,zIndex:z,fillOpacity:l,strokeOpacity:l,numOctaves:z},$={...N,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:F,WebkitFilter:F,mask:O,WebkitMask:O},U=t=>$[t],W=()=>({translate:0,scale:1,origin:0,originPoint:0}),H=()=>({x:W(),y:W()}),G=()=>({min:0,max:0}),Y=()=>({x:G(),y:G()}),X=t=>!!(t&&t.getVelocity),K=new Set(["width","height","top","left","right","bottom",...r]),_=t=>e=>e.test(t),q=[a,w,x,b,S,k,{test:t=>"auto"===t,parse:t=>t}],Z=t=>q.find(_(t));var Q=t.i(47167);let J=()=>{},tt=()=>{};Q.default;let te=t=>e=>"string"==typeof e&&e.startsWith(t),ti=te("--"),tn=te("var(--"),tr=t=>!!tn(t)&&ts.test(t.split("/*")[0].trim()),ts=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function to(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let ta=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tl=t=>180*t/Math.PI,tu=t=>tc(tl(Math.atan2(t[1],t[0]))),th={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tu,rotateZ:tu,skewX:t=>tl(Math.atan(t[1])),skewY:t=>tl(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tc=t=>((t%=360)<0&&(t+=360),t),td=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tp=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tm={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:td,scaleY:tp,scale:t=>(td(t)+tp(t))/2,rotateX:t=>tc(tl(Math.atan2(t[6],t[5]))),rotateY:t=>tc(tl(Math.atan2(-t[2],t[0]))),rotateZ:tu,rotate:tu,skewX:t=>tl(Math.atan(t[4])),skewY:t=>tl(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tf(t){return+!!t.includes("scale")}function tg(t,e){let i,n;if(!t||"none"===t)return tf(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tm,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=th,n=e}if(!n)return tf(e);let s=i[e],o=n[1].split(",").map(ty);return"function"==typeof s?s(o):o[s]}function ty(t){return parseFloat(t.trim())}let tv=t=>t===a||t===w,tb=new Set(["x","y","z"]),tx=r.filter(t=>!tb.has(t)),tw={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tg(e,"x"),y:(t,{transform:e})=>tg(e,"y")};tw.translateX=tw.x,tw.translateY=tw.y;let tk=t=>t,tS={},tT=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tP(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tT.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0;let s=e;e=i,i=s,e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(s),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let s=tS.useManualTiming,o=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tT.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<tT.length;e++)o[tT[e]].cancel(t)},state:r,steps:o}}let{schedule:tE,cancel:tA,state:tM,steps:tC}=tP("u">typeof requestAnimationFrame?requestAnimationFrame:tk,!0);t.s(["cancelFrame",0,tA,"frame",0,tE,"frameData",0,tM,"frameSteps",0,tC],87022);let tV=new Set,tR=!1,tD=!1,tL=!1;function tj(){if(tD){let t=Array.from(tV).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tx.forEach(i=>
9{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tD=!1,tR=!1,tV.forEach(t=>t.complete(tL)),tV.clear()}function tI(){tV.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tD=!0)})}class tB{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tV.add(this),tR||(tR=!0,tE.read(tI),tE.resolveKeyframes(tj))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tV.delete(this)}cancel(){"scheduled"===this.state&&(tV.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tF=new Set([F,O]);function tO(t,e){let i=U(t);return tF.has(i)||(i=L),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tz=new Set(["auto","none","0"]);class tN extends tB{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tr(n=n.trim())){let r=function t(e,i,n=1){tt(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=ta.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tr(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!K.has(i)||2!==t.length)return;let[n,r]=t,s=Z(n),o=Z(r);if(to(n)!==to(r)&&tw[i]){this.needsMeasurement=!0;return}if(s!==o)if(tv(s)&&tv(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tw[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tz.has(e)&&R(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tO(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tw[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=tw[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t$=t=>1e3*t;function tU(t,e){-1===t.indexOf(e)&&t.push(e)}function tW(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tH{constructor(){this.subscriptions=[]}add(t){return tU(this.subscriptions,t),()=>tW(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tG(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tY(t){let e;return()=>(void 0===e&&(e=t()),e)}let tX={};function tK(t,e){let i=tY(t);return()=>tX[e]??i()}let t_=tK(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tq=t=>null!==t;function tZ(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(tq),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class tQ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let tJ=t=>Array.isArray(t)&&"number"==typeof t[0],t0=tK(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t1=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t2=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t2([0,.65,.55,1]),circOut:t2([.55,0,1,.45]),backIn:t2([.31,.01,.66,-.59]),backOut:t2([.33,1.53,.69,.99])};function t3(t){return"function"==typeof t&&"applyToOptions"in t}class t4 extends tQ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,tt(t.type);const l=function({type:t,...e}){return t3(t)&&t0()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?t0()?t1(e,i):"ease-out":tJ(e)?t2(e):Array.isArray(e)?e.map(e=>t(e,i)||t5.easeOut):t5[e]}(a,r);Array.isArray(c)&&(h.easing=c);let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};return u&&(d.pseudoElement=u),t.animate(h,d)}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=tZ(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tG(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t$(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t_())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tk):n(this)}}let t6=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:t9}=tP(queueMicrotask,!1);function t8(){e=void 0}let t7={now:()=>(void 0===e&&t7.set(tM.isProcessing||tS.useManualTiming?tM.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(t8)}},et=(t,e)=>e?1e3/e*t:0,ee;class ei{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t7.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t7.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tH);let i=this.events[t].add(e);return"change"===t?()=>{i(),tE.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&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 ee&&ee.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=t7.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return et(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 en(t,e){return new ei(t,e)}let er=[...q,E,L],es=new WeakMap;function eo(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ea(t){return"string"==typeof t||Array.isArray(t)}let el=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eu=["initial",...el];function eh(t){return eo(t.animate)||eu.some(e=>ea(t[e]))}function ec(t){return!!(eh(t)||t.variants)}let ed={current:null},ep={current:!1},em="u">typeof window;function ef(t){let e=[{},{}];
9return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eg(t,e,i,n){if("function"==typeof e){let[r,s]=ef(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=ef(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ev={};class eb{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tB,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 t=t7.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tE.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=eh(e),this.isVariantNode=ec(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&X(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,es.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((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ep.current||function(){if(ep.current=!0,em)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ed.current=t.matches;t.addEventListener("change",e),e()}else ed.current=!1}(),this.shouldReduceMotion=ed.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tA(this.notifyUpdate),tA(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.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,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t6.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=e.accelerate,a=new t4({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:t$(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=s.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tE.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ev){let e=ev[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
9e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ey.length;e++){let i=ey[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(X(r))t.addValue(n,r);else if(X(s))t.addValue(n,en(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,en(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(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){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=en(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,r;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let n;n=i,!er.find(_(n))&&L.test(e)&&(i=tO(t,e))}this.setBaseTarget(t,X(i)?i.get():i)}return X(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=eg(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||X(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tH),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t9.render(this.render)}}class ex extends eb{constructor(){super(...arguments),this.KeyframeResolver=tN}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;X(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ew(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let ek=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eT=r.length;function eP(t,e,i){let{style:n,vars:o,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(s.has(t)){l=!0;continue}if(ti(t)){o[t]=i;continue}{let e=ek(i,N[t]);t.startsWith("origin")?(u=!0,a[t]=e):n[t]=e}}
9if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",s=!0;for(let o=0;o<eT;o++){let a=r[o],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||i){let t=ek(l,N[a]);if(!u){s=!1;let e=eS[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}let o=t.pathRotation;return o&&(s=!1,n+=`rotate(${ek(o,N.pathRotation)}) `),n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let eE={offset:"stroke-dashoffset",array:"stroke-dasharray"},eA={offset:"strokeDashoffset",array:"strokeDasharray"},eM=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eC(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(eP(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of eM)void 0!==c[t]&&(d[t]=c[t],delete c[t]);(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?eE:eA;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(c,r,s,o,!1)}let eV=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"]),eR=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eD(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}let eL=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function ej(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eI={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!w.test(t))return t;else t=parseFloat(t);let i=ej(t,e.target.x),n=ej(t,e.target.y);return`${i}% ${n}%`}},eB=(t,e,i)=>t+(e-t)*i,eF={borderRadius:{...eI,applyTo:[...eL]},borderTopLeftRadius:eI,borderTopRightRadius:eI,borderBottomLeftRadius:eI,borderBottomRightRadius:eI,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=L.parse(t);if(n.length>5)return t;let r=L.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=eB(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function eO(t,{layout:e,layoutId:i}){return s.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eF[t]||"opacity"===t)}function ez(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(X(n[e])||r&&X(r[e])||eO(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function eN(t,e,i){let n=ez(t,e,i);for(let i in t)(X(t[i])||X(e[i]))&&(n[-1!==r.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class e$ extends ex{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=U(e);return t&&t.default||0}if(eM.includes(e)){let i=getComputedStyle(t)[e];if("string"==typeof i&&i)return i.trim()}return e=eV.has(e)?e:ew(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eN(t,e,i)}build(t,e,i){eC(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eD(t,e,void 0,n),e.attrs)t.setAttribute(eV.has(i)?i:ew(i),e.attrs[i])}mount(t){this.isSVGTag=eR(t.tagName),super.mount(t)}}function eU({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eW(t){return void 0===t||1===t}function eH({scale:t,scaleX:e,scaleY:i}){return!eW(t)||!eW(e)||!eW(i)}function eG(t){return eH(t)||eY(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eY(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eX(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function eK(t,e=0,i=1,n,r){t.min=eX(t.min,e,i,n,r),t.max=eX(t.max,e,i,n,r)}function e_(t,{x:e,y:i}){eK(t.x,e.translate,e.scale,e.originPoint),eK(t.y,i.translate,i.scale,i.originPoint)}function eq(t,e){t.min+=e,t.max+=e}function eZ(t,e,i,n,r=.5){let s=eB(t.min,t.max,r);eK(t,e,i,s,n)}function eQ(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function eJ(t,e,i){let n=i??t;eZ(t.x,eQ(e.x,n.x),e.scaleX,e.scale,e.originX),eZ(t.y,eQ(e.y,n.y),e.scaleY,e.scale,e.originY)}function e0(t,e){return eU(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e1 extends ex{constructor(){super(...arguments),this.type="html",this.renderInstance=eD}mount(t){tt(t.style),super.mount(t)}readValueFromInstance(t,e){if(s.has(e))return this.projection?.isProjecting?tf(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tg(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(ti(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e0(t,e)}build(t,e,i){eP(t,e,i.transformTemplate)}
9scrapeMotionValuesFromProps(t,e,i){return ez(t,e,i)}}var e2=t.i(71645);let e5=["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 e3(t){if("string"!=typeof t||t.includes("-"));else if(e5.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e4=t.i(43476);let e6=(0,e2.createContext)({});t.s(["LayoutGroupContext",0,e6],31178);let e9=(0,e2.createContext)({strict:!1}),e8=(0,e2.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e8],37806);let e7=(0,e2.createContext)({});function it(t){return Array.isArray(t)?t.join(" "):t}let ie=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ii(t,e,i){for(let n in e)X(e[n])||eO(n,i)||(t[n]=e[n])}let ir=()=>({...ie(),attrs:{}}),is=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","propagate","ignoreStrict","viewport"]);function io(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||is.has(t)}function ia(t){return X(t)?t.get():t}let il=(0,e2.createContext)(null);function iu(t){let e=(0,e2.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["PresenceContext",0,il],21476),t.s(["useConstant",0,iu],47414);let ih=t=>(e,i)=>{let n=(0,e2.useContext)(e7),r=(0,e2.useContext)(il),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=ia(s[t]);let{initial:o,animate:a}=t,l=eh(t),u=ec(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!eo(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=eg(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()}})(t,e,n,r);return i?s():iu(s)},ic=ih({scrapeMotionValuesFromProps:ez,createRenderState:ie}),id=ih({scrapeMotionValuesFromProps:eN,createRenderState:ir}),ip={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"]},im=!1;function ig(){return!function(){if(im)return;let t={};for(let e in ip)t[e]={isEnabled:t=>ip[e].some(e=>!!t[e])};ev=t,im=!0}(),ev}let iy=Symbol.for("motionComponentSymbol"),iv="data-"+ew("framerAppearId"),ib=(0,e2.createContext)({});function ix(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iw="u">typeof window?e2.useLayoutEffect:e2.useEffect;function ik(t,{forwardMotionProps:e=!1,type:i}={},n,r){n&&function(t){let e=ig();for(let i in t)e[i]={...e[i],...t[i]};ev=e}(n);let s=i?"svg"===i:e3(t),o=s?id:ic;function a(i,n){var a;let l,u,h,c={...(0,e2.useContext)(e8),...i,layoutId:function({layoutId:t}){let e=(0,e2.useContext)(e6).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:d,isValidProp:p}=c,m=function(t){let{initial:e,animate:i}=function(t,e){if(eh(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ea(e)?e:void 0,animate:ea(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e2.useContext)(e7));return(0,e2.useMemo)(()=>({initial:e,animate:i}),[it(e),it(i)])}(i),f=o(i,d);if(!d&&"u">typeof window){(0,e2.useContext)(e9).strict;let e=function(t){let{drag:e,layout:i}=ig();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
9(c);l=e.MeasureLayout,m.visualElement=function(t,e,i,n,r,s){let{visualElement:o}=(0,e2.useContext)(e7),a=(0,e2.useContext)(e9),l=(0,e2.useContext)(il),u=(0,e2.useContext)(e8),h=u.reducedMotion,c=u.skipAnimations,d=(0,e2.useRef)(null),p=(0,e2.useRef)(!1);n=n||a.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h,skipAnimations:c,isSVG:s}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let m=d.current,f=(0,e2.useContext)(ib);m&&!m.projection&&r&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&ix(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(d.current,i,r,f);let g=(0,e2.useRef)(!1);(0,e2.useInsertionEffect)(()=>{m&&g.current&&m.update(i,l)});let y=i[iv],v=(0,e2.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iw(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,e2.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,f,c,r,e.ProjectionNode,s)}return(0,e4.jsxs)(e7.Provider,{value:m,children:[l&&m.visualElement?(0,e4.jsx)(l,{visualElement:m.visualElement,...c}):null,function(t,e,i,{latestValues:n},r,s=!1,o,a){let l=(o??e3(t)?function(t,e,i,n){let r=(0,e2.useMemo)(()=>{let i=ir();return eC(i,e,eR(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ii(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,n,r={},s=(i=t.style||{},ii(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,e2.useMemo)(()=>{let i=ie();return eP(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r})(e,n,r,t),u=function(t,e,i,n){let r={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!X(t[s])&&((s.startsWith("on")?!io(s):n?.(s)??!io(s))||!0===i&&io(s)||!e&&!io(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}(e,"string"==typeof t,s,a),h=t!==e2.Fragment?{...u,...l,ref:i}:{},{children:c}=e,d=(0,e2.useMemo)(()=>X(c)?c.get():c,[c]);return(0,e2.createElement)(t,{...h,children:d})}(t,i,(a=m.visualElement,u=(0,e2.useRef)(n),(0,e2.useInsertionEffect)(()=>{u.current=n}),h=(0,e2.useRef)(null),(0,e2.useCallback)(t=>{t&&f.onMount?.(t),a&&(t?a.mount(t):a.unmount());let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(h.current=i)}else h.current?(h.current(),h.current=null):e(t);else e&&(e.current=t)},[a])),f,d,e,s,p)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e2.forwardRef)(a);return l[iy]=t,l}t.s(["useIsomorphicLayoutEffect",0,iw],74008);class iS{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iT(t,e,i){let n=t.getProps();return eg(n,e,void 0!==i?i:n.custom,t)}function iP(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iE(t,e){let i=t?.[e]??t?.default??t;return i!==t?iP(i,t):i}let iA=t=>Array.isArray(t);function iM(t,e){let i=t.getValue("willChange");if(X(i)&&i.add)return i.add(e);if(!i&&tS.WillChange){let i=new tS.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iC=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iV(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iR(t,e){return i=>i>0?e:t}
9let iD=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iL=[y,g,P];function ij(t){let e=iL.find(e=>e.test(t));if(J(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===P&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=iV(a,n,t+1/3),s=iV(a,n,t),o=iV(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let iI=(t,e)=>{let i=ij(t),n=ij(e);if(!i||!n)return iR(t,e);let r={...i};return t=>(r.red=iD(i.red,n.red,t),r.green=iD(i.green,n.green,t),r.blue=iD(i.blue,n.blue,t),r.alpha=eB(i.alpha,n.alpha,t),g.transform(r))},iB=new Set(["none","hidden"]);function iF(t,e){return i=>eB(t,e,i)}function iO(t){return"number"==typeof t?iF:"string"==typeof t?tr(t)?iR:E.test(t)?iI:i$:Array.isArray(t)?iz:"object"==typeof t?E.test(t)?iI:iN:iR}function iz(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>iO(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iN(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=iO(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let i$=(t,e)=>{let i=L.createTransformer(e),n=R(t),r=R(e);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return J(`Complex values '${t}' and '${e}' 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.`),iR(t,e);if(iB.has(t)&&!r.values.length||iB.has(e)&&!n.values.length)return iB.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iC(iz(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i)};function iU(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eB(t,e,i):iO(t)(t,e)}let iW=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tE.update(e,t),stop:()=>tA(e),now:()=>tM.isProcessing?tM.timestamp:t7.now()}};function iH(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let iG=.01,iY=2,iX=.005,iK=.5;function i_(t,e){return t*Math.sqrt(1-e*e)}let iq=["duration","bounce"],iZ=["stiffness","damping","mass"];function iQ(t,e){return e.some(e=>void 0!==t[e])}function iJ(t=.3,e=.3){let i,n,r,s,a,l,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:c}=u,d=u.keyframes[0],p=u.keyframes[u.keyframes.length-1],m={done:!1,value:d},{stiffness:f,damping:g,mass:y,duration:v,velocity:b,isResolvedFromDuration:x}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iQ(t,iZ)&&iQ(t,iq))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*o(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let r,s;J(t$(10));let a=1-e;a=o(.05,1,a),t=o(.01,10,t/1e3),a<1?(r=e=>{let n=e*a,r=n*t;return .001-(n-i)/i_(e,a)*Math.exp(-r)},s=e=>{let n=e*a*t,s=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=i_(Math.pow(e,2),a);return(n*i+i-s)*o*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=t$(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),w=b||0,k=g/(2*Math.sqrt(f*y)),S=p-d,T=Math.sqrt(f/y)/1e3,P=5>Math.abs(S);if(h||(h=P?iG:iY),c||(c=P?iX:iK),k<1)r=i_(T,k),s=(w+k*T*S)/r,i=t=>p-Math.exp(-k*T*t)*(s*Math.sin(r*t)+S*Math.cos(r*t)),a=k*T*s+S*r,l=k*T*S-s*r,n=t=>Math.exp(-k*T*t)*(a*Math.sin(r*t)+l*Math.cos(r*t));else if(1===k){i=t=>p-Math.exp(-T*t)*(S+(w+T*S)*t);let t=w+T*S;n=e=>Math.exp(-T*e)*(T*t*e-w)}else{let t=T*Math.sqrt(k*k-1);i=e=>{let i=Math.exp(-k*T*e),n=Math.min(t*e,300);return p-i*((w+k*T*S)*Math.sinh(n)+t*S*Math.cosh(n))/t};let e=(w+k*T*S)/t,r=k*T*e-S*t,s=k*T*S-e*t;n=e=>{let i=Math.exp(-k*T*e),n=Math.min(t*e,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let E={calculatedDuration:x&&v||null,velocity:t=>t$(n(t)),next:t=>{if(!x&&k<1){let e=Math.exp(-k*T*t),i=Math.sin(r*t),n=Math.cos(r*t),o=p-e*(s*i+S*n);return m.done=Math.abs(t$(e*(a*i+l*n)))<=h&&Math.abs(p-o)<=c,m.value=m.done?p:o,m}let e=i(t);return x?m.done=t>=v:m.done=Math.abs(t$(n(t)))<=h&&Math.abs(p-e)<=c,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(iH(E),2e4),e=t1(e=>E.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return E}function i0(t,e,i){let n=Math.max(e-5,0);return et(i-t(n),e-n)}function i1({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),b=t=>y+v(t),x=t=>{let e=v(t),i=b(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},w=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=iJ({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:i0(b,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,x(t),w(t)),void 0!==c&&t>=c)?d.next(t-c):(e||x(t),m)}}}iJ.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(iH(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:r/1e3}}(t,100,iJ);return t.ease=e.ease,t.duration=t$(e.duration),t.type="keyframes",t};let i2=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i5(t,e,i,n){return t===e&&i===n?tk:r=>
90===r||1===r?r:i2(function(t,e,i,n,r){let s,o,a=0;do(s=i2(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(r,0,1,t,i),e,n)}let i3=i5(.42,0,1,1),i4=i5(0,0,.58,1),i6=i5(.42,0,.58,1),i9=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i8=t=>e=>1-t(1-e),i7=i5(.33,1.53,.69,.99),nt=i8(i7),ne=i9(nt),ni=t=>t>=1?1:(t*=2)<1?.5*nt(t):.5*(2-Math.pow(2,-10*(t-1))),nn=t=>1-Math.sin(Math.acos(t)),nr=i8(nn),ns=i9(nn),no={linear:tk,easeIn:i3,easeInOut:i6,easeOut:i4,circIn:nn,circInOut:ns,circOut:nr,backIn:nt,backInOut:ne,backOut:i7,anticipate:ni},na=t=>{if(tJ(t)){tt(t.length);let[e,i,n,r]=t;return i5(e,i,n,r)}return"string"==typeof t?(tt(no[t],`Invalid easing type '${t}'`),no[t]):t},nl=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function nu({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s,a=Array.isArray(n)&&"number"!=typeof n[0]?n.map(na):na(n),l={done:!1,value:e[0]},u=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(tt(e.length),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],r=i||tS.mix||iU,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=iC(Array.isArray(e)?e[i]||tk:e,s)),n.push(s)}return n}(e,n,r),u=l.length,h=i=>{if(a&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=nl(t[n],t[n+1],i);return l[n](r)};return i?e=>h(o(t[0],t[s-1],e)):h}((r=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nl(0,e,n);t.push(eB(i,1,r))}}(s=[0],e.length-1),s),r.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||i6).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(l.value=u(e),l.done=e>=t,l)}}let nh={decay:i1,inertia:i1,tween:nu,keyframes:nu,spring:iJ};function nc(t){"string"==typeof t.type&&(t.type=nh[t.type])}let nd=t=>t/100;class np extends tQ{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t7.now()&&this.tick(t7.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nc(t);let{type:e=nu,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||nu;a!==nu&&"number"!=typeof o[0]&&(this.mixKeyframes=iC(nd,iU(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iH(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=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)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let x=this.currentTime,w=n;if(d){let t=Math.min(this.currentTime,r)/l,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/l)):"mirror"===p&&(w=a)),x=o(0,1,i)*l}b?(this.delayState.value=c[0],i=this.delayState):i=w.next(x),s&&!b&&(i.value=s(i.value));let{done:k}=i;b||null===u||(k=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return S&&f!==i1&&(i.value=tZ(c,this.options,y,this.speed)),g&&g(i.value),S&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=t$(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
9if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i0(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(t7.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iW,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t7.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&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)}}let nm={anticipate:ni,backInOut:ne,circInOut:ns};class nf extends t4{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nm&&(t.ease=nm[t.ease])}(t),nc(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new np({...s,autoplay:!1}),l=Math.max(10,t7.now()-this.startTime),u=o(0,10,l-10),h=a.sample(l).value,{name:c}=this.options;r&&c&&tG(r,c,h),e.setWithVelocity(a.sample(Math.max(0,l-u)).value,h,u),a.stop()}}let ng=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(L.test(t)||"0"===t)&&!t.startsWith("url("));function ny(t){t.duration=0,t.type="keyframes"}let nv=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nb=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nx=tY(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nw extends tQ{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t7.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||tB;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=t7.now();let c=!0;!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=ng(r,e),a=ng(s,e);return J(`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||t3(i))&&n)}(t,s,o,a)&&(c=!1,(tS.instantAnimations||!l)&&h?.(tZ(t,i,e)),t[0]=t[t.length-1],ny(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=c&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
9let{onUpdate:u,transformTemplate:h}=e.owner.getProps();return nx()&&i&&(t6.has(i)||nb.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nv.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!h)&&!u&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(d),m=d.motionValue?.owner?.current;if(p)try{r=new nf({...d,element:m})}catch{r=new np(d)}else r=new np(d);r.finished.then(()=>{this.notifyFinished()}).catch(tk),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tL=!0,tI(),tj(),tL=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}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()}}let nk={type:"spring",stiffness:500,damping:25,restSpeed:10},nS={type:"keyframes",duration:.8},nT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nP=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nE=(t,e,i,n={},r,o)=>a=>{let l=iE(n,t)||{},u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=t$(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:r};!function(t){for(let e in t)if(!nP.has(e))return!0;return!1}(l)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?nS:s.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nk:nT)(t,c)),c.duration&&(c.duration=t$(c.duration)),c.repeatDelay&&(c.repeatDelay=t$(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ny(c),0===c.delay&&(d=!0)),(tS.instantAnimations||tS.skipAnimations||r?.shouldSkipAnimations||l.skipAnimations)&&(d=!0,ny(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!o&&void 0!==e.get()){let t=tZ(c.keyframes,l);if(void 0!==t)return void tE.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new np(c):new nw(c)};function nA(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?iP(s,l):l;let u=s?.reduceMotion,h=s?.skipAnimations;n&&(s=n);let c=[],d=r&&t.animationState&&t.animationState.getState()[r],p=s?.path;for(let e in p&&p.animateVisualElement(t,a,s,i,c),a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let o={delay:i,...iE(s||{},e)};h&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){tE.update(()=>n.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[iv];if(i){let t=window.MotionHandoffAnimation(i,e,tE);null!==t&&(o.startTime=t,p=!0)}}iM(t,e);let m=u??t.shouldReduceMotion;n.start(nE(e,n,r,m&&K.has(e)?{type:!1}:o,t,p));let f=n.animation;f&&c.push(f)}if(o){let e=()=>tE.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=iT(t,e)||{};for(let e in r={...r,...i}){var s;let i=iA(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,en(i))}}(t,o)});c.length?Promise.all(c).then(e):e()}return c}function nM(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nC(t,e,i={}){let n=iT(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nA(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;
9return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nC(l,e,{...o,delay:i+("function"==typeof n?0:n)+nM(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let nV=eu.length;function nR(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nD=[...el].reverse(),nL=el.length;function nj(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nI(){return{animate:nj(!0),whileInView:nj(),whileHover:nj(),whileTap:nj(),whileDrag:nj(),whileFocus:nj(),exit:nj()}}let nB=0;function nF(t){return[t("x"),t("y")]}function nO(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}let nz={x:!1,y:!1};function nN(t){return t.max-t.min}function n$(t,e,i,n=.5){t.origin=n,t.originPoint=eB(e.min,e.max,t.origin),t.scale=nN(i)/nN(e),t.translate=eB(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nU(t,e,i,n){n$(t.x,e.x,i.x,n?n.originX:void 0),n$(t.y,e.y,i.y,n?n.originY:void 0)}function nW(t,e,i,n=0){t.min=(n?eB(i.min,i.max,n):i.min)+e.min,t.max=t.min+nN(e)}function nH(t,e,i,n=0){let r=n?eB(i.min,i.max,n):i.min;t.min=e.min-r,t.max=t.min+nN(e)}function nG(t,e,i,n){nH(t.x,e.x,i.x,n?.x),nH(t.y,e.y,i.y,n?.y)}let nY=t=>"object"==typeof t&&null!==t;function nX(t){return nY(t)&&"ownerSVGElement"in t}function nK(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}let n_=new WeakMap,nq=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:nX(n)&&"getBBox"in n?n.getBBox()[e]:n[i],nZ=nq("inline","width","offsetWidth"),nQ=nq("block","height","offsetHeight");function nJ({target:t,borderBoxSize:e}){n_.get(t)?.forEach(i=>{i(t,{get width(){return nZ(t,e)},get height(){return nQ(t,e)}})})}function n0(t){t.forEach(nJ)}let n1=new Set;function n2(t,e){let r;return"function"==typeof t?(n1.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n1.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{n1.delete(t),n1.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n0)),(r=nK(t)).forEach(t=>{let n=n_.get(t);n||(n=new Set,n_.set(t,n)),n.add(e),i?.observe(t)}),()=>{r.forEach(t=>{let n=n_.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}let n5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n3=new Set(["INPUT","SELECT","TEXTAREA"]),n4=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n6(t){return{point:{x:t.pageX,y:t.pageY}}}function n9(t,e,i,n){return nO(t,e,t=>n4(t)&&i(t,n6(t)),n)}let n8=({current:t})=>t?t.ownerDocument.defaultView:null,n7=(t,e)=>Math.abs(t-e),rt=new Set(["auto","scroll"]);class re{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ri(this.lastRawMoveEventInfo,this.transformPagePoint));let i=rr(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(n7(t.x,e.x)**2+n7(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tM;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=ri(e,this.transformPagePoint),tE.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rr("pointercancel"===t.type?this.lastMoveEventInfo:ri(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!n4(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const a=ri(n6(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tM;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,rr(a,this.history));const c={passive:!0,capture:!0};this.removeListeners=iC(n9(this.contextWindow,"pointermove",this.handlePointerMove,c),n9(this.contextWindow,"pointerup",this.handlePointerUp,c),n9(this.contextWindow,"pointercancel",this.handlePointerUp,c)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(rt.has(t.overflowX)||rt.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),tE.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tA(this.updatePoint)}}function ri(t,e){return e?{point:e(t.point)}:t}function rn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rr({point:t},e){return{point:t,delta:rn(t,rs(e)),offset:rn(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=rs(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>t$(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*t$(.1)&&(i=t[1]);let r=(n.timestamp-i.timestamp)/1e3;if(0===r)return{x:0,y:0};let s={x:(n.x-i.x)/r,y:(n.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function rs(t){return t[t.length-1]}function ro(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function ra(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function rl(t,e,i){return{min:ru(t,e),max:ru(t,i)}}function ru(t,e){return"number"==typeof t?t:t[e]||0}let rh=new WeakMap;class rc{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=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=t=>{e&&this.snapToCursor(n6(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nz[t])return null;else return nz[t]=!0,()=>{nz[t]=!1};return nz.x||nz.y?null:(nz.x=nz.y=!0,()=>{nz.x=nz.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nF(t=>{let e=this.getAxisMotionValue(t).get()||0;if(x.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
9n&&(e=nN(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tE.update(()=>r(t,e),!1,!0),iM(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&tE.update(()=>s(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new re(t,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:n8(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tE.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!rp(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eB(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eB(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&ix(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:ro(t.x,i,r),y:ro(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rl(t,"left","right"),y:rl(t,"top","bottom")}}(e),n!==this.constraints&&!ix(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nF(t=>{var e,n;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],r={},void 0!==n.min&&(r.min=n.min-e.min),void 0!==n.max&&(r.max=n.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ix(e))return!1;let n=e.current;tt();let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let s=function(t,e,i){let n=e0(t,i),{scroll:r}=e;return r&&(eq(n.x,r.offset.x),eq(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:ra(t.x,s.x),y:ra(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eU(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nF(o=>{if(!rp(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iM(this.visualElement,t),i.start(nE(t,i,0,e,this.visualElement,!1))}stopAnimation(){nF(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){nF(e=>{let{drag:i}=this.getProps();if(!rp(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-eB(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ix(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nF(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let s,a,l,u=e.get();n[t]=(i={min:u,max:u},r=this.constraints[t],s=.5,a=nN(i),(l=nN(r))>a?s=nl(r.min,r.max-a,i.min):a>l&&(s=nl(i.min,i.max-l,r.min)),o(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nF(e=>{if(!rp(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eB(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;rh.set(this.visualElement,this);let e=this.visualElement.current,i=n9(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
9=this.getProps(),r=t.target,s=r!==e&&(n3.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),n=()=>{var i,n,r;let s,o,{dragConstraints:a}=this.getProps();ix(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,s=n2(i,rd(r=()=>this.scalePositionWithinConstraints())),o=n2(n,rd(r)),t=()=>{s(),o()}))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tE.read(n);let o=nO(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nF(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function rd(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function rp(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let rm=t=>(e,i)=>{t&&tE.update(()=>t(e,i),!1,!0)},rf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rg=e2;function ry(t=!0){let e=(0,e2.useContext)(il);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,e2.useId)();(0,e2.useEffect)(()=>{if(t)return r(s)},[t]);let o=(0,e2.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}t.s(["usePresence",0,ry],64978);let rv=!1;class rb extends rg.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rv&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),rv=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||tE.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),t9.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rv=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rx(t){let[e,i]=ry(),n=(0,rg.useContext)(e6);return(0,e4.jsx)(rb,{...t,layoutGroup:n,switchLayoutGroup:(0,rg.useContext)(ib),isPresent:e,safeToRemove:i})}let rw=eL.length,rk=t=>"string"==typeof t?parseFloat(t):t,rS=t=>"number"==typeof t||w.test(t);function rT(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rP=rA(0,.5,nr),rE=rA(.5,.95,tk);function rA(t,e,i){return n=>n<t?0:n>e?1:i(nl(t,e,n))}function rM(t,e){t.min=e.min,t.max=e.max}function rC(t,e){rM(t.x,e.x),rM(t.y,e.y)}function rV(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rR(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rD(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(x.test(e)&&(e=parseFloat(e),e=eB(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eB(s.min,s.max,n);t===s&&(a-=e),t.min=rR(t.min,e,i,a,r),t.max=rR(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let rL=["x","scaleX","originX"],rj=["y","scaleY","originY"];function rI(t,e,i,n){rD(t.x,e,rL,i?i.x:void 0,n?n.x:void 0),rD(t.y,e,rj,i?i.y:void 0,n?n.y:void 0)}function rB(t){return 0===t.translate&&1===t.scale}function rF(t){return rB(t.x)&&rB(t.y)}function rO(t,e){return t.min===e.min&&t.max===e.max}function rz(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rN(t,e){return rz(t.x,e.x)&&rz(t.y,e.y)}function r$(t){return nN(t.x)/nN(t.y)}function rU(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rW{constructor(){this.members=[]}add(t){tU(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tW(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tW(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
9}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=t.options;(void 0===n||n!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let rH=(t,e)=>t.depth-e.depth;class rG{constructor(){this.children=[],this.isDirty=!1}add(t){tU(this.children,t),this.isDirty=!0}remove(t){tW(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rH),this.isDirty=!1,this.children.forEach(t)}}let rY=["","X","Y","Z"],rX=0;function rK(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function r_({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rX++,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.layoutVersion=0,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(rQ),this.nodes.forEach(r9),this.nodes.forEach(r8),this.nodes.forEach(rJ)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rG)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tH),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=nX(e)&&!(nX(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;tE.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,s;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=t7.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&(tA(s),r())},tE.setup(s,!0),i=()=>tA(s),rf.hasAnimatedSinceResize&&(rf.hasAnimatedSinceResize=!1,this.nodes.forEach(r6))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sr,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rN(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iE(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u,e.path)}else e||r6(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tA(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.forEac
9h(r7),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[iv];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tE,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(r2),this.nodes.forEach(r1);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r5);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r3),this.nodes.forEach(r4),this.nodes.forEach(rq),this.nodes.forEach(rZ)):this.nodes.forEach(r5),this.clearAllSnapshots();let t=t7.now();tM.delta=o(0,1e3/60,t-tM.timestamp),tM.timestamp=t,tM.isProcessing=!0,tC.update.process(tM),tC.preRender.process(tM),tC.render.process(tM),tM.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r0),this.sharedNodes.forEach(st)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tE.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tE.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nN(this.snapshot.measuredBox.x)||nN(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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Y()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rF(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eG(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),sa((e=n).x),sa(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return Y();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(su))){let{scroll:t}=this.root;t&&(eq(e.x,t.offset.x),eq(e.y,t.offset.y))}return e}removeElementScroll(t){let e=Y();if(rC(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rC(e,t),eq(e.x,r.offset.x),eq(e.y,r.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||Y();rC(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(eq(n.x,-i.scroll.offset.x),eq(n.y,-i.scroll.offset.y)),eG(i.latestValues)&&eJ(n,i.latestValues,i.layout?.layoutBox)}return eG(this.latestValues)&&eJ(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=Y();rC(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];eG(n.latestValues)&&(n.instance&&(eH(n.latestValues)&&n.updateSnapshot(),rC(i=Y(),n.measurePageBox())),rI(e,n.latestValues,n.snapshot?.layoutBox,i))}return eG(this.latestValues)&&rI(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==tM.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=tM.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nW(o.x,a.x,l.x,u?.x),nW(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rC(this.target,this.layout.layoutBox),e_(this.target,this.targetDelta)):rC(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eH(this.parent.latestValues)||eY(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),nG(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),rC(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tM.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rC(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(eq(t.x,-r.scroll.offset.x),eq(t.y,-r.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,e_(t,s)),n&&eG(r.latestValues)&&eJ(t,r.latestValues,r.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=Y());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rV(this.prevProjectionDelta.x,this.projectionDelta.x),rV(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nU(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&rU(this.projectionDelta.x,this.prevProjectionDelta.x)&&rU(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=H(),this.projectionDelta=H(),this.projectionDeltaWithTransform=H()}setAnimationOrigin(t,e=!1,i){let n,r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=H();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=Y(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(sn));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,r=p?.(i);if(r?(a.x.translate=r.x,a.x.scale=eB(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=r.y,a.y.scale=eB(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(se(a.x,t.x,i),se(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,g,y,v;nG(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,si(f.x,g.x,y.x,v),si(f.y,g.y,y.y,v),n&&(h=this.relativeTarget,m=n,rO(h.x,m.x)&&rO(h.y,m.y))&&(this.isProjectionDirty=!1),n||(n=Y()),rC(n,this.relativeTarget)}u&&(this.animationValues=o,function(t,e,i,n,r,s){r?(t.opacity=eB(0,i.opacity??1,rP(n)),t.opacityExit=eB(e.opacity??1,0,rE(n))):s&&(t.opacity=eB(e.opacity??1,i.opacity??1,n));for(let r=0;r<rw;r++){let s=eL[r],o=rT(e,s),a=rT(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rS(o)===rS(a)?(t[s]=Math.max(eB(rk(o),rk(a),n),0),(x.test(a)||x.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eB(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,i,d,c)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tA(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tE.update(()=>{var e,i,n;let r;rf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=en(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(r=X(e)?e:en(e)).start(nE("",r,i,n)),r.animation),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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Y();let e=nN(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nN(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rC(e,i),eJ(e,r),nU(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rW),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
9return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&rK("z",t,n,this.animationValues);for(let e=0;e<rY.length;e++)rK(`rotate${rY[e]}`,t,n,this.animationValues),rK(`skew${rY[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ia(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ia(e?.pointerEvents)||""),this.hasProjected&&!eG(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:r,rotateX:s,rotateY:o,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotate(${r}deg) `),s&&(n+=`rotateX(${s}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eF){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eF[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?ia(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(r1),this.root.sharedNodes.clear()}}}function rq(t){t.updateLayout()}function rZ(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;if("size"===r)nF(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=nN(n);n.min=i[t].min,n.max=n.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";rM(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else sl(r,e.layoutBox,i)&&nF(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=nN(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=H();nU(o,i,e.layoutBox);let a=H();s?nU(a,t.applyTransform(n,!0),e.measuredBox):nU(a,i,e.layoutBox);let l=!rF(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=t.options.layoutAnchor||void 0,a=Y();nG(a,e.layoutBox,r.layoutBox,o);let l=Y();nG(l,i,s.layoutBox,o),rN(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rQ(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rJ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r0(t){t.clearSnapshot()}function r1(t){t.clearMeasurements()}function r2(t){t.isLayoutDirty=!0,t.updateLayout()}function r5(t){t.isLayoutDirty=!1}function r3(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function r4(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r6(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r9(t){t.resolveTargetDelta()}function r8(t){t.calcProjection()}function r7(t){t.resetSkewAndRotation()}function st(t){t.removeLeadSnapshot()}function se(t,e,i){t.translate=eB(e.translate,0,i),t.scale=eB(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function si(t,e,i,n){t.min=eB(e.min,i.min,n),t.max=eB(e.max,i.max,n)}function sn(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sr={duration:.45,ease:[.4,0,.1,1]},ss=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),so=ss("applewebkit/")&&!ss("chrome/")?Math.round:tk;function sa(t){t.min=so(t.min),t.max=so(t.max)}function sl(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(r$(e)-r$(i)))}function su(t){return t!==t.root&&t.scroll?.wasRoot}let sh=r_({attachResizeListener:(t,e)=>nO(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sc={current:void 0},sd=r_({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sc.current){let t=new sh({});t.mount(window),t.setOptions({layoutScroll:!0}),sc.current=t}return sc.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sp(t,e){let i=nK(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sm(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tE.postRender(()=>r(e,n6(e)))}function sf(t){return nY(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["isHTMLElement",0,sf],72846);let sg=(t,e)=>!!e&&(t===e||sg(t,e.parentElement)),sy=new WeakSet;function sv(t){return e=>{"Enter"===e.key&&t(e)}}function sb(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sx(t){return n4(t)&&!(nz.x||nz.y)}let sw=new WeakSet;function sk(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&tE.postRender(()=>r(e,n6(e)))}let sS=new WeakMap,sT=new WeakMap,sP=t=>{let e=sS.get(t.target);e&&e(t)},sE=t=>{t.forEach(sP)},sA={some:0,all:1},sM=function(t,e){if("u"<typeof Proxy)return ik;let i=new Map,n=(i,n)=>ik(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,ik(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends iS{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nC(t,e,i)));else if("string"==typeof e)n=nC(t,e,i);else{let r="function"==typeof e?iT(t,e,i.custom):e;n=Promise.all(nA(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nI(),n=!0,r=!1,s=e=>(i,n)=>{let r=iT(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nV;t++){let n=eu[t],r=e.props[n];(ea(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<nL;e++){var p,m;let f=nD[e],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=ea(y),b=f===o?g.isActive:null;!1===b&&(d=e);let x=y===l[f]&&y!==a[f]&&v;if(x&&(n||r)&&t.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...c},!g.isActive&&null===b||!y&&!g.prevProp||eo(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==b){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!nR(m,p)),k=w||f===o&&g.isActive&&!x&&v||e>d&&v,S=!1,T=Array.isArray(y)?y:[y],P=T.reduce(s(f),{});!1===b&&(P={});let{prevResolvedValues:E={}}=g,A={...E,...P},M=e=>{k=!0,h.has(e)&&(S=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
9i&&(i.liveStyle=!1)};for(let t in A){let e=P[t],i=E[t];if(!c.hasOwnProperty(t))(iA(e)&&iA(i)?!nR(e,i)||w:e!==i)?null!=e?M(t):h.add(t):void 0!==e&&h.has(t)?M(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=P,g.isActive&&(c={...c,...P}),(n||r)&&t.blockInitialAnimation&&(k=!1);let C=x&&w,V=!C||S;k&&V&&u.push(...T.map(e=>{let i={type:f};if("string"==typeof e&&(n||r)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=iT(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nM(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=iT(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nI(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iS{constructor(){super(...arguments),this.id=nB++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=iT(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
9e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:sA[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;sT.has(i)||sT.set(i,{});let n=sT.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sE,{root:t,...e})),n[r]}(a),sS.set(t,l),e.observe(t),()=>{sS.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iS{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,r,s]=sp(t,i),o=t=>{let n=t.currentTarget;if(!sx(t)||sw.has(t))return;sy.add(n),i.stopPropagation&&sw.add(t);let s=e(n,t),o={...r,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),sy.has(n)&&sy.delete(n),sx(t)&&"function"==typeof s&&s(t,{success:e})},l=t=>{a(t,n===window||n===document||i.useGlobalTarget||sg(n,t.target))},u=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),sf(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=sv(()=>{if(sy.has(i))return;sb(i,"down");let t=sv(()=>{sb(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sb(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),n5.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sk(this.node,e,"Start"),(t,{success:e})=>sk(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iS{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=iC(nO(this.node.current,"focus",()=>this.onFocus()),nO(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iS{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sp(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nz.x||nz.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),s}(t,(t,e)=>(sm(this.node,e,"Start"),t=>sm(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iS{constructor(){super(...arguments),this.removePointerDownListener=tk}onPointerDown(t){this.session=new re(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n8(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rm(t),onStart:rm(e),onMove:rm(i),onEnd:(t,e)=>{delete this.session,n&&tE.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n9(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iS{constructor(t){super(t),this.removeGroupControls=tk,this.removeListeners=tk,this.controls=new rc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tk}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:sd,MeasureLayout:rx},layout:{ProjectionNode:sd,MeasureLayout:rx}},(t,e)=>e.isSVG??e3(t)?new e$(e):new e1(e,{allowProjection:t!==e2.Fragment}));t.s(["motion",0,sM],46932);let sC=(...t)=>t.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim(),sV=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,i)=>i?i.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var sR={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let sD=(0,e2.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:i=2,absoluteStrokeWidth:n,className:r="",children:s,iconNode:o,...a},l)=>(0,e2.createElement)("svg",{ref:l,...sR,width:e,height:e,stroke:t,strokeWidth:n?24*Number(i)/Number(e):i,className:sC("lucide",r),...!s&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(a)&&{"aria-hidden":"true"},...a},[...o.map(([t,e])=>(0,e2.createElement)(t,e)),...Array.isArray(s)?s:[s]]));t.s(["default",0,(t,e)=>{let i=(0,e2.forwardRef)(({className:i,...n},r)=>(0,e2.createElement)(sD,{ref:r,iconNode:e,className:sC(`lucide-${sV(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,i),...n}));return i.displayName=sV(t),i}],75254),t.s(["aboutMe",0,{summary:"Team Lead Full Stack Developer with 7+ years of experience building scalable systems across Healthcare, E-Commerce, Security, and HR Tech domains. Expert in React, Vue.js, Node.js, NestJS, and FastAPI with strong proficiency in DevOps practices, CI/CD pipelines, and cloud infrastru
9cture.",description:"I drive digital transformation through user-centered design and innovative front-end and back-end engineering, delivering seamless, scalable, and engaging applications. I spearhead cross-functional collaboration & Agile practices to accelerate product delivery timelines, optimize workflow, and foster a high-performance engineering culture.",highlights:["Led engineering teams through complex technical challenges","Designed scalable architectures handling thousands of concurrent events","Championed agile transformation with 45% faster delivery","Expert in system design and performance optimization"]},"coreCompetencies",0,["Scalable Application Architecture","User Experience Design","Agile Project Management","Software Quality Assurance","CI/CD Pipeline","Cloud Infrastructure Management","API Development and Integration","Performance Optimization","Team Leadership and Mentorship","System Design Principles"],"experiences",0,[{id:1,company:"Magicmind Technologies",location:"Kolkata",role:"Team Lead Full Stack Developer",period:"Jul 2023 – Present",type:"current",responsibilities:["Leading development team through complex technical challenges, enforcing coding best practices","Designing & delivering scalable front-end and back-end solutions with cross-functional teams","Owning full software development lifecycle from requirements to deployment & optimization","Driving code reviews, CI/CD automation, and performance tuning","Mentoring developers and aligning technical roadmaps with business objectives"],achievements:[{metric:"45%",description:"faster delivery through agile transformation"},{metric:"60%",description:"boost in user engagement"},{metric:"65%",description:"reduction in deployment cycles via CI/CD"}]},{id:2,company:"Han River Technology",location:"Kolkata",role:"Associate Team Lead",period:"Feb 2022 – Jun 2023",type:"past",responsibilities:["Contributed to full-stack development of web applications with robust interfaces","Authored and optimized application code ensuring compliance with industry standards","Resolved complex software issues through systematic troubleshooting","Facilitated migration of legacy systems to modern web platforms"],achievements:[{metric:"Improved",description:"system performance and scalability"},{metric:"Enhanced",description:"user experience through modernization"}]},{id:3,company:"Softhills Technologies",location:"Cooch Behar",role:"Full Stack Developer",period:"Mar 2019 – Feb 2022",type:"past",responsibilities:["Directed end-to-end software development lifecycle from conceptualization to deployment","Pioneered development and integration of front-end & back-end components","Executed rigorous quality assurance protocols","Liaised with clients to capture requirements and deliver tailored solutions"],achievements:[{metric:"End-to-end",description:"architecture ownership"},{metric:"Quality",description:"assurance excellence"}]}],"leadership",0,[{icon:"Users",title:"Team Mentoring",description:"Mentored developers across multiple projects, fostering skill growth and technical excellence"},{icon:"Zap",title:"Agile Transformation",description:"Championed agile practices driving 45% acceleration in delivery timelines"},{icon:"GitBranch",title:"CI/CD Automation",description:"Engineered streamlined pipelines cutting deployment cycles by 65%"},{icon:"Layout",title:"Architecture Design",description:"Designed scalable microservices and event-driven architectures"},{icon:"Gauge",title:"Performance Optimization",description:"Optimized applications for high throughput and low latency"},{icon:"Target",title:"Strategic Alignment",description:"Aligned technical roadmaps with business objectives through stakeholder engagement"}],"personalInfo",0,{name:"Diptendu Barman",title:"Team Lead Full Stack Developer",tagline:"Building scalable, real-time, and high-performance applications.",email:"[email protected]",location:"Kolkata, India",linkedin:"https://in.linkedin.com/in/diptendubarman",github:"https://github.com/diptendubarman",twitter:"https://x.com/xdiptendubarman",resumeUrl:"/Resume_DiptenduBarman.pdf",heroText:"Driving digital transformation through user-centered design and scalable engineering."},"projects",0,[{id:1,title:"No-Code/Low-Code Code Gen Engine",description:"Led a 6-member team to build a no-code platform for template-based UI customization and auto-generation of full-stack applications. Designed event-driven architecture with RabbitMQ for async workflows.",technologies:["FastAPI","RabbitMQ","PostgreSQL","MongoDB","TypeScript","Python"],metrics:["50% reduction in manual setup time","Multi-tenant architecture"],category:"Platform",featured:!0},{id:2,title:"AVP Suite – Browser Security Extension",description:"Led 5-member team developing a full-stack browser security ecosystem with Admin/User Dashboards, real-time threat detection using IPqualityScore, Google Web Risk, VirusTotal, and ClamAV.",technologies:["React","Node.js","Plasmo","Redis","Socket.IO","Jenkins"],metrics:["40% faster threat response","Real-time alert system"],category:"Security",featured:!0},{id:3,title:"Kaayu – Recruitment System",description:"Architected scalable recruitment management platform with Python-based ATS and resume parsing engine for automated candidate evaluation and data extraction.",technologies:["Next.js","Node.js","Express","Python","MySQL","Jenkins"],metrics:["Automated candidate processing","SEO-friendly interfaces"],category:"HR Tech",featured:!0},{id:4,title:"MagicHR – HRMS Platform",description:"Led 9-member team to design feature-rich HRMS with payroll, attendance, leave, and task management modules. Implemented RBAC and Redis caching for performance.",technologies:["React","TypeScript","Redux","Express.js","MySQL","Redis"],metrics:["Improved HR operations efficie
9ncy","Role-based access control"],category:"HR Tech",featured:!1},{id:5,title:"Desk Monitor – Employee Tracking",description:"Architected real-time employee monitoring service with NestJS backend, Kafka for event-driven processing, supporting thousands of concurrent monitoring events per second.",technologies:["NestJS","Kafka","PostgreSQL","GraphQL","Next.js"],metrics:["Thousands of concurrent events/sec","Real-time activity visualization"],category:"Enterprise",featured:!0},{id:6,title:"Stylemate – Fashion E-Commerce",description:"Full-stack development of modern fashion e-commerce platform with Vue.js frontend and GraphQL API. Integrated Facebook Graph API for social engagement.",technologies:["Vue.js","Node.js","GraphQL","MongoDB","TypeScript"],metrics:["30% faster page loads","Enhanced social engagement"],category:"E-Commerce",featured:!1},{id:7,title:"Industry ERP with Hardware Integration",description:"End-to-end industry management ERP integrating weighbridge hardware using Electron.js and Node-SerialPort. Built modules for payroll, attendance, and P&L reporting.",technologies:["Next.js","Electron.js","Node-SerialPort","PostgreSQL","MySQL"],metrics:["50% operational efficiency gain","Hardware-software integration"],category:"Enterprise",featured:!0}],"skills",0,{frontend:{title:"Frontend",items:["React","Vue.js","Angular","Next.js","Tailwind CSS","HTML5","CSS3","TypeScript"]},backend:{title:"Backend",items:["Node.js","NestJS","FastAPI","Express.js","Python","Go"]},databases:{title:"Databases",items:["PostgreSQL","MySQL","MongoDB","Redis"]},devops:{title:"DevOps",items:["Docker","Jenkins","NGINX","CI/CD","Git"]},cloud:{title:"Cloud & Messaging",items:["AWS","Azure","RabbitMQ","Kafka","WebSockets"]},apis:{title:"APIs",items:["REST","GraphQL","OpenAI API","Socket.IO"]}}],35854)},50682,t=>{"use strict";let e=(0,t.i(75254).default)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);t.s(["Github",0,e],50682)},51348,63488,78021,t=>{"use strict";var e=t.i(75254);let i=(0,e.default)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);t.s(["Linkedin",0,i],51348);let n=(0,e.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);t.s(["Mail",0,n],63488);let r=(0,e.default)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);t.s(["Twitter",0,r],78021)},46897,t=>{"use strict";let e=(0,t.i(75254).default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);t.s(["MapPin",0,e],46897)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.