PageSourceSearch

https://www.veronicasuperguide.nl/_next/static/chunks/0qcnen6vv1rif.js

js veronicasuperguide.nl collected 2026-09-24 17:49:05 UTC 181,544 bytes, 12 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,819865,e=>{"use strict";var t=e.i(851959);e.s(["ArticleSelectionPrefetch",0,({prefetchUrls:e})=>((0,t.useEffect)(()=>{e.forEach(e=>{e&&fetch(e,{method:"GET",credentials:"include"})})},[]),null)])},956173,e=>{e.v({checklist:"CheckList-module-scss-module__6L_FhG__checklist",icon:"CheckList-module-scss-module__6L_FhG__icon",iconWrapper:"CheckList-module-scss-module__6L_FhG__iconWrapper"})},25651,e=>{e.v({badge:"Heading-module-scss-module__HCbmxa__badge",heading:"Heading-module-scss-module__HCbmxa__heading",icon:"Heading-module-scss-module__HCbmxa__icon",iconWrapper:"Heading-module-scss-module__HCbmxa__iconWrapper",imageWrapper:"Heading-module-scss-module__HCbmxa__imageWrapper",subtitle:"Heading-module-scss-module__HCbmxa__subtitle",title:"Heading-module-scss-module__HCbmxa__title"})},344228,e=>{"use strict";var t=e.i(851959);e.s(["ForMeRedirect",0,({hasActivePreference:e})=>((0,t.useEffect)(()=>{!e&&window?.location&&(window.location.href="/voor-mij")},[]),null)])},816655,e=>{e.v({dropDownAdditionItem:"DropDownAdditionItem-module-scss-module__cql5jq__dropDownAdditionItem",title:"DropDownAdditionItem-module-scss-module__cql5jq__title"})},285077,e=>{e.v({action:"DropDownPreferenceItem-module-scss-module__yiEJmq__action",active:"DropDownPreferenceItem-module-scss-module__yiEJmq__active",activeCircle:"DropDownPreferenceItem-module-scss-module__yiEJmq__activeCircle",circle:"DropDownPreferenceItem-module-scss-module__yiEJmq__circle",description:"DropDownPreferenceItem-module-scss-module__yiEJmq__description",dropDownItem:"DropDownPreferenceItem-module-scss-module__yiEJmq__dropDownItem",edit:"DropDownPreferenceItem-module-scss-module__yiEJmq__edit",info:"DropDownPreferenceItem-module-scss-module__yiEJmq__info",name:"DropDownPreferenceItem-module-scss-module__yiEJmq__name"})},607444,e=>{e.v({active:"DropDownMenu-module-scss-module__Hl4AEa__active",backdrop:"DropDownMenu-module-scss-module__Hl4AEa__backdrop",dropDown:"DropDownMenu-module-scss-module__Hl4AEa__dropDown",menuToggle:"DropDownMenu-module-scss-module__Hl4AEa__menuToggle",name:"DropDownMenu-module-scss-module__Hl4AEa__name",selections:"DropDownMenu-module-scss-module__Hl4AEa__selections"})},98712,e=>{"use strict";var t=e.i(79589),i=e.i(251093),n=e.i(816655);let r=({title:e,link:r})=>(0,t.jsxs)("a",{href:r,className:n.default.dropDownAdditionItem,children:[(0,t.jsx)(i.ThemeIcon,{iconName:"add",className:n.default.icon,title:e,size:"medium"}),(0,t.jsx)("span",{className:n.default.title,children:e})]});var s=e.i(528588),o=e.i(734804),a=e.i(851959),l=e.i(341278);let u=e=>{let{iconName:n,size:r,title:s,inverted:o,testId:a,hover:u,active:h,focus:d,...c}=e;return(0,t.jsx)("a",{...c,"data-test-id":a,className:(0,l.getIconButtonStyle)({inverted:o,hover:u,active:h,focus:d}),children:(0,t.jsx)(i.ThemeIcon,{iconName:n,size:r,title:s??n})})};var h=e.i(285077);let d=({name:e,description:i,active:n,link:r,editLink:s,onClick:o})=>(0,t.jsxs)("div",{className:`${h.default.dropDownItem}`,children:[(0,t.jsxs)("a",{className:h.default.action,href:r,title:e,onClick:o,children:[(0,t.jsx)("div",{className:`${h.default.circle}  ${n?h.default.activeCircle:""}`}),(0,t.jsxs)("div",{className:h.default.info,children:[(0,t.jsx)("div",{className:`${h.default.name} ${n?h.default.active:""}`,dangerouslySetInnerHTML:{__html:e}}),(0,t.jsx)("div",{className:h.default.description,dangerouslySetInnerHTML:{__html:i}})]})]}),(0,t.jsx)(u,{iconName:"edit",href:s,size:"large",className:h.default.edit,title:`Bewerk ${e}`})]});var c=e.i(607444);e.s(["DropDownMenu",0,({preferences:e,activePreferenceKey:n,type:l})=>{let{pregnancy:u,children:h,childWish:m}=e,[p,f]=(0,a.useState)(!1),g=(e,t)=>{o.default.remove(s.CHILD_COOKIE_NAME),e&&o.default.set(s.CHILD_COOKIE_NAME,e),window.location.href=t},y=(0,a.useMemo)(()=>{if(n?.type!=="child")return null;let e=h||[];if(!e.length)return null;let t=null;if(e.length>1){let i=o.default.get(s.CHILD_COOKIE_NAME);i&&e.some(e=>e.id===i)&&(t=i)}return t||(t=e[0].id),t},[n,h]),v=(0,a.useMemo)(()=>
1{if(!n&&"child"===l)return"Mijn Baby";if(!n&&"unborn"===l||n?.preferenceId===u?.id)return"Mijn zwangerschap";if(n?.preferenceId===m?.id)return"Mijn kinderwens";if(n?.type==="child"){let e=h?.find(e=>e.id===y)||h?.[0];if(e)return e.value.name||"Mijn Baby"}return"Voeg zwangerschap of kind toe"},[n,y,u?.id,m?.id,h,l]);return(0,t.jsxs)("div",{className:c.default.dropDown,children:[(0,t.jsxs)("button",{className:c.default.menuToggle,onClick:()=>f(!p),children:[(0,t.jsx)("span",{className:c.default.name,dangerouslySetInnerHTML:{__html:v}}),(0,t.jsx)(i.ThemeIcon,{iconName:p?"direction_up":"direction_down",title:p?"Sluit menu":"Open menu",size:"medium"})]}),p&&(0,t.jsx)("div",{className:c.default.backdrop,onClick:()=>f(!1)}),(0,t.jsxs)("div",{className:`${c.default.selections} ${p?c.default.active:""}`,children:[u&&(0,t.jsx)(d,{name:"Mijn zwangerschap",description:`Uitgerekend op ${u.value.formatedDueDate}`,link:"/voor-mij/zwanger/week/nu",onClick:()=>g(null,"/voor-mij/zwanger/week/nu"),active:u.id===n?.preferenceId,editLink:"/profile/zwanger/zwangerschap-wijzigen"}),h&&h.map(e=>(0,t.jsx)(d,{name:e.value.name||"Mijn baby",description:`${e.value.weeks} ${1===e.value.weeks?"week":"weken"} oud`,link:"/voor-mij/baby/week/nu",onClick:()=>{g(e.id,"/voor-mij/baby/week/nu")},active:e.id===y,editLink:`/profile/kinderen/kind-gegevens-wijzigen/${e.id}/${e.value.name}`},e.id)),m&&(0,t.jsx)(d,{name:"Mijn kinderwens",description:"",link:"/voor-mij/kinderwens",active:m.id===n?.preferenceId,editLink:"/profile/kinderwens"}),!u&&(0,t.jsx)(r,{title:"Voeg een zwangerschap toe",link:"/profile/zwanger/zwangerschap-toevoegen"}),(0,t.jsx)(r,{title:"Voeg een kind toe",link:"/profile/kinderen/kind-toevoegen"})]})]})}],98712)},861878,e=>{e.v({buttons:"ChildName-module-scss-module__TtZVmG__buttons",childNameForm:"ChildName-module-scss-module__TtZVmG__childNameForm"})},21575,e=>{e.v({buttons:"Confirmation-module-scss-module__6BqKkW__buttons"})},399175,e=>{e.v({buttons:"Magazine-module-scss-module__TMMykW__buttons",footer:"Magazine-module-scss-module__TMMykW__footer"})},243633,e=>{e.v({content:"ContentWrapper-module-scss-module__6IbX_W__content"})},426492,e=>{e.v({step:"StepWrapper-module-scss-module__56yNaq__step",topBarGap:"StepWrapper-module-scss-module__56yNaq__topBarGap"})},146901,e=>{e.v({childDateForm:"ChildDate-module-scss-module__bZZlmG__childDateForm"})},728320,e=>{e.v({content:"Finalizing-module-scss-module__6iOdjq__content",finalizing:"Finalizing-module-scss-module__6iOdjq__finalizing",loading:"Finalizing-module-scss-module__6iOdjq__loading",rotation:"Finalizing-module-scss-module__6iOdjq__rotation"})},764727,e=>{e.v({address:"MagazineForm-module-scss-module__DkZMHG__address",addressWrapper:"MagazineForm-module-scss-module__DkZMHG__addressWrapper",error:"MagazineForm-module-scss-module__DkZMHG__error",errorMessageWrapper:"MagazineForm-module-scss-module__DkZMHG__errorMessageWrapper",formWrapper:"MagazineForm-module-scss-module__DkZMHG__formWrapper",hidden:"MagazineForm-module-scss-module__DkZMHG__hidden",icon:"MagazineForm-module-scss-module__DkZMHG__icon",inputsWrapper:"MagazineForm-module-scss-module__DkZMHG__inputsWrapper",manualInputToggle:"MagazineForm-module-scss-module__DkZMHG__manualInputToggle",postcode:"MagazineForm-module-scss-module__DkZMHG__postcode",serviceErrorMessage:"MagazineForm-module-scss-module__DkZMHG__serviceErrorMessage"})},971548,e=>{e.v({buttons:"Newsletter-module-scss-module__lto5Ga__buttons",wrapper:"Newsletter-module-scss-module__lto5Ga__wrapper"})},802155,e=>{e.v({background:"Onboarding-module-scss-module___cnxQq__background",container:"Onboarding-module-scss-module___cnxQq__container",topBar:"Onboarding-module-scss-module___cnxQq__topBar",wrapper:"Onboarding-module-scss-module___cnxQq__wrapper"})},648409,e=>{e.v({calculateModal:"PregnancyDate-module-scss-module__wziZJq__calculateModal",modal:"PregnancyDate-module-scss-module__wziZJq__modal",modalTrigger:"PregnancyDate-module-scss-module__wziZJq__modalTrigger",pregnancyForm:"PregnancyDate-module-scss-module__wziZJq__pregnancyForm",submitButton:"PregnancyDate-module-scss-module__wziZJq__submitButton"})},97860,e=>{e.v({icon:"BackButton-module-scss-module__jjjA3G__icon"})},259841,e=>{e.v({progressBar:"TopBar-module-scss-module__POCTgq__progressBar",progressContainer:"TopBar-module-scss-module__POCTgq__progressContainer",topBar:"TopBar-module-scss-module__POCTgq__topBar"})},458531,e=>{e.v({buttons:"Welcome-module-scss-module__7c22Uq__buttons",note:"Welcome-module-scss-module__7c22Uq__note"})},233470,e=>{"use strict";let t,i,n;var r=e.i(79589),s=e.i(93281),o=e.i(623250),a=e.i(851959),l=e.i(17570),u=e.i(728320);let h=({choice:e,submittedDate:t})=>{let i=(0,a.useRef)(null),n=0;if(t){let i=t.get("periodDate");if("child"===e){let e;e=new Date(i),n=Math.floor((new Date().getTime()-e.getTime())/6048e5)}else n=(0,l.calculateWeeksPregnant)(i)}return(0,a.useEffect)(()=>{i.current&&(i.current.style.height=`${window.innerHeight}px`)},[]),(0,r.jsxs)("div",{ref:i,className:u.default.finalizing,children:[(0,r.jsx)("img",{src:`${o.env.
1NEXT_PUBLIC_BASE_URL}/img/ovn_logo.svg`,alt:"ovn_logo",width:"103",height:"128"}),"unborn"===e?(0,r.jsxs)("p",{className:u.default.content,children:["Je bent nu ",n," weken zwanger"]}):"child"===e?(0,r.jsxs)("p",{className:u.default.content,children:["Je kind is nu ",n," weken oud"]}):(0,r.jsx)("p",{className:u.default.content,children:"Je kinderwens aan het toevoegen"}),(0,r.jsx)("span",{className:u.default.loading})]})};var d=e.i(889545),c=e.i(782765),m=e.i(5944);let p=(0,m.createServerReference)("40e1c3b16e897de34039d70a924c70462387933910",m.callServer,void 0,m.findSourceMapURL,"addMagazineDelivery"),f=(0,m.createServerReference)("6070400ed26dffe8697c2d6b32c69efb6ce192464a",m.callServer,void 0,m.findSourceMapURL,"setPregnancy");var g=e.i(843537),y=e.i(730266),v=e.i(430207),x=e.i(197017),w=e.i(557654);let b=(0,a.createContext)({});function S(e){let t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}let T="u">typeof window?a.useLayoutEffect:a.useEffect,k=(0,a.createContext)(null),_=e=>"object"==typeof e&&null!==e;function E(e){return _(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var j=a;let P=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function M(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class D extends j.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(E(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=E(e)&&e.offsetWidth||0,n=E(e)&&e.offsetHeight||0,r=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=t.offsetTop,s.left=t.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 C({children:e,isPresent:t,anchorX:i,anchorY:n,root:s,pop:o}){let l=(0,j.useId)(),u=(0,j.useRef)(null),h=(0,j.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=(0,j.useContext)(P),c=function(...e){return a.useCallback(function(...e){return t=>{let i=!1,n=e.map(e=>{let n=M(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof i?i():M(e[t],null)}}}}(...e),e)}(u,!1!==o?e.props?.ref??e?.ref:void 0);return(0,j.useInsertionEffect)(()=>{let{width:e,height:r,top:a,left:c,right:m,bottom:p,direction:f}=h.current;if(t||!1===o||!u.current||!e||!r)return;let g="rtl"===f,y="left"===i?g?`right: ${m}`:`left: ${c}`:g?`left: ${c}`:`right: ${m}`,v="bottom"===n?`bottom: ${p}`:`top: ${a}`;u.current.dataset.motionPopId=l;let x=document.createElement("style");d&&(x.nonce=d);let w=s??document.head;return w.appendChild(x),x.sheet&&x.sheet.insertRule(`
2          [data-motion-pop-id="${l}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${r}px !important;
6            ${y}px !important;
7            ${v}px !important;
8          }
9        `),()=>{u.current?.removeAttribute("data-motion-pop-id"),w.contains(x)&&w.removeChild(x)}},[t]),(0,r.jsx)(D,{isPresent:t,childRef:u,sizeRef:h,pop:o,children:!1===o?e:j.cloneElement(e,{ref:c})})}let A=({children:e,initial:t,isPresent:i,onExitComplete:n,custom:s,presenceAffectsLayout:o,mode:l,anchorX:u,anchorY:h,root:d})=>{let c=S(R),m=(0,a.useId)(),p=(0,a.useRef)(i),f=(0,a.useRef)(n);T(()=>{p.current=i,f.current=n});let g=!0,y=(0,a.useMemo)(()=>(g=!1,{id:m,initial:t,isPresent:i,custom:s,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;n&&n()},register:e=>(c.set(e,!1),()=>{c.delete(e),p.current||c.size||f.current?.()})}),[i,c,n]);return o&&g&&(y={...y}),(0,a.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[i]),a.useEffect(()=>{i||c.size||!n||n()},[i]),e=(0,r.jsx)(C,{pop:"popLayout"===l,isPresent:i,anchorX:u,anchorY:h,root:d,children:e}),(0,r.jsx)(k.Provider,{value:y,children:e})};function R(){return new Map}function V(e=!0){let t=(0,a.useContext)(k);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=t,s=(0,a.useId)();(0,a.useEffect)(()=>
9{if(e)return r(s)},[e]);let o=(0,a.useCallback)(()=>e&&n&&n(s),[s,n,e]);return!i&&n?[!1,o]:[!0]}let F=e=>e.key||"";function B(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}let N=({children:e,custom:t,initial:i=!0,onExitComplete:n,presenceAffectsLayout:s=!0,mode:o="sync",propagate:l=!1,anchorX:u="left",anchorY:h="top",root:d})=>{let[c,m]=V(l),p=(0,a.useMemo)(()=>B(e),[e]),f=l&&!c?[]:p.map(F),g=(0,a.useRef)(!0),y=(0,a.useRef)(p),v=S(()=>new Map),x=(0,a.useRef)(new Set),[w,k]=(0,a.useState)(p),[_,E]=(0,a.useState)(p);T(()=>{!l||c||_.length||m?.()},[c,l,_.length,m]),T(()=>{g.current=!1,y.current=p;for(let e=0;e<_.length;e++){let t=F(_[e]);f.includes(t)?(v.delete(t),x.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[_,f.length,f.join("-")]);let j=[];if(p!==w){let e=[...p],t=0;for(let i of _){let n=f.indexOf(F(i));-1===n?(e.splice(t++,0,i),j.push(i)):t=n+j.length+1}return"wait"===o&&j.length&&(e=j),E(B(e)),k(p),null}let{forceRender:P}=(0,a.useContext)(b);return(0,r.jsx)(r.Fragment,{children:_.map(e=>{let a=F(e),w=(!l||!!c)&&(p===_||f.includes(a));return(0,r.jsx)(A,{isPresent:w,initial:(!g.current||!!i)&&void 0,custom:t,presenceAffectsLayout:s,mode:o,root:d,onExitComplete:w?void 0:()=>{if(x.current.has(a)||!v.has(a))return;x.current.add(a),v.set(a,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(P?.(),E(y.current),l&&m?.(),n&&n())},anchorX:u,anchorY:h,children:e},a)})})},L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],I=new Set([...L,"pathRotation"]),O=(e,t,i)=>i>t?t:i<e?e:i,z={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},H={...z,transform:e=>O(0,1,e)},W={...z,default:1},$=e=>Math.round(1e5*e)/1e5,U=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,G=(e,t)=>i=>!!("string"==typeof i&&q.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),X=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(U);return{[e]:parseFloat(r),[t]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},Y={...z,transform:e=>Math.round(O(0,255,e))},K={test:G("rgb","red"),parse:X("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+Y.transform(e)+", "+Y.transform(t)+", "+Y.transform(i)+", "+$(H.transform(n))+")"},Z={test:G("#"),parse:function(e){let t="",i="",n="",r="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,i+=i,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:K.transform},J=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Q=J("deg"),ee=J("%"),et=J("px"),ei=J("vh"),en=J("vw"),er={...ee,parse:e=>ee.parse(e)/100,transform:e=>ee.transform(100*e)},es={test:G("hsl","hue"),parse:X("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:n=1})=>"hsla("+Math.round(e)+", "+ee.transform($(t))+", "+ee.transform($(i))+", "+$(H.transform(n))+")"},eo={test:e=>K.test(e)||Z.test(e)||es.test(e),parse:e=>K.test(e)?K.parse(e):es.test(e)?es.parse(e):Z.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?K.transform(e):es.transform(e),getAnimatableNone:e=>{let t=eo.parse(e);return t.alpha=0,eo.transform(t)}},ea=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,el="number",eu="color",eh=/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 ed(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=t.replace(eh,e=>(eo.test(e)?(n.color.push(s),r.push(eu),i.push(eo.parse(e))):e.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(e)):(n.number.push(s),r.push(el),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function ec({split:e,types:t}){let i=e.length;return n=>{let r="";for(let s=0;s<i;s++)if(r+=e[s],void 0!==n[s]){let e=t[s];e===el?r+=$(n[s]):e===eu?r+=eo.transform(n[s]):r+=n[s]}return r}}let em={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(U)?.length||0)+(e.match(ea)?.length||0)>0},parse:function(e){return ed(e).values},createTransformer:function(e){return ec(ed(e))},getAnimatableNone:function(e){let t=ed(e);return ec(t)(t.values.map((e,i)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:eo.test(e)?eo.getAnimatableNone(e):e)(e,t.split[i])))}},ep=new Set(["brightness","contrast","saturate","opacity"]);function ef(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(U)||[];if(!n)return e;let r=i.replace(n,""),s=+!!ep.has(t);return n!==i&&(s*=100),t+"("+s+r+")"}let eg=/\b([a-z-]*)\(.*?\)/gu,ey={...em,getAnimatableNone:e=>{let t=e.match(eg);return t?t.map(ef).join(" "):e}},ev={...em,getAnimatableNone:e=>{let t=em.parse(e);return em.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},ex={...z,transform:Math.round},ew={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,top:et,right:et,bottom:et,left:et,inset:et,insetBlock:et,insetBlockStart:et,insetBlockEnd:et,insetInline:et,insetInlineStart:et,insetInlineEnd:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,paddingBlock:et,paddingBlockStart:et,paddingBlockEnd:et,paddingInline:et,paddingInlineStart:et,paddingInlineEnd:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,marginBlock:et,marginBlockStart:et,marginBlockEnd:et,marginInline:et,marginInlineStart:et,marginInlineEnd:et,fontSize:et,backgroundPositionX:et,backgroundPositionY:et,rotate:Q,pathRotation:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:W,scaleX:W,scaleY:W,scaleZ:W,skew:Q,skewX:Q,skewY:Q,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:H,originX:er,originY:er,originZ:et,zIndex:ex,fillOpacity:H,strokeOpacity:H,numOctaves:ex},eb={...ew,color:eo,backgroundColor:eo,outlineColor:eo,fill:eo,stroke:eo,borderColor:eo,borderTopColor:eo,borderRightColor:eo,borderBottomColor:eo,borderLeftColor:eo,filter:ey,WebkitFilter:ey,mask:ev,WebkitMask:ev},eS=e=>eb[e],eT=()=>({translate:0,scale:1,origin:0,originPoint:0}),ek=()=>({x:eT(),y:eT()}),e_=()=>({min:0,max:0}),eE=()=>({x:e_(),y:e_()}),ej=e=>!!(e&&e.getVelocity),eP=new Set(["width","height","top","left","right","bottom",...L]),eM=e=>t=>t.test(e),eD=[z,et,ee,Q,en,ei,{test:e=>"auto"===e,parse:e=>e}],eC=e=>eD.find(eM(e)),eA=()=>{},eR=()=>{};w.default;let eV=e=>t=>"string"==typeof t&&t.startsWith(e),eF=eV("--"),eB=eV("var(--"),eN=e=>!!eB(e)&&eL.test(e.split("/*")[0].trim()),eL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eI(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let eO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ez=e=>180*e/Math.PI,eH=e=>e$(ez(Math.atan2(e[1],e[0]))),eW={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eH,rotateZ:eH,skewX:e=>ez(Math.atan(e[1])),skewY:e=>ez(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},e$=e=>((e%=360)<0&&(e+=360),e),eU=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eq=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eG={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eU,scaleY:eq,scale:e=>(eU(e)+eq(e))/2,rotateX:e=>e$(ez(Math.atan2(e[6],e[5]))),rotateY:e=>e$(ez(Math.atan2(-e[2],e[0]))),rotateZ:eH,rotate:eH,skewX:e=>ez(Math.atan(e[4])),skewY:e=>ez(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eX(e){return+!!e.includes("scale")}function eY(e,t){let i,n;if(!e||"none"===e)return eX(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=eG,n=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eW,n=t}if(!n)return eX(t);let s=i[t],o=n[1].split(",").map(eK);return"function"==typeof s?s(o):o[s]}function eK(e){return parseFloat(e.trim())}let eZ=e=>e===z||e===et,eJ=new Set(["x","y","z"]),eQ=L.filter(e=>!eJ.has(e)),e0={width:({x:e},{paddingLeft:t="0",paddingRight:i="0",boxSizing:n})=>{let r=e.max-e.min;return"border-box"===n?r:r-parseFloat(t)-parseFloat(i)},height:({y:e},{paddingTop:t="0",paddingBottom:i="0",boxSizing:n})=>{let r=e.max-e.min;return"border-box"===n?r:r-parseFloat(t)-parseFloat(i)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eY(t,"x"),y:(e,{transform:t})=>eY(t,"y")};e0.translateX=e0.x,e0.translateY=e0.y;let e1=e=>e,e2={},e5=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function e3(e,t){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=e5.reduce((e,t)=>
9(e[t]=function(e){let t=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(t){s.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,r=!1,o=!1)=>{let a=o&&n?t:i;return r&&s.add(e),a.add(e),e},cancel:e=>{i.delete(e),s.delete(e)},process:e=>{if(o=e,n){r=!0;return}n=!0;let s=t;t=i,i=s,t.forEach(a),t.clear(),n=!1,r&&(r=!1,l.process(e))}};return l}(s),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:m,postRender:p}=o,f=()=>{let s=e2.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),d.process(r),c.process(r),m.process(r),p.process(r),r.isProcessing=!1,i&&t&&(n=!1,e(f))};return{schedule:e5.reduce((t,s)=>{let a=o[s];return t[s]=(t,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||e(f)),a.schedule(t,s,o)),t},{}),cancel:e=>{for(let t=0;t<e5.length;t++)o[e5[t]].cancel(e)},state:r,steps:o}}let{schedule:e4,cancel:e9,state:e6,steps:e7}=e3("u">typeof requestAnimationFrame?requestAnimationFrame:e1,!0),e8=new Set,te=!1,tt=!1,ti=!1;function tn(){if(tt){let e=Array.from(e8).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,n=(t=[],eQ.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),t);n.length&&(i.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tt=!1,te=!1,e8.forEach(e=>e.complete(ti)),e8.clear()}function tr(){e8.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tt=!0)})}class ts{constructor(e,t,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(e8.add(this),te||(te=!0,e4.read(tr),e4.resolveKeyframes(tn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;if(null===e[0]){let r=n?.get(),s=e[e.length-1];if(void 0!==r)e[0]=r;else if(i&&t){let n=i.readValue(t,s);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=s),n&&void 0===r&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),e8.delete(this)}cancel(){"scheduled"===this.state&&(e8.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let to=new Set([ey,ev]);function ta(e,t){let i=eS(e);return to.has(i)||(i=em),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let tl=new Set(["auto","none","0"]);class tu extends ts{constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&eN(n=n.trim())){let r=function e(t,i,n=1){eR(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,s]=function(e){let t=eO.exec(e);if(!t)return[,];let[,i,n,r]=t;return[`--${i??n}`,r]}(t);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eN(s)?e(s,i,n+1):s}(n,t.current);void 0!==r&&(e[i]=r),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!eP.has(i)||2!==e.length)return;let[n,r]=e,s=eC(n),o=eC(r);if(eI(n)!==eI(r)&&e0[i]){this.needsMeasurement=!0;return}if(s!==o)if(eZ(s)&&eZ(o))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else e0[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let n,r=0;for(;r<e.length&&!n;){let t=e[r];"string"==typeof t&&!tl.has(t)&&ed(t).values.length&&(n=e[r]),r++}if(n&&i)for(let r of t)e[r]=ta(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=e0[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=e0[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let th=e=>1e3*e;function td(e,t){-1===e.indexOf(t)&&e.push(t)}function tc(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class tm{constructor(){this.subscriptions=[]}add(e){return td(this.subscriptions,e),()=>tc(this.subscriptions,e)}notify(e,t,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tp(e,t,i){t.startsWith("--")?e.style.setProperty(t,i):e.style[t]=i}function tf(e){let t;return()=>(void 0===t&&(t=e()),t)}let tg={};function ty(e,t){let i=tf(e);return()=>tg[t]??i()}let tv=ty(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tx=e=>null!==e;function tw(e,{repeat:t,repeatType:i="loop"},n,r=1){let s=e.filter(tx),o=r<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class tb{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let tS=e=>Array.isArray(e)&&"number"==typeof e[0],tT=ty(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tk=(e,t,i=10)=>{let n="",r=Math.max(Math.round(t/i),2);for(let t=0;t<r;t++)n+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t_=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,tE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t_([0,.65,.55,1]),circOut:t_([.55,0,1,.45]),backIn:t_([.31,.01,.66,-.59]),backOut:t_([.33,1.53,.69,.99])};function tj(e){return"function"==typeof e&&"applyToOptions"in e}class tP extends tb{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=e;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=e,eR(e.type);const l=function({type:e,...t}){return tj(e)&&tT()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[t]:i};l&&(h.offset=l);let d=function e(t,i){if(t)return"function"==typeof t?tT()?tk(t,i):"ease-out":tS(t)?t_(t):Array.isArray(t)?t.map(t=>e(t,i)||tE.easeOut):tE[t]}(a,r);Array.isArray(d)&&(h.easing=d);let c={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};return u&&(c.pseudoElement=u),e.animate(h,c)}(t,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=tw(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),tp(t,i,e),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(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=th(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tv())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),e1):n(this)}}let tM=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:tD}=e3(queueMicrotask,!1);function tC(){t=void 0}let tA={now:()=>(void 0===t&&tA.set(e6.isProcessing||e2.useManualTiming?e6.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tC)}},tR=(e,t)=>t?1e3/t*e:0,tV;class tF{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tA.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tA.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new tm);let i=this.events[e].add(t);return"change"===e?()=>{i(),e4.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tV&&tV.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tA.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tR(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tB(e,t){return new tF(e,t)}let tN=[...eD,eo,em],tL=new WeakMap;function tI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tO(e){return"string"==typeof e||Array.isArray(e)}let tz=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tH=["initial",...tz];function tW(e){return tI(e.animate)||tH.some(t=>tO(e[t]))}function t$(e){return!!(tW(e)||e.variants)}let tU={current:null},tq={current:!1},tG="u">typeof window;function tX(e){let t=[{},{}];
9return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tY(e,t,i,n){if("function"==typeof t){let[r,s]=tX(n);t=t(void 0!==i?i:e.custom,r,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,s]=tX(n);t=t(void 0!==i?i:e.custom,r,s)}return t}let tK=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tZ={};class tJ{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,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=ts,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 e=tA.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,e4.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=tW(t),this.isVariantNode=t$(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&ej(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,tL.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tq.current||function(){if(tq.current=!0,tG)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tU.current=e.matches;e.addEventListener("change",t),t()}else tU.current=!1}(),this.shouldReduceMotion=tU.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),e9(this.notifyUpdate),e9(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&tM.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=t.accelerate,a=new tP({element:this.current,name:e,keyframes:n,times:r,ease:s,duration:th(o)}),l=i(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let n=I.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&e4.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tZ){let t=tZ[e];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];
9t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):eE()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tK.length;t++){let i=tK[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=e["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(e,t,i){for(let n in t){let r=t[n],s=i[n];if(ej(r))e.addValue(n,r);else if(ej(s))e.addValue(n,tB(r,{owner:e}));else if(s!==r)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(n);e.addValue(n,tB(void 0!==t?t:r,{owner:e}))}}for(let n in i)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=tB(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];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,!tN.find(eM(n))&&em.test(t)&&(i=ta(e,t))}this.setBaseTarget(e,ej(i)?i.get():i)}return ej(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=tY(this.props,i,this.presenceContext?.custom);n&&(t=n[e])}if(i&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||ej(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new tm),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tD.render(this.render)}}class tQ extends tJ{constructor(){super(...arguments),this.KeyframeResolver=tu}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;ej(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function t0(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let t1=(e,t)=>t&&"number"==typeof e?t.transform(e):e,t2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t5=L.length;function t3(e,t,i){let{style:n,vars:r,transformOrigin:s}=e,o=!1,a=!1;for(let e in t){let i=t[e];if(I.has(e)){o=!0;continue}if(eF(e)){r[e]=i;continue}{let t=t1(i,ew[e]);e.startsWith("origin")?(a=!0,s[e]=t):n[e]=t}}if(!t.transform&&(o||i?n.transform=function(e,t,i){let n="",r=!0;for(let s=0;s<t5;s++){let o=L[s],a=e[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let e=parseFloat(a);l=o.startsWith("scale")?1===e:0===e}if(!l||i){let e=t1(a,ew[o]);if(!l){r=!1;let t=t2[o]||o;n+=`${t}(${e}) `}i&&(t[o]=e)}}let s=e.pathRotation;return s&&(r=!1,n+=`rotate(${t1(s,ew.pathRotation)}) `),n=n.trim(),i?n=i(t,r?"":n):r&&(n="none"),n}(t,e.transform,i):n.transform&&(n.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:i=0}=s;n.transformOrigin=`${e} ${t} ${i}`}}let t4={offset:"stroke-dashoffset",array:"stroke-dasharray"},t9={offset:"strokeDashoffset",array:"strokeDasharray"},t6=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function t7(e,{attrX:t,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a}
9,l,u,h){if(t3(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:c}=e;for(let e of t6)void 0!==d[e]&&(c[e]=d[e],delete d[e]);(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(e,t,i=1,n=0,r=!0){e.pathLength=1;let s=r?t4:t9;e[s.offset]=`${-n}`,e[s.array]=`${t} ${i}`}(d,r,s,o,!1)}let t8=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"]),ie=e=>"string"==typeof e&&"svg"===e.toLowerCase();function it(e,{style:t,vars:i},n,r){let s,o=e.style;for(s in t)o[s]=t[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}let ii=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function ir(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let is={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!et.test(e))return e;else e=parseFloat(e);let i=ir(e,t.target.x),n=ir(e,t.target.y);return`${i}% ${n}%`}},io=(e,t,i)=>e+(t-e)*i,ia={borderRadius:{...is,applyTo:[...ii]},borderTopLeftRadius:is,borderTopRightRadius:is,borderBottomLeftRadius:is,borderBottomRightRadius:is,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=em.parse(e);if(n.length>5)return e;let r=em.createTransformer(e),s=+("number"!=typeof n[0]),o=i.x.scale*t.x,a=i.y.scale*t.y;n[0+s]/=o,n[1+s]/=a;let l=io(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 il(e,{layout:t,layoutId:i}){return I.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!ia[e]||"opacity"===e)}function iu(e,t,i){let n=e.style,r=t?.style,s={};if(!n)return s;for(let t in n)(ej(n[t])||r&&ej(r[t])||il(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(s[t]=n[t]);return s}function ih(e,t,i){let n=iu(e,t,i);for(let i in e)(ej(e[i])||ej(t[i]))&&(n[-1!==L.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return n}class id extends tQ{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eE}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(I.has(t)){let e=eS(t);return e&&e.default||0}if(t6.includes(t)){let i=getComputedStyle(e)[t];if("string"==typeof i&&i)return i.trim()}return t=t8.has(t)?t:t0(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return ih(e,t,i)}build(e,t,i){t7(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){for(let i in it(e,t,void 0,n),t.attrs)e.setAttribute(t8.has(i)?i:t0(i),t.attrs[i])}mount(e){this.isSVGTag=ie(e.tagName),super.mount(e)}}function ic({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}function im(e){return void 0===e||1===e}function ip({scale:e,scaleX:t,scaleY:i}){return!im(e)||!im(t)||!im(i)}function ig(e){return ip(e)||iy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iy(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function iv(e,t,i,n,r){return void 0!==r&&(e=n+r*(e-n)),n+i*(e-n)+t}function ix(e,t=0,i=1,n,r){e.min=iv(e.min,t,i,n,r),e.max=iv(e.max,t,i,n,r)}function iw(e,{x:t,y:i}){ix(e.x,t.translate,t.scale,t.originPoint),ix(e.y,i.translate,i.scale,i.originPoint)}function ib(e,t){e.min+=t,e.max+=t}function iS(e,t,i,n,r=.5){let s=io(e.min,e.max,r);ix(e,t,i,s,n)}function iT(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function ik(e,t,i){let n=i??e;iS(e.x,iT(t.x,n.x),t.scaleX,t.scale,t.originX),iS(e.y,iT(t.y,n.y),t.scaleY,t.scale,t.originY)}function i_(e,t){return ic(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}class iE extends tQ{constructor(){super(...arguments),this.type="html",this.renderInstance=it}mount(e){eR(e.style),super.mount(e)}readValueFromInstance(e,t){if(I.has(t))return this.projection?.isProjecting?eX(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return eY(i,t)})(e,t);{let i=window.getComputedStyle(e),n=(eF(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return i_(e,t)}build(e,t,i){t3(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return iu(e,t,i)}}let ij=["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 iP(e){if("string"!=typeof e||e.includes("-"));else if(ij.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let iM=(0,a.createContext)({strict:!1}),iD=(0,a.createContext)({});function iC(e){return Array.isArray(e)?e.join(" "):e}let iA=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iR(e,t,i){for(let n in t)ej(t[n])||il(n,i)||(e[n]=t[n])}let iV=()=>({...iA(),attrs:{}}),iF=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 iB(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iF.has(e)}function iN(e){return ej(e)?e.get():e}let iL=e=>(t,i)=>{let n=(0,a.useContext)(iD),r=(0,a.useContext)(k),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,n,r){return{latestValues:function(e,t,i,n){let r={},s=n(e,{});for(let e in s)r[e]=iN(s[e]);let{initial:o,animate:a}=e,l=tW(e),u=t$(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===a&&(a=t.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!tI(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i<t.length;
9i++){let n=tY(e,t[i]);if(n){let{transitionEnd:e,transition:t,...i}=n;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(i,n,r,e),renderState:t()}})(e,t,n,r);return i?s():S(s)},iI=iL({scrapeMotionValuesFromProps:iu,createRenderState:iA}),iO=iL({scrapeMotionValuesFromProps:ih,createRenderState:iV}),iz={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"]},iH=!1;function iW(){return!function(){if(iH)return;let e={};for(let t in iz)e[t]={isEnabled:e=>iz[t].some(t=>!!e[t])};tZ=e,iH=!0}(),tZ}let i$=Symbol.for("motionComponentSymbol"),iU="data-"+t0("framerAppearId"),iq=(0,a.createContext)({});function iG(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function iX(e,{forwardMotionProps:t=!1,type:i}={},n,s){n&&function(e){let t=iW();for(let i in e)t[i]={...t[i],...e[i]};tZ=t}(n);let o=i?"svg"===i:iP(e),l=o?iO:iI;function u(i,n){var u;let h,d,c,m={...(0,a.useContext)(P),...i,layoutId:function({layoutId:e}){let t=(0,a.useContext)(b).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:p,isValidProp:f}=m,g=function(e){let{initial:t,animate:i}=function(e,t){if(tW(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tO(t)?t:void 0,animate:tO(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(iD));return(0,a.useMemo)(()=>({initial:t,animate:i}),[iC(t),iC(i)])}(i),y=l(i,p);if(!p&&"u">typeof window){(0,a.useContext)(iM).strict;let t=function(e){let{drag:t,layout:i}=iW();if(!t&&!i)return{};let n={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(m);h=t.MeasureLayout,g.visualElement=function(e,t,i,n,r,s){let{visualElement:o}=(0,a.useContext)(iD),l=(0,a.useContext)(iM),u=(0,a.useContext)(k),h=(0,a.useContext)(P),d=h.reducedMotion,c=h.skipAnimations,m=(0,a.useRef)(null),p=(0,a.useRef)(!1);n=n||l.renderer,!m.current&&n&&(m.current=n(e,{visualState:t,parent:o,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d,skipAnimations:c,isSVG:s}),p.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let f=m.current,g=(0,a.useContext)(iq);f&&!f.projection&&r&&("html"===f.type||"svg"===f.type)&&function(e,t,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iG(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(m.current,i,r,g);let y=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{f&&y.current&&f.update(i,u)});let v=i[iU],x=(0,a.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return T(()=>{p.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),x.current&&f.animationState&&f.animationState.animateChanges())}),(0,a.useEffect)(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),x.current=!1),f.enteringChildren=void 0)}),f}(e,y,m,s,t.ProjectionNode,o)}return(0,r.jsxs)(iD.Provider,{value:g,children:[h&&g.visualElement?(0,r.jsx)(h,{visualElement:g.visualElement,...m}):null,function(e,t,i,{latestValues:n},r,s=!1,o,l){let u=(o??iP(e)?function(e,t,i,n){let r=(0,a.useMemo)(()=>{let i=iV();return t7(i,t,ie(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};iR(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let i,n,r={},s=(i=e.style||{},iR(n={},i,e),Object.assign(n,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{let i=iA();return t3(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}
9`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r})(t,n,r,e),h=function(e,t,i,n){let r={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&!ej(e[s])&&((s.startsWith("on")?!iB(s):n?.(s)??!iB(s))||!0===i&&iB(s)||!t&&!iB(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}(t,"string"==typeof e,s,l),d=e!==a.Fragment?{...h,...u,ref:i}:{},{children:c}=t,m=(0,a.useMemo)(()=>ej(c)?c.get():c,[c]);return(0,a.createElement)(e,{...d,children:m})}(e,i,(u=g.visualElement,d=(0,a.useRef)(n),(0,a.useInsertionEffect)(()=>{d.current=n}),c=(0,a.useRef)(null),(0,a.useCallback)(e=>{e&&y.onMount?.(e),u&&(e?u.mount(e):u.unmount());let t=d.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(c.current=i)}else c.current?(c.current(),c.current=null):t(e);else t&&(t.current=e)},[u])),y,p,t,o,f)]})}u.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let h=(0,a.forwardRef)(u);return h[i$]=e,h}class iY{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iK(e,t,i){let n=e.getProps();return tY(n,t,void 0!==i?i:n.custom,e)}function iZ(e,t){if(e?.inherit&&t){let{inherit:i,...n}=e;return{...t,...n}}return e}function iJ(e,t){let i=e?.[t]??e?.default??e;return i!==e?iZ(i,e):i}let iQ=e=>Array.isArray(e);function i0(e,t){let i=e.getValue("willChange");if(ej(i)&&i.add)return i.add(t);if(!i&&e2.WillChange){let i=new e2.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let i1=(...e)=>e.reduce((e,t)=>i=>t(e(i)));function i2(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function i5(e,t){return i=>i>0?t:e}let i3=(e,t,i)=>{let n=e*e,r=i*(t*t-n)+n;return r<0?0:Math.sqrt(r)},i4=[Z,K,es];function i9(e){let t=i4.find(t=>t.test(e));if(eA(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let i=t.parse(e);return t===es&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let r=0,s=0,o=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,a=2*i-n;r=i2(a,n,e+1/3),s=i2(a,n,e),o=i2(a,n,e-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 i6=(e,t)=>{let i=i9(e),n=i9(t);if(!i||!n)return i5(e,t);let r={...i};return e=>(r.red=i3(i.red,n.red,e),r.green=i3(i.green,n.green,e),r.blue=i3(i.blue,n.blue,e),r.alpha=io(i.alpha,n.alpha,e),K.transform(r))},i7=new Set(["none","hidden"]);function i8(e,t){return i=>io(e,t,i)}function ne(e){return"number"==typeof e?i8:"string"==typeof e?eN(e)?i5:eo.test(e)?i6:nn:Array.isArray(e)?nt:"object"==typeof e?eo.test(e)?i6:ni:i5}function nt(e,t){let i=[...e],n=i.length,r=e.map((e,i)=>ne(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=r[t](e);return i}}function ni(e,t){let i={...e,...t},n={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(n[r]=ne(e[r])(e[r],t[r]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let nn=(e,t)=>{let i=em.createTransformer(t),n=ed(e),r=ed(t);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 eA(`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),i5(e,t);if(i7.has(e)&&!r.values.length||i7.has(t)&&!n.values.length)return i7.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return i1(nt(function(e,t){let i=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let s=t.types[r],o=e.indexes[s][n[s]],a=e.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i)};function nr(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?io(e,t,i):ne(e)(e,t)}let ns=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>e4.update(t,e),stop:()=>e9(t),now:()=>e6.isProcessing?e6.timestamp:tA.now()}};function no(e,t=50,i=2e4,n){let r=0,s=e.next(r);for(n?.push(s.value);!s.done&&r<i;)r+=t,s=e.next(r),n?.push(s.value);return r>=i?1/0:r}let na=.01,nl=2,nu=.005,nh=.5;function nd(e,t){return e*Math.sqrt(1-t*t)}let nc=["duration","bounce"],nm=["stiffness","damping","mass"];function np(e,t){return t.some(t=>void 0!==e[t])}function nf(e=.3,t=.3){let i,n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:s,restDelta:o}=r,a=r.keyframes[0],l=r.keyframes[r.keyframes.length-1],u={done:!1,value:a},{stiffness:h,damping:d,mass:c,duration:m,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!np(e,nm)&&np(e,nc))if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,r=2*O(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:r}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:n=1}){let r,s;eA(th(10));let o=1-t;o=O(.05,1,o),e=O(.01,10,e/1e3),o<1?(r=t=>{let n=t*o,r=n*e;return .001-(n-i)/nd(t,o)*Math.exp(-r)},s=t=>{let n=t*o*e,s=o*o*t*t*e,a=Math.exp(-n),l=nd(t*t,o);return(n*i+i-s)*a*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let a=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(r,s,5/e);if(e=th(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=a*a*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),g=p||0,y=d/(2*Math.sqrt(h*c)),v=l-a,x=Math.sqrt(h/c)/1e3,w=y*x,b=5>Math.abs(v);
9if(s||(s=b?na:nl),o||(o=b?nu:nh),y<1){let e=nd(x,y),t=(g+w*v)/e,r=w*t+v*e,s=w*v-t*e,o=-1,a=0,u=0,h=i=>{if(i!==o){o=i;let n=Math.exp(-w*i),h=Math.sin(e*i),d=Math.cos(e*i);a=l-n*(t*h+v*d),u=n*(r*h+s*d)}};i=e=>(h(e),a),n=e=>(h(e),u)}else if(1===y){i=e=>l-Math.exp(-x*e)*(v+(g+x*v)*e);let e=g+x*v;n=t=>Math.exp(-x*t)*(x*e*t-g)}else{let e=x*Math.sqrt(y*y-1);i=t=>{let i=Math.exp(-w*t),n=Math.min(e*t,300);return l-i*((g+w*v)*Math.sinh(n)+e*v*Math.cosh(n))/e};let t=(g+w*v)/e,r=w*t-v*e,s=w*v-t*e;n=t=>{let i=Math.exp(-w*t),n=Math.min(e*t,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let S={calculatedDuration:f&&m||null,velocity:e=>th(n(e)),next:e=>{let t=i(e);return f?u.done=e>=m:u.done=Math.abs(th(n(e)))<=s&&Math.abs(l-t)<=o,u.value=u.done?l:t,u},toString:()=>{let e=Math.min(no(S),2e4),t=tk(t=>S.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return S}function ng({keyframes:e,velocity:t=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 d,c,m=e[0],p={done:!1,value:m},f=i*t,g=m+f,y=void 0===o?g:o(g);y!==g&&(f=y-m);let v=e=>-f*Math.exp(-e/n),x=e=>{let t=v(e);p.done=Math.abs(t)<=u,p.value=p.done?y:y+t},w=e=>{let t;if((t=p.value)<a||t>l){var i;d=e,c=nf({keyframes:[p.value,(i=p.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:-v(e)/n*1e3,damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(c||void 0!==d||(t=!0,x(e),w(e)),void 0!==d&&e>=d)?c.next(e-d):(t||x(e),p)}}}nf.applyToOptions=e=>{let t=function(e,t=100,i){let n=i({...e,keyframes:[0,t]}),r=Math.min(no(n),2e4);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:r/1e3}}(e,100,nf);return e.ease=t.ease,e.duration=th(t.duration),e.type="keyframes",e};let ny=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function nv(e,t,i,n){return e===t&&i===n?e1:r=>0===r||1===r?r:ny(function(e,t,i,n,r){let s,o,a=0;do(s=ny(o=t+(i-t)/2,n,r)-e)>0?i=o:t=o;while(Math.abs(s)>1e-7&&++a<12)return o}(r,0,1,e,i),t,n)}let nx=nv(.42,0,1,1),nw=nv(0,0,.58,1),nb=nv(.42,0,.58,1),nS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nT=e=>t=>1-e(1-t),nk=nv(.33,1.53,.69,.99),n_=nT(nk),nE=nS(n_),nj=e=>e>=1?1:(e*=2)<1?.5*n_(e):.5*(2-Math.pow(2,-10*(e-1))),nP=e=>1-Math.sin(Math.acos(e)),nM=nT(nP),nD=nS(nP),nC={linear:e1,easeIn:nx,easeInOut:nb,easeOut:nw,circIn:nP,circInOut:nD,circOut:nM,backIn:n_,backInOut:nE,backOut:nk,anticipate:nj},nA=e=>{if(tS(e)){eR(e.length);let[t,i,n,r]=e;return nv(t,i,n,r)}return"string"==typeof e?(eR(nC[e],`Invalid easing type '${e}'`),nC[e]):e},nR=(e,t,i)=>{let n=t-e;return n?(i-e)/n:1};function nV({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){var r;let s,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nA):nA(n),a={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:n,mixer:r}={}){let s=e.length;if(eR(t.length),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,i){let n=[],r=i||e2.mix||nr,s=e.length-1;for(let i=0;i<s;i++){let s=r(e[i],e[i+1]);t&&(s=i1(Array.isArray(t)?t[i]||e1:t,s)),n.push(s)}return n}(t,n,r),l=a.length,u=i=>{if(o&&i<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=nR(e[n],e[n+1],i);return a[n](r)};return i?t=>u(O(e[0],e[s-1],t)):u}((r=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let r=nR(0,t,n);e.push(io(i,1,r))}}(s=[0],t.length-1),s),r.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||nb).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let nF={decay:ng,inertia:ng,tween:nV,keyframes:nV,spring:nf};function nB(e){"string"==typeof e.type&&(e.type=nF[e.type])}let nN=e=>e/100;class nL extends tb{constructor(e){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:e}=this.options;e&&e.updatedAt!==tA.now()&&this.tick(tA.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;nB(e);let{type:t=nV,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=e,{keyframes:o}=e,a=t||nV;a!==nV&&"number"!=typeof o[0]&&(this.mixKeyframes=i1(nN,nr(o[0],o[1])),o=[0,100]);let l=a({...e,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...e,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=no(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let i,{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:c,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let x=this.currentTime,w=n;if(d){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,d+1))%2&&("reverse"===c?(i=1-i,m&&(i-=m/a)):"mirror"===c&&(w=o)),x=O(0,1,i)*a}v?(this.delayState.value=h[0],i=this.delayState):i=w.next(x),s&&!v&&(i.value=s(i.value));let{done:b}=i;v||null===l||(b=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&p!==ng&&(i.value=tw(h,this.options,g,this.speed)),f&&f(i.value),S&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=th(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e,t=this.currentTime;
9if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let i=this.generator.next(t).value;return tR(i-(e=>this.generator.next(e).value)(e=Math.max(t-5,0)),t-e)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tA.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=ns,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),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=t??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(tA.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(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let nI={anticipate:nj,backInOut:nE,circInOut:nD};class nO extends tP{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in nI&&(e.ease=nI[e.ease])}(e),nB(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new nL({...s,autoplay:!1}),a=Math.max(10,tA.now()-this.startTime),l=O(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;r&&h&&tp(r,h,u),t.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let nz=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(em.test(e)||"0"===e)&&!e.startsWith("url("));function nH(e){e.duration=0,e.type="keyframes"}let nW=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,n$=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nU=tf(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nq extends tb{constructor({autoplay:e=!0,delay:t=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=tA.now();const d={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||ts;this.keyframeResolver=new c(o,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=tA.now();let d=!0;!function(e,t,i,n){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],o=nz(r,t),a=nz(s,t);return eA(`You are trying to animate ${t} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`),!!o&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||tj(i))&&n)}(e,s,o,a)&&(d=!1,(e2.instantAnimations||!l)&&h?.(tw(e,i,t)),e[0]=e[e.length-1],nH(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},m=d&&!u&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
9let{onUpdate:u,transformTemplate:h}=t.owner.getProps();return nU()&&i&&(tM.has(i)||n$.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&nW.test(e[t]))return!0;return!1}(a))&&("transform"!==i||!h)&&!u&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(c),p=c.motionValue?.owner?.current;if(m)try{r=new nO({...c,element:p})}catch{r=new nL(c)}else r=new nL(c);r.finished.then(()=>{this.notifyFinished()}).catch(e1),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(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ti=!0,tr(),tn(),ti=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nG={type:"spring",stiffness:500,damping:25,restSpeed:10},nX={type:"keyframes",duration:.8},nY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nK=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nZ=(e,t,i,n={},r,s)=>o=>{let a=iJ(n,e)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=th(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:r};!function(e){for(let t in e)if(!nK.has(t))return!0;return!1}(a)&&Object.assign(h,((e,{keyframes:t})=>t.length>2?nX:I.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:nG:nY)(e,h)),h.duration&&(h.duration=th(h.duration)),h.repeatDelay&&(h.repeatDelay=th(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nH(h),0===h.delay&&(d=!0)),(e2.instantAnimations||e2.skipAnimations||r?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,nH(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,d&&!s&&void 0!==t.get()){let e=tw(h.keyframes,a);if(void 0!==e)return void e4.update(()=>{h.onUpdate(e),h.onComplete()})}return a.isSync?new nL(h):new nq(h)},nJ="u">typeof window;function nQ(e,t,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=t,l=e.getDefaultTransition();s=s?iZ(s,l):l;let u=s?.reduceMotion,h=s?.skipAnimations;n&&(s=n);let d=[],c=r&&e.animationState&&e.animationState.getState()[r],m=s?.path;for(let t in m&&m.animateVisualElement(e,a,s,i,d),a){let n=e.getValue(t,e.latestValues[t]??null),r=a[t];if(void 0===r||c&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(c,t))continue;let o={delay:i,...iJ(s||{},t)};h&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){e4.update(()=>n.set(r));continue}let m=!1;if(nJ&&window.MotionHandoffAnimation){let i=e.props[iU];if(i){let e=window.MotionHandoffAnimation(i,t,e4);null!==e&&(o.startTime=e,m=!0)}}i0(e,t);let p=u??e.shouldReduceMotion;n.start(nZ(t,n,r,p&&eP.has(t)?{type:!1}:o,e,m));let f=n.animation;f&&d.push(f)}if(o){let t=()=>e4.update(()=>{o&&function(e,t){let{transitionEnd:i={},transition:n={},...r}=iK(e,t)||{};for(let t in r={...r,...i}){var s;let i=iQ(s=r[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,tB(i))}}(e,o)});d.length?Promise.all(d).then(t):t()}return d}function n0(e,t,i,n=0,r=1){let s=Array.from(e).sort((e,t)=>
9e.sortNodePosition(t)).indexOf(t),o=e.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function n1(e,t,i={}){let n=iK(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nQ(e,n,i)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(e,t,i=0,n=0,r=0,s=1,o){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(n1(l,t,{...o,delay:i+("function"==typeof n?0:n)+n0(e.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[e,t]="beforeChildren"===a?[s,o]:[o,s];return e().then(()=>t())}}let n2=tH.length;function n5(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}let n3=[...tz].reverse(),n4=tz.length;function n9(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function n6(){return{animate:n9(!0),whileInView:n9(),whileHover:n9(),whileTap:n9(),whileDrag:n9(),whileFocus:n9(),exit:n9()}}let n7=0;function n8(e){return[e("x"),e("y")]}function re(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}let rt={x:!1,y:!1};function ri(e){return e.max-e.min}function rn(e,t,i,n=.5){e.origin=n,e.originPoint=io(t.min,t.max,e.origin),e.scale=ri(i)/ri(t),e.translate=io(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rr(e,t,i,n){rn(e.x,t.x,i.x,n?n.originX:void 0),rn(e.y,t.y,i.y,n?n.originY:void 0)}function rs(e,t,i,n=0){e.min=(n?io(i.min,i.max,n):i.min)+t.min,e.max=e.min+ri(t)}function ro(e,t,i,n=0){let r=n?io(i.min,i.max,n):i.min;e.min=t.min-r,e.max=e.min+ri(t)}function ra(e,t,i,n){ro(e.x,t.x,i.x,n?.x),ro(e.y,t.y,i.y,n?.y)}function rl(e){return _(e)&&"ownerSVGElement"in e}function ru(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let r=i?.[e]??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}let rh=new WeakMap,rd=(e,t,i)=>(n,r)=>r&&r[0]?r[0][e+"Size"]:rl(n)&&"getBBox"in n?n.getBBox()[t]:n[i],rc=rd("inline","width","offsetWidth"),rm=rd("block","height","offsetHeight");function rp({target:e,borderBoxSize:t}){rh.get(e)?.forEach(i=>{i(e,{get width(){return rc(e,t)},get height(){return rm(e,t)}})})}function rf(e){e.forEach(rp)}let rg=new Set;function ry(e,t){let r;return"function"==typeof e?(rg.add(e),n||(n=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};rg.forEach(t=>t(e))},window.addEventListener("resize",n)),()=>{rg.delete(e),rg.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(rf)),(r=ru(e)).forEac
9h(e=>{let n=rh.get(e);n||(n=new Set,rh.set(e,n)),n.add(t),i?.observe(e)}),()=>{r.forEach(e=>{let n=rh.get(e);n?.delete(t),n?.size||i?.unobserve(e)})})}let rv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rx=new Set(["INPUT","SELECT","TEXTAREA"]),rw=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rb(e){return{point:{x:e.pageX,y:e.pageY}}}function rS(e,t,i,n){return re(e,t,e=>rw(e)&&i(e,rb(e)),n)}let rT=({current:e})=>e?e.ownerDocument.defaultView:null,rk=(e,t)=>Math.abs(e-t),r_=new Set(["auto","scroll"]);class rE{constructor(e,t,{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=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rj(this.lastRawMoveEventInfo,this.transformPagePoint));let i=rM(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(e=i.offset,t={x:0,y:0},Math.sqrt(rk(e.x,t.x)**2+rk(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=e6;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=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=rj(t,this.transformPagePoint),e4.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{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=rM("pointercancel"===e.type?this.lastMoveEventInfo:rj(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),n&&n(e,s)},!rw(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const a=rj(rb(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=e6;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=t;h&&h(e,rM(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=i1(rS(this.contextWindow,"pointermove",this.handlePointerMove,d),rS(this.contextWindow,"pointerup",this.handlePointerUp,d),rS(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(r_.has(e.overflowX)||r_.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.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(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:n.x-t.x,y:n.y-t.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(e,n),e4.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),e9(this.updatePoint)}}function rj(e,t){return t?{point:t(e.point)}:e}function rP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rM({point:e},t){return{point:e,delta:rP(e,rD(t)),offset:rP(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,n=rD(e);for(;t>=0&&(i=e[t],!(n.timestamp-i.timestamp>th(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&n.timestamp-i.timestamp>2*th(.1)&&(i=e[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}(t)}}function rD(e){return e[e.length-1]}function rC(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function rA(e,t){let i=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,n]=[n,i]),{min:i,max:n}}function rR(e,t,i){return{min:rV(e,t),max:rV(e,i)}}function rV(e,t){return"number"==typeof e?e:e[t]||0}let rF=new WeakMap;class rB{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=eE(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{t&&this.snapToCursor(rb(e).point),this.stopAnimation()},s=(e,t)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
9y"===e)if(rt[e])return null;else return rt[e]=!0,()=>{rt[e]=!1};return rt.x||rt.y?null:(rt.x=rt.y=!0,()=>{rt.x=rt.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n8(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ee.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];n&&(t=ri(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&e4.update(()=>r(e,t),!1,!0),i0(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&e4.update(()=>s(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new rE(e,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:rT(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,n=t||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&&e4.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:n}=this.getProps();if(!i||!rL(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},n){return void 0!==t&&e<t?e=n?io(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?io(i,e,n.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),r.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&iG(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:n,right:r}){return{x:rC(e.x,i,r),y:rC(e.y,t,n)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rR(e,"left","right"),y:rR(e,"top","bottom")}}(t),n!==this.constraints&&!iG(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&n8(e=>{var t,n;let r;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],n=this.constraints[e],r={},void 0!==n.min&&(r.min=n.min-t.min),void 0!==n.max&&(r.max=n.max-t.min),r))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iG(t))return!1;let n=t.current;eR();let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let s=function(e,t,i){let n=i_(e,i),{scroll:r}=t;return r&&(ib(n.x,r.offset.x),ib(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(e=r.layout.layoutBox,{x:rA(e.x,s.x),y:rA(e.y,s.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=ic(e))}return o}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(n8(o=>{if(!rL(o,t,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[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(e,t){let i=this.getAxisMotionValue(e);return i0(this.visualElement,e),i.start(nZ(e,i,0,t,this.visualElement,!1))}stopAnimation(){n8(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){n8(t=>{let{drag:i}=this.getProps();if(!rL(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(t);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[t],o=r.get()||0;r.set(e[t]-io(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iG(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n8(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,r;let s,o,a,l=t.get();n[e]=(i={min:l,max:l},r=this.constraints[e],s=.5,o=ri(i),(a=ri(r))>o?s=nR(r.min,r.max-o,i.min):o>a&&(s=nR(i.min,i.max-a,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(),n8(t=>{if(!rL(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:s}=this.constraints[t];i.set(io(r,s,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;rF.set(this.visualElement,this);let t=this.visualElement.current,i=rS(t,"pointerdown",e=>{let{drag:i,dragListener:n=!0}
9=this.getProps(),r=e.target,s=r!==t&&(rx.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(e)}),n=()=>{var i,n,r;let s,o,{dragConstraints:a}=this.getProps();iG(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,n=a.current,s=ry(i,rN(r=()=>this.scalePositionWithinConstraints())),o=ry(n,rN(r)),e=()=>{s(),o()}))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),e4.read(n);let o=re(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(n8(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function rN(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function rL(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let rI=e=>(t,i)=>{e&&e4.update(()=>e(t,i),!1,!0)},rO={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rz=a;let rH=!1;class rW extends rz.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),i&&i.register&&n&&i.register(r),rH&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rO.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),rH=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?s.promote():s.relegate()||e4.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),tD.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;rH=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function r$(e){let[t,i]=V(),n=(0,rz.useContext)(b);return(0,r.jsx)(rW,{...e,layoutGroup:n,switchLayoutGroup:(0,rz.useContext)(iq),isPresent:t,safeToRemove:i})}let rU=ii.length,rq=e=>"string"==typeof e?parseFloat(e):e,rG=e=>"number"==typeof e||et.test(e);function rX(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rY=rZ(0,.5,nM),rK=rZ(.5,.95,e1);function rZ(e,t,i){return n=>n<e?0:n>t?1:i(nR(e,t,n))}function rJ(e,t){e.min=t.min,e.max=t.max}function rQ(e,t){rJ(e.x,t.x),rJ(e.y,t.y)}function r0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function r1(e,t,i,n,r){return e-=t,e=n+1/i*(e-n),void 0!==r&&(e=n+1/r*(e-n)),e}function r2(e,t,[i,n,r],s,o){!function(e,t=0,i=1,n=.5,r,s=e,o=e){if(ee.test(t)&&(t=parseFloat(t),t=io(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=io(s.min,s.max,n);e===s&&(a-=t),e.min=r1(e.min,t,i,a,r),e.max=r1(e.max,t,i,a,r)}(e,t[i],t[n],t[r],t.scale,s,o)}let r5=["x","scaleX","originX"],r3=["y","scaleY","originY"];function r4(e,t,i,n){r2(e.x,t,r5,i?i.x:void 0,n?n.x:void 0),r2(e.y,t,r3,i?i.y:void 0,n?n.y:void 0)}function r9(e){return 0===e.translate&&1===e.scale}function r6(e){return r9(e.x)&&r9(e.y)}function r7(e,t){return e.min===t.min&&e.max===t.max}function r8(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function se(e,t){return r8(e.x,t.x)&&r8(e.y,t.y)}function st(e){return ri(e.x)/ri(e.y)}function si(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sn{constructor(){this.members=[]}add(e){td(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tc(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(tc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=e.options;(void 0===n||n!==r)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isU
9pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let sr=(e,t)=>e.depth-t.depth;class ss{constructor(){this.children=[],this.isDirty=!1}add(e){td(this.children,e),this.isDirty=!0}remove(e){tc(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sr),this.isDirty=!1,this.children.forEach(e)}}let so=["","X","Y","Z"],sa=0;function sl(e,t,i,n){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function su({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=sa++,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(sc),this.nodes.forEach(sb),this.nodes.forEach(sS),this.nodes.forEach(sm)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ss)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tm),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rl(t)&&!(rl(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;e4.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,s;n=e,this.root.updateBlockedByResize=!0,i&&i(),t=tA.now(),s=({timestamp:e})=>{let i=e-t;i>=250&&(e9(s),r())},e4.setup(s,!0),i=()=>e9(s),rO.hasAnimatedSinceResize&&(rO.hasAnimatedSinceResize=!1,this.nodes.forEach(sw))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sP,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!se(this.targetLayout,n),u=!t&&i;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iJ(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||sw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),e9(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(sT),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let n=i.props[iU];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",e4,!(e||i))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(sg),this.nodes.forEach(sf);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(sy);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sv),this.nodes.forEach(sx),this.nodes.forEach(sh),this.nodes.forEach(sd)):this.nodes.forEach(sy),this.clearAllSnapshots();let e=tA.now();e6.delta=O(0,1e3/60,e-e6.timestamp),e6.timestamp=e,e6.isProcessing=!0,e7.update.process(e6),e7.preRender.process(e6),e7.render.process(e6),e6.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tD.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sp),this.sharedNodes.forEach(sk)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,e4.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){e4.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||ri(this.snapshot.measuredBox.x)||ri(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=eE()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!r6(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||ig(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),sC((t=n).x),sC(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return eE();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sR))){let{scroll:e}=this.root;e&&(ib(t.x,e.offset.x),ib(t.y,e.offset.y))}return t}removeElementScroll(e){let t=eE();if(rQ(t,e),this.scroll?.wasRoot)return t;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&&rQ(t,e),ib(t.x,r.offset.x),ib(t.y,r.offset.y))}return t}applyTransform(e,t=!1,i){let n=i||eE();rQ(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ib(n.x,-i.scroll.offset.x),ib(n.y,-i.scroll.offset.y)),ig(i.latestValues)&&ik(n,i.latestValues,i.layout?.layoutBox)}return ig(this.latestValues)&&ik(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(e){let t=eE();rQ(t,e);for(let e=0;e<this.path.length;e++){let i,n=this.path[e];ig(n.latestValues)&&(n.instance&&(ip(n.latestValues)&&n.updateSnapshot(),rQ(i=eE(),n.measurePageBox())),r4(t,n.latestValues,n.snapshot?.layoutBox,i))}return ig(this.latestValues)&&r4(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==e6.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
9isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||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=e6.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=eE(),this.targetWithTransforms=eE()),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,rs(o.x,a.x,l.x,u?.x),rs(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rQ(this.target,this.layout.layoutBox),iw(this.target,this.targetDelta)):rQ(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||ip(this.parent.latestValues)||iy(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(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eE(),this.relativeTargetOrigin=eE(),ra(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),rQ(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===e6.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;rQ(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(e,t,i,n=!1){let r,s,o=i.length;if(o){t.x=t.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&&(ib(e.x,-r.scroll.offset.x),ib(e.y,-r.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,iw(e,s)),n&&ig(r.latestValues)&&ik(e,r.latestValues,r.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=eE());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(r0(this.prevProjectionDelta.x,this.projectionDelta.x),r0(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rr(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&si(this.projectionDelta.x,this.prevProjectionDelta.x)&&si(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ek(),this.projectionDelta=ek(),this.projectionDeltaWithTransform=ek()}setAnimationOrigin(e,t=!1,i){let n,r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=ek();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=eE(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),d=!h||h.members.length<=1,c=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(sj));this.animationProgress=0;let m=i?.interpolateProjection(e);this.mixTargetDelta=t=>{let i=t/1e3,r=m?.(i);if(r?(a.x.translate=r.x,a.x.scale=io(e.x.scale,1,i),a.x.origin=e.x.origin,a.x.originPoint=e.x.originPoint,a.y.translate=r.y,a.y.scale=io(e.y.scale,1,i),a.y.origin=e.y.origin,a.y.originPoint=e.y.originPoint):(s_(a.x,e.x,i),s_(a.y,e.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,p,f,g,y,v;ra(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,sE(f.x,g.x,y.x,v),sE(f.y,g.y,y.y,v),n&&(h=this.relativeTarget,p=n,r7(h.x,p.x)&&r7(h.y,p.y))&&(this.isProjectionDirty=!1),n||(n=eE()),rQ(n,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,i,n,r,s){r?(e.opacity=io(0,i.opacity??1,rY(n)),e.opacityExit=io(t.opacity??1,0,rK(n))):s&&(e.opacity=io(t.opacity??1,i.opacity??1,n));for(let r=0;r<rU;
9r++){let s=ii[r],o=rX(t,s),a=rX(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rG(o)===rG(a)?(e[s]=Math.max(io(rq(o),rq(a),n),0),(ee.test(a)||ee.test(o))&&(e[s]+="%")):e[s]=a)}(t.rotate||i.rotate)&&(e.rotate=io(t.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,i,c,d)),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(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(e9(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=e4.update(()=>{var t,i,n;let r;rO.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=tB(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,i=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(r=ej(t)?t:tB(t)).start(nZ("",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 e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:t,target:i,layout:n,latestValues:r}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&sA(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||eE();let t=ri(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=ri(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}rQ(t,i),ik(t,r),rr(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new sn),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let n={};i.z&&sl("z",e,n,this.animationValues);for(let t=0;t<so.length;t++)sl(`rotate${so[t]}`,e,n,this.animationValues),sl(`skew${so[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=iN(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=iN(t?.pointerEvents)||""),this.hasProjected&&!ig(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(e,t,i){let n="",r=e.x.translate/t.x,s=e.y.translate/t.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,pathRotation:r,rotateX:s,rotateY:o,skewX:a,skewY:l}=i;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}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=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);
9i&&(s=i(r,s)),e.transform=s;let{x:o,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?e.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,ia){if(void 0===r[t])continue;let{correct:i,applyTo:o,isCSSVariable:a}=ia[t],l="none"===s?r[t]:i(r[t],n);if(o){let t=o.length;for(let i=0;i<t;i++)e[o[i]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?iN(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(sf),this.root.sharedNodes.clear()}}}function sh(e){e.updateLayout()}function sd(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=e.layout,{animationType:r}=e.options,s=t.source!==e.layout.source;if("size"===r)n8(e=>{let n=s?t.measuredBox[e]:t.layoutBox[e],r=ri(n);n.min=i[e].min,n.max=n.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";rJ(s?t.measuredBox[e]:t.layoutBox[e],i[e])}else sA(r,t.layoutBox,i)&&n8(n=>{let r=s?t.measuredBox[n]:t.layoutBox[n],o=ri(i[n]);r.max=r.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)});let o=ek();rr(o,i,t.layoutBox);let a=ek();s?rr(a,e.applyTransform(n,!0),t.measuredBox):rr(a,i,t.layoutBox);let l=!r6(o),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=e.options.layoutAnchor||void 0,a=eE();ra(a,t.layoutBox,r.layoutBox,o);let l=eE();ra(l,i,s.layoutBox,o),se(a,l)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function sc(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sp(e){e.clearSnapshot()}function sf(e){e.clearMeasurements()}function sg(e){e.isLayoutDirty=!0,e.updateLayout()}function sy(e){e.isLayoutDirty=!1}function sv(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sx(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sb(e){e.resolveTargetDelta()}function sS(e){e.calcProjection()}function sT(e){e.resetSkewAndRotation()}function sk(e){e.removeLeadSnapshot()}function s_(e,t,i){e.translate=io(t.translate,0,i),e.scale=io(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function sE(e,t,i,n){e.min=io(t.min,i.min,n),e.max=io(t.max,i.max,n)}function sj(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sP={duration:.45,ease:[.4,0,.1,1]},sM=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sD=sM("applewebkit/")&&!sM("chrome/")?Math.round:e1;function sC(e){e.min=sD(e.min),e.max=sD(e.max)}function sA(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(st(t)-st(i)))}function sR(e){return e!==e.root&&e.scroll?.wasRoot}let sV=su({attachResizeListener:(e,t)=>re(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sF={current:void 0},sB=su({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sF.current){let e=new sV({});e.mount(window),e.setOptions({layoutScroll:!0}),sF.current=e}return sF.current},resetTransform:(e,t)=>
9{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sN(e,t){let i=ru(e),n=new AbortController;return[i,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function sL(e,t,i){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&e4.postRender(()=>r(t,rb(t)))}let sI=(e,t)=>!!t&&(e===t||sI(e,t.parentElement)),sO=new WeakSet;function sz(e){return t=>{"Enter"===t.key&&e(t)}}function sH(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sW(e){return rw(e)&&!(rt.x||rt.y)}let s$=new WeakSet;function sU(e,t,i){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&e4.postRender(()=>r(t,rb(t)))}let sq=new WeakMap,sG=new WeakMap,sX=e=>{let t=sq.get(e.target);t&&t(e)},sY=e=>{e.forEach(sX)},sK={some:0,all:1},sZ=function(e,t){if("u"<typeof Proxy)return iX;let i=new Map,n=(i,n)=>iX(i,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,iX(s,void 0,e,t)),i.get(s))})}({animation:{Feature:class extends iY{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>n1(e,t,i)));else if("string"==typeof t)n=n1(e,t,i);else{let r="function"==typeof t?iK(e,t,i.custom):t;
9n=Promise.all(nQ(e,r,i))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=n6(),n=!0,r=!1,s=t=>(i,n)=>{let r=iK(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...n}=r;i={...i,...n,...t}}return i};function o(o){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<n2;e++){let n=tH[e],r=t.props[n];(tO(r)||!1===r)&&(i[n]=r)}return i}(e.parent)||{},u=[],h=new Set,d={},c=1/0;for(let t=0;t<n4;t++){var m,p;let f=n3[t],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=tO(y),x=f===o?g.isActive:null;!1===x&&(c=t);let w=y===l[f]&&y!==a[f]&&v;if(w&&(n||r)&&e.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...d},!g.isActive&&null===x||!y&&!g.prevProp||tI(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let b=(m=g.prevProp,"string"==typeof(p=y)?p!==m:!!Array.isArray(p)&&!n5(p,m)),S=b||f===o&&g.isActive&&!w&&v||t>c&&v,T=!1,k=Array.isArray(y)?y:[y],_=k.reduce(s(f),{});!1===x&&(_={});let{prevResolvedValues:E={}}=g,j={...E,..._},P=t=>{S=!0,h.has(t)&&(T=!0,h.delete(t)),g.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in j){let t=_[e],i=E[e];if(!d.hasOwnProperty(e))(iQ(t)&&iQ(i)?!n5(t,i)||b:t!==i)?null!=t?P(e):h.add(e):void 0!==t&&h.has(e)?P(e):g.protectedKeys[e]=!0}g.prevProp=y,g.prevResolvedValues=_,g.isActive&&(d={...d,..._}),(n||r)&&e.blockInitialAnimation&&(S=!1);let M=w&&b,D=!M||T;S&&D&&u.push(...k.map(t=>{let i={type:f};if("string"==typeof t&&(n||r)&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,r=iK(n,t);if(n.enteringChildren&&r){let{delayChildren:t}=r.transition||{};i.delay=n0(n.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(h.size){let t={};if("boolean"!=typeof a.initial){let i=iK(e,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(t.transition=i.transition)}h.forEach(i=>{let n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=n??null}),u.push({animation:t})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,n){if(i[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),i[t].isActive=n;let r=o(t);for(let e in i)i[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=n6(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tI(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iY{constructor(){super(...arguments),this.id=n7++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&!1===i){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let i=iK(this.node,e,t);if(i){let{transition:e,transitionEnd:t,...n}=i;for(let e in n)this.node.getValue(e)?.jump(n[e])}}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",!e);t&&!e&&n.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends iY{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;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:sK[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=t?i:n;r&&r(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let i=e||document;sG.has(i)||sG.set(i,{});
9let n=sG.get(i),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(sY,{root:e,...t})),n[r]}(a),sq.set(e,l),t.observe(e),()=>{sq.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iY{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[n,r,s]=sN(e,i),o=e=>{let n=e.currentTarget;if(!sW(e)||s$.has(e))return;sO.add(n),i.stopPropagation&&s$.add(e);let s=t(n,e),o={...r,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),sO.has(n)&&sO.delete(n),sW(e)&&"function"==typeof s&&s(e,{success:t})},l=e=>{a(e,n===window||n===document||i.useGlobalTarget||sI(n,e.target))},u=e=>{a(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",o,r),E(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let n=sz(()=>{if(sO.has(i))return;sH(i,"down");let e=sz(()=>{sH(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sH(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)})(e,r)),rv.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sU(this.node,t,"Start"),(e,{success:t})=>sU(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iY{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=i1(re(this.node.current,"focus",()=>this.onFocus()),re(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iY{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,r,s]=sN(e,i);return n.forEach(e=>{let i,n=!1,s=!1,o=t=>{i&&(i(t),i=void 0),e.removeEventListener("pointerleave",l)},a=e=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(n){s=!0;return}o(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||rt.x||rt.y)return;s=!1;let o=t(e,n);"function"==typeof o&&(i=o,e.addEventListener("pointerleave",l,r))},r),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),s}(e,(e,t)=>(sL(this.node,t,"Start"),e=>sL(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends iY{constructor(){super(...arguments),this.removePointerDownListener=e1}onPointerDown(e){this.session=new rE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rT(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rI(e),onStart:rI(t),onMove:rI(i),onEnd:(e,t)=>{delete this.session,n&&e4.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=rS(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iY{constructor(e){super(e),this.removeGroupControls=e1,this.removeListeners=e1,this.controls=new rB(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e1}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:sB,MeasureLayout:r$},layout:{ProjectionNode:sB,MeasureLayout:r$}},(e,t)=>t.isSVG??iP(e)?new id(t):new iE(t,{allowProjection:e!==a.Fragment}));function sJ({children:e,...t}){let i=(0,a.useContext)(P);(t={...i,...t}).transition=iZ(t.transition,i.transition),t.isStatic=S(()=>t.isStatic);let n=(0,a.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,r.jsx)(P.Provider,{value:n,children:e})}var sQ=e.i(664561);let s0="idle",s1="loading",s2="loaded",s5="failed",s3="ready",s4="unsupported";function s9(){return!!("u">typeof window&&window.document?.createElement)}async function s6(e,t){let i=await fetch(e,t),[n]=(i.headers.get("content-type")??"").split(/ ?; ?/);if(i.status>299)throw Error("Not found");if(!["image/svg+xml","text/plain"].some(e=>n.includes(e)))throw Error(`Content type isn't valid: ${n}`);return i.text()}var s7=class{cacheApi;cacheStore;subscribers=[];isReady=!1;constructor(e={}){const{name:t="react-inlinesvg",persistent:i=!1}=e;this.cacheStore=new Map,i&&s9()&&"caches"in window?caches.open(t).then(e=>{this.cacheApi=e}).catch(e=>{console.error(`Failed to open cache: ${e.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;let e=[...this.subscribers];
9this.subscribers.length=0,e.forEach(e=>{try{e()}catch(e){console.error(`Error in CacheStore subscriber callback: ${e.message}`)}})}):this.isReady=!0}onReady(e){return this.isReady?(e(),()=>{}):(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);t>=0&&this.subscribers.splice(t,1)})}waitForReady(){return this.isReady?Promise.resolve():new Promise(e=>{this.onReady(e)})}async get(e,t){return await this.fetchAndCache(e,t),this.cacheStore.get(e)?.content??""}getContent(e){return this.cacheStore.get(e)?.content??""}set(e,t){this.cacheStore.set(e,t)}isCached(e){return this.cacheStore.get(e)?.status===s2}async fetchAndCache(e,t){this.isReady||await this.waitForReady();let i=this.cacheStore.get(e);if(i?.status!==s2){if(i?.status===s1){await this.handleLoading(e,t?.signal||void 0,async()=>{this.cacheStore.set(e,{content:"",status:s0}),await this.fetchAndCache(e,t)});let i=this.cacheStore.get(e);if(i?.status===s5){if(i.error)throw i.error;this.cacheStore.delete(e),await this.fetchAndCache(e,t)}return}this.cacheStore.set(e,{content:"",status:s1});try{let i=this.cacheApi?await this.fetchFromPersistentCache(e,t):await s6(e,t);this.cacheStore.set(e,{content:i,status:s2})}catch(i){let t=i?.name==="AbortError";throw this.cacheStore.set(e,{content:"",error:t?void 0:i,status:s5}),i}}}async fetchFromPersistentCache(e,t){let i=await this.cacheApi?.match(e);return i?i.text():(await this.cacheApi?.add(new Request(e,t)),await (await this.cacheApi?.match(e))?.text()??"")}async handleLoading(e,t,i){for(let i=0;i<10;i++){if(t?.aborted)throw t.reason instanceof Error?t.reason:new DOMException("The operation was aborted.","AbortError");if(this.cacheStore.get(e)?.status!==s1)return;await function(e=1){return new Promise(t=>{setTimeout(t,1e3*e)})}(.1)}await i()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,t])=>({[e]:t}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){let e=await this.cacheApi.keys();await Promise.allSettled(e.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};let s8=(0,a.createContext)(null);var oe=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],ot={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",
9nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode
9-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function oi(e,t,i){let n=[...e].map((e,n)=>or(e,{...i,index:n,level:t+1})).filter(Boolean);return n.length?n:null}function on(e,t={}){return"string"==typeof e?function(e,t={}){if(!e||"string"!=typeof e)return null;let{includeAllNodes:i=!1,nodeOnly:n=!1,selector:r="body > *",type:s="text/html"}=t;try{let o=new DOMParser().parseFromString(e,s);if(i){let{childNodes:e}=o.body;if(n)return e;return[...e].map(e=>or(e,t))}let a=o.querySelector(r)||o.body.childNodes[0];if(!(a instanceof Node))throw TypeError("Error parsing input");if(n)return a;return or(a,t)}catch(e){}return null}(e,t):e instanceof Node?or(e,t):null}function or(e,t={}){if(!e||!(e instanceof Node))return null;let{actions:i=[],index:n=0,level:r=0,randomKey:s}=t,o=e,l=`${r}-${n}`,u=[];return(s&&0===r&&(l=`${function(e=6){let t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",i="";for(let n=e;n>0;--n)i+=t[Math.round(Math.random()*(t.length-1))];return i}()}-${l}`),Array.isArray(i)&&i.forEach(t=>{t.condition(o,l,r)&&("function"==typeof t.pre&&((o=t.pre(o,l,r))instanceof Node||(o=e)),"function"==typeof t.post&&u.push(t.post(o,l,r)))}),u.length)?u:function(e,t){let{key:i,level:n,...r}=t;switch(e.nodeType){case 1:var s;return a.createElement((s=e.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(s)?s:s.toLowerCase()),function(e,t){let i={key:t};if(e instanceof Element){let t=e.getAttribute("class");t&&(i.className=t),[...e.attributes].forEach(e=>{switch(e.name){case"class":break;case"style":var t;i[e.name]="string"!=typeof(t=e.value)?{}:t.split(/ ?; ?/).reduce((e,t)=>{let[i,n]=t.split(/ ?: ?/).map((e,t)=>0===t?e.replace(/\s+/g,""):e.trim());if(i&&n){let t=i.replace(/(\w)-(\w)/g,(e,t,i)=>`${t}${i.toUpperCase()}`),r=n.trim();Number.isNaN(Number(n))||(r=Number(n)),e[i.startsWith("-")?i:t]=r}return e},{});break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":i[ot[e.name]||e.name]=!0;break;default:i[ot[e.name]||e.name]=e.value}})}return i}(e,i),oi(e.childNodes,n,r));case 3:{let t=e.nodeValue?.toString()??"";if(!r.allowWhiteSpaces&&/^\s+$/.test(t)&&!/[\u00A0\u202F]/.test(t))return null;if(!e.parentNode)return t;let i=e.parentNode.nodeName.toLowerCase();if(oe.includes(i))return/\S/.test(t)&&console.warn(`A textNode is not allowed inside '${i}'. Your text "${t}" will be ignored`),null;return t}case 8:default:return null;case 11:return oi(e.childNodes,n,t)}}(o,{key:l,level:r,...t})}function os(e){let t=(0,a.useRef)(void 0);return(0,a.useEffect)(()=>{t.current=e}),t.current}function oo(e){let{baseURL:t,content:i,description:n,handleError:r,hash:s,preProcessor:o,title:a,uniquifyIDs:l=!1}=e;try{var u,h;let e,r=o?o(i):i;l&&(u=r,h=t??"",r=(e=[...new Set([...u.matchAll(/\bid=(["'])([^"']+)\1/g)].map(e=>e[2]))]).length?(e.sort((e,t)=>
9t.length-e.length),u.replace(/<style[^>]*>([\S\s]*?)<\/style>/gi,(t,i)=>{let n=i;for(let t of e){let e=t.replace(/[$()*+.?[\\\]^{|}]/g,"\\$&");n=(n=n.replace(RegExp(`url\\((['"]?)#${e}\\1\\)`,"g"),`url($1${h}#${t}__${s}$1)`)).replace(RegExp(`#${e}(?![a-zA-Z0-9_-])`,"g"),`#${t}__${s}`)}return t.replace(i,n)})):u);let d=on(r,{nodeOnly:!0});if(!d||!(d instanceof SVGSVGElement))throw Error("Could not convert the src to a DOM Node");let c=function e(t,i){let{baseURL:n="",hash:r,uniquifyIDs:s}=i,o=["id","href","xlink:href","xlink:role","xlink:arcrole"],a=["href","xlink:href"];return s&&[...t.children].forEach(t=>{if(t.attributes?.length){let e=Object.values(t.attributes).map(e=>{let t=/url\((.*?)\)/.exec(e.value);return t?.[1]&&(e.value=e.value.replace(t[0],`url(${n}${t[1]}__${r})`)),e});o.forEach(t=>{let i,n=e.find(e=>e.name===t);n&&(i=n.value,!a.includes(t)||!i||i.includes("#"))&&(n.value=`${n.value}__${r}`)})}return t.children.length?e(t,i):t}),t}(d,{baseURL:t,hash:s,uniquifyIDs:l});if(n){let e=c.querySelector("desc");e?.parentNode&&e.parentNode.removeChild(e);let t=document.createElementNS("http://www.w3.org/2000/svg","desc");t.innerHTML=n,c.prepend(t)}if(void 0!==a){let e=c.querySelector("title");if(e?.parentNode&&e.parentNode.removeChild(e),a){let e=document.createElementNS("http://www.w3.org/2000/svg","title");e.innerHTML=a,c.prepend(e)}}return c}catch(e){return r(e)}}let oa=new s7;function ol(e){let{children:t=null,innerRef:i,loader:n=null}=e,{element:r,status:s}=function(e,t){var i;let{baseURL:n,cacheRequests:r=!0,description:s,fetchOptions:o,onError:l,onLoad:u,preProcessor:h,src:d,title:c,uniqueHash:m,uniquifyIDs:p}=e,f=(0,a.useRef)(m??function(){let e="abcdefghijklmnopqrstuvwxyz",t=`${e}${e.toUpperCase()}1234567890`,i="";for(let e=0;e<8;e++)i+=t[Math.floor(Math.random()*t.length)];return i}()),g=(0,a.useRef)(o),y=(0,a.useRef)(l),v=(0,a.useRef)(u),x=(0,a.useRef)(h);g.current=o,y.current=l,v.current=u,x.current=h;let[w,b]=(0,a.useReducer)((e,t)=>({...e,...t}),{content:"",element:null,isCached:!1,status:s0},i=>{if(!(r&&t.isCached(d)))return i;let n=t.getContent(d);try{let t=oo({...e,handleError:()=>{},hash:f.current,content:n});if(!t)return{...i,content:n,isCached:!0,status:s2};let r=on(t);if(r&&(0,a.isValidElement)(r))return{content:n,element:r,isCached:!0,status:s3}}catch{}return{...i,content:n,isCached:!0,status:s2}}),{content:S,element:T,isCached:k,status:_}=w,E=os(e),j=os(w),P=(0,a.useRef)(!1),M=(0,a.useRef)(!1),D=(0,a.useCallback)(e=>{P.current&&(b({status:"Browser does not support SVG"===e.message?s4:s5}),y.current?.(e))},[]),C=(0,a.useCallback)(()=>{try{let e=on(oo({baseURL:n,content:S,description:s,handleError:D,hash:f.current,preProcessor:x.current,src:d,title:c,uniquifyIDs:p}));if(!e||!(0,a.isValidElement)(e))throw Error("Could not convert the src to a React element");b({element:e,status:s3})}catch(e){D(e)}},[n,S,s,D,d,c,p]);return i=()=>{if(P.current=!0,s9()&&!M.current){try{if(_===s3)v.current?.(d,k);else if(_===s0){if(!(function(){if(!document)return!1;let e=document.createElement("div");e.innerHTML="<svg />";let t=e.firstChild;return!!t&&"http://www.w3.org/2000/svg"===t.namespaceURI}()&&"u">typeof window&&null!==window))throw Error("Browser does not support SVG");if(!d)throw Error("Missing src");b({content:"",element:null,isCached:!1,status:s1})}}catch(e){D(e)}return M.current=!0,()=>{P.current=!1}}},(0,a.useEffect)(i,[]),(0,a.useEffect)(()=>{if(s9()&&E&&E.src!==d){if(!d)return void D(Error("Missing src"));b({content:"",element:null,isCached:!1,status:s1})}},[D,E,d]),(0,a.useEffect)(()=>{if(_!==s1)return;let e=new AbortController,i=!0;return(async()=>{try{let n,s,o=/^data:image\/svg[^,]*?(;base64)?,(.*)/.exec(d);if(o?n=o[1]?window.atob(o[2]):decodeURIComponent(o[2]):d.includes("<svg")&&(n=d),n){i&&b({content:n,isCached:!1,status:s2});return}let a={...g.current,signal:e.signal},l=!1;r?(l=t.isCached(d),s=await t.get(d,a)):s=await s6(d,a),i&&b({content:s,isCached:l,status:s2})}catch(e){i&&"AbortError"!==e.name&&D(e)}})(),()=>{i=!1,e.abort()}},[r,t,D,d,_]),(0,a.useEffect)(()=>{_===s2&&S&&C()},[S,C,_]),(0,a.useEffect)(()=>{s9()&&E&&E.src===d&&(E.title!==c||E.description!==s)&&C()},[s,C,E,d,c]),(0,a.useEffect)(()=>{j&&_===s3&&j.status!==s3&&v.current?.(d,k)},[k,j,d,_]),{element:T,status:_}}(e,(0,a.useContext)(s8)??oa);return s9()?r?(0,a.cloneElement)(r,{ref:i,...function(e,...t){let i={};for(let n in e)({}).hasOwnProperty.call(e,n)&&!t.includes(n)&&(i[n]=e[n]);return i}
9(e,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs")}):[s4,s5].includes(s)?t:n:n}var ou=e.i(286704),oh=e.i(506061),od=e.i(37590),oc=e.i(251093),om=e.i(956173);let op=({list:e})=>(0,r.jsx)("ul",{className:om.default.checklist,children:e.map((e,t)=>(0,r.jsxs)("li",{children:[(0,r.jsx)("div",{className:om.default.iconWrapper,children:(0,r.jsx)(oc.ThemeIcon,{iconName:"check",size:"custom",title:"check - custom",className:om.default.icon},"check")}),(0,r.jsx)("p",{children:e})]},t))});var of=e.i(25651);let og=({title:e,subTitle:t,usps:i,iconName:n,imageName:s,imageBadge:a})=>(0,r.jsxs)("div",{className:of.default.heading,children:[n&&(0,r.jsx)("div",{className:of.default.iconWrapper,children:(0,r.jsx)(oc.ThemeIcon,{iconName:n,size:"custom",title:`${n}- custom`,className:of.default.icon},n)}),s&&(0,r.jsxs)("div",{className:of.default.imageWrapper,children:[(0,r.jsx)("img",{src:`${o.env.NEXT_PUBLIC_BASE_URL}/img/${s}`,alt:s,width:"103",height:"128"}),a&&(0,r.jsx)("div",{className:of.default.badge,children:(0,r.jsx)("span",{children:a})})]}),(0,r.jsx)("h3",{className:of.default.title,children:e}),t&&(0,r.jsx)("p",{className:of.default.subtitle,dangerouslySetInnerHTML:{__html:t}}),i&&(0,r.jsx)(op,{list:i})]});var oy=e.i(555922),ov=e.i(495359),ox=e.i(243633);let ow=({children:e})=>(0,r.jsx)("div",{className:ox.default.content,children:e});var ob=e.i(426492);let oS=({hasTopBar:e=!1,setStepHeight:t,children:i})=>{let n=(0,a.useRef)(null);return(0,a.useEffect)(()=>{n.current&&t(n.current.scrollHeight+200)},[]),(0,r.jsx)("section",{className:`${ob.default.step} ${e&&ob.default.topBarGap}`,ref:n,children:i})};var oT=e.i(146901);let ok=({onSetDate:e,existingFormData:t,setStepHeight:i})=>{let n=(0,a.useRef)(null),[s,o]=(0,a.useState)(null);return(0,r.jsx)(oS,{hasTopBar:!0,setStepHeight:i,children:(0,r.jsxs)(ow,{children:[(0,r.jsx)(og,{title:"Mis niets meer over de ontwikkeling van je baby",subTitle:"Met de geboortedatum kunnen wij jou informatie op maat aanbieden"}),(0,r.jsxs)("form",{onSubmit:t=>{t.preventDefault();let i=new FormData(t.currentTarget),n=oy.ChildFormSchema.safeParse({periodDate:i.get("periodDate")});n.error?o(n.error.format()):e(i)},className:oT.default.childDateForm,children:[(0,r.jsx)(oh.FormField,{requiredField:!0,label:"Wanneer is je baby geboren?",htmlFor:"periodDate",message:s?.periodDate?._errors[0]||null,messageType:s?.periodDate?._errors[0]?"error":"default",children:(0,r.jsx)(ou.DateInput,{name:"periodDate",ref:n,"data-testid":"periodDate",onInvalidMsg:oy.childDateErrorMsg,max:(0,ov.formatDate)(new Date,"yyyy-mm-dd"),isError:!!s?.periodDate?._errors[0],defaultValue:t&&t.get("periodDate")})}),(0,r.jsx)(od.Button,{buttonType:"primary",label:"Doorgaan",fullWidth:!0,type:"submit"})]})]})})};var o_=e.i(691434),oE=e.i(861878);let oj=({onSetName:e,existingFormData:t,setStepHeight:i})=>{let[n,s]=(0,a.useState)(null);return(0,r.jsx)(oS,{hasTopBar:!0,setStepHeight:i,children:(0,r.jsxs)(ow,{children:[(0,r.jsx)(og,{title:"Wat is de naam van je baby?",subTitle:"Met de voornaam van je baby maken wij jouw ervaring nog persoonlijker"}),(0,r.jsxs)("form",{onSubmit:t=>{t.preventDefault();let i=new FormData(t.currentTarget);if(""!==i.get("childName")){let e=oy.ChildFormSchema.omit({periodDate:!0}).safeParse({childName:i.get("childName")});if(e.error)return void s(e.error.format())}e(i)},className:oE.default.childNameForm,children:[(0,r.jsx)(oh.FormField,{label:"Voornaam van je baby",htmlFor:"childName",message:n?.childName?._errors[0]||null,messageType:n?.childName?._errors[0]?"error":"default",children:(0,r.jsx)(o_.TextInput,{name:"childName",isError:!!n?.childName?._errors[0],placeholder:"bijv. Emma",defaultValue:t&&t.get("childName")})}),(0,r.jsxs)("div",{className:oE.default.buttons,children:[(0,r.jsx)(od.Button,{buttonType:"primary",label:"Doorgaan",type:"submit",fullWidth:!0}),(0,r.jsx)(od.Button,{buttonType:"ghost",label:"Stap overslaan",onClick:()=>e(void 0)})]})]})]})})},oP=({setStepHeight:e,handleSubmit:t})=>(0,r.jsx)(oS,{hasTopBar:!0,setStepHeight:e,children:(0,r.jsxs)(ow,{children:[(0,r.jsx)(og,{title:"Alles wat je moet weten als je zwanger wil worden",subTitle:"Wat doe je als het lang duurt of niet lukt? Lees hoe je je vruchtbare dagen kan berekenen en bekijk onze tips om de kans op een zwangerschap te vergroten."}),(0,r.jsx)(od.Button,{buttonType:"primary",label:"Doorgaan",onClick:()=>{t(!0)}})]})});var oM=e.i(21575);let oD=({handleSubmit:e,handleBack:t,confirmationList:i,setStepHeight:n})=>{let s=["De site en app van Ouders van Nu voor mij te personaliseren."];return i.newsletter&&s.push("Mij wekelijks Kalendermails te sturen."),(0,r.jsx)(oS,{hasTopBar:!0,setStepHeight:n,
9children:(0,r.jsxs)(ow,{children:[(0,r.jsx)(og,{title:"Registratie afronden",subTitle:"Ik geef Ouders van Nu toestemming om mijn uitgerekende datum te gebruiken om:"}),(0,r.jsx)(op,{list:s}),(0,r.jsxs)("div",{className:oM.default.buttons,children:[(0,r.jsx)(od.Button,{buttonType:"primary",label:"Keuzes bevestigen",onClick:()=>{e(!0)}}),(0,r.jsx)(od.Button,{buttonType:"ghost",label:"Vorige stap",onClick:()=>{t()}})]})]})})};var oC=e.i(399175);let oA=({handleSubmit:e,setStepHeight:t})=>(0,r.jsx)(oS,{hasTopBar:!0,setStepHeight:t,children:(0,r.jsxs)(ow,{children:[(0,r.jsx)(og,{title:"Wil je eenmalig gratis ons Zwanger Magazine ontvangen?",subTitle:`
10          🍼 Alles wat je wil weten over je zwangerschap</br>
11          📖 Vol met inspirerende verhalen van anderen</br>
12          🧸 Lees praktische tips en productadviezen`,imageName:"zwanger-magazine-cover.png",imageBadge:"Gratis"}),(0,r.jsxs)("div",{className:oC.default.buttons,children:[(0,r.jsx)(od.Button,{buttonType:"primary",label:"Ja, dat wil ik",onClick:()=>{e(!0)}}),(0,r.jsx)(od.Button,{buttonType:"ghost",label:"Nee, bedankt",onClick:()=>{e(!1)}})]})]})});var oR=e.i(139734),oV=e.i(224904),oF=e.i(776043);async function oB(e,t,i){let n=oV.t.thirdParty.addressValidationService.url;if(""===n)throw Error("Address validation URL is not set");try{let r=await fetch(n,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({zip:e,city:"",street:"",housenumber:t,housenumber_addition:i}),next:{revalidate:3}});if(!r.ok)throw Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(e){return(0,oF.log)(`Address validation response status: ${e}`,"getAddressByPostcode.ts"),{valid:!1,completeness:"incomplete"}}}var oN=e.i(162270),oL=e.i(545100),oI=e.i(282648),oO=e.i(17094),oz=e.i(764727);let oH=({street:e,city:t,streetError:i,cityError:n,onStreetChange:s,onCityChange:o})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(oh.FormField,{label:"Straatnaam",htmlFor:"street",isBold:!0,message:i,messageType:i?"error":"default",children:(0,r.jsx)(o_.TextInput,{name:"street",value:e,onChange:e=>s(e.target.value),isError:!!i})}),(0,r.jsx)(oh.FormField,{label:"Plaatsnaam",htmlFor:"city",isBold:!0,message:n,messageType:n?"error":"default",children:(0,r.jsx)(o_.TextInput,{name:"city",value:t,onChange:e=>o(e.target.value),isError:!!n})})]});function oW(e,t){return t?oy.PregnancyFormMagazineSchema.safeParse({name:e.get("name"),prefix:e.get("prefix"),surname:e.get("surname"),postCode:e.get("postCode"),houseNumber:e.get("houseNumber"),addition:e.get("addition"),street:e.get("street"),city:e.get("
12city")}):oy.PregnancyFormMagazineSchema.omit({street:!0,city:!0}).safeParse({name:e.get("name"),prefix:e.get("prefix"),surname:e.get("surname"),postCode:e.get("postCode"),houseNumber:e.get("houseNumber"),addition:e.get("addition")})}let o$=({...e})=>(0,r.jsx)(oO.SessionWrapper,{children:({session:t})=>(0,r.jsx)(oU,{session:t,...e})}),oU=({onSubmit:e,existingFormData:t,setStepHeight:i,session:n})=>{let[s,o]=(0,a.useState)(null),[l,u]=(0,a.useState)("idle"),[h,d]=(0,a.useState)(!1),[c,m]=(0,a.useState)(""),[p,f]=(0,a.useState)(""),g=t?.get("street")||"",y=t?.get("houseNumber")||"",v=t?.get("addition")||"",x=t?.get("city")||"",[w,b]=(0,a.useState)(g&&y&&x?{address:`${g} ${y}, ${x}`,addition:v,street:g,houseNumber:y,city:x}:null),S=(0,a.useRef)(null),T=()=>{requestAnimationFrame(()=>{S.current&&i(S.current.scrollHeight+200)})};if(!n||!n.user)return;let k=t?.get("name")||n?.user?.given_name||"",_=t?.get("prefix")||"",E="";E=t?.get("surname")?t?.get("surname"):n?.user?.family_name&&!/\s/.test(n.user.family_name)?n.user.family_name:"";let j=t?.get("postCode")||n?.user?.address?.postal_code||"",P=async e=>{let t=new FormData(e.currentTarget),i="service-error"===l||h,n=oW(t,i);if(n.error)o(n.error.format());else{let{data:e}=n;if(i)return;try{let t=await oB(e.postCode,e.houseNumber,e.addition);if(t.valid){let{address:e}=t;b({address:`${e.street} ${e.housenumber}, ${e.city}`,street:e.street,houseNumber:e.housenumber,city:e.city,addition:e.housenumber_addition}),u("idle"),o(null)}else u("mismatch-error"),o({address:{_errors:["Postcode en huisnummer matchen niet"]}}),b(null),T()}catch{u("service-error"),m(g||""),f(x||""),o(null),T()}}},M="service-error"===l||h;return(0,r.jsx)(oS,{hasTopBar:!0,setStepHeight:i,children:(0,r.jsx)(ow,{children:(0,r.jsxs)("div",{ref:S,children:[(0,r.jsx)(og,{title:"Vraag hieronder je gratis Zwanger Magazine aan",subTitle:"Het magazine wordt binnen 4 weken gratis thuisbezorgd."}),(0,r.jsxs)("form",{onSubmit:t=>{t.preventDefault();let i=new FormData(t.currentTarget),n="service-error"===l||h;n?(i.set("street",c),i.set("city",p)):w&&(i.set("street",w.street),i.set("city",w.city));let r=oW(i,n);r.error?o(r.error.format()):e(i)},onBlur:P,className:oz.default.formWrapper,children:[(0,r.jsxs)("div",{className:oz.default.inputsWrapper,children:[(0,r.jsx)(oh.FormField,{label:"Voornaam",htmlFor:"name",isBold:!0,message:s?.name?._errors[0],messageType:s?.name?._errors[0]?"error":"default",children:(0,r.jsx)(o_.TextInput,{name:"name",defaultValue:k,isError:!!s?.name?._errors[0]})}),(0,r.jsx)(oh.FormField,{label:"Tussenvoegsel",htmlFor:"prefix",isBold:!0,message:s?.prefix?._errors[0],messageType:s?.prefix?._errors[0]?"error":"default",children:(0,r.jsx)(o_.TextInput,{name:"prefix",placeholder:"Optioneel",defaultValue:_,isError:!!s?.prefix?._errors[0]})}),(0,r.jsx)(oh.FormField,{label:"Achternaam",htmlFor:"surname",isBold:!0,message:s?.surname?._errors[0],messageType:s?.surname?._errors[0]?"error":"default",children:(0,r.jsx)(o_.TextInput,{name:"surname",defaultValue:E,isError:!!s?.surname?._errors[0]})}),(0,r.jsx)(oh.FormField,{label:"Postcode",htmlFor:"postCode",isBold:!0,message:s?.postCode?._errors[0],messageType:s?.postCode?._errors[0]?"error":"default",children:(0,r.jsx)(o_.TextInput,{name:"postCode",defaultValue:j,isError:!!s?.postCode?._errors[0]})}),(0,r.jsxs)("div",{className:oz.default.postcode,children:[(0,r.jsx)(oh.FormField,{label:"Huisnummer",htmlFor:"houseNumber",isBold:!0,message:s?.houseNumber?._errors[0],messageType:s?.houseNumber?._errors[0]?"error":"default",children:(0,r.jsx)(o_.TextInput,{name:"houseNumber",type:"number",defaultValue:w?.houseNumber??y,isError:!!s?.houseNumber?._errors[0]})}),(0,r.jsx)(oh.FormField,{label:"Toevoeging",htmlFor:"addition",isBold:!0,message:s?.addition?._errors[0],messageType:s?.addition?._errors[0]?"error":"default",children:(0,r.jsx)(o_.TextInput,{name:"addition",placeholder:"Optioneel",defaultValue:w?.addition??v,isError:!!s?.addition?._errors[0]})}),!M&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{type:"hidden",value:w?.street||"",name:"street"}),(0,r.jsx)("input",{type:"hidden",value:w?.city||"",name:"city"})]})]}),"service-error"===l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(oL.Toast,{type:oI.ToastType.ALERT,showOnMount:!0,message:"Er is een fout opgetreden bij de automatische adresvalidatie. Vul alstublieft uw adres handmatig in.<br /><b>Controleer uw gegevens goed voordat u doorgaat.</b>"}),(0,r.jsx)(oH,{street:c,city:p,streetError:s?.street?._errors[0],cityError:s?.city?._errors[0],onStreetChange:m,onCityChange:f})]}),"mismatch-error"===l&&(0,r.jsxs)(r.Fragment,{children:[!h&&(0,r.jsx)("div",{className:oz.default.errorMessageWrapper,children:(0,r.jsxs)("p",{className:`${oz.default.address} ${oz.default.error}`,children:[(0,r.jsx)(oN.ErrorInfoIcon,{className:oz.default.icon}),s?.address?._errors[0]]})}),(0,r.jsx)("div",{className:oz.default.manualInputToggle,children:(0,r.jsx)(oR.Checkbox,{label:"Adres handmatig invoeren",name:"manualAddressToggle",checked:h,onChange:e=>{let t=e.target.checked;if(d(t),t){if(m(w?.street||g||""),f(w?.city||x||""),s){let e={...s};delete e.street,delete e.city,o(e)}}else"mismatch-error"===l&&o({address:{_errors:["Postcode en huisnummer matchen niet"]}});T()}})}),h&&(0,r.jsx)(oH,{street:c,city:p,streetError:""===c.trim()?s?.street?._errors[0]:void 0,cityError:""===p.trim()?s?.city?._errors[0]:void 0,onStreetChange:m,onCityChange:f})]})]}),(0,r.jsx)("div",{className:`${oz.default.addressWrapper} ${!w?.address||M?oz.default.hidden:""}`,children:!M&&w?.address&&(0,r.jsx)("p",{className:oz.default.address,children:w?.address})}),(0,r.jsx)(od.Button,{buttonType:"primary",label:"Doorgaan",fullWidth:!0,type:"submit",disabled:M?""===c.trim()||""===p.trim():!!s&&Object.keys(s).some(e=>{if("_errors"===e)return!1;let t=s[e];return t&&"object"==typeof t&&"_errors"in t&&Array.isArray(t._errors)&&t._errors.length>0})})]})]})})})};var oq=e.i(971548);let oG=({path:e,handleSubmit:t,setStepHeight:i})=>(0,r.jsx)(oS,{hasTopBar:!0,setStepHeight:i,children:(0,r.jsxs)(ow,{children:[(0,r.jsx)(og,{title:"unborn"===e?"Blijf op de hoogte van de ontwikkeling van jouw zwangerschap!":"Wil je elke week informatie over de ontwikkeling van jouw kind?",subTitle:"unborn"!==e?"Schrijf je in voor onze Kalendermails en ontvang elke week informatie in je mailbox die voor jou van belang is.":void 0,usps:"unborn"===e?["Elke week een update over de ontwikkeling van jouw zwangerschap","Boordevol informatie, adviezen en tips","Gecontroleerd door 70 experts"]:void 0,iconName:"mail"}),(0,r.jsxs)("div",{className:oq.default.buttons,children:[(0,r.jsx)(od.Button,{buttonType:"primary",label:"Ja, schrijf mij in",onClick:()=>{t({pageUrl:"/voor-mij",subscriptionType:"unborn"===e?"unborn":"
12child",toggle:!0})}}),(0,r.jsx)(od.Button,{buttonType:"ghost",label:"Nee, bedankt",onClick:()=>{t(null)}})]})]})});var oX=e.i(802155),oY=e.i(462802),oK=e.i(945038),oZ=e.i(648409);let oJ=({onSetDate:e,existingFormData:t,setStepHeight:i})=>{let[n,o]=(0,a.useState)(null),{setIsModalOpen:l}=(0,s.useModal)(),[u,h]=(0,a.useState)(null),d=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e;u&&(e=u.toISOString().slice(0,10),d.current&&(d.current.value=e))},[u]);let{minDate:c,maxDate:m}=(0,oK.getAllowedPregnancyDates)();return(0,r.jsx)(oS,{hasTopBar:!0,setStepHeight:i,children:(0,r.jsxs)(ow,{children:[(0,r.jsx)(og,{title:"Mis niets tijdens je zwangerschap",subTitle:"Met je uitgerekende datum kunnen wij jou informatie op maat aanbieden."}),(0,r.jsxs)("form",{onSubmit:t=>{t.preventDefault();let i=new FormData(t.currentTarget),n=oy.PregnancyFormSchema.omit({personalizedContentConsent:!0}).safeParse({periodDate:i.get("periodDate")});n.error?o(n.error.format()):e(i)},className:oZ.default.pregnancyForm,children:[(0,r.jsx)("input",{type:"hidden",value:"/voor-mij",name:"pageUrl"}),(0,r.jsx)("input",{type:"hidden",value:"on",name:"personalizedContentConsent"}),(0,r.jsxs)("div",{children:[(0,r.jsx)(oh.FormField,{label:"Wat is je uitgerekende datum?",htmlFor:"periodDate",message:n?.periodDate?._errors[0],messageType:n?.periodDate?._errors[0]?"error":"default",isBold:!0,children:(0,r.jsx)(ou.DateInput,{name:"periodDate",required:!0,"data-testid":"periodDate",onInvalidMsg:oy.pregnancyDateErrorMsg,min:(0,ov.formatDate)(c,"yyyy-mm-dd"),max:(0,ov.formatDate)(m,"yyyy-mm-dd"),isError:!!n?.periodDate?._errors[0],ref:d,defaultValue:t&&t.get("periodDate")})}),(0,r.jsx)("div",{className:oZ.default.calculateModal,children:(0,r.jsx)("span",{onClick:()=>l(!0),className:oZ.default.modalTrigger,children:"Bereken je uitgerekende datum"})})]}),(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:oZ.default.buttonHolder,children:(0,r.jsx)(od.Button,{buttonType:"primary",label:"Doorgaan",fullWidth:!0,type:"submit"})})})]}),(0,r.jsx)(oY.CalculateDueDateModal,{addDate:e=>{h(e)}})]})})};function oQ(e,t){switch(t.type){case"CHOOSE_PATH":{let i="unborn"===t.payload?"pregnancyDate":"child"===t.payload?"childDate":"childWishAdd";return{...e,path:t.payload,currentStep:i,stepHistory:[...e.stepHistory,i],animationDirection:"forward"}}case"SET_DATE":{let i="unborn"===e.path?"pregnancyDateFormData":"childDateFormData",n="unborn"===e.path?"newsletter":"childName";return{...e,data:{...e.data,[i]:t.payload},currentStep:n,stepHistory:[...e.stepHistory,n],animationDirection:"forward"}}case"SET_CHILD_NAME":return{...e,data:{...e.data,childNameFormData:t.payload},currentStep:"newsletter",stepHistory:[...e.stepHistory,"newsletter"],animationDirection:"forward"};case"SET_NEWSLETTER":{let i="unborn"===e.path?"magazine":"finalizing";return{...e,data:{...e.data,newsletter:t.payload},currentStep:i,stepHistory:[...e.stepHistory,i],animationDirection:"forward"}}case"SET_MAGAZINE":{let i=t.payload?"magazineForm":"confirmation";return{...e,data:{...e.data,pregnancyMagazine:t.payload},currentStep:i,stepHistory:[...e.stepHistory,i],animationDirection:"forward"}}case"SET_MAGAZINE_FORM":return{...e,data:{...e.data,pregnancyMagazineFormData:t.payload},currentStep:"confirmation",stepHistory:[...e.stepHistory,"confirmation"],animationDirection:"forward"};case"SET_CHILD_WISH":return{...e,data:{...e.data,childWishAdd:t.payload},currentStep:"finalizing",stepHistory:[...e.stepHistory,"finalizing"],animationDirection:"forward"};case"SET_CONFIRMATION":return{...e,data:{...e.data,confirmation:t.payload},currentStep:"finalizing",stepHistory:[...e.stepHistory,"finalizing"],animationDirection:"forward"};case"GO_BACK":{if(e.stepHistory.length<=1)return e;let t=[...e.stepHistory];t.pop();let i=t[t.length-1];return{...e,currentStep:i,stepHistory:t,animationDirection:"backward"}}default:return e}}var o0=e.i(97860);let o1=({handleBack:e})=>(0,r.jsx)("div",{className:o0.default.icon,onClick:e,children:(0,r.jsx)(oc.ThemeIcon,{iconName:"direction_left",size:"large",title:"direction_left - large"},"direction_left")});var o2=e.i(259841);let o5=({handleBack:e,progress:t,totalSteps:i})=>(0,r.jsxs)("div",{className:o2.default.topBar,children:[(0,r.jsx)(o1,{handleBack:e}),(0,r.jsx)("div",{className:o2.default.progressContainer,children:(0,r.jsx)("div",{className:o2.default.progressBar,style:{width:`${t/i*100}%`}})})]});var o3=e.i(458531);let o4=({...e})=>(0,r.jsx)(oO.SessionWrapper,{children:({session:t})=>(0,r.jsx)(o9,{session:t,...e})}),o9=({onChoosePath:e,setStepHeight:t,session:i})=>i?(0,r.jsx)(oS,{setStepHeight:t,children:(0,r.jsxs)(ow,{children:[(0,r.jsx)(og,{title:`Welkom${i.user?.given_name?" "+i.user.given_name:""}!`,subTitle:"Kies een fase om jouw ervaring te personaliseren."}),(0,r.jsxs)("div",{className:o3.default.buttons,children:[(0,r.jsx)(od.Button,{buttonType:"tertiary",label:"Ik ben zwanger",onClick:()=>e("unborn")}),(0,r.jsx)(od.Button,{buttonType:"tertiary",label:"Ik heb een baby",onClick:()=>e("child")})]}),(0,r.jsx)("p",{className:o3.default.note,children:"Je kunt dit later altijd wijzigen, of een extra kind of fase aan je profiel toevoegen."})]})}):null,o6={currentStep:"welcome",path:null,data:{pregnancyDateFormData:void 0,childDateFormData:void 0,childNameFormData:void 0,newsletter:null,pregnancyMagazine:!1,pregnancyMagazineFormData:null,confirmation:!1,childWishAdd:!1},stepHistory:["welcome"],animationDirection:"forward"},o7=400,o8={ease:"linear",duration:.3},ae={status:"idle",message:""};async function at(e,t){let i=[];if("unborn"===e&&(t.pregnancyDateFormData&&i.push(f(ae,t.pregnancyDateFormData)),t.pregnancyMagazine&&t.pregnancyMagazineFormData&&i.push(p(t.pregnancyMagazineFormData))),"child"===e){let e=t.childDateFormData;t.childNameFormData&&e.set("childName",t.childNameFormData.get("childName")),i.push((0,d.addChild)(ae,e))}if("child-wish"===e&&t.childWishAdd&&i.push((0,c.addChildWish)()),t.newsletter){let{pageUrl:e,toggle:n,subscriptionType:r}=t.newsletter;n&&i.push((0,g.toggleNewsletter)({pageUrl:e,subscribeTo:r}))}return await Promise.all(i)}e.s(["Onboarding",0,()=>{var e;let[t,i]=(0,a.useReducer)(oQ,o6),[n,o]=(0,a.useState)(!1),[l,u]=(0,a.useState)(500),d=(0,sQ.useRouter)();(0,a.useEffect)(()=>{let e;return(e=Array.from(document.getElementsByClassName("Footer"))).push(document.getElementsByTagName("footer")[0]),e.forEach(e
12=>{e.style.display="none"}),()=>{e.forEach(e=>{e.style.display="initial"})}},[]),(0,a.useEffect)(()=>{let e=()=>{o7=window.innerWidth,o(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let c=()=>{i({type:"GO_BACK"})},m="forward"===t.animationDirection?1:-1,p={enter:e=>({x:e>0?"100%":"-100%"}),center:{x:"0%"},exit:e=>({x:e>0?"-100%":"100%"})};(0,a.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"}),t.path&&"finalizing"===t.currentStep&&at(t.path,t.data).then(()=>{(0,x.dispatchCustomEvent)(y.APP_EVENTS.ONBOARDING_COMPLETED,{success:!0},!0),(0,x.dispatchCustomEvent)(v.SESSION_EVENTS.REFRESH_REQUEST),d.refresh()})},[t.currentStep,t.path,t.data,d]);let f="unborn"===t.path?t.data.pregnancyMagazine?7:6:"child"===t.path?5:3;return(0,r.jsx)("div",{className:oX.default.wrapper,style:{minHeight:l},children:(0,r.jsxs)(sJ,{reducedMotion:"user",children:[(0,r.jsxs)("div",{className:oX.default.container,children:[(0,r.jsx)(N,{initial:!1,mode:"sync",custom:m,children:(0,r.jsx)(sZ.div,{custom:m,variants:n?void 0:p,initial:n?void 0:"enter",animate:"center",exit:n?void 0:"exit",transition:o8,children:"welcome"!==t.currentStep&&"finalizing"!==t.currentStep&&(0,r.jsx)("div",{className:oX.default.topBar,children:(0,r.jsx)(o5,{handleBack:c,progress:t.stepHistory.length,totalSteps:f})})},t.stepHistory.length<2?t.currentStep:"topBar")}),(0,r.jsx)(N,{initial:!1,mode:"sync",custom:m,children:(0,r.jsxs)(sZ.div,{custom:m,variants:n?void 0:p,initial:n?void 0:"enter",animate:"center",exit:n?void 0:"exit",transition:o8,children:["welcome"===t.currentStep&&(0,r.jsx)(o4,{setStepHeight:u,onChoosePath:e=>i({type:"CHOOSE_PATH",payload:e})}),"pregnancyDate"===t.currentStep&&(0,r.jsx)(s.ModalProvider,{children:(0,r.jsx)(oJ,{setStepHeight:u,onSetDate:e=>{i({type:"SET_DATE",payload:e})},existingFormData:t.data.pregnancyDateFormData})}),"childDate"===t.currentStep&&(0,r.jsx)(s.ModalProvider,{children:(0,r.jsx)(ok,{setStepHeight:u,onSetDate:e=>i({type:"SET_DATE",payload:e}),existingFormData:t.data.childDateFormData})}),"childName"===t.currentStep&&(0,r.jsx)(oj,{setStepHeight:u,onSetName:e=>i({type:"SET_CHILD_NAME",payload:e}),existingFormData:t.data.childDateFormData}),"newsletter"===t.currentStep&&t.path&&(0,r.jsx)(oG,{setStepHeight:u,path:t.path,handleSubmit:e=>{i({type:"SET_NEWSLETTER",payload:e})}}),"magazine"===t.currentStep&&t.path&&(0,r.jsx)(oA,{setStepHeight:u,handleSubmit:e=>{i({type:"SET_MAGAZINE",payload:e})}}),"magazineForm"===t.currentStep&&t.path&&(0,r.jsx)(o$,{setStepHeight:u,onSubmit:e=>{i({type:"SET_MAGAZINE_FORM",payload:e})},existingFormData:t.data.pregnancyMagazineFormData}),"childWishAdd"===t.currentStep&&t.path&&(0,r.jsx)(oP,{setStepHeight:u,handleSubmit:e=>{i({type:"SET_CHILD_WISH",payload:e})}}),"confirmation"===t.currentStep&&t.path&&(0,r.jsx)(oD,{setStepHeight:u,confirmationList:t.data,handleBack:c,handleSubmit:e=>{i({type:"SET_CONFIRMATION",payload:e})}}),"finalizing"===t.currentStep&&t.path&&(0,r.jsx)(h,{choice:t.path,submittedDate:"unborn"===t.path?t.data.pregnancyDateFormData:t.data.childDateFormData})]},t.currentStep)})]}),(0,r.jsx)(N,{initial:!1,mode:"sync",custom:m,children:(0,r.jsxs)(sZ.div,{initial:!1,animate:n?void 0:{x:-1*o7*((e=t.stepHistory).includes("magazineForm")?e.length-2:e.length-1)},transition:o8,className:oX.default.background,children:[(0,r.jsx)(ol,{src:"/img/onboarding.svg","data-source":"/img/onboarding.svg",title:"background"}),(0,r.jsx)("div",{})]})})]})})}],233470)},854840,e=>{e.v({iconWrapper:"ChildBornIcon-module-scss-module__AfeLtW__iconWrapper"})},90916,e=>{e.v({babyMessage:"ChildBornMessage-module-scss-module__BQDLRq__babyMessage",buttons:"ChildBornMessage-module-scss-module__BQDLRq__buttons",inlineMessage:"ChildBornMessage-module-scss-module__BQDLRq__inlineMessage",text:"ChildBornMessage-module-scss-module__BQDLRq__text",textBlock:"ChildBornMessage-module-scss-module__BQDLRq__textBlock",title:"ChildBornMessage-module-scss-module__BQDLRq__title",wrapper:"ChildBornMessage-module-scss-module__BQDLRq__wrapper"})},622771,e=>{"use strict";var t=e.i(79589),i=e.i(93281),n=e.i(528588),r=e.i(734804),s=e.i(851959),o=e.i(945857),a=e.i(499619),l=e.i(37590),u=e.i(282648),h=e.i(251093),d=e.i(854840),c=e.i(470152),m=e.i(90916);let p=({weeksPregnant:e,forceShowBlockFromWeek:i,hideMessage:n})=>(0,t.jsx)("div",{className:m.default.wrapper,children:(0,t.jsx)(o.InlineMessage,{messageType:"info",className:`${m.default.inlineMessage}`,customIcon:(0,t.jsx)("div",{className:d.default.iconWrapper,children:(0,t.jsx)(h.ThemeIcon,{iconName:"
12child",title:"kind"})}),children:(0,t.jsxs)("div",{className:m.default.babyMessage,children:[(0,t.jsxs)("div",{className:m.default.textBlock,children:[(0,t.jsx)("h3",{className:m.default.title,children:"Is je baby al geboren?"}),(0,t.jsx)("p",{className:m.default.text,children:"Geef het aan ons door en blijf de ontwikkeling volgen"})]}),(0,t.jsxs)("div",{className:m.default.buttons,children:[(0,t.jsx)(c.BabyBornModalTrigger,{weeksPregnant:e,redirectUrl:"/voor-mij",buttonLabel:e>=i?"Ja, mijn baby is geboren":"Ja",buttonType:"secondary"}),e<i&&(0,t.jsx)(l.Button,{buttonType:"secondary",size:"medium",label:"Nee",type:"submit",onClick:()=>{(0,a.addToast)({uniqueId:"baby-not-born-yet",message:"Geef de geboorte later door via je profiel om alles te blijven lezen over je baby",type:u.ToastType.ALERT}),n()}})]})]})})});e.s(["ChildBornAlert",0,({pregnancy:e})=>{let[o,a]=(0,s.useState)(!1);return!(0,s.useMemo)(()=>{let t=e?.value?.weeks||0;return t<36||o&&t<41},[e?.value?.weeks,o])&&(0,t.jsx)(i.ModalProvider,{children:(0,t.jsx)(p,{weeksPregnant:e.value.weeks,forceShowBlockFromWeek:41,hideMessage:()=>{r.default.set(n.HIDE_ALERT_COOKIE_KEY,"true",{secure:!0,expires:7,sameSite:"Lax"}),a(!0)}})})}],622771)},787064,e=>{e.v({content:"WeekSelector-module-scss-module__7AtO2G__content",image:"WeekSelector-module-scss-module__7AtO2G__image",imageContainer:"WeekSelector-module-scss-module__7AtO2G__imageContainer",label:"WeekSelector-module-scss-module__7AtO2G__label",next:"WeekSelector-module-scss-module__7AtO2G__next",selector:"WeekSelector-module-scss-module__7AtO2G__selector",skeleton:"WeekSelector-module-scss-module__7AtO2G__skeleton"})},341294,e=>{"use strict";var t=e.i(79589),i=e.i(251093),n=e.i(49637),r=e.i(787064);e.s(["WeekSelector",0,({selector:e,direction:s,href:o,className:a,isSkeleton:l=!1})=>(0,t.jsxs)("a",{className:`${a} ${r.default.selector} ${r.default[s]} ${l?r.default.skeleton:""}`,title:e.title,href:o,"aria-disabled":l,children:[(0,t.jsx)(n.Image,{source:e.image,alt:e.title,className:r.default.image,aspectRatio:"1 / 1",classNameContainer:r.default.imageContainer}),(0,t.jsxs)("div",{className:`${r.default.content} ${l?r.default.skeleton:""}`,children:["prev"===s&&(0,t.jsx)(i.ThemeIcon,{size:"large",iconName:"direction_left",title:e.title}),(0,t.jsx)("span",{children:e.title}),"next"===s&&(0,t.jsx)(i.ThemeIcon,{size:"large",iconName:"direction_right",title:e.title})]})]})])},498447,e=>{e.v({adBlock:"PageAdBlock-module-scss-module__D3gdPG__adBlock"})},953270,e=>{"use strict";var t=e.i(79589),i=e.i(224904),n=e.i(462321),r=e.i(819364),s=e.i(584474),o=e.i(498447);e.s(["PageAdBlock",0,({wrapperClass:e,slotNames:a,withLabel:l})=>{let u=(0,n.useScreenSizeSnapshot)(),h=u?.isMobile?a.mobile:a.desktop;return i.t.thirdParty.thirdPartyEnabled&&i.t.simAdService.enabled&&a&&h?(0,t.jsxs)("div",{className:`${o.default.adBlock} ${e??""}`,children:[l&&(0,t.jsx)(s.AdLabel,{label:i.t.simAdService.labelAdLabel}),(0,t.jsx)(r.AdSlot,{slotName:h,containerId:`add-banner-${h}`,className:o.default.ad})]}):null}])}]);

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.