1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37848,(e,t,i)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:i,blurHeight:r,blurDataURL:s,objectFit:o}){let a=i?40*i:e,l=r?40*r:t,u=a&&l?`viewBox='0 0 ${a} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${u}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${s}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},1183,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return o}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},4879,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return u}}),e.r(72489);let n=e.r(42736),r=e.r(37848),s=e.r(1183),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u({src:e,sizes:t,unoptimized:i=!1,priority:h=!1,preload:c=!1,loading:d,className:p,quality:m,width:f,height:g,fill:y=!1,style:v,overrideSrc:x,onLoad:b,onLoadingComplete:w,placeholder:P="empty",blurDataURL:S,fetchPriority:T,decoding:E="async",layout:k,objectFit:M,objectPosition:C,lazyBoundary:A,lazyRoot:j,...V},L){var R;let D,O,B,{imgConf:z,showAltText:N,blurComplete:I,defaultLoader:F}=L,_=z||s.imageConfigDefault;if("allSizes"in _)D=_;else{let e=[..._.deviceSizes,..._.imageSizes].sort((e,t)=>e-t),t=_.deviceSizes.sort((e,t)=>e-t),i=_.qualities?.sort((e,t)=>e-t);D={..._,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let $=V.loader||F;delete V.loader,delete V.srcSet;let U="__next_img_default"in $;if(U){if("custom"===D.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=$;$=t=>{let{config:i,...n}=t;return e(n)}}if(k){"fill"===k&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(v={...v,...e});let i={responsive:"100vw",fill:"100vw"}[k];i&&!t&&(t=i)}let H="",W=l(f),K=l(g);if((R=e)&&"object"==typeof R&&(a(R)||void 0!==R.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}
2`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(O=t.blurWidth,B=t.blurHeight,S=S||t.blurDataURL,H=t.src,!y)if(W||K){if(W&&!K){let e=W/t.width;K=Math.round(t.height*e)}else if(!W&&K){let e=K/t.height;W=Math.round(t.width*e)}}else W=t.width,K=t.height}let X=!h&&!c&&("lazy"===d||void 0===d);(!(e="string"==typeof e?e:H)||e.startsWith("data:")||e.startsWith("blob:"))&&(i=!0,X=!1),D.unoptimized&&(i=!0),U&&!D.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(i=!0);let G=l(m),Y=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:C}:{},N?{}:{color:"transparent"},v),q=I||"empty"===P?null:"blur"===P?`url("data:image/svg+xml;charset=utf-8,${(0,r.getImageBlurSvg)({widthInt:W,heightInt:K,blurWidth:O,blurHeight:B,blurDataURL:S||"",objectFit:Y.objectFit})}")`:`url("${P}")`,Z=o.includes(Y.objectFit)?"fill"===Y.objectFit?"100% 100%":"cover":Y.objectFit,J=q?{backgroundSize:Z,backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},Q=function({config:e,src:t,unoptimized:i,width:r,quality:s,sizes:o,loader:a}){if(i){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(e){let i=t.indexOf("?");if(-1!==i){let n=new URLSearchParams(t.slice(i+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,i)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:u}=function({deviceSizes:e,allSizes:t},i,n){if(n){let i=/(^|\s)(1?\d?\d)vw/g,r=[];for(let e;e=i.exec(n);)r.push(parseInt(e[2]));if(r.length){let i=.01*Math.min(...r);return{widths:t.filter(t=>t>=e[0]*i),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof i?{widths:e,kind:"w"}:{widths:[...new Set([i,2*i].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,r,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((i,n)=>`${a({config:e,src:t,quality:s,width:i})} ${"w"===u?i:n+1}${u}`).join(", "),src:a({config:e,src:t,quality:s,width:l[h]})}}({config:D,src:e,unoptimized:i,width:W,quality:G,sizes:t,loader:$}),ee=X?"lazy":d;return{props:{...V,loading:ee,fetchPriority:T,width:W,height:K,decoding:E,className:p,style:{...Y,...J},sizes:Q.sizes,srcSet:Q.srcSet,src:x||Q.src},meta:{unoptimized:i,preload:c||h,placeholder:P,fill:y}}}},61080,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let n=e.r(73576),r="u"<typeof window,s=r?()=>{}:n.useLayoutEffect,o=r?()=>{}:n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:i}=e;function a(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(i(e))}}return r&&(t?.mountedInstances?.add(e.children),a()),s(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),s(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},52991,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return f},defaultHead:function(){return c}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=e.r(81258),o=e.r(44066),a=e.r(76350),l=o._(e.r(73576)),u=s._(e.r(61080)),h=e.r(37090);function c(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(72489);let p=["name","httpEquiv","charSet","itemProp"];function m(e){let t,i,n,r;return e.reduce(d,[]).reverse().concat(c().reverse()).filter((t=new Set,i=new Set,n=new Set,r={},e=>{let s=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let i=e.key.slice(e.key.indexOf("$")+1);t.has(i)?s=!1:t.add(i)}switch(e.type){case"title":case"base":i.has(e.type)?s=!1:i.add(e.type);break;case"meta":for(let t=0,i=p.length;t<i;t++){let i=p[t];if(e.props.hasOwnProperty(i))if("charSet"===i)n.has(i)?s=!1:n.add(i);else{let t=e.props[i],n=r[i]||new Set;("name"!==i||!o)&&n.has(t)?s=!1:(n.add(t),r[i]=n)}}}return s})).reverse().map((e,t)=>{let i=e.key||t;return l.default.cloneElement(e,{key:i})})}let f=function({children:e}){let t=(0,l.useContext)(h.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:m,headManager:t,children:e})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
2dule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},4044,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=e.r(81258)._(e.r(73576)),r=e.r(1183),s=n.default.createContext(r.imageConfigDefault)},34233,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(81258)._(e.r(73576)).default.createContext(null)},2692,(e,t,i)=>{"use strict";function n(e,t){let i=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e,t.qualities[0]):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return n}})},80934,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o}});let n=e.r(2692),r=e.r(42736);function s({config:e,src:t,width:i,quality:o}){let a=(0,r.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let i=new URLSearchParams(t.slice(e+1)),n=i.get("dpl");if(n){a=n,i.delete("dpl");let r=i.toString();t=t.slice(0,e)+(r?"?"+r:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(o,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${i}&q=${l}${t.startsWith("/")&&a?`&dpl=${a}`:""}`}s.__next_img_default=!0;let o=s},86032,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return r}});let n=e.r(73576);function r(e,t){let i=(0,n.useRef)(null),r=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=i.current;e&&(i.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(i.current=s(e,n)),t&&(r.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let i=e(t);return"function"==typeof i?i:()=>e(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},83540,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return b}});let n=e.r(81258),r=e.r(44066),s=e.r(76350),o=r._(e.r(73576)),a=n._(e.r(55284)),l=n._(e.r(52991)),u=e.r(4879),h=e.r(1183),c=e.r(4044);e.r(72489);let d=e.r(34233),p=n._(e.r(80934)),m=e.r(86032),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,i,n,r,s,o){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&r(!0),i?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,r=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function y(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,o.forwardRef)(({src:e,srcSet:t,sizes:i,height:n,width:r,decoding:a,className:l,style:u,fetchPriority:h,placeholder:c,loading:d,unoptimized:p,fill:f,onLoadRef:v,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,sizesInput:P,onLoad:S,onError:T,...E},k)=>{let M=(0,o.useCallback)(e=>{e&&(T&&(e.src=e.src),e.complete&&g(e,c,v,x,b,p,P))},[e,c,v,x,b,T,p,P]),C=(0,m.useMergedRef)(k,M);return(0,s.jsx)("img",{...E,...y(h),loading:d,width:r,height:n,decoding:a,"data-nimg":f?"fill":"1",className:l,style:u,sizes:i,srcSet:t,src:e,ref:C,onLoad:e=>{g(e.currentTarget,c,v,x,b,p,P)},onError:e=>{w(!0),"empty"!==c&&b(!0),T&&T(e)}})});function x({isAppRouter:e,imgAttributes:t}){let i={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,i),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...i},"__nimg-"+t.src+t.srcSet+t.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let i=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),r=(0,o.useMemo)(()=>{let e=f||n||h.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
3e-t),i=e.deviceSizes.sort((e,t)=>e-t),r=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:i,qualities:r,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:a,onLoadingComplete:l}=e,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[y,b]=(0,o.useState)(!1),[w,P]=(0,o.useState)(!1),{props:S,meta:T}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:r,blurComplete:y,showAltText:w});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...S,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:P,sizesInput:e.sizes,ref:t}),T.preload?(0,s.jsx)(x,{isAppRouter:!i,imgAttributes:S}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},92331,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return h},getImageProps:function(){return u}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=e.r(81258),o=e.r(4879),a=e.r(83540),l=s._(e.r(80934));function u(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let h=a.Image},92321,(e,t,i)=>{t.exports=e.r(92331)},51514,e=>{"use strict";var t=e.i(76350);let i={"arrow-left-long":{viewBox:"0 0 512 512",paths:["M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 73.4-73.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-128 128z"]},"arrow-right-long":{viewBox:"0 0 512 512",paths:["M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z"]},"chevron-down":{viewBox:"0 0 512 512",paths:["M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},"chevron-left":{viewBox:"0 0 320 512",paths:["M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},"chevron-right":{viewBox:"0 0 320 512",paths:["M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},"circle-check":{viewBox:"0 0 512 512",paths:["M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},bars:{viewBox:"0 0 448 512",paths:["M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},minus:{viewBox:"0 0 448 512",paths:["M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},plus:{viewBox:"0 0 448 512",paths:["M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},map:{viewBox:"0 0 576 512",paths:["M384 476.1L192 421.2V35.9L384 90.8V476.1zm32-1.2V88.4L543.1 37.5c15.8-6.3 32.9 5.3 32.9 22.3V394.6c0 9.8-6 18.6-15.1 22.3L416 474.8zM15.1 95.1L160 37.2V423.6L32.9 474.5C17.1 480.8 0 469.2 0 452.2V117.4c0-9.8 6-18.6 15.1-22.3z"]},book:{viewBox:"0 0 448 512",paths:["M96 0C43 0 0 43 0 96V416c0 53 43 96 96 96H384h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H384 96zm0 384H352v64H96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16zm16 48H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},lock:{viewBox:"0 0 448 512",paths:["M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},"pen-to-square":{viewBox:"0 0 512 512",paths:["M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64
3C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},"microphone-slash":{viewBox:"0 0 640 512",paths:["M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L472.1 344.7c15.2-26 23.9-56.3 23.9-88.7V216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 21.2-5.1 41.1-14.2 58.7L416 300.8V96c0-53-43-96-96-96s-96 43-96 96v54.3L38.8 5.1zm362.5 407l-43.1-33.9C346.1 382 333.3 384 320 384c-70.7 0-128-57.3-128-128v-8.7L144.7 210c-.5 1.9-.7 3.9-.7 6v40c0 89.1 66.2 162.7 152 174.4V464H248c-13.3 0-24 10.7-24 24s10.7 24 24 24h72 72c13.3 0 24-10.7 24-24s-10.7-24-24-24H344V430.4c20.4-2.8 39.7-9.1 57.3-18.2z"]},"message-slash":{viewBox:"0 0 640 512",paths:["M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L512.9 376.7C552.2 340.2 576 292.3 576 240C576 125.1 461.4 32 320 32c-67.7 0-129.3 21.4-175.1 56.3L38.8 5.1zm385.2 425L82.9 161.3C70.7 185.6 64 212.2 64 240c0 45.1 17.7 86.8 47.7 120.9c-1.9 24.5-11.4 46.3-21.4 62.9c-5.5 9.2-11.1 16.6-15.2 21.6c-2.1 2.5-3.7 4.4-4.9 5.7c-.6 .6-1 1.1-1.3 1.4l-.3 .3 0 0 0 0 0 0 0 0c-4.6 4.6-5.9 11.4-3.4 17.4c2.5 6 8.3 9.9 14.8 9.9c28.7 0 57.6-8.9 81.6-19.3c22.9-10 42.4-21.9 54.3-30.6c31.8 11.5 67 17.9 104.1 17.9c37 0 72.3-6.4 104.1-17.9z"]},microphone:{viewBox:"0 0 384 512",paths:["M192 0C139 0 96 43 96 96V256c0 53 43 96 96 96s96-43 96-96V96c0-53-43-96-96-96zM64 216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 89.1 66.2 162.7 152 174.4V464H120c-13.3 0-24 10.7-24 24s10.7 24 24 24h72 72c13.3 0 24-10.7 24-24s-10.7-24-24-24H216V430.4c85.8-11.7 152-85.3 152-174.4V216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 70.7-57.3 128-128 128s-128-57.3-128-128V216z"]},display:{viewBox:"0 0 576 512",paths:["M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V288H64V64H512z"]},video:{viewBox:"0 0 576 512",paths:["M0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2V384c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1V320 192 174.9l14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"]},"mobile-screen-button":{viewBox:"0 0 384 512",paths:["M16 64C16 28.7 44.7 0 80 0H304c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H80c-35.3 0-64-28.7-64-64V64zM224 448a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM304 64H80V384H304V64z"]},"magnifying-glass":{viewBox:"0 0 512 512",paths:["M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},copy:{viewBox:"0 0 448 512",paths:["M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"]},xmark:{viewBox:"0 0 384 512",paths:["M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},"wand-magic-sparkles":{viewBox:"0 0 576 512",paths:["M234.7 42.7L197 56.8c-3 1.1-5 4-5 7.2s2 6.1 5 7.2l37.7 14.1L248.8 123c1.1 3 4 5 7.2 5s6.1-2 7.2-5l14.1-37.7L315 71.2c3-1.1 5-4 5-7.2s-2-6.1-5-7.2L277.3 42.7 263.2 5c-1.1-3-4-5-7.2-5s-6.1 2-7.2 5L234.7 42.7zM46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0L529.9 116.5c18.7-18.7 18.7-49.1 0-67.9L495.3 14.1c-18.7-18.7-49.1-18.7-67.9 0L46.1 395.4zM484.6 82.6l-105 105-23.3-23.3 105-105 23.3 23.3zM7.5 117.2C3 118.9 0 123.2 0 128s3 9.1 7.5 10.8L64 160l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L128 160l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L128 96 106.8 39.5C105.1 35 100.8 32 96 32s-9.1 3-10.8 7.5L64 96 7.5 117.2zM423 396.8L401.8 453.3c-1.7 4.5-6 7.5-10.8 7.5s-9.1-3-10.8-7.5L359 396.8l-56.5-21.2c-4.5-1.7-7.5-6-7.5-10.8s3-9.1 7.5-10.8L359 332.8l21.2-56.5c1.7-4.5 6-7.5 10.8-7.5s9.1 3 10.8 7.5L423 332.8l56.5 21.2c4.5 1.7 7.5 6 7.5 10.8s-3 9.1-7.5 10.8L423 396.8z"]}
3,openai:{viewBox:"0 0 24 24",paths:["M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.1419.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"]}};e.s(["default",0,function({name:e,className:n}){let r=i[e];return r?(0,t.jsx)("svg",{className:`inline-block ${n??""}`,viewBox:r.viewBox,fill:"currentColor","aria-hidden":"true",children:r.paths.map(e=>(0,t.jsx)("path",{d:e},e))}):null}])},42277,31338,e=>{"use strict";let t=[{label:"Sprachen & Dialekt",href:"/#sprachen-dialekt",description:"Versteht Dialekt und über 90 Sprachen"},{label:"Fachbegriffe & ICD-10",href:"/#fachbegriffe-icd-10",description:"Erkennt Fachsprache und schlägt passende Codes vor"},{label:"Patientenverlauf",href:"/#patientenverlauf",description:"Frühere Gespräche und Dokumente flieÃen automatisch ein"}],i=[{label:"Eigene Vorlagen",href:"/#eigene-vorlagen",description:"Jedes Dokument in Ihrer Struktur und Ihrem Schreibstil"},{label:"Team",href:"/#team",description:"Gespräche zuweisen, kommentieren, Status im Blick"},{label:"Praxissystem",href:"/#praxissystem",description:"Als PDF oder Word, oder direkt ins PVS oder KIS"}],n=[...t,...i],r=[{label:"Privat- und Wahlärzte",href:"/humanmedizin",description:"Arztbrief, Befund und Bericht direkt aus dem Gespräch"},{label:"Kassenärzte",href:"/kassenaerzte",description:"Aufnahme im Gespräch, fertige Blöcke, direkt im PVS"},{label:"Praxissoftware-Anbieter",href:"/technologiepartner",description:"Diktara per API in Ihrem PVS oder KIS, das ganze Produkt"},{label:"Zahnmedizin",href:"/zahnmedizin",description:"Befund und Dokumentation per Stimme, die Hände bleiben frei"}],s=[{label:"Einzelpraxis",href:"/einzelpraxis",description:"Sofort startklar, ohne Setup und ohne Installation"}
3,{label:"Gruppenpraxis",href:"/gruppenpraxis",description:"Gemeinsame Vorlagen, Rollen und Aufgaben im Team"},{label:"Kliniken & Ambulatorien",href:"/kliniken",description:"Eigener Login, Key Account Manager und Abläufe je Abteilung"}],o={groups:[{heading:"Für wen Diktara gebaut ist",links:r.filter(e=>"/humanmedizin"===e.href||"/kassenaerzte"===e.href||"/technologiepartner"===e.href)},{heading:"Für Ihre PraxisgröÃe",links:s}],footerPrimary:{label:"Warum Diktara in die Wahlordination passt",href:"/humanmedizin"},footerLinks:[{label:"Software für Arztbriefe",href:"/software-arztbriefe"}]},a={groups:[{heading:"Zusammenarbeit",links:[{label:"Praxis werden",href:"/praxis-werden",description:"Persönliche Demo buchen und begleitet starten"},{label:"Empfehlungsprogramm",href:"/partnerprogramm",description:"Umsatzbeteiligung für Ihre Empfehlungen",badge:"Neu"},{label:"Technologiepartner",href:"/technologiepartner",description:"Das ganze Produkt als API für PVS-Hersteller"}]},{heading:"Unternehmen",links:[{label:"Ãber uns",href:"/ueber-uns",description:"Das Team hinter Diktara und woher wir kommen"},{label:"Sicherheit und Datenschutz",href:"/sicherheit",description:"Alle Fakten zu Hosting, Verschlüsselung und DSGVO"}]}],footerLinks:[{label:"Kontakt aufnehmen",href:"/praxis-werden#kontakt"}]};function l(e,...t){let i=[...e.groups.flatMap(e=>e.links),...e.footerPrimary?[e.footerPrimary]:[],...e.footerLinks??[]];return t.map(e=>{let t=i.find(t=>t.href===e);if(!t)throw Error(`Unbekannter Nav-Link im Mobilmen\xfc: ${e}`);return t})}let u={produkt:[{heading:"",links:n}],loesungen:[{heading:"",links:l(o,"/humanmedizin","/kassenaerzte","/einzelpraxis","/gruppenpraxis","/kliniken","/technologiepartner")}],ressourcen:[{heading:"",links:l(a,"/partnerprogramm","/technologiepartner","/ueber-uns","/sicherheit")}]},h=[...n,{label:"Alle Funktionen",href:"/#so-funktionierts"}],c=r.filter(e=>"/technologiepartner"!==e.href);e.s(["FOOTER_BRANCHEN_LINKS",0,c,"FOOTER_FUNKTIONEN_LINKS",0,h,"FOOTER_GROESSEN_LINKS",0,s,"LOESUNGEN_MENU",0,o,"MOBILE_MENU_GROUPS",0,u,"PRODUKT_MENU",0,{groups:[{heading:"Aufnahme & Verstehen",links:t},{heading:"Dokumente & Abläufe",links:i}],footerPrimary:{label:"Alle Funktionen ansehen",href:"/#so-funktionierts"},footerLinks:[{label:"Sicherheit & Datenschutz",href:"/sicherheit"}]},"RESSOURCEN_MENU",0,a],42277),e.s(["LOGIN_URL",0,"https://app.diktara.com/login","TRUST_CENTER_URL",0,"https://trust.diktara.com"],31338)},80436,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=e.r(44066)._(e.r(21630)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:i}=e,n=e.protocol||"",r=e.pathname||"",a=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:i&&(u=t+(~i.indexOf(":")?`[${i}]`:i),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let h=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),r&&"/"!==r[0]&&(r="/"+r)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),r=r.replace(/[?#]/g,encodeURIComponent),h=h.replace("#","%23"),`${n}${u}${r}${h}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},97151,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(69131),r=e.r(42783);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),i=new URL(e,t);return i.origin===t&&(0,r.hasBasePath)(i.pathname)}catch(e){return!1}}},50232,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},55367,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return x}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=e.r(44066),o=e.r(76350),a=s._(e.r(73576)),l=e.r(80436),u=e.r(76968),h=e.r(86032),c=e.r(69131),d=e.r(36948);e.r(72489);let p=e.r(85433),m=e.r(82393),f=e.r(97151),g=e.r(96478);function y(t){var i,n;let r,s,y,[x,b]=(0,a.useOptimistic)(m.IDLE_LINK_STATUS),w=(0,a.useRef)(null),{href:P,as:S,children:T,prefetch:E=null,passHref:k,replace:M,shallow:C,scroll:A,onClick:j,onMouseEnter:V,onTouchStart:L,legacyBehavior:R=!1,onNavigate:D,transitionTypes:O,ref:B,unstable_dynamicOnHover:z,...N}=t;r=T,R&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let I=a.default.useContext(u.AppRouterContext),F=!1!==E,_=!1!==E?null===(n=E)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,$="string"==typeof(i=S||P)?i:(0,l.formatUrl)(i);if(R){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
3` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(r)}let U=R?s&&"object"==typeof s&&s.ref:B,H=a.default.useCallback(e=>(null!==I&&(w.current=(0,m.mountLinkInstance)(e,$,I,_,F,b)),()=>{w.current&&((0,m.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,m.unmountPrefetchableInstance)(e)}),[F,$,I,_,b]),W={ref:(0,h.useMergedRef)(H,U),onClick(t){R||"function"!=typeof j||j(t),R&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!I||t.defaultPrevented||function(t,i,n,r,s,o,l){if("u">typeof window){let u,{nodeName:h}=t.currentTarget;if("A"===h.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(i)){r&&(t.preventDefault(),location.replace(i));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:c}=e.r(25435);a.default.startTransition(()=>{c(i,r?"replace":"push",!1===s?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,l)})}}(t,$,w,M,A,D,O)},onMouseEnter(e){R||"function"!=typeof V||V(e),R&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),I&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===z)},onTouchStart:function(e){R||"function"!=typeof L||L(e),R&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),I&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===z)}};return(0,c.isAbsoluteUrl)($)?W.href=$:R&&!k&&("a"!==s.type||"href"in s.props)||(W.href=(0,d.addBasePath)($)),y=R?a.default.cloneElement(s,W):(0,o.jsx)("a",{...N,...W,children:r}),(0,o.jsx)(v.Provider,{value:x,children:y})}e.r(50232);let v=(0,a.createContext)(m.IDLE_LINK_STATUS),x=()=>(0,a.useContext)(v);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},95749,e=>{"use strict";var t=e.i(76350),i=e.i(92321);e.s(["default",0,function({className:e,tone:n="dark"}){return(0,t.jsx)(i.default,{src:"/sprite.svg",style:{filter:"light"===n?"brightness(0) invert(1)":"brightness(0)",transition:"filter 300ms"},alt:"",width:21,height:19,className:`block w-auto object-contain ${e??""}`,"aria-hidden":"true",unoptimized:!0})}])},78666,e=>{"use strict";function t(){return"u">typeof window}function i(){return(t()?window.vam:"production")||"production"}function n(){return"production"===i()}e.s(["track",0,function(e,r,s){var o,a;if(!t()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(n())console.warn(e);else throw Error(e);return}if(!r){null==(o=window.va)||o.call(window,"event",{name:e,options:s});return}try{let t=function(e,t){if(!e)return;let i=e,n=[];for(let[r,s]of Object.entries(e))"object"==typeof s&&null!==s&&(t.strip?i=function(e,{[e]:t,...i}){return i}(r,i):n.push(r));if(n.length>0&&!t.strip)throw Error(`The following properties are not valid: ${n.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return i}(r,{strip:n()});null==(a=window.va)||a.call(window,"event",{name:e,data:t,options:s})}catch(e){e instanceof Error&&"development"===i()&&console.error(e)}}])},11818,58307,38463,50245,e=>{"use strict";let t,i,n;var r,s=e.i(90954),o=e.i(76350),a=e.i(73576);let l=(0,a.createContext)({});function u(e){let t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}let h="u">typeof window?a.useLayoutEffect:a.useEffect,c=(0,a.createContext)(null),d=e=>"object"==typeof e&&null!==e;function p(e){return d(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var m=a;let f=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function g(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class y extends m.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(p(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,
3i=p(e)&&e.offsetWidth||0,n=p(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 v({children:e,isPresent:t,anchorX:i,anchorY:n,root:r,pop:s}){let l=(0,m.useId)(),u=(0,m.useRef)(null),h=(0,m.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=(0,m.useContext)(f),d=function(...e){return a.useCallback(function(...e){return t=>{let i=!1,n=e.map(e=>{let n=g(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():g(e[t],null)}}}}(...e),e)}(u,e.props?.ref??e?.ref);return(0,m.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:d,right:p,bottom:m,direction:f}=h.current;if(t||!1===s||!u.current||!e||!o)return;let g="rtl"===f,y="left"===i?g?`right: ${p}`:`left: ${d}`:g?`left: ${d}`:`right: ${p}`,v="bottom"===n?`bottom: ${m}`:`top: ${a}`;u.current.dataset.motionPopId=l;let x=document.createElement("style");c&&(x.nonce=c);let b=r??document.head;return b.appendChild(x),x.sheet&&x.sheet.insertRule(` 4 [data-motion-pop-id="${l}"] { 5 position: absolute !important; 6 width: ${e}px !important; 7 height: ${o}px !important; 8 ${y}px !important; 9 ${v}px !important; 10 } 11 `),()=>{u.current?.removeAttribute("data-motion-pop-id"),b.contains(x)&&b.removeChild(x)}},[t]),(0,o.jsx)(y,{isPresent:t,childRef:u,sizeRef:h,pop:s,children:!1===s?e:m.cloneElement(e,{ref:d})})}let x=({children:e,initial:t,isPresent:i,onExitComplete:n,custom:r,presenceAffectsLayout:s,mode:l,anchorX:h,anchorY:d,root:p})=>{let m=u(b),f=(0,a.useId)(),g=!0,y=(0,a.useMemo)(()=>(g=!1,{id:f,initial:t,isPresent:i,custom:r,onExitComplete:e=>
11{for(let t of(m.set(e,!0),m.values()))if(!t)return;n&&n()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[i,m,n]);return s&&g&&(y={...y}),(0,a.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[i]),a.useEffect(()=>{i||m.size||!n||n()},[i]),e=(0,o.jsx)(v,{pop:"popLayout"===l,isPresent:i,anchorX:h,anchorY:d,root:p,children:e}),(0,o.jsx)(c.Provider,{value:y,children:e})};function b(){return new Map}function w(e=!0){let t=(0,a.useContext)(c);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=t,s=(0,a.useId)();(0,a.useEffect)(()=>{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 P=e=>e.key||"";function S(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:t,initial:i=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:s="sync",propagate:c=!1,anchorX:d="left",anchorY:p="top",root:m})=>{let[f,g]=w(c),y=(0,a.useMemo)(()=>S(e),[e]),v=c&&!f?[]:y.map(P),b=(0,a.useRef)(!0),T=(0,a.useRef)(y),E=u(()=>new Map),k=(0,a.useRef)(new Set),[M,C]=(0,a.useState)(y),[A,j]=(0,a.useState)(y);h(()=>{b.current=!1,T.current=y;for(let e=0;e<A.length;e++){let t=P(A[e]);v.includes(t)?(E.delete(t),k.current.delete(t)):!0!==E.get(t)&&E.set(t,!1)}},[A,v.length,v.join("-")]);let V=[];if(y!==M){let e=[...y];for(let t=0;t<A.length;t++){let i=A[t],n=P(i);v.includes(n)||(e.splice(t,0,i),V.push(i))}return"wait"===s&&V.length&&(e=V),j(S(e)),C(y),null}let{forceRender:L}=(0,a.useContext)(l);return(0,o.jsx)(o.Fragment,{children:A.map(e=>{let a=P(e),l=(!c||!!f)&&(y===A||v.includes(a));return(0,o.jsx)(x,{isPresent:l,initial:(!b.current||!!i)&&void 0,custom:t,presenceAffectsLayout:r,mode:s,root:m,onExitComplete:l?void 0:()=>{if(k.current.has(a)||!E.has(a))return;k.current.add(a),E.set(a,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(L?.(),j(T.current),c&&g?.(),n&&n())},anchorX:d,anchorY:p,children:e},a)})})}],11818);let T=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],E=new Set([...T,"pathRotation"]),k=(e,t,i)=>i>t?t:i<e?e:i,M={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},C={...M,transform:e=>k(0,1,e)},A={...M,default:1},j=e=>Math.round(1e5*e)/1e5,V=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,L=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,R=(e,t)=>i=>!!("string"==typeof i&&L.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),D=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(V);return{[e]:parseFloat(r),[t]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},O={...M,transform:e=>Math.round(k(0,255,e))},B={test:R("rgb","red"),parse:D("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+O.transform(e)+", "+O.transform(t)+", "+O.transform(i)+", "+j(C.transform(n))+")"},z={test:R("#"),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:B.transform},N=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),I=N("deg"),F=N("%"),_=N("px"),$=N("vh"),U=N("vw"),H={...F,parse:e=>F.parse(e)/100,transform:e=>F.transform(100*e)},W={test:R("hsl","hue"),parse:D("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:n=1})=>"hsla("+Math.round(e)+", "+F.transform(j(t))+", "+F.transform(j(i))+", "+j(C.transform(n))+")"},K={test:e=>B.test(e)||z.test(e)||W.test(e),parse:e=>B.test(e)?B.parse(e):W.test(e)?W.parse(e):z.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?B.transform(e):W.transform(e),getAnimatableNone:e=>{let t=K.parse(e);return t.alpha=0,K.transform(t)}},X=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,G="number",Y="color",q=/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 Z(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=t.replace(q,e=>(K.test(e)?(n.color.push(s),r.push(Y),i.push(K.parse(e))):e.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(e)):(n.number.push(s),r.push(G),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function J({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===G?r+=j(n[s]):e===Y?r+=K.transform(n[s]):r+=n[s]}return r}}let Q={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(V)?.length||0)+(e.match(X)?.length||0)>0},parse:function(e){return Z(e).values},createTransformer:function(e){return J(Z(e))},getAnimatableNone:function(e){let t=Z(e);return J(t)(t.values.map((e,i)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:K.test(e)?K.getAnimatableNone(e):e)(e,t.split[i])))}},ee=new Set(["brightness","contrast","saturate","opacity"]);function et(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(V)||[];
11if(!n)return e;let r=i.replace(n,""),s=+!!ee.has(t);return n!==i&&(s*=100),t+"("+s+r+")"}let ei=/\b([a-z-]*)\(.*?\)/gu,en={...Q,getAnimatableNone:e=>{let t=e.match(ei);return t?t.map(et).join(" "):e}},er={...Q,getAnimatableNone:e=>{let t=Q.parse(e);return Q.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},es={...M,transform:Math.round},eo={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,inset:_,insetBlock:_,insetBlockStart:_,insetBlockEnd:_,insetInline:_,insetInlineStart:_,insetInlineEnd:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,paddingBlock:_,paddingBlockStart:_,paddingBlockEnd:_,paddingInline:_,paddingInlineStart:_,paddingInlineEnd:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,marginBlock:_,marginBlockStart:_,marginBlockEnd:_,marginInline:_,marginInlineStart:_,marginInlineEnd:_,fontSize:_,backgroundPositionX:_,backgroundPositionY:_,rotate:I,pathRotation:I,rotateX:I,rotateY:I,rotateZ:I,scale:A,scaleX:A,scaleY:A,scaleZ:A,skew:I,skewX:I,skewY:I,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:C,originX:H,originY:H,originZ:_,zIndex:es,fillOpacity:C,strokeOpacity:C,numOctaves:es},ea={...eo,color:K,backgroundColor:K,outlineColor:K,fill:K,stroke:K,borderColor:K,borderTopColor:K,borderRightColor:K,borderBottomColor:K,borderLeftColor:K,filter:en,WebkitFilter:en,mask:er,WebkitMask:er},el=e=>ea[e],eu=()=>({translate:0,scale:1,origin:0,originPoint:0}),eh=()=>({x:eu(),y:eu()}),ec=()=>({min:0,max:0}),ed=()=>({x:ec(),y:ec()}),ep=e=>!!(e&&e.getVelocity),em=new Set(["width","height","top","left","right","bottom",...T]),ef=e=>t=>t.test(e),eg=[M,_,F,I,U,$,{test:e=>"auto"===e,parse:e=>e}],ey=e=>eg.find(ef(e)),ev=()=>{},ex=()=>{};s.default;let eb=e=>t=>"string"==typeof t&&t.startsWith(e),ew=eb("--"),eP=eb("var(--"),eS=e=>!!eP(e)&&eT.test(e.split("/*")[0].trim()),eT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eE(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ek=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eM=e=>180*e/Math.PI,eC=e=>ej(eM(Math.atan2(e[1],e[0]))),eA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eC,rotateZ:eC,skewX:e=>eM(Math.atan(e[1])),skewY:e=>eM(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ej=e=>((e%=360)<0&&(e+=360),e),eV=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eL=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eR={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eV,scaleY:eL,scale:e=>(eV(e)+eL(e))/2,rotateX:e=>ej(eM(Math.atan2(e[6],e[5]))),rotateY:e=>ej(eM(Math.atan2(-e[2],e[0]))),rotateZ:eC,rotate:eC,skewX:e=>eM(Math.atan(e[4])),skewY:e=>eM(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eD(e){return+!!e.includes("scale")}function eO(e,t){let i,n;if(!e||"none"===e)return eD(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=eR,n=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eA,n=t}if(!n)return eD(t);let s=i[t],o=n[1].split(",").map(eB);return"function"==typeof s?s(o):o[s]}function eB(e){return parseFloat(e.trim())}let ez=e=>e===M||e===_,eN=new Set(["x","y","z"]),eI=T.filter(e=>!eN.has(e)),eF={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})=>eO(t,"x"),y:(e,{transform:t})=>eO(t,"y")};eF.translateX=eF.x,eF.translateY=eF.y;let e_=e=>e,e$={},eU=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eH(e,t){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=eU.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){o.has(t)&&(h.schedule(t),e()),l++,t(a)}let h={schedule:(e,t=!1,s=!1)=>{let a=s&&r?i:n;return t&&o.add(e),a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(a=e,r){s=!0;return}r=!0;let o=i;
11i=n,n=o,i.forEach(u),t,l=0,i.clear(),r=!1,s&&(s=!1,h.process(e))}};return h}(s,t?i:void 0),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let s=e$.useManualTiming,o=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&t&&(n=!1,e(f))};return{schedule:eU.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<eU.length;t++)o[eU[t]].cancel(e)},state:r,steps:o}}let{schedule:eW,cancel:eK,state:eX,steps:eG}=eH("u">typeof requestAnimationFrame?requestAnimationFrame:e_,!0),eY=new Set,eq=!1,eZ=!1,eJ=!1;function eQ(){if(eZ){let e=Array.from(eY).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,n=(t=[],eI.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)})}eZ=!1,eq=!1,eY.forEach(e=>e.complete(eJ)),eY.clear()}function e0(){eY.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eZ=!0)})}class e1{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?(eY.add(this),eq||(eq=!0,eW.read(e0),eW.resolveKeyframes(eQ))):(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),eY.delete(this)}cancel(){"scheduled"===this.state&&(eY.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let e2=new Set([en,er]);function e3(e,t){let i=el(e);return e2.has(i)||(i=Q),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let e4=new Set(["auto","none","0"]);class e5 extends e1{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&&eS(n=n.trim())){let r=function e(t,i,n=1){ex(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(e){let t=ek.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 eS(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(),!em.has(i)||2!==e.length)return;let[n,r]=e,s=ey(n),o=ey(r);if(eE(n)!==eE(r)&&eF[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 eF[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&&!e4.has(t)&&Z(t).values.length&&(n=e[r]),r++}if(n&&i)for(let r of t)e[r]=e3(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=eF[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]=eF[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
11h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let e6=e=>1e3*e;function e8(e,t){-1===e.indexOf(t)&&e.push(t)}function e7(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class e9{constructor(){this.subscriptions=[]}add(e){return e8(this.subscriptions,e),()=>e7(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 te(e,t,i){t.startsWith("--")?e.style.setProperty(t,i):e.style[t]=i}function tt(e){let t;return()=>(void 0===t&&(t=e()),t)}let ti={};function tn(e,t){let i=tt(e);return()=>ti[t]??i()}let tr=tn(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),ts=e=>null!==e;function to(e,{repeat:t,repeatType:i="loop"},n,r=1){let s=e.filter(ts),o=r<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class ta{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 tl={layout:0,mainThread:0,waapi:0},tu=e=>Array.isArray(e)&&"number"==typeof e[0],th=tn(()=>{try{document.createElement("div").animate({opacity:0}
11,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tc=(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)})`},td=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,tp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:td([0,.65,.55,1]),circOut:td([.55,0,1,.45]),backIn:td([.31,.01,.66,-.59]),backOut:td([.33,1.53,.69,.99])};function tm(e){return"function"==typeof e&&"applyToOptions"in e}class tf extends ta{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,ex("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return tm(e)&&th()?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 c=function e(t,i){if(t)return"function"==typeof t?th()?tc(t,i):"ease-out":tu(t)?td(t):Array.isArray(t)?t.map(t=>e(t,i)||tp.easeOut):tp[t]}(a,r);Array.isArray(c)&&(h.easing=c);let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let p=e.animate(h,d);return p}(t,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=to(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),te(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=e6(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&&tr())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),e_):n(this)}}let tg=new Set(["opacity","clipPath","filter","transform"]),{schedule:ty}=eH(queueMicrotask,!1);function tv(){t=void 0}let tx={now:()=>(void 0===t&&tx.set(eX.isProcessing||e$.useManualTiming?eX.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tv)}},tb=(e,t)=>t?1e3/t*e:0,tw;class tP{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tx.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=tx.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 e9);let i=this.events[e].add(t);return"change"===e?()=>{i(),eW.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 tw&&tw.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tx.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tb(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 tS(e,t){return new tP(e,t)}let tT=[...eg,K,Q],tE=new WeakMap;function tk(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tM(e){return"string"==typeof e||Array.isArray(e)}let tC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tA=["initial",...tC];function tj(e){return tk(e.animate)||tA.some(t=>tM(e[t]))}function tV(e){return!!(tj(e)||e.variants)}let tL={current:null},tR={current:!1};e.s(["hasReducedMotionListener",0,tR,"prefersReducedMotion",0,tL],58307);let tD="u">typeof window;function tO(){if(tR.current=!0,tD)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tL.current=e.matches;e.addEventListener("change",t),t()}else tL.current=!1}function tB(e){let t=[{},{}];
11return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tz(e,t,i,n){if("function"==typeof t){let[r,s]=tB(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]=tB(n);t=t(void 0!==i?i:e.custom,r,s)}return t}e.s(["initPrefersReducedMotion",0,tO],38463);let tN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tI={};class tF{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=e1,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=tx.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eW.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=tj(t),this.isVariantNode=tV(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==l[e]&&ep(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,tE.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:(tR.current||tO(),this.shouldReduceMotion=tL.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(),eK(this.notifyUpdate),eK(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&&tg.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=t.accelerate,a=new tf({element:this.current,name:e,keyframes:n,times:r,ease:s,duration:e6(o)}),l=i(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let n=E.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eW.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 tI){let t=tI[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];
11t.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):ed()}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<tN.length;t++){let i=tN[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(ep(r))e.addValue(n,r);else if(ep(s))e.addValue(n,tS(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,tS(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=tS(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,!tT.find(ef(n))&&Q.test(t)&&(i=e3(e,t))}this.setBaseTarget(e,ep(i)?i.get():i)}return ep(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=tz(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||ep(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 e9),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ty.render(this.render)}}class t_ extends tF{constructor(){super(...arguments),this.KeyframeResolver=e5}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;ep(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function t$(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tU=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tW=T.length;function tK(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(E.has(e)){o=!0;continue}if(ew(e)){r[e]=i;continue}{let t=tU(i,eo[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<tW;s++){let o=T[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=tU(a,eo[o]);if(!l){r=!1;let t=tH[o]||o;n+=`${t}(${e}) `}i&&(t[o]=e)}}let s=e.pathRotation;return s&&(r=!1,n+=`rotate(${tU(s,eo.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 tX={offset:"stroke-dashoffset",array:"stroke-dasharray"},tG={offset:"strokeDashoffset",array:"strokeDasharray"},tY=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tq(e,{attrX:t,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a}
11,l,u,h){if(tK(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:d}=e;for(let e of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),tY))void 0!==c[e]&&(d[e]=c[e],delete c[e]);void 0!==t&&(c.x=t),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(e,t,i=1,n=0,r=!0){e.pathLength=1;let s=r?tX:tG;e[s.offset]=`${-n}`,e[s.array]=`${t} ${i}`}(c,r,s,o,!1)}let tZ=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"]),tJ=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tQ(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])}function t0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let t1={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!_.test(e))return e;else e=parseFloat(e);let i=t0(e,t.target.x),n=t0(e,t.target.y);return`${i}% ${n}%`}},t2=(e,t,i)=>e+(t-e)*i,t3={borderRadius:{...t1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:t1,borderTopRightRadius:t1,borderBottomLeftRadius:t1,borderBottomRightRadius:t1,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=Q.parse(e);if(n.length>5)return e;let r=Q.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=t2(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 t4(e,{layout:t,layoutId:i}){return E.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!t3[e]||"opacity"===e)}function t5(e,t,i){let n=e.style,r=t?.style,s={};if(!n)return s;for(let t in n)(ep(n[t])||r&&ep(r[t])||t4(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(s[t]=n[t]);return s}function t6(e,t,i){let n=t5(e,t,i);for(let i in e)(ep(e[i])||ep(t[i]))&&(n[-1!==T.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return n}class t8 extends t_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ed}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(E.has(t)){let e=el(t);return e&&e.default||0}return t=tZ.has(t)?t:t$(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return t6(e,t,i)}build(e,t,i){tq(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){for(let i in tQ(e,t,void 0,n),t.attrs)e.setAttribute(tZ.has(i)?i:t$(i),t.attrs[i])}mount(e){this.isSVGTag=tJ(e.tagName),super.mount(e)}}function t7({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}function t9(e){return void 0===e||1===e}function ie({scale:e,scaleX:t,scaleY:i}){return!t9(e)||!t9(t)||!t9(i)}function it(e){return ie(e)||ii(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ii(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function ir(e,t,i,n,r){return void 0!==r&&(e=n+r*(e-n)),n+i*(e-n)+t}function is(e,t=0,i=1,n,r){e.min=ir(e.min,t,i,n,r),e.max=ir(e.max,t,i,n,r)}function io(e,{x:t,y:i}){is(e.x,t.translate,t.scale,t.originPoint),is(e.y,i.translate,i.scale,i.originPoint)}function ia(e,t){e.min+=t,e.max+=t}function il(e,t,i,n,r=.5){let s=t2(e.min,e.max,r);is(e,t,i,s,n)}function iu(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function ih(e,t,i){let n=i??e;il(e.x,iu(t.x,n.x),t.scaleX,t.scale,t.originX),il(e.y,iu(t.y,n.y),t.scaleY,t.scale,t.originY)}function ic(e,t){return t7(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 id extends t_{constructor(){super(...arguments),this.type="html",this.renderInstance=tQ}readValueFromInstance(e,t){if(E.has(t))return this.projection?.isProjecting?eD(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return eO(i,t)})(e,t);{let i=window.getComputedStyle(e),n=(ew(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ic(e,t)}build(e,t,i){tK(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return t5(e,t,i)}}let ip=["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 im(e){if("string"!=typeof e||e.includes("-"));else if(ip.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let ig=(0,a.createContext)({strict:!1}),iy=(0,a.createContext)({});function iv(e){return Array.isArray(e)?e.join(" "):e}let ix=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ib(e,t,i){for(let n in t)ep(t[n])||t4(n,i)||(e[n]=t[n])}let iw=()=>({...ix(),attrs:{}}),iP=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 iS(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iP.has(e)}let iT=e=>!iS(e);try{r=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof r&&(iT=e=>e.startsWith("on")?!iS(e):r(e))}catch{}function iE(e){return ep(e)?e.get():e}let ik=e=>(t,i)=>{let n=(0,a.useContext)(iy),r=(0,a.useContext)(c),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]=iE(s[e]);let{initial:o,animate:a}=e,l=tj(e),u=tV(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,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!tk(c)){let t=Array.isArray(c)?c:[c];for(let i=0;i<t.length;i++){let n=tz(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():u(s)},iM=ik({scrapeMotionValuesFromProps:t5,createRenderState:ix}),iC=ik({scrapeMotionValuesFromProps:t6,createRenderState:iw}),iA={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"]},ij=!1;function iV(){return!function(){if(ij)return;let e={};for(let t in iA)e[t]={isEnabled:e=>iA[t].some(t=>!!e[t])};tI=e,ij=!0}
11(),tI}let iL=Symbol.for("motionComponentSymbol"),iR="data-"+t$("framerAppearId"),iD=(0,a.createContext)({});function iO(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function iB(e,{forwardMotionProps:t=!1,type:i}={},n,r){n&&function(e){let t=iV();for(let i in e)t[i]={...t[i],...e[i]};tI=t}(n);let s=i?"svg"===i:im(e),u=s?iC:iM;function d(i,n){var d;let p,m,g,y={...(0,a.useContext)(f),...i,layoutId:function({layoutId:e}){let t=(0,a.useContext)(l).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:v}=y,x=function(e){let{initial:t,animate:i}=function(e,t){if(tj(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tM(t)?t:void 0,animate:tM(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(iy));return(0,a.useMemo)(()=>({initial:t,animate:i}),[iv(t),iv(i)])}(i),b=u(i,v);if(!v&&"u">typeof window){(0,a.useContext)(ig).strict;let t=function(e){let{drag:t,layout:i}=iV();if(!t&&!i)return{};let n={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(y);p=t.MeasureLayout,x.visualElement=function(e,t,i,n,r,s){let{visualElement:o}=(0,a.useContext)(iy),l=(0,a.useContext)(ig),u=(0,a.useContext)(c),d=(0,a.useContext)(f),p=d.reducedMotion,m=d.skipAnimations,g=(0,a.useRef)(null),y=(0,a.useRef)(!1);n=n||l.renderer,!g.current&&n&&(g.current=n(e,{visualState:t,parent:o,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:p,skipAnimations:m,isSVG:s}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let v=g.current,x=(0,a.useContext)(iD);v&&!v.projection&&r&&("html"===v.type||"svg"===v.type)&&function(e,t,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=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&&iO(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(g.current,i,r,x);let b=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{v&&b.current&&v.update(i,u)});let w=i[iR],P=(0,a.useRef)(!!w&&"u">typeof window&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return h(()=>{y.current=!0,v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),P.current&&v.animationState&&v.animationState.animateChanges())}),(0,a.useEffect)(()=>{v&&(!P.current&&v.animationState&&v.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),P.current=!1),v.enteringChildren=void 0)}),v}(e,b,y,r,t.ProjectionNode,s)}return(0,o.jsxs)(iy.Provider,{value:x,children:[p&&x.visualElement?(0,o.jsx)(p,{visualElement:x.visualElement,...y}):null,function(e,t,i,{latestValues:n},r,s=!1,o){let l=(o??im(e)?function(e,t,i,n){let r=(0,a.useMemo)(()=>{let i=iw();return tq(i,t,tJ(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};ib(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let i,n,r={},s=(i=e.style||{},ib(n={},i,e),Object.assign(n,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{let i=ix();return tK(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"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r})(t,n,r,e),u=function(e,t,i){let n={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!ep(e[r])&&(iT(r)||!0===i&&iS(r)||!t&&!iS(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}(t,"string"==typeof e,s),h=e!==a.Fragment?{...u,...l,ref:i}:{},{children:c}=t,d=(0,a.useMemo)(()=>ep(c)?c.get():c,[c]);return(0,a.createElement)(e,{...h,children:d})}(e,i,(d=x.visualElement,m=(0,a.useRef)(n),(0,a.useInsertionEffect)(()=>{m.current=n}),g=(0,a.useRef)(null),(0,a.useCallback)(e=>{e&&b.onMount?.(e),d&&(e?d.mount(e):d.unmount());let t=m.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(g.current=i)}else g.current?(g.current(),g.current=null):t(e);else t&&(t.current=e)},[d])),b,v,t,s)]})}d.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let p=(0,a.forwardRef)(d);return p[iL]=e,p}class iz{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iN(e,t,i){let n=e.getProps();return tz(n,t,void 0!==i?i:n.custom,e)}function iI(e,t){if(e?.inherit&&t){let{inherit:i,...n}=e;return{...t,...n}}return e}function iF(e,t){let i=e?.[t]??e?.default??e;return i!==e?iI(i,e):i}let i_=e=>Array.isArray(e);function i$(e,t){let i=e.getValue("willChange");if(ep(i)&&i.add)return i.add(t);if(!i&&e$.WillChange){let i=new e$.WillChange("auto");
11e.addValue("willChange",i),i.add(t)}}let iU=(...e)=>e.reduce((e,t)=>i=>t(e(i)));function iH(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 iW(e,t){return i=>i>0?t:e}let iK=(e,t,i)=>{let n=e*e,r=i*(t*t-n)+n;return r<0?0:Math.sqrt(r)},iX=[z,B,W];function iG(e){let t=iX.find(t=>t.test(e));if(ev(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===W&&(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=iH(a,n,e+1/3),s=iH(a,n,e),o=iH(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 iY=(e,t)=>{let i=iG(e),n=iG(t);if(!i||!n)return iW(e,t);let r={...i};return e=>(r.red=iK(i.red,n.red,e),r.green=iK(i.green,n.green,e),r.blue=iK(i.blue,n.blue,e),r.alpha=t2(i.alpha,n.alpha,e),B.transform(r))},iq=new Set(["none","hidden"]);function iZ(e,t){return i=>t2(e,t,i)}function iJ(e){return"number"==typeof e?iZ:"string"==typeof e?eS(e)?iW:K.test(e)?iY:i1:Array.isArray(e)?iQ:"object"==typeof e?K.test(e)?iY:i0:iW}function iQ(e,t){let i=[...e],n=i.length,r=e.map((e,i)=>iJ(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=r[t](e);return i}}function i0(e,t){let i={...e,...t},n={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(n[r]=iJ(e[r])(e[r],t[r]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let i1=(e,t)=>{let i=Q.createTransformer(t),n=Z(e),r=Z(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 ev(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iW(e,t);if(iq.has(e)&&!r.values.length||iq.has(t)&&!n.values.length)return iq.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return iU(iQ(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 i2(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?t2(e,t,i):iJ(e)(e,t)}let i3=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eW.update(t,e),stop:()=>eK(t),now:()=>eX.isProcessing?eX.timestamp:tx.now()}};function i4(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let i5=.01,i6=2,i8=.005,i7=.5;function i9(e,t){return e*Math.sqrt(1-t*t)}let ne=["duration","bounce"],nt=["stiffness","damping","mass"];function ni(e,t){return t.some(t=>void 0!==e[t])}function nn(e=.3,t=.3){let i,n,r,s,o,a,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:h}=l,c=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],p={done:!1,value:c},{stiffness:m,damping:f,mass:g,duration:y,velocity:v,isResolvedFromDuration:x}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ni(e,nt)&&ni(e,ne))if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,r=2*k(.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;ev(e<=e6(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=k(.05,1,o),e=k(.01,10,e/1e3),o<1?(r=t=>{let n=t*o,r=n*e;return .001-(n-i)/i9(t,o)*Math.exp(-r)},s=t=>{let n=t*o*e,s=Math.pow(o,2)*Math.pow(t,2)*e,a=Math.exp(-n),l=i9(Math.pow(t,2),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=e6(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*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}({...l,velocity:-((l.velocity||0)/1e3)}),b=v||0,w=f/(2*Math.sqrt(m*g)),P=d-c,S=Math.sqrt(m/g)/1e3,T=5>Math.abs(P);if(u||(u=T?i5:i6),h||(h=T?i8:i7),w<1)r=i9(S,w),s=(b+w*S*P)/r,i=e=>d-Math.exp(-w*S*e)*(s*Math.sin(r*e)+P*Math.cos(r*e)),o=w*S*s+P*r,a=w*S*P-s*r,n=e=>Math.exp(-w*S*e)*(o*Math.sin(r*e)+a*Math.cos(r*e));else if(1===w){i=e=>d-Math.exp(-S*e)*(P+(b+S*P)*e);let e=b+S*P;n=t=>Math.exp(-S*t)*(S*e*t-b)}else{let e=S*Math.sqrt(w*w-1);i=t=>{let i=Math.exp(-w*S*t),n=Math.min(e*t,300);return d-i*((b+w*S*P)*Math.sinh(n)+e*P*Math.cosh(n))/e};let t=(b+w*S*P)/e,r=w*S*t-P*e,s=w*S*P-t*e;n=t=>{let i=Math.exp(-w*S*t),n=Math.min(e*t,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let E={calculatedDuration:x&&y||null,velocity:e=>e6(n(e)),next:e=>{if(!x&&w<1){let t=Math.exp(-w*S*e),i=Math.sin(r*e),n=Math.cos(r*e),l=d-t*(s*i+P*n);return p.done=Math.abs(e6(t*(o*i+a*n)))<=u&&Math.abs(d-l)<=h,p.value=p.done?d:l,p}let t=i(e);return x?p.done=e>=y:p.done=Math.abs(e6(n(e)))<=u&&Math.abs(d-t)<=h,p.value=p.done?d:t,p},toString:()=>{let e=Math.min(i4(E),2e4),t=tc(t=>E.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return E}function nr(e,t,i){let n=Math.max(t-5,0);return tb(i-e(n),t-n)}function ns({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 c,d,p=e[0],m={done:!1,value:p},f=i*t,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=e=>-f*Math.exp(-e/n),x=e=>y+v(e),b=e=>{let t=v(e),i=x(e);m.done=Math.abs(t)<=u,m.value=m.done?y:i},w=e=>{let t;if(t=m.value,void 0!==a&&t<a||void 0!==l&&t>l){var i;c=e,d=nn({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:nr(x,e,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==c||(t=!0,b(e),w(e)),void 0!==c&&e>
11=c)?d.next(e-c):(t||b(e),m)}}}nn.applyToOptions=e=>{let t=function(e,t=100,i){let n=i({...e,keyframes:[0,t]}),r=Math.min(i4(n),2e4);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:r/1e3}}(e,100,nn);return e.ease=t.ease,e.duration=e6(t.duration),e.type="keyframes",e};let no=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function na(e,t,i,n){return e===t&&i===n?e_:r=>0===r||1===r?r:no(function(e,t,i,n,r){let s,o,a=0;do(s=no(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 nl=na(.42,0,1,1),nu=na(0,0,.58,1),nh=na(.42,0,.58,1),nc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nd=e=>t=>1-e(1-t),np=na(.33,1.53,.69,.99),nm=nd(np),nf=nc(nm),ng=e=>e>=1?1:(e*=2)<1?.5*nm(e):.5*(2-Math.pow(2,-10*(e-1))),ny=e=>1-Math.sin(Math.acos(e)),nv=nd(ny),nx=nc(ny),nb={linear:e_,easeIn:nl,easeInOut:nh,easeOut:nu,circIn:ny,circInOut:nx,circOut:nv,backIn:nm,backInOut:nf,backOut:np,anticipate:ng},nw=e=>{if(tu(e)){ex(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,n,r]=e;return na(t,i,n,r)}return"string"==typeof e?(ex(void 0!==nb[e],`Invalid easing type '${e}'`,"invalid-easing-type"),nb[e]):e},nP=(e,t,i)=>{let n=t-e;return n?(i-e)/n:1};function nS({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){var r;let s,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nw):nw(n),a={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:n,mixer:r}={}){let s=e.length;if(ex(s===t.length,"Both input and output ranges must be the same length","range-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||e$.mix||i2,s=e.length-1;for(let i=0;i<s;i++){let s=r(e[i],e[i+1]);t&&(s=iU(Array.isArray(t)?t[i]||e_: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=nP(e[n],e[n+1],i);return a[n](r)};return i?t=>u(k(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=nP(0,t,n);e.push(t2(i,1,r))}}(s=[0],t.length-1),s),r.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||nh).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let nT={decay:ns,inertia:ns,tween:nS,keyframes:nS,spring:nn};function nE(e){"string"==typeof e.type&&(e.type=nT[e.type])}let nk=e=>e/100;class nM extends ta{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!==tx.now()&&this.tick(tx.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},tl.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;nE(e);let{type:t=nS,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=e,{keyframes:o}=e,a=t||nS;a!==nS&&"number"!=typeof o[0]&&(this.mixKeyframes=iU(nk,i2(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=i4(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:c,repeatType:d,repeatDelay:p,type:m,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,b=n;if(c){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,c+1))%2&&("reverse"===d?(i=1-i,p&&(i-=p/a)):"mirror"===d&&(b=o)),x=k(0,1,i)*a}v?(this.delayState.value=h[0],i=this.delayState):i=b.next(x),s&&!v&&(i.value=s(i.value));let{done:w}=i;v||null===l||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&m!==ns&&(i.value=to(h,this.options,g,this.speed)),f&&f(i.value),P&&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=e6(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=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return nr(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tx.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=i3,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(tx.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,tl.mainThread--}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 nC={anticipate:ng,backInOut:nf,circInOut:nx};
11class nA extends tf{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in nC&&(e.ease=nC[e.ease])}(e),nE(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 nM({...s,autoplay:!1}),a=Math.max(10,tx.now()-this.startTime),l=k(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;r&&h&&te(r,h,u),t.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let nj=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(Q.test(e)||"0"===e)&&!e.startsWith("url("));function nV(e){e.duration=0,e.type="keyframes"}let nL=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nR=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nD=tt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nO extends ta{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=tx.now();const c={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||e1;this.keyframeResolver=new d(o,(e,t,i)=>this.onKeyframesResolved(e,t,c,!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=tx.now();let c=!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=nj(r,t),a=nj(s,t);return ev(o===a,`You are trying to animate ${t} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!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||tm(i))&&n)}(e,s,o,a)&&(c=!1,(e$.instantAnimations||!l)&&h?.(to(e,i,t)),e[0]=e[e.length-1],nV(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},p=c&&!u&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return nD()&&i&&(tg.has(i)||nR.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&nL.test(e[t]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(d),m=d.motionValue?.owner?.current;if(p)try{r=new nA({...d,element:m})}catch{r=new nM(d)}else r=new nM(d);r.finished.then(()=>{this.notifyFinished()}).catch(e_),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(),eJ=!0,e0(),eQ(),eJ=!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 nB={type:"spring",stiffness:500,damping:25,restSpeed:10},nz={type:"keyframes",duration:.8},nN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nI=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nF=(e,t,i,n={},r,s)=>o=>{let a=iF(n,e)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=e6(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(!nI.has(t))return!0;return!1}(a)&&Object.assign(h,((e,{keyframes:t})=>t.length>2?nz:E.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:nB:nN)(e,h)),h.duration&&(h.duration=e6(h.duration)),h.repeatDelay&&(h.repeatDelay=e6(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nV(h),0===h.delay&&(c=!0)),(e$.instantAnimations||e$.skipAnimations||r?.shouldSkipAnimations||a.skipAnimations)&&(c=!0,nV(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!s&&void 0!==t.get()){let e=to(h.keyframes,a);if(void 0!==e)return void eW.update(()=>{h.onUpdate(e),h.onComplete()})}return a.isSync?new nM(h):new nO(h)};function n_(e,t,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=t,l=e.getDefaultTransition();s=s?iI(s,l):l;let u=s?.reduceMotion,h=s?.skipAnimations;n&&(s=n);let c=[],d=r&&e.animationState&&e.animationState.getState()[r],p=s?.path;for(let t in p&&p.animateVisualElement(e,a,s,i,c),a){let n=e.getValue(t,e.latestValues[t]??null),r=a[t];if(void 0===r||d&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(d,t))continue;let o={delay:i,...iF(s||{},t)};h&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){eW.update(()=>n.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let i=e.props[iR];if(i){let e=window.MotionHandoffAnimation(i,t,eW);null!==e&&(o.startTime=e,p=!0)}}i$(e,t);let m=u??e.shouldReduceMotion;n.start(nF(t,n,r,m&&em.has(t)?{type:!1}:o,e,p));let f=n.animation;f&&c.push(f)}if(o){let t=()=>eW.update(()=>{o&&function(e,t){let{transitionEnd:i={},transition:n={},...r}=iN(e,t)||{};for(let t in r={...r,...i}){var s;let i=i_(s=r[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,tS(i))}}(e,o)});c.length?Promise.all(c).then(t):t()}return c}function n$(e,t,i,n=0,r=1){let s=Array.from(e).sort((e,t)=>
11e.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 nU(e,t,i={}){let n=iN(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(n_(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(nU(l,t,{...o,delay:i+("function"==typeof n?0:n)+n$(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 nH=tA.length;function nW(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 nK=[...tC].reverse(),nX=tC.length;function nG(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nY(){return{animate:nG(!0),whileInView:nG(),whileHover:nG(),whileTap:nG(),whileDrag:nG(),whileFocus:nG(),exit:nG()}}let nq=0;function nZ(e){return[e("x"),e("y")]}function nJ(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i)}let nQ={x:!1,y:!1};function n0(e){return e.max-e.min}function n1(e,t,i,n=.5){e.origin=n,e.originPoint=t2(t.min,t.max,e.origin),e.scale=n0(i)/n0(t),e.translate=t2(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 n2(e,t,i,n){n1(e.x,t.x,i.x,n?n.originX:void 0),n1(e.y,t.y,i.y,n?n.originY:void 0)}function n3(e,t,i,n=0){e.min=(n?t2(i.min,i.max,n):i.min)+t.min,e.max=e.min+n0(t)}function n4(e,t,i,n=0){let r=n?t2(i.min,i.max,n):i.min;e.min=t.min-r,e.max=e.min+n0(t)}function n5(e,t,i,n){n4(e.x,t.x,i.x,n?.x),n4(e.y,t.y,i.y,n?.y)}function n6(e){return d(e)&&"ownerSVGElement"in e}function n8(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 n7=new WeakMap,n9=(e,t,i)=>(n,r)=>r&&r[0]?r[0][e+"Size"]:n6(n)&&"getBBox"in n?n.getBBox()[t]:n[i],re=n9("inline","width","offsetWidth"),rt=n9("block","height","offsetHeight");function ri({target:e,borderBoxSize:t}){n7.get(e)?.forEach(i=>{i(e,{get width(){return re(e,t)},get height(){return rt(e,t)}})})}function rn(e){e.forEach(ri)}let rr=new Set;function rs(e,t){let r;return"function"==typeof e?(rr.add(e),n||(n=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};rr.forEach(t=>t(e))},window.addEventListener("resize",n)),()=>{rr.delete(e),rr.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(rn)),(r=n8(e)).forEach(e=>{let n=n7.get(e);n||(n=new Set,n7.set(e,n)),n.add(t),i?.observe(e)}),()=>{r.forEach(e=>{let n=n7.get(e);n?.delete(t),n?.size||i?.unobserve(e)})})}let ro=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ra=new Set(["INPUT","SELECT","TEXTAREA"]),rl=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ru(e){return{point:{x:e.pageX,y:e.pageY}}}function rh(e,t,i,n){return nJ(e,t,e=>rl(e)&&i(e,ru(e)),n)}let rc=({current:e})=>e?e.ownerDocument.defaultView:null,rd=(e,t)=>Math.abs(e-t),rp=new Set(["auto","scroll"]);class rm{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=rf(this.lastRawMoveEventInfo,this.transformPagePoint));let i=ry(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(e=i.offset,t={x:0,y:0},Math.sqrt(rd(e.x,t.x)**2+rd(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=eX;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)=>
11{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=rf(t,this.transformPagePoint),eW.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=ry("pointercancel"===e.type?this.lastMoveEventInfo:rf(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),n&&n(e,s)},!rl(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const a=rf(ru(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=eX;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=t;h&&h(e,ry(a,this.history)),this.removeListeners=iU(rh(this.contextWindow,"pointermove",this.handlePointerMove),rh(this.contextWindow,"pointerup",this.handlePointerUp),rh(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(rp.has(e.overflowX)||rp.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),eW.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eK(this.updatePoint)}}function rf(e,t){return t?{point:t(e.point)}:e}function rg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ry({point:e},t){return{point:e,delta:rg(e,rv(t)),offset:rg(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,n=rv(e);for(;t>=0&&(i=e[t],!(n.timestamp-i.timestamp>e6(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&n.timestamp-i.timestamp>2*e6(.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 rv(e){return e[e.length-1]}function rx(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 rb(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 rw(e,t,i){return{min:rP(e,t),max:rP(e,i)}}function rP(e,t){return"number"==typeof e?e:e[t]||0}let rS=new WeakMap;class rT{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=ed(),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(ru(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||"y"===e)if(nQ[e])return null;else return nQ[e]=!0,()=>{nQ[e]=!1}
11;return nQ.x||nQ.y?null:(nQ.x=nQ.y=!0,()=>{nQ.x=nQ.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),nZ(e=>{let t=this.getAxisMotionValue(e).get()||0;if(F.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];n&&(t=n0(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&eW.update(()=>r(e,t),!1,!0),i$(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&&eW.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 rm(e,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:rc(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&&eW.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||!rk(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?t2(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?t2(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&&iO(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:n,right:r}){return{x:rx(e.x,i,r),y:rx(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:rw(e,"left","right"),y:rw(e,"top","bottom")}}(t),n!==this.constraints&&!iO(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&nZ(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||!iO(t))return!1;let n=t.current;ex(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let s=function(e,t,i){let n=ic(e,i),{scroll:r}=t;return r&&(ia(n.x,r.offset.x),ia(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(e=r.layout.layoutBox,{x:rb(e.x,s.x),y:rb(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=t7(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(nZ(o=>{if(!rk(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 i$(this.visualElement,e),i.start(nF(e,i,0,t,this.visualElement,!1))}stopAnimation(){nZ(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){nZ(t=>{let{drag:i}=this.getProps();if(!rk(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]-t2(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iO(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nZ(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=n0(i),(a=n0(r))>o?s=nP(r.min,r.max-o,i.min):o>
11a&&(s=nP(i.min,i.max-a,r.min)),k(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(),nZ(t=>{if(!rk(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:s}=this.constraints[t];i.set(t2(r,s,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;rS.set(this.visualElement,this);let t=this.visualElement.current,i=rh(t,"pointerdown",e=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=e.target,s=r!==t&&(ra.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(e)}),n=()=>{var i,n,r;let s,o,{dragConstraints:a}=this.getProps();iO(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,n=a.current,s=rs(i,rE(r=()=>this.scalePositionWithinConstraints())),o=rs(n,rE(r)),e=()=>{s(),o()}))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),eW.read(n);let o=nJ(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nZ(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 rE(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function rk(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let rM=e=>(t,i)=>{e&&eW.update(()=>e(t,i),!1,!0)},rC={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rA=a;let rj=!1;class rV extends rA.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),rj&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rC.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}),rj=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?s.promote():s.relegate()||eW.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(),ty.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;rj=!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 rL(e){let[t,i]=w(),n=(0,rA.useContext)(l);return(0,o.jsx)(rV,{...e,layoutGroup:n,switchLayoutGroup:(0,rA.useContext)(iD),isPresent:t,safeToRemove:i})}let rR=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rD=rR.length,rO=e=>"string"==typeof e?parseFloat(e):e,rB=e=>"number"==typeof e||_.test(e);function rz(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rN=rF(0,.5,nv),rI=rF(.5,.95,e_);function rF(e,t,i){return n=>n<e?0:n>t?1:i(nP(e,t,n))}function r_(e,t){e.min=t.min,e.max=t.max}function r$(e,t){r_(e.x,t.x),r_(e.y,t.y)}function rU(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rH(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 rW(e,t,[i,n,r],s,o){!function(e,t=0,i=1,n=.5,r,s=e,o=e){if(F.test(t)&&(t=parseFloat(t),t=t2(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=t2(s.min,s.max,n);e===s&&(a-=t),e.min=rH(e.min,t,i,a,r),e.max=rH(e.max,t,i,a,r)}(e,t[i],t[n],t[r],t.scale,s,o)}let rK=["x","scaleX","originX"],rX=["y","scaleY","originY"];function rG(e,t,i,n){rW(e.x,t,rK,i?i.x:void 0,n?n.x:void 0),rW(e.y,t,rX,i?i.y:void 0,n?n.y:void 0)}function rY(e){return 0===e.translate&&1===e.scale}function rq(e){return rY(e.x)&&rY(e.y)}function rZ(e,t){return e.min===t.min&&e.max===t.max}function rJ(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rQ(e,t){return rJ(e.x,t.x)&&rJ(e.y,t.y)}function r0(e){return n0(e.x)/n0(e.y)}function r1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class r2{constructor(){this.members=[]}add(e){e8(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||(e7(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(e7(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
11pdating&&(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 r3=(e,t)=>e.depth-t.depth;class r4{constructor(){this.children=[],this.isDirty=!1}add(e){e8(this.children,e),this.isDirty=!0}remove(e){e7(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(r3),this.isDirty=!1,this.children.forEach(e)}}let r5=["","X","Y","Z"],r6=0;function r8(e,t,i,n){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function r7({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=r6++,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(st),this.nodes.forEach(sh),this.nodes.forEach(sc),this.nodes.forEach(si)},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 r4)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new e9),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=n6(t)&&!(n6(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;eW.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=tx.now(),s=({timestamp:e})=>{let i=e-t;i>=250&&(eK(s),r(i-250))},eW.setup(s,!0),i=()=>eK(s),rC.hasAnimatedSinceResize&&(rC.hasAnimatedSinceResize=!1,this.nodes.forEach(su))}})}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()||sy,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rQ(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={...iF(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||su(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(),eK(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
11h(sd),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[iR];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",eW,!(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(ss),this.nodes.forEach(sr);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(so);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sa),this.nodes.forEach(sl),this.nodes.forEach(r9),this.nodes.forEach(se)):this.nodes.forEach(so),this.clearAllSnapshots();let e=tx.now();eX.delta=k(0,1e3/60,e-eX.timestamp),eX.timestamp=e,eX.isProcessing=!0,eG.update.process(eX),eG.preRender.process(eX),eG.render.process(eX),eX.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ty.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sn),this.sharedNodes.forEach(sp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eW.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eW.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||n0(this.snapshot.measuredBox.x)||n0(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=ed()),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&&!rq(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||it(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)),sb((t=n).x),sb(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return ed();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sP))){let{scroll:e}=this.root;e&&(ia(t.x,e.offset.x),ia(t.y,e.offset.y))}return t}removeElementScroll(e){let t=ed();if(r$(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&&r$(t,e),ia(t.x,r.offset.x),ia(t.y,r.offset.y))}return t}applyTransform(e,t=!1,i){let n=i||ed();r$(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&&(ia(n.x,-i.scroll.offset.x),ia(n.y,-i.scroll.offset.y)),it(i.latestValues)&&ih(n,i.latestValues,i.layout?.layoutBox)}return it(this.latestValues)&&ih(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(e){let t=ed();r$(t,e);for(let e=0;e<this.path.length;e++){let i,n=this.path[e];it(n.latestValues)&&(n.instance&&(ie(n.latestValues)&&n.updateSnapshot(),r$(i=ed(),n.measurePageBox())),rG(t,n.latestValues,n.snapshot?.layoutBox,i))}return it(this.latestValues)&&rG(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!==eX.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
11isTransformDirty),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=eX.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=ed(),this.targetWithTransforms=ed()),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,n3(o.x,a.x,l.x,u?.x),n3(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):r$(this.target,this.layout.layoutBox),io(this.target,this.targetDelta)):r$(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||ie(this.parent.latestValues)||ii(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=ed(),this.relativeTargetOrigin=ed(),n5(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),r$(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===eX.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;r$(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&&(ia(e.x,-r.scroll.offset.x),ia(e.y,-r.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,io(e,s)),n&&it(r.latestValues)&&ih(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=ed());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rU(this.prevProjectionDelta.x,this.projectionDelta.x),rU(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),n2(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&r1(this.projectionDelta.x,this.prevProjectionDelta.x)&&r1(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=eh(),this.projectionDelta=eh(),this.projectionDeltaWithTransform=eh()}setAnimationOrigin(e,t=!1,i){let n,r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=eh();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=ed(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(sg));this.animationProgress=0;let p=i?.interpolateProjection(e);this.mixTargetDelta=t=>{let i=t/1e3,r=p?.(i);if(r?(a.x.translate=r.x,a.x.scale=t2(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=t2(e.y.scale,1,i),a.y.origin=e.y.origin,a.y.originPoint=e.y.originPoint):(sm(a.x,e.x,i),sm(a.y,e.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,g,y,v;n5(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,sf(f.x,g.x,y.x,v),sf(f.y,g.y,y.y,v),n&&(h=this.relativeTarget,m=n,rZ(h.x,m.x)&&rZ(h.y,m.y))&&(this.isProjectionDirty=!1),n||(n=ed()),r$(n,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,i,n,r,s){r?(e.opacity=t2(0,i.opacity??1,rN(n)),e.opacityExit=t2(t.opacity??1,0,rI(n))
11):s&&(e.opacity=t2(t.opacity??1,i.opacity??1,n));for(let r=0;r<rD;r++){let s=rR[r],o=rz(t,s),a=rz(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rB(o)===rB(a)?(e[s]=Math.max(t2(rO(o),rO(a),n),0),(F.test(a)||F.test(o))&&(e[s]+="%")):e[s]=a)}(t.rotate||i.rotate)&&(e.rotate=t2(t.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,i,d,c)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eK(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eW.update(()=>{var t,i,n;let r;rC.hasAnimatedSinceResize=!0,tl.layout++,this.motionValue||(this.motionValue=tS(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)},onStop:()=>{tl.layout--},onComplete:()=>{tl.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(r=ep(t)?t:tS(t)).start(nF("",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&&sw(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||ed();let t=n0(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=n0(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}r$(t,i),ih(t,r),n2(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new r2),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&&r8("z",e,n,this.animationValues);for(let t=0;t<r5.length;t++)r8(`rotate${r5[t]}`,e,n,this.animationValues),r8(`skew${r5[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=iE(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=iE(t?.pointerEvents)||""),this.hasProjected&&!it(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);
11i&&(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,t3){if(void 0===r[t])continue;let{correct:i,applyTo:o,isCSSVariable:a}=t3[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?iE(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(sr),this.root.sharedNodes.clear()}}}function r9(e){e.updateLayout()}function se(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)nZ(e=>{let n=s?t.measuredBox[e]:t.layoutBox[e],r=n0(n);n.min=i[e].min,n.max=n.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";r_(s?t.measuredBox[e]:t.layoutBox[e],i[e])}else sw(r,t.layoutBox,i)&&nZ(n=>{let r=s?t.measuredBox[n]:t.layoutBox[n],o=n0(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=eh();n2(o,i,t.layoutBox);let a=eh();s?n2(a,e.applyTransform(n,!0),t.measuredBox):n2(a,i,t.layoutBox);let l=!rq(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=ed();n5(a,t.layoutBox,r.layoutBox,o);let l=ed();n5(l,i,s.layoutBox,o),rQ(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 st(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 si(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sn(e){e.clearSnapshot()}function sr(e){e.clearMeasurements()}function ss(e){e.isLayoutDirty=!0,e.updateLayout()}function so(e){e.isLayoutDirty=!1}function sa(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sl(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function su(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sh(e){e.resolveTargetDelta()}function sc(e){e.calcProjection()}function sd(e){e.resetSkewAndRotation()}function sp(e){e.removeLeadSnapshot()}function sm(e,t,i){e.translate=t2(t.translate,0,i),e.scale=t2(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function sf(e,t,i,n){e.min=t2(t.min,i.min,n),e.max=t2(t.max,i.max,n)}function sg(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sy={duration:.45,ease:[.4,0,.1,1]},sv=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=sv("applewebkit/")&&!sv("chrome/")?Math.round:e_;function sb(e){e.min=sx(e.min),e.max=sx(e.max)}function sw(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(r0(t)-r0(i)))}function sP(e){return e!==e.root&&e.scroll?.wasRoot}let sS=r7({attachResizeListener:(e,t)=>nJ(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sT={current:void 0},sE=r7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sT.current){let e=new sS({});e.mount(window),e.setOptions({layoutScroll:!0}),sT.current=e}return sT.current},resetTransform:(e,t)=>
11{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sk(e,t){let i=n8(e),n=new AbortController;return[i,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function sM(e,t,i){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&eW.postRender(()=>r(t,ru(t)))}let sC=(e,t)=>!!t&&(e===t||sC(e,t.parentElement)),sA=new WeakSet;function sj(e){return t=>{"Enter"===t.key&&e(t)}}function sV(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sL(e){return rl(e)&&!(nQ.x||nQ.y)}let sR=new WeakSet;function sD(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&&eW.postRender(()=>r(t,ru(t)))}let sO=new WeakMap,sB=new WeakMap,sz=e=>{let t=sO.get(e.target);t&&t(e)},sN=e=>{e.forEach(sz)},sI={some:0,all:1},sF=function(e,t){if("u"<typeof Proxy)return iB;let i=new Map,n=(i,n)=>iB(i,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,iB(s,void 0,e,t)),i.get(s))})}({animation:{Feature:class extends iz{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=>nU(e,t,i)));else if("string"==typeof t)n=nU(e,t,i);else{let r="function"==typeof t?iN(e,t,i.custom):t;n=Promise.all(n_(e,r,i))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=nY(),n=!0,r=!1,s=t=>(i,n)=>{let r=iN(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<nH;e++){let n=tA[e],r=t.props[n];(tM(r)||!1===r)&&(i[n]=r)}return i}(e.parent)||{},u=[],h=new Set,c={},d=1/0;for(let t=0;t<nX;t++){var p,m;let f=nK[t],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=tM(y),x=f===o?g.isActive:null;!1===x&&(d=t);let b=y===l[f]&&y!==a[f]&&v;if(b&&(n||r)&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...c},!g.isActive&&null===x||!y&&!g.prevProp||tk(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!nW(m,p)),P=w||f===o&&g.isActive&&!b&&v||t>d&&v,S=!1,T=Array.isArray(y)?y:[y],E=T.reduce(s(f),{});!1===x&&(E={});let{prevResolvedValues:k={}}=g,M={...k,...E},C=t=>{P=!0,h.has(t)&&(S=!0,h.delete(t)),g.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in M){let t=E[e],i=k[e];if(!c.hasOwnProperty(e))(i_(t)&&i_(i)?!nW(t,i)||w:t!==i)?null!=t?C(e):h.add(e):void 0!==t&&h.has(e)?C(e):g.protectedKeys[e]=!0}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(c={...c,...E}),(n||r)&&e.blockInitialAnimation&&(P=!1);let A=b&&w,j=!A||S;P&&j&&u.push(...T.map(t=>{let i={type:f};if("string"==typeof t&&(n||r)&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,r=iN(n,t);if(n.enteringChildren&&r){let{delayChildren:t}=r.transition||{};i.delay=n$(n.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(h.size){let t={};if("boolean"!=typeof a.initial){let i=iN(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=nY(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tk(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 iz{constructor(){super(...arguments),this.id=nq++,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=iN(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(()=>
11{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 iz{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:sI[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;sB.has(i)||sB.set(i,{});let n=sB.get(i),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(sN,{root:e,...t})),n[r]}(a),sO.set(e,l),t.observe(e),()=>{sO.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 iz{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]=sk(e,i),o=e=>{let n=e.currentTarget;if(!sL(e)||sR.has(e))return;sA.add(n),i.stopPropagation&&sR.add(e);let s=t(n,e),o=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sA.has(n)&&sA.delete(n),sL(e)&&"function"==typeof s&&s(e,{success:t})},a=e=>{o(e,n===window||n===document||i.useGlobalTarget||sC(n,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",o,r),p(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let n=sj(()=>{if(sA.has(i))return;sV(i,"down");let e=sj(()=>{sV(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sV(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)})(e,r)),ro.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sD(this.node,t,"Start"),(e,{success:t})=>sD(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iz{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=iU(nJ(this.node.current,"focus",()=>this.onFocus()),nJ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iz{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,r,s]=sk(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||nQ.x||nQ.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)=>(sM(this.node,t,"Start"),e=>sM(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends iz{constructor(){super(...arguments),this.removePointerDownListener=e_}onPointerDown(e){this.session=new rm(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rc(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rM(e),onStart:rM(t),onMove:rM(i),onEnd:(e,t)=>{delete this.session,n&&eW.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=rh(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 iz{constructor(e){super(e),this.removeGroupControls=e_,this.removeListeners=e_,this.controls=new rT(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e_}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:sE,MeasureLayout:rL},layout:{ProjectionNode:sE,MeasureLayout:rL}},(e,t)=>t.isSVG??im(e)?new t8(t):new id(t,{allowProjection:e!==a.Fragment}));e.s(["motion",0,sF],50245)},2971,e=>{"use strict";var t=e.i(76350),i=e.i(52630),n=e.i(42277),r=e.i(31338),s=e.i(78666),o=e.i(11818),a=e.i(50245),l=e.i(55367),u=e.i(12612),h=e.i(73576),c=e.i(51514),d=e.i(95749);let p="radius-keep inline-flex h-10 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-xl px-5 text-center text-sm leading-5 tracking-[-0.13px] whitespace-nowrap transition-all duration-300 focus:outline-2 focus:outline-offset-2 active:scale-95",m={produkt:{label:"Produkt",menu:n.PRODUKT_MENU},loesungen:{label:"Lösungen",menu:n.LOESUNGEN_MENU},ressourcen:{label:"Ressourcen",menu:n.RESSOURCEN_MENU}},f=["produkt","loesungen","ressourcen"];function g({item:e}){return e.count?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{"aria-hidden":!0,
11className:"text-content-tertiary text-xs tabular-nums",children:["(",e.count,")"]}),(0,t.jsx)("span",{className:"sr-only",children:e.countLabel??`${e.count}`})]}):null}function y(e){return e.groups.length>=3?1e3:720}function v({openMenu:e,left:i,onNavigate:n}){let{label:r,menu:s}=m[e],l=y(s),u=(0,h.useRef)(null),[d,p]=(0,h.useState)(null);return(0,h.useLayoutEffect)(()=>{let e=u.current;if(!e)return;p(e.offsetHeight);let t=new ResizeObserver(()=>p(e.offsetHeight));return t.observe(e),()=>t.disconnect()},[e]),(0,t.jsx)("div",{className:"absolute top-full z-50 pt-2 transition-[left] duration-300 ease-[cubic-bezier(0.32,0.72,0,1)]",style:{left:i??0,visibility:null===i?"hidden":void 0},children:(0,t.jsx)(a.motion.div,{initial:{opacity:0,y:8,width:l},animate:{opacity:1,y:0,width:l},exit:{opacity:0,y:6,transition:{duration:.15}},transition:{duration:.2,ease:[.32,.72,0,1]},className:"border-border-base bg-surface-base max-w-[calc(100vw-2rem)] rounded-2xl border p-2 shadow-[0_12px_32px_rgba(0,0,0,0.08)]",children:(0,t.jsx)(a.motion.div,{className:"overflow-hidden",animate:null!==d?{height:d}:void 0,transition:{duration:.25,ease:[.32,.72,0,1]},children:(0,t.jsx)(o.AnimatePresence,{initial:!1,mode:"popLayout",children:(0,t.jsx)(a.motion.div,{initial:{opacity:0}
11,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},children:(0,t.jsxs)("div",{ref:u,children:[(0,t.jsx)("div",{role:"menu","aria-label":r,className:"border-border-base bg-surface-elevated divide-border-base grid divide-x rounded-lg border",style:{gridTemplateColumns:`repeat(${s.groups.length}, minmax(0, 1fr))`},children:s.groups.map(e=>(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5 p-2",children:[(0,t.jsx)("p",{className:"text-content-tertiary px-3 pt-2 pb-1 text-xs leading-4 font-medium tracking-[0.02em]",children:e.heading}),e.links.map(e=>(0,t.jsxs)("a",{role:"menuitem",href:e.href,...e.external&&{target:"_blank",rel:"noopener noreferrer"},onClick:n,className:"hover:bg-surface-base focus:bg-surface-base focus:outline-content-primary group/item block rounded-md px-3 py-2.5 transition-colors focus:outline-2 focus:-outline-offset-2",children:[(0,t.jsxs)("span",{className:"text-content-primary flex items-center gap-2 text-sm leading-5 tracking-[-0.13px] transition-transform duration-200 ease-[
11cubic-bezier(0.32,0.72,0,1)] motion-safe:group-hover/item:translate-x-0.5",children:[e.label,e.badge&&(0,t.jsx)("span",{className:"bg-content-primary text-content-contrast rounded-md px-1.5 py-px text-[10px] leading-4 font-medium tracking-[0.04em] uppercase",children:e.badge}),(0,t.jsx)(g,{item:e})]}),e.description&&(0,t.jsx)("span",{className:"text-content-tertiary group-hover/item:text-content-secondary mt-0.5 block text-xs leading-4 tracking-[-0.06px] transition-[transform,color] duration-200 ease-[cubic-bezier(0.32,0.72,0,1)] motion-safe:group-hover/item:translate-x-0.5",children:e.description})]},e.href))]},e.heading))}),(s.footerPrimary||s.footerLinks?.length)&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1 px-4 pt-2.5 pb-1.5",children:[s.footerPrimary&&(0,t.jsxs)("a",{href:s.footerPrimary.href,onClick:n,className:"text-content-primary group/strip inline-flex items-center gap-1.5 text-sm font-medium tracking-[-0.13px]",children:[s.footerPrimary.badge&&(0,t.jsx)("span",{className:"bg-content-primary text-content-contrast rounded-md px-1.5 py-px text-[10px] leading-4 font-medium tracking-[0.04em] uppercase",children:s.footerPrimary.badge}),s.footerPrimary.label,(0,t.jsx)(c.default,{name:"arrow-right-long",className:"h-3.5 w-3.5 transition-transform duration-200 group-hover/strip:translate-x-0.5"})]}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-5",children:s.footerLinks?.map(e=>(0,t.jsx)("a",{href:e.href,...e.external&&{target:"_blank",rel:"noopener noreferrer"},onClick:n,className:"text-content-secondary hover:text-content-primary text-sm tracking-[-0.13px] transition-colors",children:e.label},e.href))})]})]})},e)})})})})}function x({label:e,groups:i,expanded:n,onToggle:r,onNavigate:s}){let o=(0,h.useId)(),a=(0,h.useRef)(null);return(0,t.jsxs)("div",{ref:a,className:"scroll-m-2 rounded-2xl",children:[(0,t.jsxs)("button",{type:"button","aria-expanded":n,"aria-controls":o,onClick:function(){let e=!n;r(),e&&window.requestAnimationFrame(()=>{let e=a.current,t=e?.closest("[data-mobile-nav-scroll]"),i=e?.querySelector("button");if(!t||!i)return;let n=t.getBoundingClientRect(),r=i.getBoundingClientRect();r.top<n.top+8?t.scrollTop+=r.top-n.top-8:r.bottom>n.bottom-8&&(t.scrollTop+=r.bottom-n.bottom+8)})},className:`text-content-primary flex w-full items-center justify-between rounded-2xl px-4 py-3.5 text-left text-base leading-6 tracking-[-0.18px] transition-colors duration-150 ${n?"bg-surface-interactive-secondary-base":"hover:bg-surface-interactive-secondary-hover active:bg-surface-interactive-secondary-active"}`,children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)(c.default,{name:"chevron-down",className:`text-content-secondary h-4 w-4 transition-transform duration-300 ease-out ${n?"rotate-180":""}`})]}),n&&(0,t.jsx)("div",{id:o,className:"flex flex-col py-1 pl-2",children:i.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[e.heading&&(0,t.jsx)("p",{className:"text-content-tertiary px-4 pt-3 pb-1 text-xs leading-4 font-medium tracking-[0.02em]",children:e.heading}),e.links.map(e=>(0,t.jsxs)("a",{href:e.href,...e.external&&{target:"_blank",rel:"noopener noreferrer"},onClick:s,className:"text-content-secondary hover:bg-surface-interactive-secondary-hover hover:text-content-primary active:bg-surface-interactive-secondary-active rounded-xl px-4 py-3 text-sm leading-5 tracking-[-0.13px] transition-colors flex items-center gap-2",children:[e.label,e.badge&&(0,t.jsx)("span",{className:"bg-content-primary text-content-contrast rounded-md px-1.5 py-px text-[10px] leading-4 font-medium tracking-[0.04em] uppercase",children:e.badge}),(0,t.jsx)(g,{item:e})]},e.href))]},e.heading))})]})}let b={href:"/meeting",label:"Pilotkunde werden",event:"waitlist_cta_click",eventData:{location:"header_minimal",label:"Pilotkunde werden"}},w={href:"/praxis-werden",label:"Pilotkunde werden"};function P(e,t){(0,s.track)(t.event,t.eventData),window.umami?.track(t.event,t.eventData),t.forwardAttribution&&(e.currentTarget.href=(0,i.withMetaAttribution)(t.href))}e.s(["default",0,function({minimal:e=!1,minimalCta:i=b,minimalSecondaryCta:a,minimalWide:g=!1,cta:S=w,overlay:T=!1,scrolled:E=!1,rails:k=!1}){let[M,C]=(0,h.useState)(!1),[A,j]=(0,h.useState)(null),[V,L]=(0,h.useState)(null),R=(0,h.useRef)(null),D=(0,h.useRef)(null),O=(0,h.useRef)(null),B=(0,h.useRef)({}),[z,N]=(0,h.useState)(null),[I,F]=(0,h.useState)(null),[_,$]=(0,h.useState)(null),[U,H]=(0,h.useState)(!0),W=(0,u.usePathname)(),K=e=>{C(!1),j(null),"/"===W&&(e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}))};function X(){C(!1),L(null),F(null),$(null)}(0,h.useEffect)(()=>
11{if(!k)return;let e=0,t=()=>{let e=D.current;if(!e)return;let t=e.getBoundingClientRect().bottom;H(Array.from(document.querySelectorAll("[data-page-rails]")).some(e=>{let i=e.getBoundingClientRect();return i.top<=t+1&&i.bottom>=t}))},i=()=>{window.cancelAnimationFrame(e),e=window.requestAnimationFrame(t)};return t(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),()=>{window.cancelAnimationFrame(e),window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}},[k]),(0,h.useLayoutEffect)(()=>{if(!A)return;let e=O.current,t=B.current[A];if(!e||!t)return;let i=e.getBoundingClientRect(),n=t.getBoundingClientRect(),r=Math.min(y(m[A].menu),window.innerWidth-32),s=n.left-i.left+n.width/2-r/2;N(s=Math.max(16-i.left,Math.min(s,window.innerWidth-16-r-i.left)))},[A]),(0,h.useLayoutEffect)(()=>{if(!M)return;let e=window.visualViewport,t=0,i=()=>{let t=e?.offsetTop??0,i=e?.height??window.innerHeight,n=D.current?.getBoundingClientRect().bottom??t,r=Math.max(t,n);F(Math.round(r)),$(Math.max(0,Math.floor(t+i-r)))},n=()=>{window.cancelAnimationFrame(t),t=window.requestAnimationFrame(i)};return i(),window.addEventListener("resize",n),window.addEventListener("orientationchange",n),e?.addEventListener("resize",n),e?.addEventListener("scroll",n),()=>{window.cancelAnimationFrame(t),window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n),e?.removeEventListener("resize",n),e?.removeEventListener("scroll",n)}},[M]),(0,h.useEffect)(()=>{if(M)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&(C(!1),L(null),F(null),$(null),window.requestAnimationFrame(()=>R.current?.focus()))}},[M]),(0,h.useEffect)(()=>{if(A)return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){O.current?.contains(e.target)||j(null)}function t(e){"Escape"===e.key&&j(null)}},[A]);let G=T&&!E&&!M,Y=`radius-keep inline-flex h-10 cursor-pointer items-center justify-center gap-1.5 rounded-xl bg-transparent px-4 py-2 text-center text-sm leading-5 tracking-[-0.13px] whitespace-nowrap transition-all duration-300 focus:outline-2 focus:outline-offset-2 active:scale-95 ${G?"text-white hover:bg-white/10 focus:outline-white":"text-content-primary hover:bg-surface-interactive-secondary-hover focus:outline-content-primary"}`,q=G?"data-[state=open]:bg-white/10":"data-[state=open]:bg-surface-interactive-secondary-base",Z=`${p} ${G?"bg-surface-base text-content-primary hover:bg-white focus:outline-white":"bg-surface-interactive-primary-base text-content-contrast hover:bg-surface-interactive-primary-hover active:bg-surface-interactive-primary-active focus:outline-content-primary"}`,J=`${p} ${G?"bg-surface-base text-content-primary hover:bg-white focus:outline-white":"bg-content-primary text-content-contrast hover:bg-content-primary/85 active:bg-content-primary/75 focus:outline-content-primary"}`;return e?(0,t.jsxs)("header",{ref:D,className:T?`relative w-full px-8 py-4 transition-colors duration-300 md:px-14 lg:px-20 ${G?"bg-transparent":"bg-surface-base/70 backdrop-blur-md"}`:"bg-surface-base/70 sticky top-0 z-40 w-full pt-[calc(1rem_+_env(safe-area-inset-top))] pb-4 backdrop-blur-md",children:[k&&!T&&(0,t.jsx)("div",{"aria-hidden":!0,className:`pointer-events-none absolute inset-0 mx-auto w-full max-w-378 px-4 transition-opacity duration-300 ease-out lg:px-8 ${U?"opacity-100":"opacity-0"}`,children:(0,t.jsx)("div",{className:"-mx-3 h-full border-x border-border-base lg:-mx-8"})}),(0,t.jsxs)("div",{className:T?"mx-auto flex w-full max-w-378 items-center justify-between":`relative z-10 mx-auto flex w-full items-center justify-between px-4 lg:px-8 ${g?"max-w-378":"max-w-340"}`,children:[(0,t.jsx)(l.default,{"aria-label":"Diktara Startseite",className:`inline-flex shrink-0 rounded-md focus:outline-2 focus:outline-offset-2 ${G?"focus:outline-white":"focus:outline-content-primary"}`,href:"/",onClick:K,children:(0,t.jsx)(d.default,{className:"h-8",tone
11:G?"light":"dark"})}),i&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[a&&(0,t.jsx)("a",{className:J,href:a.href,onClick:e=>P(e,a),children:a.label}),(0,t.jsx)("a",{className:`${Z} ${a?"max-sm:hidden":""}`,href:i.href,onClick:e=>P(e,i),children:i.label})]})]})]}):(0,t.jsxs)("header",{ref:D,className:T?`relative w-full px-8 py-4 transition-colors duration-300 md:px-14 lg:px-20 ${M?"bg-surface-base":G?"bg-transparent":"bg-surface-base/70 backdrop-blur-md"}`:`sticky top-[env(safe-area-inset-top)] z-40 w-full py-4 ${M?"bg-surface-base":"bg-surface-base/70 backdrop-blur-md"}`,children:[k&&!T&&(0,t.jsx)("div",{"aria-hidden":!0,className:`pointer-events-none absolute inset-0 mx-auto w-full max-w-378 px-4 transition-opacity duration-300 ease-out lg:px-8 ${U?"opacity-100":"opacity-0"}`,children:(0,t.jsx)("div",{className:"-mx-3 h-full border-x border-border-base lg:-mx-8"})}),(0,t.jsx)("div",{className:`relative z-10 mx-auto w-full max-w-378 ${T?"":"px-4 lg:px-8"}`,children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(l.default,{"aria-label":"Diktara Startseite",className:"focus:outline-content-primary inline-flex shrink-0 rounded-md focus:outline-2 focus:outline-offset-2",href:"/",onClick:K,children:(0,t.jsx)(d.default,{className:"h-8",tone:G?"light":"dark"})}),(0,t.jsxs)("nav",{"aria-label":"Main",className:"relative hidden lg:block",ref:O,onMouseLeave:()=>j(null),children:[(0,t.jsxs)("ul",{className:"m-0 flex list-none items-center gap-2 p-0",children:[f.map(e=>(0,t.jsx)("li",{onMouseEnter:()=>j(e),children:(0,t.jsxs)("button",{type:"button",ref:t=>{B.current[e]=t},"aria-haspopup":"menu","aria-expanded":A===e,"data-state":A===e?"open":"closed",onClick:()=>j(t=>t===e?null:e),className:`${Y} group relative ${q}`,children:[m[e].label,(0,t.jsx)(c.default,{name:"chevron-down",className:"h-3.5 w-3.5 opacity-60 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})},e)),(0,t.jsx)("li",{onMouseEnter:()=>j(null),children:(0,t.jsx)("a",{className:Y,href:"/kliniken",children:"Kliniken"})}),(0,t.jsx)("li",{onMouseEnter:()=>j(null),children:(0,t.jsx)("a",{className:Y,href:r.LOGIN_URL,children:"Anmelden"})}),(0,t.jsx)("li",{onMouseEnter:()=>j(null),children:(0,t.jsx)("a",{className:Z,href:S.href,onClick:()=>(0,s.track)("waitlist_cta_click",{location:"header_nav",label:S.label}),children:S.label})})]}),(0,t.jsx)(o.AnimatePresence,{children:A&&(0,t.jsx)(v,{openMenu:A,left:z,onNavigate:()=>j(null)})})]}),(0,t.jsx)("button",{ref:R,type:"button","aria-expanded":M,"aria-controls":"mobile-menu","aria-label":M?"Menü schlieÃen":"Menü öffnen",onClick:()=>M?X():C(!0),className:`radius-keep relative inline-flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center rounded-xl transition-colors focus:outline-2 focus:outline-offset-2 lg:hidden ${M?"text-content-primary focus:outline-content-primary bg-surface-interactive-secondary-base":G?"text-white focus:outline-white bg-transparent hover:bg-white/10":"text-content-primary focus:outline-content-primary bg-transparent hover:bg-surface-interactive-secondary-hover"}`,children:(0,t.jsx)(c.default,{name:M?"plus":"bars",className:`h-5 w-5 transition-transform duration-200 ${M?"rotate-45":""}`})})]})}),(0,t.jsx)("div",{id:"mobile-menu","aria-hidden":!M,"aria-label":"Mobile Hauptnavigation","aria-modal":M||void 0,role:"dialog",inert:!M,style:M?{top:null===I?"calc(4rem + env(safe-area-inset-top))":`${I}px`,height:null===_?"calc(100dvh - 4rem - env(safe-area-inset-top))":`${_}px`}:void 0,className:`fixed inset-x-0 z-0 overflow-hidden overscroll-none transition-[opacity,transform] duration-200 ease-out lg:hidden ${M?"translate-y-0 opacity-100":"pointer-events-none -translate-y-2 opacity-0"}`,children:(0,t.jsxs)("div",{className:"bg-surface-base flex h-full min-h-0 w-full flex-col",children:[(0,t.jsx)("nav",{"aria-label":"Hauptnavigation","data-mobile-nav-scroll":!0,className:"min-h-0 flex-1 touch-pan-y overflow-y-auto overscroll-contain px-4 pt-2 pb-4 [-webkit-overflow-scrolling:touch] lg:px-8",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[f.map(e=>(0,t.jsx)(x,{label:m[e].label,groups:n.MOBILE_MENU_GROUPS[e],exp
11anded:V===e,onToggle:()=>{L(t=>t===e?null:e)},onNavigate:X},e)),(0,t.jsx)("a",{href:"/kliniken",onClick:X,className:"text-content-primary hover:bg-surface-interactive-secondary-hover active:bg-surface-interactive-secondary-active flex w-full items-center rounded-2xl px-4 py-3.5 text-left text-base leading-6 tracking-[-0.18px] transition-colors duration-150",children:"Kliniken"}),(0,t.jsx)("a",{href:r.LOGIN_URL,onClick:X,className:"text-content-primary hover:bg-surface-interactive-secondary-hover active:bg-surface-interactive-secondary-active flex w-full items-center rounded-2xl px-4 py-3.5 text-left text-base leading-6 tracking-[-0.18px] transition-colors duration-150",children:"Anmelden"})]})}),(0,t.jsx)("div",{className:"border-border-base bg-surface-base shrink-0 border-t px-4 pt-3 pb-[calc(0.75rem+env(safe-area-inset-bottom))] lg:px-8",children:(0,t.jsx)("a",{href:S.href,onClick:e=>{(0,s.track)("waitlist_cta_click",{location:"header_mobile",label:S.label}),S.href.startsWith("#")&&(e.preventDefault(),window.setTimeout(()=>{window.location.hash=S.href},150)),X()},className:"radius-keep bg-surface-interactive-primary-base text-content-contrast hover:bg-surface-interactive-primary-hover active:bg-surface-interactive-primary-active focus:outline-content-primary flex w-full items-center justify-center rounded-2xl px-4 py-3.5 text-base leading-6 tracking-[-0.18px] transition-colors focus:outline-2 focus:outline-offset-2",children:S.label})})]})})]})}])}]);
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.