1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21614,9772,t=>{"use strict";let e=(0,t.i(69547).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);t.s(["default",()=>e],9772),t.s(["ChevronRight",()=>e],21614)},58678,(t,e,i)=>{e.exports=t.r(80963)},13606,(t,e,i)=>{"use strict";function s({widthInt:t,heightInt:e,blurWidth:i,blurHeight:s,blurDataURL:n,objectFit:a}){let r=i?40*i:t,o=s?40*s:e,l=r&&o?`viewBox='0 0 ${r} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${l}%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='${l?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${n}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return s}})},66785,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return c}}),t.r(94470);let s=t.r(20262),n=t.r(13606),a=t.r(18256),r=["-moz-initial","fill","none","scale-down",void 0];function o(t){return void 0!==t.default}function l(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function c({src:t,sizes:e,unoptimized:i=!1,priority:c=!1,preload:d=!1,loading:u,className:h,quality:p,width:f,height:m,fill:g=!1,style:v,overrideSrc:y,onLoad:b,onLoadingComplete:x,placeholder:w="empty",blurDataURL:_,fetchPriority:P,decoding:k="async",layout:C,objectFit:S,objectPosition:M,lazyBoundary:T,lazyRoot:E,...D},R){var O;let z,A,V,{imgConf:j,showAltText:L,blurComplete:I,defaultLoader:B}=R,F=j||a.imageConfigDefault;if("allSizes"in F)z=F;else{let t=[...F.deviceSizes,...F.imageSizes].sort((t,e)=>t-e),e=F.deviceSizes.sort((t,e)=>t-e),i=F.qualities?.sort((t,e)=>t-e);z={...F,allSizes:t,deviceSizes:e,qualities:i}}if(void 0===B)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 N=D.loader||B;delete D.loader,delete D.srcSet;let $="__next_img_default"in N;if($){if("custom"===z.loader)throw Object.defineProperty(Error(`Image with src "${t}" 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 t=N;N=e=>{let{config:i,...s}=e;return t(s)}}if(C){"fill"===C&&(g=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];t&&(v={...v,...t});let i={responsive:"100vw",fill:"100vw"}[C];i&&!e&&(e=i)}let U="",H=l(f),W=l(m);if((O=t)&&"object"==typeof O&&(o(O)||void 0!==O.src)){let e=o(t)?t.default:t;if(!e.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(e)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.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(e)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(A=e.blurWidth,V=e.blurHeight,_=_||e.blurDataURL,U=e.src,!g)if(H||W){if(H&&!W){let t=H/e.width;W=Math.round(e.height*t)}else if(!H&&W){let t=W/e.height;H=Math.round(e.width*t)}}else H=e.width,W=e.height}let q=!c&&!d&&("lazy"===u||void 0===u);(!(t="string"==typeof t?t:U)||t.startsWith("data:")||t.startsWith("blob:"))&&(i=!0,q=!1),z.unoptimized&&(i=!0),$&&!z.dangerouslyAllowSVG&&t.split("?",1)[0].endsWith(".svg")&&(i=!0);let G=l(p),Y=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:S,objectPosition:M}:{},L?{}:{color:"transparent"},v),X=I||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:H,heightInt:W,blurWidth:A,blurHeight:V,blurDataURL:_||"",objectFit:Y.objectFit})}")`:`url("${w}")`,K=r.includes(Y.objectFit)?"fill"===Y.objectFit?"100% 100%":"cover":Y.objectFit,Z=X?{backgroundSize:K,backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Q=function({config:t,src:e,unoptimized:i,width:n,quality:a,sizes:r,loader:
2o}){if(i){let t=(0,s.getDeploymentId)();if(e.startsWith("/")&&!e.startsWith("//")&&t){let i=e.includes("?")?"&":"?";e=`${e}${i}dpl=${t}`}return{src:e,srcSet:void 0,sizes:void 0}}let{widths:l,kind:c}=function({deviceSizes:t,allSizes:e},i,s){if(s){let i=/(^|\s)(1?\d?\d)vw/g,n=[];for(let t;t=i.exec(s);)n.push(parseInt(t[2]));if(n.length){let i=.01*Math.min(...n);return{widths:e.filter(e=>e>=t[0]*i),kind:"w"}}return{widths:e,kind:"w"}}return"number"!=typeof i?{widths:t,kind:"w"}:{widths:[...new Set([i,2*i].map(t=>e.find(e=>e>=t)||e[e.length-1]))],kind:"x"}}(t,n,r),d=l.length-1;return{sizes:r||"w"!==c?r:"100vw",srcSet:l.map((i,s)=>`${o({config:t,src:e,quality:a,width:i})} ${"w"===c?i:s+1}${c}`).join(", "),src:o({config:t,src:e,quality:a,width:l[d]})}}({config:z,src:t,unoptimized:i,width:H,quality:G,sizes:e,loader:N}),J=q?"lazy":u;return{props:{...D,loading:J,fetchPriority:P,width:H,height:W,decoding:k,className:h,style:{...Y,...Z},sizes:Q.sizes,srcSet:Q.srcSet,src:y||Q.src},meta:{unoptimized:i,preload:d||c,placeholder:w,fill:g}}}},68816,(t,e,i)=>{"use strict";function s(t,e){let i=t||75;return e?.qualities?.length?e.qualities.reduce((t,e)=>Math.abs(e-i)<Math.abs(t-i)?e:t,0):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return s}})},3866,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return r}});let s=t.r(68816),n=t.r(20262);function a({config:t,src:e,width:i,quality:a}){if(e.startsWith("/")&&e.includes("?")&&t.localPatterns?.length===1&&"**"===t.localPatterns[0].pathname&&""===t.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${e}" 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 r=(0,s.findClosestQuality)(a,t),o=(0,n.getDeploymentId)();return`${t.path}?url=${encodeURIComponent(e)}&w=${i}&q=${r}${e.startsWith("/")&&o?`&dpl=${o}`:""}`}a.__next_img_default=!0;let r=a},63230,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return n}});let s=t.r(91788);function n(t,e){let i=(0,s.useRef)(null),n=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let t=i.current;t&&(i.current=null,t());let e=n.current;e&&(n.current=null,e())}else t&&(i.current=a(t,s)),e&&(n.current=a(e,s))},[t,e])}function a(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(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),e.exports=i.default)},49194,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return x}});let s=t.r(41705),n=t.r(52456),a=t.r(91398),r=n._(t.r(91788)),o=s._(t.r(30943)),l=s._(t.r(80963)),c=t.r(66785),d=t.r(18256),u=t.r(13521);t.r(94470);let h=t.r(25479),p=s._(t.r(3866)),f=t.r(63230),m={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(t,e,i,s,n,a,r){let o=t?.src;t&&t["data-loaded-src"]!==o&&(t["data-loaded-src"]=o,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&n(!0),i?.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let s=!1,n=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>s,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{s=!0,e.preventDefault()},stopPropagation:()=>{n=!0,e.stopPropagation()}})}s?.current&&s.current(t)}}))}function v(t){return r.use?{fetchPriority:t}:{fetchpriority:t}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,r.forwardRef)(({src:t,srcSet:e,sizes:i,height:s,width:n,decoding:o,className:l,style:c,fetchPriority:d,placeholder:u,loading:h,unoptimized:p,fill:m,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,sizesInput:_,onLoad:P,onError:k,...C},S)=>{let M=(0,r.useCallback)(t=>{t&&(k&&(t.src=t.src),t.complete&&g(t,u,y,b,x,p,_))},[t,u,y,b,x,k,p,_]),T=(0,f.useMergedRef)(S,M);return(0,a.jsx)("img",{...C,...v(d),loading:h,width:n,height:s,decoding:o,"data-nimg":m?"fill":"1",className:l,style:c,sizes:i,srcSet:e,src:t,ref:T,onLoad:t=>{g(t.currentTarget,u,y,b,x,p,_)},onError:t=>{w(!0),"empty"!==u&&x(!0),k&&k(t)}})});function b({isAppRouter:t,imgAttributes:e}){let i={as:"image",imageSrcSet:e.srcSet,imageSizes:e.sizes,crossOrigin:e.crossOrigin,referrerPolicy:e.referrerPolicy,...v(e.fetchPriority)};return t&&o.default.preload?(o.default.preload(e.src,i),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:e.srcSet?void 0:e.src,...i},"__nimg-"+e.src+e.srcSet+e.sizes)})}let x=(0,r.forwardRef)((t,e)=>{let i=(0,r.useContext)(h.RouterContext),s=(0,r.useContext)(u.ImageConfigContext),n=(0,r.useMemo)(()=>{let t=m||s||d.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),i=t.deviceSizes.sort((t,e)=>t-e),n=t.qualities?.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:i,qualities:n,localPatterns:"u"<typeof window?s?.localPatterns:t.localPatterns}
3},[s]),{onLoad:o,onLoadingComplete:l}=t,f=(0,r.useRef)(o);(0,r.useEffect)(()=>{f.current=o},[o]);let g=(0,r.useRef)(l);(0,r.useEffect)(()=>{g.current=l},[l]);let[v,x]=(0,r.useState)(!1),[w,_]=(0,r.useState)(!1),{props:P,meta:k}=(0,c.getImgProps)(t,{defaultLoader:p.default,imgConf:n,blurComplete:v,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{...P,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:f,onLoadingCompleteRef:g,setBlurComplete:x,setShowAltText:_,sizesInput:t.sizes,ref:e}),k.preload?(0,a.jsx)(b,{isAppRouter:!i,imgAttributes:P}):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),e.exports=i.default)},88961,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={default:function(){return d},getImageProps:function(){return c}};for(var n in s)Object.defineProperty(i,n,{enumerable:!0,get:s[n]});let a=t.r(41705),r=t.r(66785),o=t.r(49194),l=a._(t.r(3866));function c(t){let{props:e}=(0,r.getImgProps)(t,{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[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let d=o.Image},26019,(t,e,i)=>{e.exports=t.r(88961)},71914,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useIntersection",{enumerable:!0,get:function(){return l}});let s=t.r(91788),n=t.r(99604),a="function"==typeof IntersectionObserver,r=new Map,o=[];function l({rootRef:t,rootMargin:e,disabled:i}){let l=i||!a,[c,d]=(0,s.useState)(!1),u=(0,s.useRef)(null),h=(0,s.useCallback)(t=>{u.current=t},[]);return(0,s.useEffect)(()=>{if(a){if(l||c)return;let i=u.current;if(i&&i.tagName)return function(t,e,i){let{id:s,observer:n,elements:a}=function(t){let e,i={root:t.root||null,margin:t.rootMargin||""},s=o.find(t=>t.root===i.root&&t.margin===i.margin);if(s&&(e=r.get(s)))return e;let n=new Map;return e={id:i,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=n.get(t.target),i=t.isIntersecting||t.intersectionRatio>0;e&&i&&e(i)})},t),elements:n},o.push(i),r.set(i,e),e}(i);return a.set(t,e),n.observe(t),function(){if(a.delete(t),n.unobserve(t),0===a.size){n.disconnect(),r.delete(s);let t=o.findIndex(t=>t.root===s.root&&t.margin===s.margin);t>-1&&o.splice(t,1)}}}(i,t=>t&&d(t),{root:t?.current,rootMargin:e})}else if(!c){let t=(0,n.requestIdleCallback)(()=>d(!0));return()=>(0,n.cancelIdleCallback)(t)}},[l,e,t,c,u.current]),[h,c,(0,s.useCallback)(()=>{d(!1)},[])]}("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),e.exports=i.default)},2531,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"normalizeLocalePath",{enumerable:!0,get:function(){return s}});let s=(e,i)=>t.r(92090).normalizeLocalePath(e,i);("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),e.exports=i.default)},54471,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getDomainLocale",{enumerable:!0,get:function(){return n}});let s=t.r(70090);function n(e,i,n,a){{let r=t.r(2531).normalizeLocalePath,o=t.r(62205).detectDomainLocale,l=i||r(e,n).detectedLocale,c=o(a,void 0,l);if(c){let t=`http${c.http?"":"s"}://`,i=l===c.defaultLocale?"":`/${l}`;return`${t}${c.domain}${(0,s.normalizePathTrailingSlash)(`${i}${e}`)}`}return!1}}("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),e.exports=i.default)},48735,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return s}});let s=t=>{}},39149,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={default:function(){return k},useLinkStatus:function(){return P}};for(var n in s)Object.defineProperty(i,n,{enumerable:!0,get:s[n]});let a=t.r(52456),r=t.r(91398),o=a._(t.r(91788)),l=t.r(60472),c=t.r(71112),d=t.r(28169),u=t.r(89129),h=t.r(14862),p=t.r(25479),f=t.r(71914),m=t.r(54471),g=t.r(44113),v=t.r(63230);t.r(48735);let y=new Set;function b(t,e,i,s){if(!("u"<typeof window)&&(0,c.isLocalURL)(e)){if(!s.bypassPrefetchedCheck){let n=e+"%"+i+"%"+(void 0!==s.locale?s.locale:"locale"in t?t.locale:void 0);if(y.has(n))return;y.add(n)}t.prefetch(e,i,s).catch(t=>{})}}function x(t){return"string"==typeof t?t:(0,d.formatUrl)(t)}let w=o.default.forwardRef(function(t,e){let i,s,{href:n,as:a,children:d,prefetch:y=null,passHref:w,replace:_,shallow:P,scroll:k,locale:C,onClick:S,onNavigate:M,onMouseEnter:T,onTouchStart:E,legacyBehavior:D=!1,...R}=t;i=d,D&&("string"==typeof i||"number"==typeof i)&&(i=(0,r.jsx)("a",{children:i}));let O=o.default.useContext(p.RouterContext),z=!1!==y,{href:A,as:V}=o.default.useMemo(()=>
3{if(!O){let t=x(n);return{href:t,as:a?x(a):t}}let[t,e]=(0,l.resolveHref)(O,n,!0);return{href:t,as:a?(0,l.resolveHref)(O,a):e||t}},[O,n,a]),j=o.default.useRef(A),L=o.default.useRef(V);D&&(s=o.default.Children.only(i));let I=D?s&&"object"==typeof s&&s.ref:e,[B,F,N]=(0,f.useIntersection)({rootMargin:"200px"}),$=o.default.useCallback(t=>{(L.current!==V||j.current!==A)&&(N(),L.current=V,j.current=A),B(t)},[V,A,N,B]),U=(0,v.useMergedRef)($,I);o.default.useEffect(()=>{!O||F&&z&&b(O,A,V,{locale:C})},[V,A,F,C,z,O?.locale,O]);let H={ref:U,onClick(t){D||"function"!=typeof S||S(t),D&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!O||t.defaultPrevented||function(t,e,i,s,n,a,r,o,l){let d,{nodeName:u}=t.currentTarget;if(!("A"===u.toUpperCase()&&((d=t.currentTarget.getAttribute("target"))&&"_self"!==d||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))){if(!(0,c.isLocalURL)(i)){n&&(t.preventDefault(),location.replace(i));return}t.preventDefault(),(()=>{if(l){let t=!1;if(l({preventDefault:()=>{t=!0}}),t)return}let t=r??!0;"beforePopState"in e?e[n?"replace":"push"](i,s,{shallow:a,locale:o,scroll:t}):e[n?"replace":"push"](s||i,{scroll:t})})()}}(t,O,A,V,_,P,k,C,M)},onMouseEnter(t){D||"function"!=typeof T||T(t),D&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(t),O&&b(O,A,V,{locale:C,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(t){D||"function"!=typeof E||E(t),D&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(t),O&&b(O,A,V,{locale:C,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(V))H.href=V;else if(!D||w||"a"===s.type&&!("href"in s.props)){let t=void 0!==C?C:O?.locale;H.href=O?.isLocaleDomain&&(0,m.getDomainLocale)(V,t,O?.locales,O?.domainLocales)||(0,g.addBasePath)((0,h.addLocale)(V,t,O?.defaultLocale))}return D?o.default.cloneElement(s,H):(0,r.jsx)("a",{...R,...H,children:i})}),_=(0,o.createContext)({pending:!1}),P=()=>(0,o.useContext)(_),k=w;("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),e.exports=i.default)},41158,(t,e,i)=>{e.exports=t.r(39149)},8047,t=>{"use strict";var e=t.i(91398),i=t.i(91788),s=t.i(53533);function n({className:t,children:n,hexagonProps:a,hexagonSize:r=75,hexagonMargin:o=3,...l}){let c=1.1*r,d=.8*r,u=-36-.275*(r-100)+o,h=-(r/2),p=o/2,[f,m]=i.useState({rows:0,columns:0}),g=i.useCallback(()=>{m({rows:Math.ceil(window.innerHeight/d),columns:Math.ceil(window.innerWidth/r)+1})},[d,r]);return i.useEffect(()=>(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]),(0,e.jsxs)("div",{"data-slot":"hexagon-background",className:(0,s.cn)("relative size-full overflow-hidden bg-neutral-100 dark:bg-neutral-900",t),...l,children:[(0,e.jsx)("style",{children:`:root { --hexagon-margin: ${o}px; }`}),(0,e.jsx)("div",{className:"absolute top-0 -left-0 size-full overflow-hidden",children:Array.from({length:f.rows}).map((t,i)=>(0,e.jsx)("div",{style:{marginTop:u,marginLeft:((i+1)%2==0?p:h)-10},className:"inline-flex",children:Array.from({length:f.columns}).map((t,n)=>(0,e.jsx)("div",{...a,style:{width:r,height:c,marginLeft:o,...a?.style},className:(0,s.cn)("relative","[clip-path:polygon(50%_0%,_100%_25%,_100%_75%,_50%_100%,_0%_75%,_0%_25%)]","before:absolute before:top-0 before:left-0 before:h-full before:w-full before:bg-transparent before:opacity-100 before:transition-all before:duration-1000","after:absolute after:inset-[var(--hexagon-margin)] after:bg-transparent","after:[clip-path:polygon(50%_0%,_100%_25%,_100%_75%,_50%_100%,_0%_75%,_0%_25%)]","hover:before:bg-[#1DC67D] hover:before:opacity-10 hover:before:duration-0 hover:after:bg-[#1DC67D] hover:after:opacity-50 hover:after:duration-0",a?.className)},`hexagon-${i}-${n}`))},`row-${i}`))}),n]})}t.s(["HexagonBackground",()=>n])},11535,t=>{"use strict";let e=(0,t.i(91788).createContext)({});t.s(["LayoutGroupContext",()=>e])},57126,t=>{"use strict";var e=t.i(91788);function i(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}t.s(["useConstant",()=>i])},46628,t=>{"use strict";let e="u">typeof window;t.s(["isBrowser",()=>e])},39016,t=>{"use strict";var e=t.i(91788);let i=t.i(46628).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",()=>i])},62946,t=>{"use strict";let e=(0,t.i(91788).createContext)(null);t.s(["PresenceContext",()=>e])},68098,t=>{"use strict";function e(t){return"object"==typeof t&&null!==t}t.s(["isObject",()=>e])},51723,t=>{"use strict";var e=t.i(68098);function i(t){return(0,e.isObject)(t)&&"offsetHeight"in t}t.s(["isHTMLElement",()=>i])},12600,t=>{"use strict";let e=(0,t.i(91788).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>e])},46588,t=>{"use strict";var e=t.i(91398),i=t.i(91788),s=t.i(62946),n=t.i(57126),a=t.i(51723),r=i,o=t.i(12600);function l(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class c extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;
3if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,a.isHTMLElement)(t)&&t.offsetWidth||0,s=(0,a.isHTMLElement)(t)&&t.offsetHeight||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left,n.bottom=s-n.height-n.top}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:s,anchorX:n,anchorY:a,root:d}){let u=(0,r.useId)(),h=(0,r.useRef)(null),p=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=(0,r.useContext)(o.MotionConfigContext),m=function(...t){return i.useCallback(function(...t){return e=>{let i=!1,s=t.map(t=>{let s=l(t,e);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let e=0;e<s.length;e++){let i=s[e];"function"==typeof i?i():l(t[e],null)}}}}(...t),t)}(h,t.props?.ref??t?.ref);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:r,right:o,bottom:l}=p.current;if(s||!h.current||!t||!e)return;let c="left"===n?`left: ${r}`:`right: ${o}`,m="bottom"===a?`bottom: ${l}`:`top: ${i}`;h.current.dataset.motionPopId=u;let g=document.createElement("style");f&&(g.nonce=f);let v=d??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(` 4 [data-motion-pop-id="${u}"] { 5 position: absolute !important; 6 width: ${t}px !important; 7 height: ${e}px !important; 8 ${c}px !important; 9 ${m}px !important; 10 } 11 `),()=>{v.contains(g)&&v.removeChild(g)}},[s]),(0,e.jsx)(c,{isPresent:s,childRef:h,sizeRef:p,children:r.cloneElement(t,{ref:m})})}let u=({children:t,initial:a,isPresent:r,onExitComplete:o,custom:l,presenceAffectsLayout:c,mode:u,anchorX:p,anchorY:f,root:m})=>{let g=(0,n.useConstant)(h),v=(0,i.useId)(),y=!0,b=(0,i.useMemo)(()=>(y=!1,{id:v,initial:a,isPresent:r,custom:l,onExitComplete:t=>{for(let e of(g.set(t,!0),g.values()))if(!e)return;o&&o()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[r,g,o]);return c&&y&&(b={...b}),(0,i.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[r]),i.useEffect(()=>{r||g.size||!o||o()},[r]),"popLayout"===u&&(t=(0,e.jsx)(d,{isPresent:r,anchorX:p,anchorY:f,root:m,children:t})),(0,e.jsx)(s.PresenceContext.Provider,{value:b,children:t})};function h(){return new Map}t.s(["PresenceChild",()=>u],46588)},86398,t=>{"use strict";var e=t.i(91788),i=t.i(62946);function s(t=!0){let n=(0,e.useContext)(i.PresenceContext);if(null===n)return[!0,null];let{isPresent:a,onExitComplete:r,register:o}=n,l=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return o(l)},[t]);let c=(0,e.useCallback)(()=>t&&r&&r(l),[l,r,t]);return!a&&r?[!1,c]:[!0]}t.s(["usePresence",()=>s])},98817,t=>{"use strict";t.i(50461);var e=t.i(91398),i=t.i(91788),s=t.i(11535),n=t.i(57126),a=t.i(39016),r=t.i(46588),o=t.i(86398);let l=t=>t.key||"";function c(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}let d=({children:t,custom:d,initial:u=!0,onExitComplete:h,presenceAffectsLayout:p=!0,mode:f="sync",propagate:m=!1,anchorX:g="left",anchorY:v="top",root:y})=>{let[b,x]=(0,o.usePresence)(m),w=(0,i.useMemo)(()=>c(t),[t]),_=m&&!b?[]:w.map(l),P=(0,i.useRef)(!0),k=(0,i.useRef)(w),C=(0,n.useConstant)(()=>new Map),S=(0,i.useRef)(new Set),[M,T]=(0,i.useState)(w),[E,D]=(0,i.useState)(w);(0,a.useIsomorphicLayoutEffect)(()=>{P.current=!1,k.current=w;for(let t=0;t<E.length;t++){let e=l(E[t]);_.includes(e)?(C.delete(e),S.current.delete(e)):!0!==C.get(e)&&C.set(e,!1)}},[E,_.length,_.join("-")]);let R=[];if(w!==M){let t=[...w];for(let e=0;e<E.length;e++){let i=E[e],s=l(i);_.includes(s)||(t.splice(e,0,i),R.push(i))}return"wait"===f&&R.length&&(t=R),D(c(t)),T(w),null}let{forceRender:O}=(0,i.useContext)(s.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:E.map(t=>{let i=l(t),s=(!m||!!b)&&(w===E||_.includes(i));return(0,e.jsx)(r.PresenceChild,{isPresent:s,initial:(!P.current||!!u)&&void 0,custom:d,presenceAffectsLayout:p,mode:f,root:y,onExitComplete:s?void 0:()=>{if(S.current.has(i)||(S.current.add(i),!C.has(i)))return;C.set(i,!0);let t=!0;C.forEach(e=>{e||(t=!1)}),t&&(O?.(),D(k.current),m&&x?.(),h&&h())},anchorX:g,anchorY:v,children:t},i)})})};t.s(["AnimatePresence",()=>d],98817)},14503,55810,71955,93959,54511,21006,98125,13953,3595,22405,65907,51233,88905,19744,44063,50180,42827,62448,46164,93709,78892,33592,86791,50833,83026,90516,19708,47477,12159,801,71188,46768,25346,25052,20007,66651,91770,30195,68782,49276,60541,35403,81057,4955,4606,t=>{"use strict";let e,i,s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],n=new Set(s);t.s(["transformPropOrder",()=>s,"transformProps",()=>n],55810);let a=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>a],71955);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...r,transform:t=>a(0,1,t)},l={...r,default:1},c=t=>Math.round(1e5*t)/1e5,d=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,u=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,h=(t,e)=>i=>!!("string"==typeof i&&u.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),p=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,a,r,o]=s.match(d);return{[t]:parseFloat(n),[e]:parseFloat(a),[i]:parseFloat(r),alpha:void 0!==o?parseFloat(o):1}},f={...r,transform:t=>Math.round(a(0,255,t))},m={test:h("rgb","red"),parse:p("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+f.transform(t)+", "+f.transform(e)+", "+f.transform(i)+", "+c(o.transform(s))+")"};t.s(["rgba",()=>m],93959);let g={test:h("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alph
11a:n?parseInt(n,16)/255:1}},transform:m.transform};t.s(["hex",()=>g],54511);let v=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),y=v("deg"),b=v("%"),x=v("px"),w=v("vh"),_=v("vw"),P={...b,parse:t=>b.parse(t)/100,transform:t=>b.transform(100*t)};t.s(["degrees",()=>y,"percent",()=>b,"progressPercentage",()=>P,"px",()=>x,"vh",()=>w,"vw",()=>_],21006);let k={test:h("hsl","hue"),parse:p("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+b.transform(c(e))+", "+b.transform(c(i))+", "+c(o.transform(s))+")"};t.s(["hsla",()=>k],98125);let C={test:t=>m.test(t)||g.test(t)||k.test(t),parse:t=>m.test(t)?m.parse(t):k.test(t)?k.parse(t):g.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?m.transform(t):k.transform(t),getAnimatableNone:t=>{let e=C.parse(t);return e.alpha=0,C.transform(e)}};t.s(["color",()=>C],13953);let S=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,M="number",T="color",E=/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 D(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],a=0,r=e.replace(E,t=>(C.test(t)?(s.color.push(a),n.push(T),i.push(C.parse(t))):t.startsWith("var(")?(s.var.push(a),n.push("var"),i.push(t)):(s.number.push(a),n.push(M),i.push(parseFloat(t))),++a,"${}")).split("${}");return{values:i,split:r,indexes:s,types:n}}function R(t){return D(t).values}function O(t){let{split:e,types:i}=D(t),s=e.length;return t=>{let n="";for(let a=0;a<s;a++)if(n+=e[a],void 0!==t[a]){let e=i[a];e===M?n+=c(t[a]):e===T?n+=C.transform(t[a]):n+=t[a]}return n}}let z=t=>"number"==typeof t?0:C.test(t)?C.getAnimatableNone(t):t,A={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(d)?.length||0)+(t.match(S)?.length||0)>0},parse:R,createTransformer:O,getAnimatableNone:function(t){let e=R(t);return O(t)(e.map(z))}};t.s(["analyseComplexValue",()=>D,"complex",()=>A],3595);let V=new Set(["brightness","contrast","saturate","opacity"]);function j(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(d)||[];if(!s)return t;let n=i.replace(s,""),a=+!!V.has(e);return s!==i&&(a*=100),e+"("+a+n+")"}let L=/\b([a-z-]*)\(.*?\)/gu,I={...A,getAnimatableNone:t=>{let e=t.match(L);return e?e.map(j).join(" "):t}},B={...r,transform:Math.round},F={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,inset:x,insetBlock:x,insetBlockStart:x,insetBlockEnd:x,insetInline:x,insetInlineStart:x,insetInlineEnd:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockStart:x,paddingBlockEnd:x,paddingInline:x,paddingInlineStart:x,paddingInlineEnd:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockStart:x,marginBlockEnd:x,marginInline:x,marginInlineStart:x,marginInlineEnd:x,fontSize:x,backgroundPositionX:x,backgroundPositionY:x,rotate:y,rotateX:y,rotateY:y,rotateZ:y,scale:l,scaleX:l,scaleY:l,scaleZ:l,skew:y,skewX:y,skewY:y,distance:x,translateX:x,translateY:x,translateZ:x,x:x,y:x,z:x,perspective:x,transformPerspective:x,opacity:o,originX:P,originY:P,originZ:x,zIndex:B,fillOpacity:o,strokeOpacity:o,numOctaves:B},N={...F,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:I,WebkitFilter:I},$=t=>N[t],U=()=>({translate:0,scale:1,origin:0,originPoint:0}),H=()=>({x:U(),y:U()}),W=()=>({min:0,max:0}),q=()=>({x:W(),y:W()});t.s(["createBox",()=>q,"createDelta",()=>H],22405);let G=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",()=>G],65907);let Y=new Set(["width","height","top","left","right","bottom",...s]);t.s(["positionalKeys",()=>Y],51233);let X=t=>e=>e.test(t),K=[r,x,b,y,_,w,{test:t=>"auto"===t,parse:t=>t}],Z=t=>K.find(X(t));var Q=t.i(50461);let J=()=>{},tt=()=>{};Q.default,t.s(["invariant",()=>tt,"warning",()=>J],88905);let te=t=>e=>"string"==typeof e&&e.startsWith(t),ti=te("--"),ts=te("var(--"),tn=t=>!!ts(t)&&ta.test(t.split("/*")[0].trim()),ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tr(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}t.s(["containsCSSVariable",()=>tr,"isCSSVariableName",()=>ti,"isCSSVariableToken",()=>tn],19744);let to=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tl=t=>180*t/Math.PI,tc=t=>tu(tl(Math.atan2(t[1],t[0]))),td={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tc,rotateZ:tc,skewX:t=>tl(Math.atan(t[1])),skewY:t=>tl(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tu=t=>((t%=360)<0&&(t+=360),t),th=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tp=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tf={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:th,scaleY:tp,scale:t=>(th(t)+tp(t))/2,rotateX:t=>tu(tl(Math.atan2(t[6],t[5]))),rotateY:t=>tu(tl(Math.atan2(-t[2],t[0]))),rotateZ:tc,rotate:tc,skewX:t=>tl(Math.atan(t[4])),skewY:t=>tl(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tm(t){return+!!t.includes("scale")}function tg(t,e){let i,s;if(!t||"none"===t)return tm(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tf,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=td,s=e}if(!s)return tm(e);let a=i[e],r=s[1].split(",").map(tv);return"function"==typeof a?a(r):r[a]}function tv(t){return parseFloat(t.trim())}
11let ty=t=>t===r||t===x,tb=new Set(["x","y","z"]),tx=s.filter(t=>!tb.has(t)),tw={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tg(e,"x"),y:(t,{transform:e})=>tg(e,"y")};tw.translateX=tw.x,tw.translateY=tw.y;let t_=t=>t;t.s(["noop",()=>t_],44063);let tP={};t.s(["MotionGlobalConfig",()=>tP],50180);let tk=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tC={value:null,addProjectionMetrics:null};function tS(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,r=tk.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,a=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function c(e){r.has(e)&&(d.schedule(e),t()),l++,e(o)}let d={schedule:(t,e=!1,a=!1)=>{let o=a&&n?i:s;return e&&r.add(t),o.has(t)||o.add(t),t},cancel:t=>{s.delete(t),r.delete(t)},process:t=>{if(o=t,n){a=!0;return}n=!0,[i,s]=[s,i],i.forEach(c),e&&tC.value&&tC.value.frameloop[e].push(l),l=0,i.clear(),n=!1,a&&(a=!1,d.process(t))}};return d}(a,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:p,postRender:f}=r,m=()=>{let a=tP.useManualTiming?n.timestamp:performance.now();i=!1,tP.useManualTiming||(n.delta=s?1e3/60:Math.max(Math.min(a-n.timestamp,40),1)),n.timestamp=a,n.isProcessing=!0,o.process(n),l.process(n),c.process(n),d.process(n),u.process(n),h.process(n),p.process(n),f.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(m))};return{schedule:tk.reduce((e,a)=>{let o=r[a];return e[a]=(e,a=!1,r=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||t(m)),o.schedule(e,a,r)),e},{}),cancel:t=>{for(let e=0;e<tk.length;e++)r[tk[e]].cancel(t)},state:n,steps:r}}t.s(["statsBuffer",()=>tC],42827);let{schedule:tM,cancel:tT,state:tE,steps:tD}=tS("u">typeof requestAnimationFrame?requestAnimationFrame:t_,!0);t.s(["cancelFrame",()=>tT,"frame",()=>tM,"frameData",()=>tE,"frameSteps",()=>tD],62448);let tR=new Set,tO=!1,tz=!1,tA=!1;function tV(){if(tz){let t=Array.from(tR).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],tx.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tz=!1,tO=!1,tR.forEach(t=>t.complete(tA)),tR.clear()}function tj(){tR.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tz=!0)})}function tL(){tA=!0,tj(),tV(),tA=!1}class tI{constructor(t,e,i,s,n,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(tR.add(this),tO||(tO=!0,tM.read(tj),tM.resolveKeyframes(tV))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),a=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,a);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=a),s&&void 0===n&&s.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tR.delete(this)}cancel(){"scheduled"===this.state&&(tR.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function tB(t,e){let i=$(t);return i!==I&&(i=A),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["KeyframeResolver",()=>tI,"flushKeyframeResolvers",()=>tL],46164);
11let tF=new Set(["auto","none","0"]);class tN extends tI{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&tn(s=s.trim())){let n=function t(e,i,s=1){tt(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,a]=function(t){let e=to.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let r=window.getComputedStyle(i).getPropertyValue(n);if(r){let t=r.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tn(a)?t(a,i,s+1):a}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!Y.has(i)||2!==t.length)return;let[s,n]=t,a=Z(s),r=Z(n);if(tr(s)!==tr(n)&&tw[i]){this.needsMeasurement=!0;return}if(a!==r)if(ty(a)&&ty(r))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tw[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!tF.has(e)&&D(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=tB(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tw[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,a=i[n];i[n]=tw[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
11h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}function t$(t,e){-1===t.indexOf(e)&&t.push(e)}function tU(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["addUniqueItem",()=>t$,"removeItem",()=>tU],93709);class tH{constructor(){this.subscriptions=[]}add(t){return t$(this.subscriptions,t),()=>tU(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}t.s(["SubscriptionManager",()=>tH],78892);let{schedule:tW}=tS(queueMicrotask,!1);function tq(){i=void 0}t.s(["microtask",()=>tW],33592);let tG={now:()=>(void 0===i&&tG.set(tE.isProcessing||tP.useManualTiming?tE.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(tq)}};function tY(t,e){return e?1e3/e*t:0}t.s(["time",()=>tG],86791),t.s(["velocityPerSecond",()=>tY],50833);class tX{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tG.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=tG.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tH);let i=this.events[t].add(e);return"change"===t?()=>{i(),tM.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return e&&e.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=tG.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tY(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tK(t,e){return new tX(t,e)}t.s(["motionValue",()=>tK],83026);let tZ=[...K,C,A],tQ={current:null},tJ={current:!1},t0="u">typeof window,t1=new WeakMap;function t2(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function t5(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",()=>t2],90516),t.s(["isVariantLabel",()=>t5],19708);let t3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t6=["initial",...t3];function t4(t){return t2(t.animate)||t6.some(e=>t5(t[e]))}function t8(t){return!!(t4(t)||t.variants)}function t9(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function t7(t,e,i,s){if("function"==typeof e){let[n,a]=t9(s);e=e(void 0!==i?i:t.custom,n,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,a]=t9(s);e=e(void 0!==i?i:t.custom,n,a)}return e}t.s(["variantPriorityOrder",()=>t3,"variantProps",()=>t6],47477),t.s(["isControllingVariants",()=>t4,"isVariantNode",()=>t8],12159),t.s(["resolveVariantFromProps",()=>t7],801);let et=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ee={};function ei(t){ee=t}function es(){return ee}
11class en{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:a},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tI,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tG.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tM.render(this.render,!1,!0))};const{latestValues:o,renderState:l}=a;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=r,this.blockInitialAnimation=!!n,this.isControllingVariants=t4(e),this.isVariantNode=t8(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==o[t]&&G(e)&&e.set(o[t])}}mount(t){this.current=t,t1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tJ.current||function(){if(tJ.current=!0,t0)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>tQ.current=t.matches;t.addEventListener("change",e),e()}else tQ.current=!1}(),this.shouldReduceMotion=tQ.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tT(this.notifyUpdate),tT(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=n.has(t);s&&this.onBindTransform&&this.onBindTransform();let a=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tM.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{a(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ee){let e=ee[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<et.length;e++){let i=et[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}
11this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],a=i[s];if(G(n))t.addValue(s,n);else if(G(a))t.addValue(s,tK(n,{owner:t}));else if(a!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,tK(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=tK(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let s,n;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let s;s=i,!tZ.find(X(s))&&A.test(e)&&(i=tB(t,e))}this.setBaseTarget(t,G(i)?i.get():i)}return G(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=t7(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||G(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new tH),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tW.render(this.render)}}t.s(["VisualElement",()=>en,"getFeatureDefinitions",()=>es,"setFeatureDefinitions",()=>ei],71188);class ea extends en{constructor(){super(...arguments),this.KeyframeResolver=tN}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function er(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}t.s(["camelToDash",()=>er],46768);let eo=(t,e)=>e&&"number"==typeof t?e.transform(t):t,el={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ec=s.length;function ed(t,e,i){let{style:a,vars:r,transformOrigin:o}=t,l=!1,c=!1;for(let t in e){let i=e[t];if(n.has(t)){l=!0;continue}if(ti(t)){r[t]=i;continue}{let e=eo(i,F[t]);t.startsWith("origin")?(c=!0,o[t]=e):a[t]=e}}if(!e.transform&&(l||i?a.transform=function(t,e,i){let n="",a=!0;for(let r=0;r<ec;r++){let o=s[r],l=t[o];if(void 0===l)continue;let c=!0;if("number"==typeof l)c=l===+!!o.startsWith("scale");else{let t=parseFloat(l);c=o.startsWith("scale")?1===t:0===t}if(!c||i){let t=eo(l,F[o]);if(!c){a=!1;let e=el[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,a?"":n):a&&(n="none"),n}(e,t.transform,i):a.transform&&(a.transform="none")),c){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;a.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",()=>ed],25346);let eu={offset:"stroke-dashoffset",array:"stroke-dasharray"},eh={offset:"strokeDashoffset",array:"strokeDasharray"},ep=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ef(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:a=1,pathOffset:r=0,...o}
11,l,c,d){if(ed(t,o,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:u,style:h}=t;for(let t of(u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete u.transformBox),ep))void 0!==u[t]&&(h[t]=u[t],delete u[t]);void 0!==e&&(u.x=e),void 0!==i&&(u.y=i),void 0!==s&&(u.scale=s),void 0!==n&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let a=n?eu:eh;t[a.offset]=`${-s}`,t[a.array]=`${e} ${i}`}(u,n,a,r,!1)}t.s(["buildSVGAttrs",()=>ef],25052);let em=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"]),eg=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ev(t,{style:e,vars:i},s,n){let a,r=t.style;for(a in e)r[a]=e[a];for(a in n?.applyProjectionStyles(r,s),i)r.setProperty(a,i[a])}function ey(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}t.s(["isSVGTag",()=>eg],20007);let eb={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!x.test(t))return t;else t=parseFloat(t);let i=ey(t,e.target.x),s=ey(t,e.target.y);return`${i}% ${s}%`}},ex=(t,e,i)=>t+(e-t)*i;t.s(["mixNumber",()=>ex],66651);let ew={borderRadius:{...eb,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eb,borderTopRightRadius:eb,borderBottomLeftRadius:eb,borderBottomRightRadius:eb,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=A.parse(t);if(s.length>5)return t;let n=A.createTransformer(t),a=+("number"!=typeof s[0]),r=i.x.scale*e.x,o=i.y.scale*e.y;s[0+a]/=r,s[1+a]/=o;let l=ex(r,o,.5);return"number"==typeof s[2+a]&&(s[2+a]/=l),"number"==typeof s[3+a]&&(s[3+a]/=l),n(s)}}};function e_(t,{layout:e,layoutId:i}){return n.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ew[t]||"opacity"===t)}function eP(t,e,i){let s=t.style,n=e?.style,a={};if(!s)return a;for(let e in s)(G(s[e])||n&&G(n[e])||e_(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(a[e]=s[e]);return a}function ek(t,e,i){let n=eP(t,e,i);for(let i in t)(G(t[i])||G(e[i]))&&(n[-1!==s.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}t.s(["scaleCorrectors",()=>ew],91770),t.s(["isForcedMotionValue",()=>e_],30195),t.s(["scrapeMotionValuesFromProps",()=>eP],68782),t.s(["scrapeMotionValuesFromProps",()=>ek],49276);class eC extends ea{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(n.has(e)){let t=$(e);return t&&t.default||0}return e=em.has(e)?e:er(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ek(t,e,i)}build(t,e,i){ef(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in ev(t,e,void 0,s),e.attrs)t.setAttribute(em.has(i)?i:er(i),e.attrs[i])}mount(t){this.isSVGTag=eg(t.tagName),super.mount(t)}}function eS({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function eM({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function eT(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function eE(t){return void 0===t||1===t}function eD({scale:t,scaleX:e,scaleY:i}){return!eE(t)||!eE(e)||!eE(i)}function eR(t){return eD(t)||eO(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eO(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ez(t,e,i){return i+e*(t-i)}function eA(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function eV(t,e=0,i=1,s,n){t.min=eA(t.min,e,i,s,n),t.max=eA(t.max,e,i,s,n)}function ej(t,{x:e,y:i}){eV(t.x,e.translate,e.scale,e.originPoint),eV(t.y,i.translate,i.scale,i.originPoint)}function eL(t,e,i,s=!1){let n,a,r=i.length;if(r){e.x=e.y=1;for(let o=0;o<r;o++){a=(n=i[o]).projectionDelta;let{visualElement:r}=n.options;(!r||!r.props.style||"contents"!==r.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&eF(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,ej(t,a)),s&&eR(n.latestValues)&&eF(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function eI(t,e){t.min=t.min+e,t.max=t.max+e}function eB(t,e,i,s,n=.5){let a=ex(t.min,t.max,n);eV(t,e,i,a,s)}function eF(t,e){eB(t.x,e.x,e.scaleX,e.scale,e.originX),eB(t.y,e.y,e.scaleY,e.scale,e.originY)}function eN(t,e){return eS(eT(t.getBoundingClientRect(),e))}function e$(t,e,i){let s=eN(t,i),{scroll:n}=e;return n&&(eI(s.x,n.offset.x),eI(s.y,n.offset.y)),s}t.s(["convertBoundingBoxToBox",()=>eS,"convertBoxToBoundingBox",()=>eM,"transformBoxPoints",()=>eT],60541),t.s(["has2DTranslate",()=>eO,"hasScale",()=>eD,"hasTransform",()=>eR],35403),t.s(["applyBoxDelta",()=>ej,"applyTreeDeltas",()=>eL,"scalePoint",()=>ez,"transformBox",()=>eF,"translateAxis",()=>eI],81057),t.s(["measurePageBox",()=>e$,"measureViewportBox",()=>eN],4955);class eU extends ea{constructor(){super(...arguments),this.type="html",this.renderInstance=ev}readValueFromInstance(t,e){if(n.has(e))return this.projection?.isProjecting?tm(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tg(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(ti(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eN(t,e)}
11build(t,e,i){ed(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eP(t,e,i)}}var eH=t.i(91788);let eW=["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 eq(t){if("string"!=typeof t||t.includes("-"));else if(eW.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",()=>eq],4606);let eG=(t,e)=>e.isSVG??eq(t)?new eC(e):new eU(e,{allowProjection:t!==eH.Fragment});t.s(["createDomVisualElement",()=>eG],14503)},64854,t=>{"use strict";let e=(0,t.i(91788).createContext)({strict:!1});t.s(["LazyContext",()=>e])},64357,86649,28235,89124,38777,46530,32866,t=>{"use strict";var e,i=t.i(91788);let s=(0,i.createContext)({});t.s(["MotionContext",()=>s],64357);var n=t.i(12159),a=t.i(19708);function r(t){let{initial:e,animate:r}=function(t,e){if((0,n.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,a.isVariantLabel)(e)?e:void 0,animate:(0,a.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(s));return(0,i.useMemo)(()=>({initial:e,animate:r}),[o(e),o(r)])}function o(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",()=>r],86649);var l=t.i(65907),c=t.i(30195),d=t.i(25346);let u=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function h(t,e,i){for(let s in e)(0,l.isMotionValue)(e[s])||(0,c.isForcedMotionValue)(s,i)||(t[s]=e[s])}t.s(["createHtmlRenderState",()=>u],28235);var p=t.i(25052),f=t.i(20007);let m=()=>({...u(),attrs:{}});t.s(["createSvgRenderState",()=>m],89124);let g=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function v(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||g.has(t)}let y=t=>!v(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(y=t=>t.startsWith("on")?!v(t):e(t))}catch{}var b=t.i(4606);function x(t,e,s,{latestValues:n},a,r=!1,o){let c=(o??(0,b.isSVGComponent)(t)?function(t,e,s,n){let a=(0,i.useMemo)(()=>{let i=m();return(0,p.buildSVGAttrs)(i,e,(0,f.isSVGTag)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};h(e,t.style,t),a.style={...e,...a.style}}return a}:function(t,e){let s,n,a={},r=(s=t.style||{},h(n={},s,t),Object.assign(n,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=u();return(0,d.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(a.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(a.tabIndex=0),a.style=r,a})(e,n,a,t),g=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(y(n)||!0===i&&v(n)||!e&&!v(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,r),w=t!==i.Fragment?{...g,...c,ref:s}:{},{children:_}=e,P=(0,i.useMemo)(()=>(0,l.isMotionValue)(_)?_.get():_,[_]);return(0,i.createElement)(t,{...w,children:P})}t.s(["useRender",()=>x],38777);var w=t.i(68782);function _(t){return(0,l.isMotionValue)(t)?t.get():t}t.s(["scrapeHTMLMotionValuesFromProps",()=>w.scrapeMotionValuesFromProps],46530),t.s(["resolveMotionValue",()=>_],32866)},18110,61080,t=>{"use strict";var e=t.i(46530),i=t.i(32866),s=t.i(12159),n=t.i(90516),a=t.i(801),r=t.i(91788),o=t.i(64357),l=t.i(62946),c=t.i(57126);let d=t=>(e,d)=>{let u=(0,r.useContext)(o.MotionContext),h=(0,r.useContext)(l.PresenceContext),p=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},r,o,l){return{latestValues:function(t,e,r,o){let l={},c=o(t,{});for(let t in c)l[t]=(0,i.resolveMotionValue)(c[t]);let{initial:d,animate:u}=t,h=(0,s.isControllingVariants)(t),p=(0,s.isVariantNode)(t);e&&p&&!h&&!1!==t.inherit&&(void 0===d&&(d=e.initial),void 0===u&&(u=e.animate));let f=!!r&&!1===r.initial,m=(f=f||!1===d)?u:d;if(m&&"boolean"!=typeof m&&!(0,n.isAnimationControls)(m)){let e=Array.isArray(m)?m:[m];for(let i=0;i<e.length;i++){let s=(0,a.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=f?e.length-1:0;e=e[t]}null!==e&&(l[t]=e)}for(let e in t)l[e]=t[e]}}}return l}(r,o,l,t),renderState:e()}})(t,e,u,h);
11return d?p():(0,c.useConstant)(p)};var u=t.i(28235);let h=d({scrapeMotionValuesFromProps:e.scrapeHTMLMotionValuesFromProps,createRenderState:u.createHtmlRenderState});t.s(["useHTMLVisualState",()=>h],18110);var p=t.i(49276),p=p,f=t.i(89124);let m=d({scrapeMotionValuesFromProps:p.scrapeMotionValuesFromProps,createRenderState:f.createSvgRenderState});t.s(["useSVGVisualState",()=>m],61080)},83896,99991,81103,7572,32914,22469,43392,t=>{"use strict";var e=t.i(71188);let i={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"]},s=!1;function n(){return!function(){if(s)return;let t={};for(let e in i)t[e]={isEnabled:t=>i[e].some(e=>!!t[e])};(0,e.setFeatureDefinitions)(t),s=!0}(),(0,e.getFeatureDefinitions)()}function a(t){let i=n();for(let e in t)i[e]={...i[e],...t[e]};(0,e.setFeatureDefinitions)(i)}t.s(["getInitializedFeatureDefinitions",()=>n],83896),t.s(["loadFeatures",()=>a],99991);let r=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",()=>r],81103);var o=t.i(91788);function l(t,e,i){let s=(0,o.useRef)(i);(0,o.useInsertionEffect)(()=>{s.current=i});let n=(0,o.useRef)(null);return(0,o.useCallback)(i=>{i&&t.onMount?.(i),e&&(i?e.mount(i):e.unmount());let a=s.current;if("function"==typeof a)if(i){let t=a(i);"function"==typeof t&&(n.current=t)}else n.current?(n.current(),n.current=null):a(i);else a&&(a.current=i)},[e])}t.s(["useMotionRef",()=>l],7572);let c="data-"+(0,t.i(46768).camelToDash)("framerAppearId");t.s(["optimizedAppearDataAttribute",()=>c],32914);let d=(0,o.createContext)({});function u(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["SwitchLayoutGroupContext",()=>d],22469),t.s(["isRefObject",()=>u],43392)},95555,56888,64699,94364,31234,27524,4681,32486,55023,61064,54833,95129,91424,48544,61263,30519,67798,88414,51502,27191,78780,89784,26470,88975,98700,1432,t=>{"use strict";let e;t.i(50461);var i=t.i(91398),s=t.i(91788),n=t.i(11535),a=t.i(64854),r=t.i(12600),o=t.i(64357),l=t.i(86649),c=t.i(38777),d=t.i(4606),u=t.i(18110),h=t.i(61080),p=t.i(46628),f=t.i(83896),m=t.i(99991),g=t.i(81103),v=t.i(7572),y=t.i(32914),b=t.i(62946),x=t.i(22469),w=t.i(43392),_=t.i(39016);function P(t,{forwardMotionProps:e=!1,type:k}={},C,S){C&&(0,m.loadFeatures)(C);let M=k?"svg"===k:(0,d.isSVGComponent)(t),T=M?h.useSVGVisualState:u.useHTMLVisualState;function E(d,u){let h,m={...(0,s.useContext)(r.MotionConfigContext),...d,layoutId:function({layoutId:t}){let e=(0,s.useContext)(n.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(d)},{isStatic:g}=m,P=(0,l.useCreateMotionContext)(d),k=T(d,g);if(!g&&p.isBrowser){(0,s.useContext)(a.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=(0,f.getInitializedFeatureDefinitions)();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(m);h=e.MeasureLayout,P.visualElement=function(t,e,i,n,l,c){let{visualElement:d}=(0,s.useContext)(o.MotionContext),u=(0,s.useContext)(a.LazyContext),h=(0,s.useContext)(b.PresenceContext),p=(0,s.useContext)(r.MotionConfigContext).reducedMotion,f=(0,s.useRef)(null),m=(0,s.useRef)(!1);n=n||u.renderer,!f.current&&n&&(f.current=n(t,{visualState:e,parent:d,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p,isSVG:c}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let g=f.current,v=(0,s.useContext)(x.SwitchLayoutGroupContext);g&&!g.projection&&l&&("html"===g.type||"svg"===g.type)&&function(t,e,i,s){let{layoutId:n,layout:a,drag:r,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:a,alwaysMeasureLayout:!!r||o&&(0,w.isRefObject)(o),visualElement:t,animationType:"string"==typeof a?a:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:l,layoutRoot:c})}(f.current,i,l,v);let P=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{g&&P.current&&g.update(i,h)});let k=i[y.optimizedAppearDataAttribute],C=(0,s.useRef)(!!k&&!window.MotionHandoffIsComplete?.(k)&&window.MotionHasOptimisedAnimation?.(k));return(0,_.useIsomorphicLayoutEffect)(()=>{m.current=!0,g&&(P.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),C.current&&g.animationState&&g.animationState.animateChanges())}),(0,s.useEffect)(()=>{g&&(!C.current&&g.animationState&&g.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(k)}),C.current=!1),g.enteringChildren=void 0)}),g}(t,k,m,S,e.ProjectionNode,M)}return(0,i.jsxs)(o.MotionContext.Provider,{value:P,children:[h&&P.visualElement?(0,i.jsx)(h,{visualElement:P.visualElement,...m}):null,(0,c.useRender)(t,d,(0,v.useMotionRef)(k,P.visualElement,u),k,g,e,M)]})}E.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let D=(0,s.forwardRef)(E);return D[g.motionComponentSymbol]=t,D}function k(t,e){if("u"<typeof Proxy)return P;let i=new Map,s=(i,s)=>P(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,a)=>"create"===a?s:(i.has(a)||i.set(a,P(a,void 0,t,e)),i.get(a))})}t.s(["createMotionProxy",()=>k],95555);class C{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",()=>C],56888);var S=t.i(801);function M(t,e,i){let s=t.getProps();return(0,S.resolveVariantFromProps)(s,e,void 0!==i?i:s.custom,t)}function T(t,e){return t?.[e]??t?.default??t}t.s(["getValueTransition",()=>T],64699);var E=t.i(51233),D=t.i(83026);let R=t=>Array.isArray(t);function O(t,e){let{transitionEnd:i={},transition:s={},...n}=M(t,e)||{};for(let e in n={...n,...i}){var a;let i=R(a=n[e])?a[a.length-1]||0:a;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,D.motionValue)(i))}}
11t.s(["setTarget",()=>O],94364);var z=t.i(50180),A=t.i(65907);function V(t,e){let i=t.getValue("willChange");if((0,A.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&z.MotionGlobalConfig.WillChange){let i=new z.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function j(t){return t.props[y.optimizedAppearDataAttribute]}t.s(["getOptimisedAppearId",()=>j],31234);let L=t=>1e3*t,I=t=>t/1e3;t.s(["millisecondsToSeconds",()=>I,"secondsToMilliseconds",()=>L],27524);var B=t.i(44063),F=t.i(86791);let N=(t,e)=>i=>e(t(i)),$=(...t)=>t.reduce(N);t.s(["pipe",()=>$],4681);var U=t.i(71955);let H={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",()=>H],32486);var W=t.i(88905),q=t.i(19744),G=t.i(13953),Y=t.i(3595),X=t.i(54511),K=t.i(98125);function Z(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var Q=t.i(93959);function J(t,e){return i=>i>0?e:t}var tt=t.i(66651);let te=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},ti=[X.hex,Q.rgba,K.hsla];function ts(t){let e=ti.find(e=>e.test(t));if((0,W.warning)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===K.hsla&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,a=0,r=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,o=2*i-s;n=Z(o,s,t+1/3),a=Z(o,s,t),r=Z(o,s,t-1/3)}else n=a=r=i;return{red:Math.round(255*n),green:Math.round(255*a),blue:Math.round(255*r),alpha:s}}(i)),i}let tn=(t,e)=>{let i=ts(t),s=ts(e);if(!i||!s)return J(t,e);let n={...i};return t=>(n.red=te(i.red,s.red,t),n.green=te(i.green,s.green,t),n.blue=te(i.blue,s.blue,t),n.alpha=(0,tt.mixNumber)(i.alpha,s.alpha,t),Q.rgba.transform(n))},ta=new Set(["none","hidden"]);function tr(t,e){return i=>(0,tt.mixNumber)(t,e,i)}function to(t){return"number"==typeof t?tr:"string"==typeof t?(0,q.isCSSVariableToken)(t)?J:G.color.test(t)?tn:td:Array.isArray(t)?tl:"object"==typeof t?G.color.test(t)?tn:tc:J}function tl(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>to(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function tc(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=to(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let td=(t,e)=>{let i=Y.complex.createTransformer(e),s=(0,Y.analyseComplexValue)(t),n=(0,Y.analyseComplexValue)(e);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return(0,W.warning)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),J(t,e);if(ta.has(t)&&!n.values.length||ta.has(e)&&!s.values.length)return ta.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return $(tl(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let a=e.types[n],r=t.indexes[a][s[a]],o=t.values[r]??0;i[n]=o,s[a]++}return i}(s,n),n.values),i)};function tu(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,tt.mixNumber)(t,e,i):to(t)(t,e)}var th=t.i(62448);let tp=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>th.frame.update(e,t),stop:()=>(0,th.cancelFrame)(e),now:()=>th.frameData.isProcessing?th.frameData.timestamp:F.time.now()}},tf=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`};function tm(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}var tg=t.i(50833);function tv(t,e,i){let s=Math.max(e-5,0);return(0,tg.velocityPerSecond)(i-t(s),e-s)}let ty=.01,tb=2,tx=.005,tw=.5;function t_(t,e){return t*Math.sqrt(1-e*e)}let tP=["duration","bounce"],tk=["stiffness","damping","mass"];function tC(t,e){return e.some(e=>void 0!==t[e])}function tS(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:a}=s,r=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:r},{stiffness:c,damping:d,mass:u,duration:h,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tC(t,tk)&&tC(t,tP))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,U.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,a;(0,W.warning)(t<=L(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=(0,U.clamp)(.05,1,r),t=(0,U.clamp)(.01,10,I(t)),r<1?(n=e=>{let s=e*r,n=s*t;return .001-(s-i)/t_(e,r)*Math.exp(-n)},a=e=>{let s=e*r*t,a=Math.pow(r,2)*Math.pow(e,2)*t,o=Math.exp(-s),l=t_(Math.pow(e,2),r);return(s*i+i-a)*o*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),a=e=>t*t*(i-e)*Math.exp(-e*t));
11let o=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,a,5/t);if(t=L(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*s;return{stiffness:e,damping:2*r*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-I(s.velocity||0)}),m=p||0,g=d/(2*Math.sqrt(c*u)),v=o-r,y=I(Math.sqrt(c/u)),b=5>Math.abs(v);if(n||(n=b?ty:tb),a||(a=b?tx:tw),g<1){let t=t_(y,g);i=e=>o-Math.exp(-g*y*e)*((m+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>o-Math.exp(-y*t)*(v+(m+y*v)*t);else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*y*e),s=Math.min(t*e,300);return o-i*((m+g*y*v)*Math.sinh(s)+t*v*Math.cosh(s))/t}}let x={calculatedDuration:f&&h||null,next:t=>{let e=i(t);if(f)l.done=t>=h;else{let s=0===t?m:0;g<1&&(s=0===t?L(m):tv(i,t,e));let r=Math.abs(o-e)<=a;l.done=Math.abs(s)<=n&&r}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(tm(x),2e4),e=tf(e=>x.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return x}function tM({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:r,min:o,max:l,restDelta:c=.5,restSpeed:d}){let u,h,p=t[0],f={done:!1,value:p},m=i*e,g=p+m,v=void 0===r?g:r(g);v!==g&&(m=v-p);let y=t=>-m*Math.exp(-t/s),b=t=>v+y(t),x=t=>{let e=y(t),i=b(t);f.done=Math.abs(e)<=c,f.value=f.done?v:i},w=t=>{let e;if(e=f.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;u=t,h=tS({keyframes:[f.value,(i=f.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:tv(b,t,f.value),damping:n,stiffness:a,restDelta:c,restSpeed:d})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(h||void 0!==u||(e=!0,x(t),w(t)),void 0!==u&&t>=u)?h.next(t-u):(e||x(t),f)}}}tS.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(tm(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:I(n)}}(t,100,tS);return t.ease=e.ease,t.duration=L(e.duration),t.type="keyframes",t};let tT=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tE(t,e,i,s){return t===e&&i===s?B.noop:n=>0===n||1===n?n:tT(function(t,e,i,s,n){let a,r,o=0;do(a=tT(r=e+(i-e)/2,s,n)-t)>0?i=r:e=r;while(Math.abs(a)>1e-7&&++o<12)return r}(n,0,1,t,i),e,s)}let tD=tE(.42,0,1,1),tR=tE(0,0,.58,1),tO=tE(.42,0,.58,1),tz=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tA=t=>e=>1-t(1-e),tV=tE(.33,1.53,.69,.99),tj=tA(tV),tL=tz(tj),tI=t=>(t*=2)<1?.5*tj(t):.5*(2-Math.pow(2,-10*(t-1))),tB=t=>1-Math.sin(Math.acos(t)),tF=tA(tB),tN=tz(tB);t.s(["circIn",()=>tB,"circInOut",()=>tN,"circOut",()=>tF],55023);let t$=t=>Array.isArray(t)&&"number"==typeof t[0],tU={linear:B.noop,easeIn:tD,easeInOut:tO,easeOut:tR,circIn:tB,circInOut:tN,circOut:tF,backIn:tj,backInOut:tL,backOut:tV,anticipate:tI},tH=t=>{if(t$(t)){(0,W.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return tE(e,i,s,n)}return"string"==typeof t?((0,W.invariant)(void 0!==tU[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tU[t]):t},tW=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};function tq(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let a=t.length;if((0,W.invariant)(a===e.length,"Both input and output ranges must be the same length","range-length"),1===a)return()=>e[0];if(2===a&&e[0]===e[1])return()=>e[1];let r=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let s=[],n=i||z.MotionGlobalConfig.mix||tu,a=t.length-1;for(let i=0;i<a;i++){let a=n(t[i],t[i+1]);e&&(a=$(Array.isArray(e)?e[i]||B.noop:e,a)),s.push(a)}return s}(e,s,n),l=o.length,c=i=>{if(r&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=tW(t[s],t[s+1],i);return o[s](n)};return i?e=>c((0,U.clamp)(t[0],t[a-1],e)):c}function tG(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=tW(0,e,s);t.push((0,tt.mixNumber)(i,1,n))}}(e,t.length-1),e}function tY({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(tH):tH(s),r={done:!1,value:e[0]}
11,o=tq((n=i&&i.length===e.length?i:tG(e),n.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||tO).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(r.value=o(e),r.done=e>=t,r)}}t.s(["progress",()=>tW],61064),t.s(["interpolate",()=>tq],54833),t.s(["defaultOffset",()=>tG],95129);let tX=t=>null!==t;function tK(t,{repeat:e,repeatType:i="loop"},s,n=1){let a=t.filter(tX),r=n<0||e&&"loop"!==i&&e%2==1?0:a.length-1;return r&&void 0!==s?s:a[r]}let tZ={decay:tM,inertia:tM,tween:tY,keyframes:tY,spring:tS};function tQ(t){"string"==typeof t.type&&(t.type=tZ[t.type])}class tJ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t0=t=>t/100;class t1 extends tJ{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==F.time.now()&&this.tick(F.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},H.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tQ(t);let{type:e=tY,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:a=0}=t,{keyframes:r}=t,o=e||tY;o!==tY&&"number"!=typeof r[0]&&(this.mixKeyframes=$(t0,tu(r[0],r[1])),r=[0,100]);let l=o({...t,keyframes:r});"mirror"===n&&(this.mirroredGenerator=o({...t,keyframes:[...r].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=tm(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:s,mixKeyframes:n,mirroredGenerator:a,resolvedDuration:r,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:c,repeat:d,repeatType:u,repeatDelay:h,type:p,onUpdate:f,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let y=this.currentTime,b=i;if(d){let t=Math.min(this.currentTime,s)/r,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===u?(i=1-i,h&&(i-=h/r)):"mirror"===u&&(b=a)),y=(0,U.clamp)(0,1,i)*r}let x=v?{done:!1,value:c[0]}:b.next(y);n&&(x.value=n(x.value));let{done:w}=x;v||null===o||(w=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return _&&p!==tM&&(x.value=tK(c,this.options,m,this.speed)),f&&f(x.value),_&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return I(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+I(t)}get time(){return I(this.currentTime)}set time(t){t=L(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(F.time.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=I(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tp,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(F.time.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,H.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var t2=t.i(46164);function t5(t){let e;return()=>(void 0===e&&(e=t()),e)}let t3=t5(()=>void 0!==window.ScrollTimeline);t.s(["supportsScrollTimeline",()=>t3],91424);var t6=t.i(42827);let t4={},t8=(e=t5(()=>{try{document.createElement("div").animate({opacity:0}
11,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>t4.linearEasing??e()),t9=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,t7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t9([0,.65,.55,1]),circOut:t9([.55,0,1,.45]),backIn:t9([.31,.01,.66,-.59]),backOut:t9([.33,1.53,.69,.99])};function et(t){return"function"==typeof t&&"applyToOptions"in t}class ee extends tJ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:a=!1,finalKeyframe:r,onComplete:o}=t;this.isPseudoElement=!!n,this.allowFlatten=a,this.options=t,(0,W.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return et(t)&&t8()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:a=0,repeatType:r="loop",ease:o="easeOut",times:l}={},c){let d={[e]:i};l&&(d.offset=l);let u=function t(e,i){if(e)return"function"==typeof e?t8()?tf(e,i):"ease-out":t$(e)?t9(e):Array.isArray(e)?e.map(e=>t(e,i)||t7.easeOut):t7[e]}(o,n);Array.isArray(u)&&(d.easing=u),t6.statsBuffer.value&&H.waapi++;let h={delay:s,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:"reverse"===r?"alternate":"normal"};c&&(h.pseudoElement=c);let p=t.animate(d,h);return t6.statsBuffer.value&&p.finished.finally(()=>{H.waapi--}),p}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=tK(s,this.options,r,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return I(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+I(t)}get time(){return I(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=L(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t3())?(this.animation.timeline=t,B.noop):e(this)}}let ei={anticipate:tI,backInOut:tL,circInOut:tN};class es extends ee{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ei&&(t.ease=ei[t.ease])}(t),tQ(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...a}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let r=new t1({...a,autoplay:!1}),o=Math.max(10,F.time.now()-this.startTime),l=(0,U.clamp)(0,10,o-10);e.setWithVelocity(r.sample(Math.max(0,o-l)).value,r.sample(o).value,l),r.stop()}}let en=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(Y.complex.test(t)||"0"===t)&&!t.startsWith("url("));function ea(t){t.duration=0,t.type="keyframes"}let er=new Set(["opacity","clipPath","filter","transform"]),eo=t5(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class el extends tJ{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:a="loop",keyframes:r,name:o,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=F.time.now();const u={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:a,name:o,motionValue:l,element:c,...d},h=c?.KeyframeResolver||t2.KeyframeResolver;this.keyframeResolver=new h(r,(t,e,i)=>this.onKeyframesResolved(t,e,u,!i),o,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:n,type:a,velocity:r,delay:o,isHandoff:l,onUpdate:c}=i;
11this.resolvedAt=F.time.now(),!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let a=t[t.length-1],r=en(n,e),o=en(a,e);return(0,W.warning)(r===o,`You are trying to animate ${e} from "${n}" to "${a}". "${r?a:n}" is not an animatable value.`,"value-not-animatable"),!!r&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||et(i))&&s)}(t,n,a,r)&&((z.MotionGlobalConfig.instantAnimations||!o)&&c?.(tK(t,i,e)),t[0]=t[t.length-1],ea(i),i.repeat=0);let d={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},u=!l&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:a,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return eo()&&i&&er.has(i)&&("transform"!==i||!l)&&!o&&!s&&"mirror"!==n&&0!==a&&"inertia"!==r}(d),h=d.motionValue?.owner?.current,p=u?new es({...d,element:h}):new t1(d);p.finished.then(()=>{this.notifyFinished()}).catch(B.noop),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,t2.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var ec=t.i(55810);let ed={type:"spring",stiffness:500,damping:25,restSpeed:10},eu={type:"keyframes",duration:.8},eh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ep=t=>null!==t,ef=(t,e,i,s={},n,a)=>r=>{let o=T(s,t)||{},l=o.delay||s.delay||0,{elapsed:c=0}=s;c-=L(l);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-c,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{r(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:a?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:a,repeatType:r,repeatDelay:o,from:l,elapsed:c,...d}){return!!Object.keys(d).length}(o)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?eu:ec.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ed:eh)(t,d)),d.duration&&(d.duration=L(d.duration)),d.repeatDelay&&(d.repeatDelay=L(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let u=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(ea(d),0===d.delay&&(u=!0)),(z.MotionGlobalConfig.instantAnimations||z.MotionGlobalConfig.skipAnimations)&&(u=!0,ea(d),d.delay=0),d.allowFlatten=!o.type&&!o.ease,u&&!a&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(ep),a=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[a]}(d.keyframes,o);if(void 0!==t)return void th.frame.update(()=>{d.onUpdate(t),d.onComplete()})}return o.isSync?new t1(d):new el(d)};function em(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:a=t.getDefaultTransition(),transitionEnd:r,...o}=e,l=a?.reduceMotion;s&&(a=s);let c=[],d=n&&t.animationState&&t.animationState.getState()[n];for(let e in o){let s=t.getValue(e,t.latestValues[e]??null),n=o[e];if(void 0===n||d&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(d,e))continue;let r={delay:i,...T(a||{},e)},u=s.get();if(void 0!==u&&!s.isAnimating&&!Array.isArray(n)&&n===u&&!r.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let i=j(t);if(i){let t=window.MotionHandoffAnimation(i,e,th.frame);null!==t&&(r.startTime=t,h=!0)}}V(t,e);let p=l??t.shouldReduceMotion;s.start(ef(e,s,n,p&&E.positionalKeys.has(e)?{type:!1}:r,t,h));let f=s.animation;f&&c.push(f)}return r&&Promise.all(c).then(()=>{th.frame.update(()=>{r&&O(t,r)})}),c}function eg(t,e,i,s=0,n=1){let a=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,o=(r-1)*s;return"function"==typeof i?i(a,r):1===n?a*s:o-a*s}function ev(t,e,i={}){let s=M(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let a=s?()=>Promise.all(em(t,s,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:a=0,staggerChildren:r,staggerDirection:o}=n;
11return function(t,e,i=0,s=0,n=0,a=1,r){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(ev(l,e,{...r,delay:i+("function"==typeof s?0:s)+eg(t.variantChildren,l,s,n,a)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,s,a,r,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([a(),r(i.delay)]);{let[t,e]="beforeChildren"===o?[a,r]:[r,a];return t().then(()=>e())}}function ey(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>ev(t,e,i)));else if("string"==typeof e)s=ev(t,e,i);else{let n="function"==typeof e?M(t,e,i.custom):e;s=Promise.all(em(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}t.s(["animateMotionValue",()=>ef],48544),t.s(["animateVisualElement",()=>ey],61263);var eb=t.i(19708),ex=t.i(47477);let ew=ex.variantProps.length;var e_=t.i(90516);function eP(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let ek=[...ex.variantPriorityOrder].reverse(),eC=ex.variantPriorityOrder.length;function eS(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eM(){return{animate:eS(!0),whileInView:eS(),whileHover:eS(),whileTap:eS(),whileDrag:eS(),whileFocus:eS(),exit:eS()}}let eT=0,eE={animation:{Feature:class extends C{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>ey(t,e,i))),i=eM(),s=!0,n=e=>(i,s)=>{let n=M(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function a(a){let{props:r}=t,o=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ew;t++){let s=ex.variantProps[t],n=e.props[s];((0,eb.isVariantLabel)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},l=[],c=new Set,d={},u=1/0;for(let e=0;e<eC;e++){var h,p;let f=ek[e],m=i[f],g=void 0!==r[f]?r[f]:o[f],v=(0,eb.isVariantLabel)(g),y=f===a?m.isActive:null;!1===y&&(u=e);let b=g===o[f]&&g!==r[f]&&v;if(b&&s&&t.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...d},!m.isActive&&null===y||!g&&!m.prevProp||(0,e_.isAnimationControls)(g)||"boolean"==typeof g)continue;let x=(h=m.prevProp,"string"==typeof(p=g)?p!==h:!!Array.isArray(p)&&!eP(p,h)),w=x||f===a&&m.isActive&&!b&&v||e>u&&v,_=!1,P=Array.isArray(g)?g:[g],k=P.reduce(n(f),{});!1===y&&(k={});let{prevResolvedValues:C={}}=m,S={...C,...k},T=e=>{w=!0,c.has(e)&&(_=!0,c.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in S){let e=k[t],i=C[t];if(!d.hasOwnProperty(t))(R(e)&&R(i)?eP(e,i):e===i)?void 0!==e&&c.has(t)?T(t):m.protectedKeys[t]=!0:null!=e?T(t):c.add(t)}m.prevProp=g,m.prevResolvedValues=k,m.isActive&&(d={...d,...k}),s&&t.blockInitialAnimation&&(w=!1);let E=b&&x,D=!E||_;w&&D&&l.push(...P.map(e=>{let i={type:f};if("string"==typeof e&&s&&!E&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=M(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=eg(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(c.size){let e={};if("boolean"!=typeof r.initial){let i=M(t,Array.isArray(r.initial)?r.initial[0]:r.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),l.push({animation:e})}let f=!!l.length;return s&&(!1===r.initial||r.initial===r.animate)&&!t.manuallyAnimateOnMount&&(f=!1),s=!1,f?e(l):Promise.resolve()}return{animateChanges:a,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=a(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=eM()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,e_.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends C{constructor(){super(...arguments),this.id=eT++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>
11{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};t.s(["animations",()=>eE],30519);var eD=t.i(22405);function eR(t){return[t("x"),t("y")]}t.s(["eachAxis",()=>eR],67798);var eO=t.i(4955),ez=t.i(60541);let eA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function eV(t){return eA.has(t.tagName)||!0===t.isContentEditable}function ej(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}t.s(["isElementKeyboardAccessible",()=>eV],88414),t.s(["addDomEvent",()=>ej],51502);let eL={x:!1,y:!1};function eI(){return eL.x||eL.y}t.s(["isDragActive",()=>eI,"isDragging",()=>eL],27191);var eB=t.i(21006);function eF(t){return t.max-t.min}function eN(t,e,i){return Math.abs(t-e)<=i}function e$(t,e,i,s=.5){t.origin=s,t.originPoint=(0,tt.mixNumber)(e.min,e.max,t.origin),t.scale=eF(i)/eF(e),t.translate=(0,tt.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function eU(t,e,i,s){e$(t.x,e.x,i.x,s?s.originX:void 0),e$(t.y,e.y,i.y,s?s.originY:void 0)}function eH(t,e,i){t.min=i.min+e.min,t.max=t.min+eF(e)}function eW(t,e,i){eH(t.x,e.x,i.x),eH(t.y,e.y,i.y)}function eq(t,e,i){t.min=e.min-i.min,t.max=t.min+eF(e)}function eG(t,e,i){eq(t.x,e.x,i.x),eq(t.y,e.y,i.y)}t.s(["calcBoxDelta",()=>eU,"calcLength",()=>eF,"calcRelativeBox",()=>eW,"calcRelativePosition",()=>eG,"isNear",()=>eN],78780);let eY=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function eX(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",()=>eY],89784);let eK=t=>e=>eY(e)&&t(e,eX(e));function eZ(t,e,i,s){return ej(t,e,eK(i),s)}t.s(["addPointerInfo",()=>eK,"extractEventInfo",()=>eX],26470);let eQ=({current:t})=>t?t.ownerDocument.defaultView:null,eJ=(t,e)=>Math.abs(t-e),e0=new Set(["auto","scroll"]);class e1{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:a=3,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=e3(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(eJ(t.x,e.x)**2+eJ(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:a}=i,{timestamp:r}=th.frameData;this.history.push({...a,timestamp:r});let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=e2(e,this.transformPagePoint),th.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=e3("pointercancel"===t.type?this.lastMoveEventInfo:e2(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,a),s&&s(t,a)},!eY(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=a,this.contextWindow=s||window;const o=e2(eX(t),this.transformPagePoint),{point:l}=o,{timestamp:c}=th.frameData;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=e;d&&d(t,e3(o,this.history)),this.removeListeners=$(eZ(this.contextWindow,"pointermove",this.handlePointerMove),eZ(this.contextWindow,"pointerup",this.handlePointerUp),eZ(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(e0.has(t.overflowX)||e0.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),th.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,th.cancelFrame)(this.updatePoint)}}function e2(t,e){return e?{point:e(t.point)}:t}function e5(t,e){return{x:t.x-e.x,y:t.y-e.y}}function e3({point:t},e){return{point:t,delta:e5(t,e6(e)),offset:e5(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=e6(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>L(.1)));)i--;if(!s)return{x:0,y:0};let a=I(n.timestamp-s.timestamp);if(0===a)return{x:0,y:0};let r={x:(n.x-s.x)/a,y:(n.y-s.y)/a};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,.1)}}function e6(t){return t[t.length-1]}function e4(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function e8(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function e9(t,e,i){return{min:e7(t,e),max:e7(t,i)}}function e7(t,e){return"number"==typeof t?t:t[e]||0}let it=new WeakMap;class ie{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,eD.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e?(this.stopAnimation(),this.snapToCursor(eX(t).point)):this.pauseAnimation()},a=(t,e)=>{this.stopAnimation();let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(eL[t])return null;else return eL[t]=!0,()=>{eL[t]=!1};return eL.x||eL.y?null:(eL.x=eL.y=!0,()=>{eL.x=eL.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eR(t=>{let e=this.getAxisMotionValue(t).get()||0;if(eB.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=eF(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&th.frame.postRender(()=>n(t,e)),V(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},r=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:a}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(r),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),a&&a(t,e)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>eR(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:c}=this.getProps();
11this.panSession=new e1(t,{onSessionStart:n,onStart:a,onMove:r,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:eQ(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:a}=s;this.startAnimation(a);let{onDragEnd:r}=this.getProps();r&&th.frame.postRender(()=>r(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!ii(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),a=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(a=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,tt.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,tt.mixNumber)(i,t,s.max):Math.min(t,i)),t}(a,this.constraints[t],this.elastic[t])),n.set(a)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&(0,w.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:e4(t.x,i,n),y:e4(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:e9(t,"left","right"),y:e9(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eR(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,w.isRefObject)(e))return!1;let s=e.current;(0,W.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let a=(0,eO.measurePageBox)(s,n.root,this.visualElement.getTransformPagePoint()),r=(t=n.layout.layoutBox,{x:e8(t.x,a.x),y:e8(t.y,a.y)});if(i){let t=i((0,ez.convertBoxToBoundingBox)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,ez.convertBoundingBoxToBox)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:a,onDragTransitionEnd:r}=this.getProps(),o=this.constraints||{};return Promise.all(eR(r=>{if(!ii(r,e,this.currentDirection))return;let l=o&&o[r]||{};a&&(l={min:0,max:0});let c={type:"inertia",velocity:i?t[r]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(r,c)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return V(this.visualElement,t),i.start(ef(t,i,0,e,this.visualElement,!1))}stopAnimation(){eR(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eR(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){eR(e=>{let{drag:i}=this.getProps();if(!ii(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:a}=s.layout.layoutBox[e],r=n.get()||0;n.set(t[e]-(0,tt.mixNumber)(i,a,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,w.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};eR(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let a,r,o,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],a=.5,r=eF(i),(o=eF(n))>r?a=tW(n.min,n.max-r,i.min):r>o&&(a=tW(i.min,i.max-o,n.min)),(0,U.clamp)(0,1,a))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),eR(e=>{if(!ii(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:a}=this.constraints[e];i.set((0,tt.mixNumber)(n,a,s[e]))})}addListeners(){if(!this.visualElement.current)return;it.set(this.visualElement,this);let t=this.visualElement.current,e=eZ(t,"pointerdown",e=>{let{drag:i,dragListener:s=!0}
11=this.getProps(),n=e.target,a=n!==t&&eV(n);i&&s&&!a&&this.start(e)}),i=()=>{let{dragConstraints:t}=this.getProps();(0,w.isRefObject)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,n=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),th.frame.read(i);let a=ej(window,"resize",()=>this.scalePositionWithinConstraints()),r=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eR(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),e(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:a=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:a,dragMomentum:r}}}function ii(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class is extends C{constructor(t){super(t),this.removeGroupControls=B.noop,this.removeListeners=B.noop,this.controls=new ie(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||B.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}t.s(["DragGesture",()=>is],88975);let ia=t=>(e,i)=>{t&&th.frame.postRender(()=>t(e,i))};class ir extends C{constructor(){super(...arguments),this.removePointerDownListener=B.noop}onPointerDown(t){this.session=new e1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eQ(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:ia(t),onStart:ia(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&th.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=eZ(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",()=>ir],98700);let io={hasAnimatedSinceResize:!0,hasEverUpdated:!1};t.s(["globalProjectionState",()=>io],1432)},24505,10389,29600,t=>{"use strict";var e=t.i(91398),i=t.i(1432),s=t.i(62448),n=t.i(33592),a=t.i(91788),r=t.i(86398),o=t.i(11535),l=t.i(22469);let c=!1;class d extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:s,layoutId:n}=this.props,{projection:a}=t;a&&(e.group&&e.group.add(a),s&&s.register&&n&&s.register(a),c&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),i.globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:a}=this.props,{projection:r}=i;return r&&(r.isPresent=a,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),c=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==a?r.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?r.promote():r.relegate()||s.frame.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),n.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;c=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function u(t){let[i,s]=(0,r.usePresence)(),n=(0,a.useContext)(o.LayoutGroupContext);return(0,e.jsx)(d,{...t,layoutGroup:n,switchLayoutGroup:(0,a.useContext)(l.SwitchLayoutGroupContext),isPresent:i,safeToRemove:s})}t.s(["MeasureLayout",()=>u],24505);var h=t.i(48544),p=t.i(83026),f=t.i(65907);function m(t,e,i){let s=(0,f.isMotionValue)(t)?t:(0,p.motionValue)(t);return s.start((0,h.animateMotionValue)("",s,e,i)),s.animation}t.s(["animateSingleValue",()=>m],10389);var g=t.i(86791);function v(t,e){let i=g.time.now(),n=({timestamp:a})=>{let r=a-i;r>=e&&((0,s.cancelFrame)(n),t(r-e))};return s.frame.setup(n,!0),()=>(0,s.cancelFrame)(n)}t.i(27524),t.s(["delay",()=>v],29600)},19655,20972,23482,98715,23147,90577,26975,t=>{"use strict";
11var e=t.i(88975),i=t.i(98700),s=t.i(24505),n=t.i(78892),a=t.i(71955),r=t.i(44063),o=t.i(10389),l=t.i(31234),c=t.i(64699),d=t.i(33592),u=t.i(86791),h=t.i(91770),p=t.i(32486),f=t.i(42827),m=t.i(29600),g=t.i(68098);function v(t){return(0,g.isObject)(t)&&"ownerSVGElement"in t}t.s(["isSVGElement",()=>v],20972);var y=t.i(66651),b=t.i(83026),x=t.i(32866),w=t.i(21006),_=t.i(61064),P=t.i(55023);let k=["TopLeft","TopRight","BottomLeft","BottomRight"],C=k.length,S=t=>"string"==typeof t?parseFloat(t):t,M=t=>"number"==typeof t||w.px.test(t);function T(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let E=R(0,.5,P.circOut),D=R(.5,.95,r.noop);function R(t,e,i){return s=>s<t?0:s>e?1:i((0,_.progress)(t,e,s))}function O(t,e){t.min=e.min,t.max=e.max}function z(t,e){O(t.x,e.x),O(t.y,e.y)}function A(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var V=t.i(81057),j=t.i(78780);function L(t,e,i,s,n){return t-=e,t=(0,V.scalePoint)(t,1/i,s),void 0!==n&&(t=(0,V.scalePoint)(t,1/n,s)),t}function I(t,e,[i,s,n],a,r){!function(t,e=0,i=1,s=.5,n,a=t,r=t){if(w.percent.test(e)&&(e=parseFloat(e),e=(0,y.mixNumber)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let o=(0,y.mixNumber)(a.min,a.max,s);t===a&&(o-=e),t.min=L(t.min,e,i,o,n),t.max=L(t.max,e,i,o,n)}(t,e[i],e[s],e[n],e.scale,a,r)}let B=["x","scaleX","originX"],F=["y","scaleY","originY"];function N(t,e,i,s){I(t.x,e,B,i?i.x:void 0,s?s.x:void 0),I(t.y,e,F,i?i.y:void 0,s?s.y:void 0)}var $=t.i(22405);function U(t){return 0===t.translate&&1===t.scale}function H(t){return U(t.x)&&U(t.y)}function W(t,e){return t.min===e.min&&t.max===e.max}function q(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function G(t,e){return q(t.x,e.x)&&q(t.y,e.y)}function Y(t){return(0,j.calcLength)(t.x)/(0,j.calcLength)(t.y)}function X(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var K=t.i(93709);class Z{constructor(){this.members=[]}add(t){(0,K.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,K.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();let s=i.options.layoutDependency,n=t.options.layoutDependency;(void 0===s||void 0===n||s!==n)&&(t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));let{crossfade:a}=t.options;!1===a&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var Q=t.i(67798);let J=(t,e)=>t.depth-e.depth;class tt{constructor(){this.children=[],this.isDirty=!1}add(t){(0,K.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,K.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(J),this.isDirty=!1,this.children.forEach(t)}}var te=t.i(35403),ti=t.i(1432),ts=t.i(62448);let tn={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ta=["","X","Y","Z"],tr=0;function to(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tl({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=tr++,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,f.statsBuffer.value&&(tn.nodes=tn.calculatedTargetDeltas=tn.calculatedProjections=0),this.nodes.forEac
11h(tu),this.nodes.forEach(ty),this.nodes.forEach(tb),this.nodes.forEach(th),f.statsBuffer.addProjectionMetrics&&f.statsBuffer.addProjectionMetrics(tn)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new n.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=v(e)&&!(v(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;ts.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==s&&(s=t,this.root.updateBlockedByResize=!0,i&&i(),i=(0,m.delay)(n,250),ti.globalProjectionState.hasAnimatedSinceResize&&(ti.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tv)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||tC,{onLayoutAnimationStart:r,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!G(this.targetLayout,s),d=!e&&i;if(this.options.layoutRoot||this.resumeFrom||d||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,c.getValueTransition)(a,"layout"),onPlay:r,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,d)}else e||tv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,ts.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tx),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,l.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",ts.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
11h(tf);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tm);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tg),this.nodes.forEach(tc),this.nodes.forEach(td)):this.nodes.forEach(tm),this.clearAllSnapshots();let t=u.time.now();ts.frameData.delta=(0,a.clamp)(0,1e3/60,t-ts.frameData.timestamp),ts.frameData.timestamp=t,ts.frameData.isProcessing=!0,ts.frameSteps.update.process(ts.frameData),ts.frameSteps.preRender.process(ts.frameData),ts.frameSteps.render.process(ts.frameData),ts.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,d.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tp),this.sharedNodes.forEach(tw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ts.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ts.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,j.calcLength)(this.snapshot.measuredBox.x)||(0,j.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,$.createBox)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!H(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,te.hasTransform)(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),tT((e=s).x),tT(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,$.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tD))){let{scroll:t}=this.root;t&&((0,V.translateAxis)(e.x,t.offset.x),(0,V.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,$.createBox)();if(z(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:a}=s;s!==this.root&&n&&a.layoutScroll&&(n.wasRoot&&z(e,t),(0,V.translateAxis)(e.x,n.offset.x),(0,V.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=(0,$.createBox)();z(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,V.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,te.hasTransform)(s.latestValues)&&(0,V.transformBox)(i,s.latestValues)}return(0,te.hasTransform)(this.latestValues)&&(0,V.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,$.createBox)();z(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,te.hasTransform)(i.latestValues))continue;(0,te.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,$.createBox)();z(s,i.measurePageBox()),N(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,te.hasTransform)(this.latestValues)&&N(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ts.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=ts.frameData.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,$.createBox)(),this.targetWithTransforms=(0,$.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,j.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):z(this.target,this.layout.layoutBox),(0,V.applyBoxDelta)(this.target,this.targetDelta)):z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),f.statsBuffer.value&&tn.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,te.hasScale)(this.parent.latestValues)||(0,te.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,$.createBox)(),this.relativeTargetOrigin=(0,$.createBox)(),(0,j.calcRelativePosition)(this.relativeTargetOrigin,e,i),z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
11if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===ts.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,r=this.treeScale.y;(0,V.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,$.createBox)());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(A(this.prevProjectionDelta.x,this.projectionDelta.x),A(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,j.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===a&&this.treeScale.y===r&&X(this.projectionDelta.x,this.prevProjectionDelta.x)&&X(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),f.statsBuffer.value&&tn.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,$.createDelta)(),this.projectionDelta=(0,$.createDelta)(),this.projectionDeltaWithTransform=(0,$.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},a={...this.latestValues},r=(0,$.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=(0,$.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,u=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(tk));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(t_(r.x,t.x,s),t_(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,p,f,m,g;(0,j.calcRelativePosition)(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=o,g=s,tP(p.x,f.x,m.x,g),tP(p.y,f.y,m.y,g),i&&(c=this.relativeTarget,h=i,W(c.x,h.x)&&W(c.y,h.y))&&(this.isProjectionDirty=!1),i||(i=(0,$.createBox)()),z(i,this.relativeTarget)}l&&(this.animationValues=a,function(t,e,i,s,n,a){n?(t.opacity=(0,y.mixNumber)(0,i.opacity??1,E(s)),t.opacityExit=(0,y.mixNumber)(e.opacity??1,0,D(s))):a&&(t.opacity=(0,y.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<C;n++){let a=`border${k[n]}Radius`,r=T(e,a),o=T(i,a);(void 0!==r||void 0!==o)&&(r||(r=0),o||(o=0),0===r||0===o||M(r)===M(o)?(t[a]=Math.max((0,y.mixNumber)(S(r),S(o),s),0),(w.percent.test(o)||w.percent.test(r))&&(t[a]+="%")):t[a]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,y.mixNumber)(e.rotate||0,i.rotate||0,s))}(a,n,this.latestValues,s,u,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,ts.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ts.frame.update(()=>{ti.globalProjectionState.hasAnimatedSinceResize=!0,p.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,b.motionValue)(0)),this.currentAnimation=(0,o.animateSingleValue)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{p.activeAnimations.layout--},onComplete:()=>{p.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&tE(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,$.createBox)();let e=(0,j.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,j.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}z(e,i),(0,V.transformBox)(e,n),(0,j.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Z),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
11return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&to("z",t,s,this.animationValues);for(let e=0;e<ta.length;e++)to(`rotate${ta[e]}`,t,s,this.animationValues),to(`skew${ta[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,x.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,x.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,te.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let a=function(t,e,i){let s="",n=t.x.translate/e.x,a=t.y.translate/e.y,r=i?.z||0;if((n||a||r)&&(s=`translate3d(${n}px, ${a}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:a,skewX:r,skewY:o}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),a&&(s+=`rotateY(${a}deg) `),r&&(s+=`skewX(${r}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(a=i(n,a)),t.transform=a;let{x:r,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*o.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,h.scaleCorrectors){if
11(void 0===n[e])continue;let{correct:i,applyTo:r,isCSSVariable:o}=h.scaleCorrectors[e],l="none"===a?n[e]:i(n[e],s);if(r){let e=r.length;for(let i=0;i<e;i++)t[r[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?(0,x.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tf),this.root.sharedNodes.clear()}}}function tc(t){t.updateLayout()}function td(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,a=e.source!==t.layout.source;"size"===n?(0,Q.eachAxis)(t=>{let s=a?e.measuredBox[t]:e.layoutBox[t],n=(0,j.calcLength)(s);s.min=i[t].min,s.max=s.min+n}):tE(n,e.layoutBox,i)&&(0,Q.eachAxis)(s=>{let n=a?e.measuredBox[s]:e.layoutBox[s],r=(0,j.calcLength)(i[s]);n.max=n.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=(0,$.createDelta)();(0,j.calcBoxDelta)(r,i,e.layoutBox);let o=(0,$.createDelta)();a?(0,j.calcBoxDelta)(o,t.applyTransform(s,!0),e.measuredBox):(0,j.calcBoxDelta)(o,i,e.layoutBox);let l=!H(r),c=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:a}=s;if(n&&a){let r=(0,$.createBox)();(0,j.calcRelativePosition)(r,e.layoutBox,n.layoutBox);let o=(0,$.createBox)();(0,j.calcRelativePosition)(o,i,a.layoutBox),G(r,o)||(c=!0),s.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tu(t){f.statsBuffer.value&&tn.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function th(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tp(t){t.clearSnapshot()}function tf(t){t.clearMeasurements()}function tm(t){t.isLayoutDirty=!1}function tg(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tv(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ty(t){t.resolveTargetDelta()}function tb(t){t.calcProjection()}function tx(t){t.resetSkewAndRotation()}function tw(t){t.removeLeadSnapshot()}function t_(t,e,i){t.translate=(0,y.mixNumber)(e.translate,0,i),t.scale=(0,y.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tP(t,e,i,s){t.min=(0,y.mixNumber)(e.min,i.min,s),t.max=(0,y.mixNumber)(e.max,i.max,s)}function tk(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tC={duration:.45,ease:[.4,0,.1,1]},tS=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tM=tS("applewebkit/")&&!tS("chrome/")?Math.round:r.noop;function tT(t){t.min=tM(t.min),t.max=tM(t.max)}function tE(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,j.isNear)(Y(e),Y(i),.2)}function tD(t){return t!==t.root&&t.scroll?.wasRoot}var tR=t.i(51502);let tO=tl({attachResizeListener:(t,e)=>(0,tR.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tz={current:void 0},tA=tl({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tz.current){let t=new tO({});t.mount(window),t.setOptions({layoutScroll:!0}),tz.current=t}return tz.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",()=>tA],23482);let tV={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tA,MeasureLayout:s.MeasureLayout}};t.s(["drag",()=>tV],19655);var tj=t.i(56888),tL=t.i(27191);function tI(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}function tB(t,e){let i=tI(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function tF(t){return!("touch"===t.pointerType||(0,tL.isDragActive)())}t.s(["resolveElements",()=>tI],98715),t.s(["setupGesture",()=>tB],23147);var tN=t.i(26470);function t$(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&ts.frame.postRender(()=>n(e,(0,tN.extractEventInfo)(e)))}class tU extends tj.Feature{mount(){let{current:t}=this.node;
11t&&(this.unmount=function(t,e,i={}){let[s,n,a]=tB(t,i),r=t=>{if(!tF(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let a=t=>{tF(t)&&(s(t),i.removeEventListener("pointerleave",a))};i.addEventListener("pointerleave",a,n)};return s.forEach(t=>{t.addEventListener("pointerenter",r,n)}),a}(t,(t,e)=>(t$(this.node,e,"Start"),t=>t$(this.node,t,"End"))))}unmount(){}}t.s(["HoverGesture",()=>tU],90577);var tH=tj,tW=t.i(4681);class tq extends tH.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tW.pipe)((0,tR.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tR.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}t.s(["FocusGesture",()=>tq],26975)},98311,t=>{"use strict";var e=t.i(14503),i=t.i(95555),s=t.i(30519),n=t.i(19655),a=t.i(90577),r=t.i(26975),o=t.i(56888),l=t.i(51723),c=t.i(27191);let d=(t,e)=>!!e&&(t===e||d(t,e.parentElement));var u=t.i(89784),h=t.i(23147),p=t.i(88414);let f=new WeakSet;function m(t){return e=>{"Enter"===e.key&&t(e)}}function g(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function v(t){return(0,u.isPrimaryPointer)(t)&&!(0,c.isDragActive)()}var y=t.i(62448),b=t.i(26470);function x(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&y.frame.postRender(()=>n(e,(0,b.extractEventInfo)(e)))}class w extends o.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,a]=(0,h.setupGesture)(t,i),r=t=>{let s=t.currentTarget;if(!v(t))return;f.add(s);let a=e(s,t),r=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),f.has(s)&&f.delete(s),v(t)&&"function"==typeof a&&a(t,{success:e})},o=t=>{r(t,s===window||s===document||i.useGlobalTarget||d(s,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",r,n),(0,l.isHTMLElement)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=m(()=>{if(f.has(i))return;g(i,"down");let t=m(()=>{g(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>g(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),(0,p.isElementKeyboardAccessible)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),a}(t,(t,e)=>(x(this.node,e,"Start"),(t,{success:e})=>x(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var _=o;let P=new WeakMap,k=new WeakMap,C=t=>{let e=P.get(t.target);e&&e(t)},S=t=>{t.forEach(C)},M={some:0,all:1};class T extends _.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:a="some",once:r}=i,o={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof a?a:M[a]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;k.has(i)||k.set(i,{});let s=k.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(S,{root:t,...e})),s[n]}(o),P.set(t,l),e.observe(t),()=>{P.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let E={inView:{Feature:T},tap:{Feature:w},focus:{Feature:r.FocusGesture},hover:{Feature:a.HoverGesture}};var D=t.i(23482),R=t.i(24505);let O={layout:{ProjectionNode:D.HTMLProjectionNode,MeasureLayout:R.MeasureLayout}},z={...s.animations,...E,...n.drag,...O},A=(0,i.createMotionProxy)(z,e.createDomVisualElement);t.s(["motion",()=>A],98311)},39809,t=>{"use strict";var e=t.i(91398),i=t.i(98817),s=t.i(98311),n=t.i(91788),a=t.i(9871
115);let r={some:0,all:1};function o({children:t,className:o,variant:l,duration:c=.4,delay:d=0,offset:u=6,direction:h="down",inView:p=!1,inViewMargin:f="-50px",blur:m="6px",...g}){let v=(0,n.useRef)(null),y=function(t,{root:e,margin:i,amount:s,once:o=!1,initial:l=!1}={}){let[c,d]=(0,n.useState)(l);return(0,n.useEffect)(()=>{if(!t.current||o&&c)return;let n={root:e&&e.current||void 0,margin:i,amount:s};return function(t,e,{root:i,margin:s,amount:n="some"}={}){let o=(0,a.resolveElements)(t),l=new WeakMap,c=new IntersectionObserver(t=>{t.forEach(t=>{let i=l.get(t.target);if(!!i!==t.isIntersecting)if(t.isIntersecting){let i=e(t.target,t);"function"==typeof i?l.set(t.target,i):c.unobserve(t.target)}else"function"==typeof i&&(i(t),l.delete(t.target))})},{root:i,rootMargin:s,threshold:"number"==typeof n?n:r[n]});return o.forEach(t=>c.observe(t)),()=>c.disconnect()}(t.current,()=>(d(!0),o?void 0:()=>d(!1)),n)},[e,t,i,o,s]),c}(v,{once:!0,margin:f}),b={hidden:{["left"===h||"right"===h?"x":"y"]:"right"===h||"down"===h?-u:u,opacity:0,filter:`blur(${m})`},visible:{["left"===h||"right"===h?"x":"y"]:0,opacity:1,filter:"blur(0px)"}};return(0,e.jsx)(i.AnimatePresence,{children:(0,e.jsx)(s.motion.div,{ref:v,initial:"hidden",animate:!p||y?"visible":"hidden",exit:"hidden",variants:l??b,transition:{delay:.04+d,duration:c,ease:"easeOut"},className:o,...g,children:t})})}t.s(["BlurFade",()=>o],39809)},17549,t=>{"use strict";var e=t.i(91788),i=t.i(57006),s=t.i(91398),n=Symbol.for("react.lazy"),a=e[" use ".trim().toString()];function r(t){var e;return null!=t&&"object"==typeof t&&"$$typeof"in t&&t.$$typeof===n&&"_payload"in t&&"object"==typeof(e=t._payload)&&null!==e&&"then"in e}function o(t){var n;let o,l=(n=t,(o=e.forwardRef((t,s)=>{let{children:n,...o}=t;if(r(n)&&"function"==typeof a&&(n=a(n._payload)),e.isValidElement(n)){var l;let t,a,r=(l=n,(a=(t=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?l.ref:(a=(t=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?l.props.ref:l.props.ref||l.ref),c=function(t,e){let i={...e};for(let s in e){let n=t[s],a=e[s];/^on[A-Z]/.test(s)?n&&a?i[s]=(...t)=>{let e=a(...t);return n(...t),e}:n&&(i[s]=n):"style"===s?i[s]={...n,...a}:"className"===s&&(i[s]=[n,a].filter(Boolean).join(" "))}return{...t,...i}}(o,n.props);return n.type!==e.Fragment&&(c.ref=s?(0,i.composeRefs)(s,r):r),e.cloneElement(n,c)}return e.Children.count(n)>1?e.Children.only(null):null})).displayName=`${n}.SlotClone`,o),c=e.forwardRef((t,i)=>{let{children:n,...o}=t;r(n)&&"function"==typeof a&&(n=a(n._payload));let c=e.Children.toArray(n),u=c.find(d);if(u){let t=u.props.children,n=c.map(i=>i!==u?i:e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null);return(0,s.jsx)(l,{...o,ref:i,children:e.isValidElement(t)?e.cloneElement(t,void 0,n):null})}return(0,s.jsx)(l,{...o,ref:i,children:n})});return c.displayName=`${t}.Slot`,c}var l=o("Slot"),c=Symbol("radix.slottable");function d(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===c}t.s(["Slot",()=>l,"createSlot",()=>o])},39310,t=>{"use strict";var e=t.i(91398),i=t.i(91788),s=t.i(17549),n=t.i(48684),a=t.i(53533);let r=(0,n.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=i.forwardRef(({className:t,variant:i,size:n,asChild:o=!1,...l},c)=>{let d=o?s.Slot:"button";return(0,e.jsx)(d,{className:(0,a.cn)(r({variant:i,size:n,className:t})),ref:c,...l})});o.displayName="Button",t.s(["Button",()=>o,"buttonVariants",()=>r])},26119,t=>{"use strict";var e=t.i(91398),i=t.i(91788),s=t.i(53533);let n=i.forwardRef(({className:t,...i},n)=>(0,e.jsx)("div",{ref:n,className:(0,s.cn)("bg-card text-card-foreground rounded-xl border shadow",t),...i}));
11n.displayName="Card";let a=i.forwardRef(({className:t,...i},n)=>(0,e.jsx)("div",{ref:n,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",t),...i}));a.displayName="CardHeader";let r=i.forwardRef(({className:t,...i},n)=>(0,e.jsx)("div",{ref:n,className:(0,s.cn)("leading-none font-semibold tracking-tight",t),...i}));r.displayName="CardTitle",i.forwardRef(({className:t,...i},n)=>(0,e.jsx)("div",{ref:n,className:(0,s.cn)("text-muted-foreground text-sm",t),...i})).displayName="CardDescription";let o=i.forwardRef(({className:t,...i},n)=>(0,e.jsx)("div",{ref:n,className:(0,s.cn)("p-6 pt-0",t),...i}));o.displayName="CardContent",i.forwardRef(({className:t,...i},n)=>(0,e.jsx)("div",{ref:n,className:(0,s.cn)("flex items-center p-6 pt-0",t),...i})).displayName="CardFooter",t.s(["Card",()=>n,"CardContent",()=>o,"CardHeader",()=>a,"CardTitle",()=>r])},79935,t=>{"use strict";var e=t.i(91788),i=t.i(30943);let s=Array(12).fill(0),n=({visible:t,className:i})=>e.default.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":t},e.default.createElement("div",{className:"sonner-spinner"},s.map((t,i)=>e.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),a=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),r=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),o=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),c=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},e.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),d=1,u=new class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:i,...s}=t,n="number"==typeof(null==t?void 0:t.id)||(null==(e=t.id)?void 0:e.length)>0?t.id:d++,a=this.toasts.find(t=>t.id===n),r=void 0===t.dismissible||t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),a?this.toasts=this.toasts.map(e=>e.id===n?(this.publish({...e,...t,id:n,title:i}),{...e,...t,id:n,dismissible:r,title:i}):e):this.addToast({title:i,...s,dismissible:r,id:n}),n},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(e=>e({id:t,dismiss:!0})))):this.toasts.forEach(t=>{this.subscribers.forEach(e=>e({id:t.id,dismiss:!0}))}),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,i)=>{let s,n;if(!i)return;void 0!==i.loading&&(n=this.create({...i,promise:t,type:"loading",message:i.loading,description:"function"!=typeof i.description?i.description:void 0}));
11let a=Promise.resolve(t instanceof Function?t():t),r=void 0!==n,o=a.then(async t=>{if(s=["resolve",t],e.default.isValidElement(t))r=!1,this.create({id:n,type:"default",message:t});else if(h(t)&&!t.ok){r=!1;let s="function"==typeof i.error?await i.error(`HTTP error! status: ${t.status}`):i.error,a="function"==typeof i.description?await i.description(`HTTP error! status: ${t.status}`):i.description,o="object"!=typeof s||e.default.isValidElement(s)?{message:s}:s;this.create({id:n,type:"error",description:a,...o})}else if(t instanceof Error){r=!1;let s="function"==typeof i.error?await i.error(t):i.error,a="function"==typeof i.description?await i.description(t):i.description,o="object"!=typeof s||e.default.isValidElement(s)?{message:s}:s;this.create({id:n,type:"error",description:a,...o})}else if(void 0!==i.success){r=!1;let s="function"==typeof i.success?await i.success(t):i.success,a="function"==typeof i.description?await i.description(t):i.description,o="object"!=typeof s||e.default.isValidElement(s)?{message:s}:s;this.create({id:n,type:"success",description:a,...o})}}).catch(async t=>{if(s=["reject",t],void 0!==i.error){r=!1;let s="function"==typeof i.error?await i.error(t):i.error,a="function"==typeof i.description?await i.description(t):i.description,o="object"!=typeof s||e.default.isValidElement(s)?{message:s}:s;this.create({id:n,type:"error",description:a,...o})}}).finally(()=>{r&&(this.dismiss(n),n=void 0),null==i.finally||i.finally.call(i)}),l=()=>new Promise((t,e)=>o.then(()=>"reject"===s[0]?e(s[1]):t(s[1])).catch(e));return"string"!=typeof n&&"number"!=typeof n?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(t,e)=>{let i=(null==e?void 0:e.id)||d++;return this.create({jsx:t(i),id:i,...e}),i},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},h=t=>t&&"object"==typeof t&&"ok"in t&&"boolean"==typeof t.ok&&"status"in t&&"number"==typeof t.status,p=Object.assign((t,e)=>{let i=(null==e?void 0:e.id)||d++;return u.addToast({title:t,...e,id:i}),i},{success:u.success,info:u.info,warning:u.warning,error:u.error,custom:u.custom,message:u.message,promise:u.promise,dismiss:u.dismiss,loading:u.loading},{getHistory:()=>u.toasts,getToasts:()=>u.getActiveToasts()});function f(t){return void 0!==t.label}function m(...t){return t.filter(Boolean).join(" ")}!function(t){if(!t||"u"<typeof document)return;let e=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}
vendor: 14,864 bytes, line 11
11("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
11let g=t=>{var i,s,d,u,h,p,g,v,y,b,x,w,_;let{invert:P,toast:k,unstyled:C,interacting:S,setHeights:M,visibleToasts:T,heights:E,index:D,toasts:R,expanded:O,removeToast:z,defaultRichColors:A,closeButton:V,style:j,cancelButtonStyle:L,actionButtonStyle:I,className:B="",descriptionClassName:F="",duration:N,position:$,gap:U,exp
11andByDefault:H,classNames:W,icons:q,closeButtonAriaLabel:G="Close toast"}=t,[Y,X]=e.default.useState(null),[K,Z]=e.default.useState(null),[Q,J]=e.default.useState(!1),[tt,te]=e.default.useState(!1),[ti,ts]=e.default.useState(!1),[tn,ta]=e.default.useState(!1),[tr,to]=e.default.useState(!1),[tl,tc]=e.default.useState(0),[td,tu]=e.default.useState(0),th=e.default.useRef(k.duration||N||4e3),tp=e.default.useRef(null),tf=e.default.useRef(null),tm=0===D,tg=D+1<=T,tv=k.type,ty=!1!==k.dismissible,tb=k.className||"",tx=k.descriptionClassName||"",tw=e.default.useMemo(()=>E.findIndex(t=>t.toastId===k.id)||0,[E,k.id]),t_=e.default.useMemo(()=>{var t;return null!=(t=k.closeButton)?t:V},[k.closeButton,V]),tP=e.default.useMemo(()=>k.duration||N||4e3,[k.duration,N]),tk=e.default.useRef(0),tC=e.default.useRef(0),tS=e.default.useRef(0),tM=e.default.useRef(null),[tT,tE]=$.split("-"),tD=e.default.useMemo(()=>E.reduce((t,e,i)=>i>=tw?t:t+e.height,0),[E,tw]),tR=(()=>{let[t,i]=e.default.useState(document.hidden);return e.default.useEffect(()=>{let t=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),t})(),tO=k.invert||P,tz="loading"===tv;tC.current=e.default.useMemo(()=>tw*U+tD,[tw,tD]),e.default.useEffect(()=>{th.current=tP},[tP]),e.default.useEffect(()=>{J(!0)},[]),e.default.useEffect(()=>{let t=tf.current;if(t){let e=t.getBoundingClientRect().height;return tu(e),M(t=>[{toastId:k.id,height:e,position:k.position},...t]),()=>M(t=>t.filter(t=>t.toastId!==k.id))}},[M,k.id]),e.default.useLayoutEffect(()=>{if(!Q)return;let t=tf.current,e=t.style.height;t.style.height="auto";let i=t.getBoundingClientRect().height;t.style.height=e,tu(i),M(t=>t.find(t=>t.toastId===k.id)?t.map(t=>t.toastId===k.id?{...t,height:i}:t):[{toastId:k.id,height:i,position:k.position},...t])},[Q,k.title,k.description,M,k.id,k.jsx,k.action,k.cancel]);let tA=e.default.useCallback(()=>{te(!0),tc(tC.current),M(t=>t.filter(t=>t.toastId!==k.id)),setTimeout(()=>{z(k)},200)},[k,z,M,tC]);e.default.useEffect(()=>{let t;if((!k.promise||"loading"!==tv)&&k.duration!==1/0&&"loading"!==k.type){if(O||S||tR){if(tS.current<tk.current){let t=new Date().getTime()-tk.current;th.current=th.current-t}tS.current=new Date().getTime()}else th.current!==1/0&&(tk.current=new Date().getTime(),t=setTimeout(()=>{null==k.onAutoClose||k.onAutoClose.call(k,k),tA()},th.current));return()=>clearTimeout(t)}},[O,S,k,tv,tR,tA]),e.default.useEffect(()=>{k.delete&&(tA(),null==k.onDismiss||k.onDismiss.call(k,k))},[tA,k.delete]);let tV=k.icon||(null==q?void 0:q[tv])||(t=>{switch(t){case"success":return a;case"info":return o;case"warning":return r;case"error":return l;default:return null}})(tv);return e.default.createElement("li",{tabIndex:0,ref:tf,className:m(B,tb,null==W?void 0:W.toast,null==k||null==(i=k.classNames)?void 0:i.toast,null==W?void 0:W.default,null==W?void 0:W[tv],null==k||null==(s=k.classNames)?void 0:s[tv]),"data-sonner-toast":"","data-rich-colors":null!=(b=k.richColors)?b:A,"data-styled":!(k.jsx||k.unstyled||C),"data-mounted":Q,"data-promise":!!k.promise,"data-swiped":tr,"data-removed":tt,"data-visible":tg,"data-y-position":tT,"data-x-position":tE,"data-index":D,"data-front":tm,"data-swiping":ti,"data-dismissible":ty,"data-type":tv,"data-invert":tO,"data-swipe-out":tn,"data-swipe-direction":K,"data-expanded":!!(O||H&&Q),"data-testid":k.testId,style:{"--index":D,"--toasts-before":D,"--z-index":R.length-D,"--offset":`${tt?tl:tC.current}px`,"--initial-height":H?"auto":`${td}px`,...j,...k.style},onDragEnd:()=>{ts(!1),X(null),tM.current=null},onPointerDown:t=>{2===t.button||tz||!ty||(tp.current=new Date,tc(tC.current),t.target.setPointerCapture(t.pointerId),"BUTTON"!==t.target.tagName&&(ts(!0),tM.current={x:t.clientX,y:t.clientY}))},onPointerUp:()=>{var t,e,i,s,n;if(tn||!ty)return;tM.current=null;let a=Number((null==(t=tf.current)?void 0:t.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),r=Number((null==(e=tf.current)?void 0:e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=new Date().getTime()-(null==(i=tp.current)?void 0:i.getTime()),l="x"===Y?a:r,c=Math.abs(l)/o;if(Math.abs(l)>=45||c>.11){tc(tC.current),null==k.onDismiss||k.onDismiss.call(k,k),"x"===Y?Z(a>0?"right":"left"):Z(r>0?"down":"up"),tA(),ta(!0);return}null==(s=tf.current)||s.style.setProperty("--swipe-amount-x","0px"),null==(n=tf.current)||n.style.setProperty("--swipe-amount-y","0px"),to(!1),ts(!1),X(null)},onPointerMove:e=>{var i,s,n,a;if(!tM.current||!ty||(null==(i=window.getSelection())?void 0:i.toString().length)>0)return;let r=e.clientY-tM.current.y,o=e.clientX-tM.current.x,l=null!=(a=t.swipeDirections)?a:function(t){let[e,i]=t.split("-"),s=[];return e&&s.push(e),i&&s.push(i),s}($);!Y&&(Math.abs(o)>1||Math.abs(r)>1)&&X(Math.abs(o)>Math.abs(r)?"x":"y");let c={x:0,y:0},d=t=>1/(1.5+Math.abs(t)/20);if("y"===Y){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&r<0||l.includes("bottom")&&r>0)c.y=r;else{let t=r*d(r);c.y=Math.abs(t)<Math.abs(r)?t:r}}else if("x"===Y&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&o<0||l.includes("right")&&o>0)c.x=o;else{let t=o*d(o);c.x=Math.abs(t)<Math.abs(o)?t:o}(Math.abs(c.x)>0||Math.abs(c.y)>0)&&to(!0),null==(s=tf.current)||s.style.setProperty("--swipe-amount-x",`${c.x}
11px`),null==(n=tf.current)||n.style.setProperty("--swipe-amount-y",`${c.y}px`)}},t_&&!k.jsx&&"loading"!==tv?e.default.createElement("button",{"aria-label":G,"data-disabled":tz,"data-close-button":!0,onClick:tz||!ty?()=>{}:()=>{tA(),null==k.onDismiss||k.onDismiss.call(k,k)},className:m(null==W?void 0:W.closeButton,null==k||null==(d=k.classNames)?void 0:d.closeButton)},null!=(x=null==q?void 0:q.close)?x:c):null,(tv||k.icon||k.promise)&&null!==k.icon&&((null==q?void 0:q[tv])!==null||k.icon)?e.default.createElement("div",{"data-icon":"",className:m(null==W?void 0:W.icon,null==k||null==(u=k.classNames)?void 0:u.icon)},k.promise||"loading"===k.type&&!k.icon?k.icon||((null==q?void 0:q.loading)?e.default.createElement("div",{className:m(null==W?void 0:W.loader,null==k||null==(_=k.classNames)?void 0:_.loader,"sonner-loader"),"data-visible":"loading"===tv},q.loading):e.default.createElement(n,{className:m(null==W?void 0:W.loader,null==k||null==(w=k.classNames)?void 0:w.loader),visible:"loading"===tv})):null,"loading"!==k.type?tV:null):null,e.default.createElement("div",{"data-content":"",className:m(null==W?void 0:W.content,null==k||null==(h=k.classNames)?void 0:h.content)},e.default.createElement("div",{"data-title":"",className:m(null==W?void 0:W.title,null==k||null==(p=k.classNames)?void 0:p.title)},k.jsx?k.jsx:"function"==typeof k.title?k.title():k.title),k.description?e.default.createElement("div",{"data-description":"",className:m(F,tx,null==W?void 0:W.description,null==k||null==(g=k.classNames)?void 0:g.description)},"function"==typeof k.description?k.description():k.description):null),e.default.isValidElement(k.cancel)?k.cancel:k.cancel&&f(k.cancel)?e.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:k.cancelButtonStyle||L,onClick:t=>{!f(k.cancel)||ty&&(null==k.cancel.onClick||k.cancel.onClick.call(k.cancel,t),tA())},className:m(null==W?void 0:W.cancelButton,null==k||null==(v=k.classNames)?void 0:v.cancelButton)},k.cancel.label):null,e.default.isValidElement(k.action)?k.action:k.action&&f(k.action)?e.default.createElement("button",{"data-button":!0,"data-action":!0,style:k.actionButtonStyle||I,onClick:t=>{!f(k.action)||(null==k.action.onClick||k.action.onClick.call(k.action,t),t.defaultPrevented||tA())},className:m(null==W?void 0:W.actionButton,null==k||null==(y=k.classNames)?void 0:y.actionButton)},k.action.label):null)};function v(){if("u"<typeof window||"u"<typeof document)return"ltr";let t=document.documentElement.getAttribute("dir");return"auto"!==t&&t?t:window.getComputedStyle(document.documentElement).direction}let y=e.default.forwardRef(function(t,s){let{id:n,invert:a,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:l,closeButton:c,className:d,offset:h,mobileOffset:p,theme:f="light",richColors:m,duration:y,style:b,visibleToasts:x=3,toastOptions:w,dir:_=v(),gap:P=14,icons:k,containerAriaLabel:C="Notifications"}=t,[S,M]=e.default.useState([]),T=e.default.useMemo(()=>n?S.filter(t=>t.toasterId===n):S.filter(t=>!t.toasterId),[S,n]),E=e.default.useMemo(()=>Array.from(new Set([r].concat(T.filter(t=>t.position).map(t=>t.position)))),[T,r]),[D,R]=e.default.useState([]),[O,z]=e.default.useState(!1),[A,V]=e.default.useState(!1),[j,L]=e.default.useState("system"!==f?f:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=e.default.useRef(null),B=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=e.default.useRef(null),N=e.default.useRef(!1),$=e.default.useCallback(t=>{M(e=>{var i;return(null==(i=e.find(e=>e.id===t.id))?void 0:i.delete)||u.dismiss(t.id),e.filter(({id:e})=>e!==t.id)})},[]);return e.default.useEffect(()=>u.subscribe(t=>{t.dismiss?requestAnimationFrame(()=>{M(e=>e.map(e=>e.id===t.id?{...e,delete:!0}:e))}):setTimeout(()=>{i.default.flushSync(()=>{M(e=>{let i=e.findIndex(e=>e.id===t.id);return -1!==i?[...e.slice(0,i),{...e[i],...t},...e.slice(i+1)]:[t,...e]})})})}),[S]),e.default.useEffect(()=>{if("system"!==f)return void L(f);if("system"===f&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),"u"<typeof window)return;let t=window.matchMedia("(prefers-color-scheme: dark)");try{t.addEventListener("change",({matches:t})=>{t?L("dark"):L("light")})}catch(e){t.addListener(({matches:t})=>{try{t?L("dark"):L("light")}catch(t){console.error(t)}})}},[f]),e.default.useEffect(()=>{S.length<=1&&z(!1)},[S]),e.default.useEffect(()=>{let t=t=>{var e,i;o.every(e=>t[e]||t.code===e)&&(z(!0),null==(i=I.current)||i.focus()),"Escape"===t.code&&(document.activeElement===I.current||(null==(e=I.current)?void 0:e.contains(document.activeElement)))&&z(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[o]),e.default.useEffect(()=>{if(I.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,N.current=!1)}},[I.current]),e.default.createElement("section",{ref:s,"aria-label":`${C} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},E.map((i,s)=>{var n;let r,[o,u]=i.split("-");return T.length?e.default.createElement("ol",{key:i,dir:"auto"===_?v():_,tabIndex:-1,ref:I,className:d,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":o,"data-x-position":u,style:{"--front-toast-height":`${(null==(n=D[0])?void 0:n.height)||0}px`,"--width":"356px","--gap":`${P}px`,...b,...(r={}
11,[h,p].forEach((t,e)=>{let i=1===e,s=i?"--mobile-offset":"--offset",n=i?"16px":"24px";function a(t){["top","right","bottom","left"].forEach(e=>{r[`${s}-${e}`]="number"==typeof t?`${t}px`:t})}"number"==typeof t||"string"==typeof t?a(t):"object"==typeof t?["top","right","bottom","left"].forEach(e=>{void 0===t[e]?r[`${s}-${e}`]=n:r[`${s}-${e}`]="number"==typeof t[e]?`${t[e]}px`:t[e]}):a(n)}),r)},onBlur:t=>{N.current&&!t.currentTarget.contains(t.relatedTarget)&&(N.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:t=>{!(t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible)&&(N.current||(N.current=!0,F.current=t.relatedTarget))},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{A||z(!1)},onDragEnd:()=>z(!1),onPointerDown:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||V(!0)},onPointerUp:()=>V(!1)},T.filter(t=>!t.position&&0===s||t.position===i).map((s,n)=>{var r,o;return e.default.createElement(g,{key:s.id,icons:k,index:n,toast:s,defaultRichColors:m,duration:null!=(r=null==w?void 0:w.duration)?r:y,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:a,visibleToasts:x,closeButton:null!=(o=null==w?void 0:w.closeButton)?o:c,interacting:A,position:i,style:null==w?void 0:w.style,unstyled:null==w?void 0:w.unstyled,classNames:null==w?void 0:w.classNames,cancelButtonStyle:null==w?void 0:w.cancelButtonStyle,actionButtonStyle:null==w?void 0:w.actionButtonStyle,closeButtonAriaLabel:null==w?void 0:w.closeButtonAriaLabel,removeToast:$,toasts:T.filter(t=>t.position==s.position),heights:D.filter(t=>t.position==s.position),setHeights:R,expandByDefault:l,gap:P,expanded:O,swipeDirections:t.swipeDirections})})):null}))});t.s(["Toaster",()=>y,"toast",()=>p])},2150,t=>{"use strict";var e=t.i(91398),i=t.i(91788);t.i(30943);var s=t.i(17549),n=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{let a=(0,s.createSlot)(`Primitive.${n}`),r=i.forwardRef((t,i)=>{let{asChild:s,...r}=t;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,e.jsx)(s?a:n,{...r,ref:i})});return r.displayName=`Primitive.${n}`,{...t,[n]:r}},{}),a="horizontal",r=["horizontal","vertical"],o=i.forwardRef((t,i)=>{var s;let{decorative:o,orientation:l=a,...c}=t,d=(s=l,r.includes(s))?l:a;return(0,e.jsx)(n.div,{"data-orientation":d,...o?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...c,ref:i})});o.displayName="Separator";var l=t.i(53533);let c=i.forwardRef(({className:t,orientation:i="horizontal",decorative:s=!0,...n},a)=>(0,e.jsx)(o,{ref:a,decorative:s,orientation:i,className:(0,l.cn)("bg-border shrink-0","horizontal"===i?"h-[1px] w-full":"h-full w-[1px]",t),...n}));c.displayName=o.displayName,t.s(["Separator",()=>c],2150)},378,t=>{"use strict";var e=t.i(91398),i=t.i(26019),s=t.i(2150),n=t.i(39310);let a={src:t.i(67816).default,width:1e3,height:1e3,blurWidth:0,blurHeight:0},r={src:t.i(43966).default,width:779,height:779,blurWidth:0,blurHeight:0},o={src:t.i(53971).default,width:256,height:256,blurWidth:0,blurHeight:0};var l=t.i(41158);t.s(["Footer",0,()=>(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("footer",{className:"pointer-events-none relative right-0 bottom-0 left-0 flex w-full justify-center bg-transparent pb-5",children:(0,e.jsxs)("div",{className:"relative z-0 container flex flex-col lg:z-50 lg:px-20",children:[(0,e.jsx)(s.Separator,{className:"my-5 opacity-50",style:{background:"linear-gradient(90deg, #00000000, #fff, #00000000)"}}),(0,e.jsxs)("div",{className:"flex flex-row justify-between gap-6 px-20 text-white lg:gap-0",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)(i.default,{width:125,height:1,src:"/frosco_hex_tm.svg",alt:"Frosco hex",className:"translate-x-3",loading:"lazy"}),(0,e.jsxs)("div",{className:"pointer-events-auto flex gap-2",children:[(0,e.jsx)(n.Button,{variant:"ghost",size:"icon",className:"hover:bg-transparent",asChild:!0,children:(0,e.jsx)(l.default,{href:"https://www.instagram.com/froscoofficial/",target:"_blank",children:(0,e.jsx)(i.default,{width:16,height:16,src:a,alt:"instagram",loading:"lazy"})})}),(0,e.jsx)(n.Button,{variant:"ghost",size:"icon",className:"hover:bg-transparent",asChild:!0,children:(0,e.jsx)(l.default,{href:"https://www.linkedin.com/company/froscoofficial",target:"_blank",children:(0,e.jsx)(i.default,{width:16,height:16,src:r,alt:"linkedin",loading:"lazy"})})}),(0,e.jsx)(n.Button,{variant:"ghost",size:"icon",className:"hover:bg-transparent",asChild:!0,children:(0,e.jsx)(l.default,{href:"https://www.youtube.com/@froscoofficial",target:"_blank",children:(0,e.jsx)(i.default,{width:16,height:16,src:o,alt:"youtube",loading:"lazy"})})})]})]}),(0,e.jsxs)("div",{className:"pointer-events-auto flex flex-col gap-3 leading-none",children:[(0,e.jsx)("strong",{children:"Resources"}),(0,e.jsx)(l.default,{href:"https://blog.frosco.io/",className:"font-light",children:"Blog"}),(0,e.jsx)(l.default,{href:"/contact",className:"font-light",children:"Careers"})]})]}),(0,e.jsxs)("div",{className:"right-0 left-0 mx-auto flex flex-col items-center pt-4 text-center font-light text-[#A1A1AA]",children:[(0,e.jsx)("p",{children:"Copyright © 2026 Frosco⢠Ltd. All rights reserved"}),(0,e.jsx)("p",{className:"mt-1 text-xs",children:"Frosco is the trading name of Frosco ltd"})]})]})})})],378)},45726,17704,t=>{"use strict";let e,i;var s,n,a,r,o,l,c,d,u,h,p,f,m,g,v,y,b,x,w,_,P,k,C,S,M,T,E,D,R,O,z,A,V,j,L,I,B,F,N,$,U,H,W,q,G,Y,X,K,Z,Q,J,tt,te,ti,ts,tn,ta,tr=t.i(91398),to=t.i(26019),tl=t.i(91788);let tc="generated",td="pointerleave",tu="pointermove",th="touchend",tp="tsParticles - Error",tf="random",tm=2*Math.PI,tg="true",tv="false",ty="canvas",tb=0;function tx(t){return"boolean"==typeof t}function tw(t){return"string"==typeof t}function t_(t){return"number"==typeof t}function tP(t){return"object"==typeof t&&null!==t}function tk(t){return Array.isArray(t)}function tC(t){return null==t}(s=O||(O={})).bottom="bottom",s.bottomLeft="bottom-left",s.bottomRight="bottom-right",s.left="left",s.none="none",s.right="right",s.top="top",s.topLeft="top-left",s.topRight="top-right",s.outside="outside",s.inside="inside";class tS{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!t_(t)&&t)this.x=t.x,this.y=t.y,this.z=t.z?t.z:0;else if(void 0!==t&&void 0!==e)this.x=t,this.y=e,this.z=i??0;else throw Error(`${tp} Vector3d not initialized correctly`)}static get origin(){return tS.create(0,0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return tS.create(t.x,t.y,t.z)}static create(t,e,i){return new tS(t,e,i)}add(t){return tS.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return tS.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return tS.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return tS.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){let t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return tS.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),0)}setTo(t){this.x=t.x,this.y=t.y,this.z=t.z?t.z:0}sub(t){return tS.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class tM extends tS{constructor(t,e){super(t,e,0)}static get origin(){return tM.create(0,0)}static clone(t){return tM.create(t.x,t.y)}static create(t,e){return new tM(t,e)}}let tT=Math.random;function tE(){return tD(tT(),0,1-Number.EPSILON)}function tD(t,e,i){return Math.min(Math.max(t,e),i)}function tR(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function tO(t){let e=tV(t),i=tA(t);return e===i&&(i=0),tE()*(e-i)+i}function tz(t){return t_(t)?t:tO(t)}function tA(t){return t_(t)?t:t.min}function tV(t){return t_(t)?t:t.max}function tj(t,e){if(t===e||void 0===e&&t_(t))return t;let i=tA(t),s=tV(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:tj(i,s)}function tL(t,e){let i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i**2+s**2)}}function tI(t,e){return tL(t,e).distance}function tB(t){return t*Math.PI/180}function tF(t,e,i,s){return tM.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function tN(t){return t?t.endsWith("%")?parseFloat(t)/100:parseFloat(t):1}(n=z||(z={})).auto="auto",n.increase="increase",n.decrease="decrease",n.random="random",(a=A||(A={})).increasing="increasing",a.decreasing="decreasing",(r=V||(V={})).none="none",r.max="max",r.min="min",(o=j||(j={})).bottom="bottom",o.left="left",o.right="right",o.top="top",(l=L||(L={})).precise="precise",l.percent="percent",(c=I||(I={})).max="max",c.min="min",c.random="random";let t$={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function tU(t){let e={bounced:!1}
11,{pSide:i,pOtherSide:s,rectSide:n,rectOtherSide:a,velocity:r,factor:o}=t;return s.min<a.min||s.min>a.max||s.max<a.min||s.max>a.max||(i.max>=n.min&&i.max<=(n.max+n.min)*.5&&r>0||i.min<=n.max&&i.min>(n.max+n.min)*.5&&r<0)&&(e.velocity=-(r*o),e.bounced=!0),e}function tH(){return"u"<typeof window||!window||void 0===window.document||!window.document}function tW(t){if(!tH()&&"u">typeof matchMedia)return matchMedia(t)}function tq(t,e){return t===e||tk(e)&&e.indexOf(t)>-1}async function tG(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function tY(t,e,i=!0){return t[void 0!==e&&i?e%t.length:Math.floor(tE()*t.length)]}function tX(t,e,i,s,n){var a,r,o,l;let c;return a=tK(t,s??0),r=e,o=i,c=!0,(l=n)&&l!==j.bottom||(c=a.top<r.height+o.x),c&&(!l||l===j.left)&&(c=a.right>o.x),c&&(!l||l===j.right)&&(c=a.left<r.width+o.y),c&&(!l||l===j.top)&&(c=a.bottom>o.y),c}function tK(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function tZ(t,...e){for(let i of e){if(null==i)continue;if(!tP(i)){t=i;continue}let e=Array.isArray(i);for(let s in e&&(tP(t)||!t||!Array.isArray(t))?t=[]:!e&&(tP(t)||!t||Array.isArray(t))&&(t={}),i){if("__proto__"===s)continue;let e=i[s],n=t;n[s]=tP(e)&&Array.isArray(e)?e.map(t=>tZ(n[s],t)):tZ(n[s],e)}}return t}function tQ(t,e){return!!t6(e,e=>e.enable&&tq(t,e.mode))}function tJ(t,e,i){t5(e,e=>{var s,n;let a=e.mode;e.enable&&tq(t,a)&&(s=e,n=i,t5(s.selectors,t=>{n(t,s)}))})}function t0(t,e){if(e&&t)return t6(t,t=>{let i;return tk(i=t5(t.selectors,t=>e.matches(t)))?i.some(t=>t):i})}function t1(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:tM.create(tz(t.options.bounce.horizontal.value),tz(t.options.bounce.vertical.value))}}function t2(t,e){let{x:i,y:s}=t.velocity.sub(e.velocity),[n,a]=[t.position,e.position],{dx:r,dy:o}=tL(a,n);if(i*r+s*o<0)return;let l=-Math.atan2(o,r),c=t.mass,d=e.mass,u=t.velocity.rotate(l),h=e.velocity.rotate(l),p=tF(u,h,c,d),f=tF(h,u,c,d),m=p.rotate(-l),g=f.rotate(-l);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y}function t5(t,e){return tk(t)?t.map((t,i)=>e(t,i)):e(t,0)}function t3(t,e,i){return tk(t)?tY(t,e,i):t}function t6(t,e){return tk(t)?t.find((t,i)=>e(t,i)):e(t,0)?t:void 0}function t4(t,e){let i=t.value,s=t.animation,n={delayTime:1e3*tz(s.delay),enable:s.enable,value:tz(t.value)*e,max:tV(i)*e,min:tA(i)*e,loops:0,maxLoops:tz(s.count),time:0};if(s.enable){switch(n.decay=1-tz(s.decay),s.mode){case z.increase:n.status=A.increasing;break;case z.decrease:n.status=A.decreasing;break;case z.random:n.status=tE()>=.5?A.increasing:A.decreasing}let t=s.mode===z.auto;switch(s.startValue){case I.min:n.value=n.min,t&&(n.status=A.increasing);break;case I.max:n.value=n.max,t&&(n.status=A.decreasing);break;case I.random:default:n.value=tO(n),t&&(n.status=tE()>=.5?A.increasing:A.decreasing)}}return n.initialValue=n.value,n}function t8(t,e){return function(t,e){if(t.mode!==L.percent){let{mode:e,...i}=t;return i}return"x"in t?{x:t.x/100*e.width,y:t.y/100*e.height}:{width:t.width/100*e.width,height:t.height/100*e.height}}(t,e)}function t9(t,e,i,s,n){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;let a=(e.velocity??0)*n.factor,r=e.min,o=e.max,l=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),!((e.delayTime??0)>0)||!(e.time<(e.delayTime??0))){switch(e.status){case A.increasing:e.value>=o?(i?e.status=A.decreasing:e.value-=o,e.loops||(e.loops=0),e.loops++):e.value+=a;break;case A.decreasing:e.value<=r?(i?e.status=A.increasing:e.value+=o,e.loops||(e.loops=0),e.loops++):e.value-=a}e.velocity&&1!==l&&(e.velocity*=l);var c=e.value;switch(s){case V.max:c>=o&&t.destroy();break;case V.min:c<=r&&t.destroy()}t.destroyed||(e.value=tD(e.value,r,o))}}let t7=(d=function(t){let e=document.createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(10),"z-index":t.toString(10),top:"0",left:"0"};for(let t in i){let s=i[t];e.setProperty(t,s)}return e},e=new Map,(...t)=>{let i=JSON.stringify(t);if(e.has(i))return e.get(i);let s=d(...t);return e.set(i,s),s});function et(t,e,i,s=!0){if(!e)return;let n=tw(e)?{value:e}:e;if(tw(n.value))return function t(e,i,s,n=!0){if(!i)return;let a=tw(i)?{value:i}:i;if(tw(a.value))return a.value===tf?en():function(t,e){if(e){for(let i of t.colorManagers.values())if(e.startsWith(i.stringPrefix))return i.parseString(e)}}(e,a.value);if(tk(a.value))return t(e,{value:tY(a.value,s,n)});for(let t of e.colorManagers.values()){let e=t.handleColor(a);if(e)return e}}(t,n.value,i,s);if(tk(n.value))return et(t,{value:tY(n.value,i,s)});for(let e of t.colorManagers.values()){let t=e.handleRangeColor(n);if(t)return t}}function ee(t,e,i,s=!0){let n=et(t,e,i,s);return n?ei(n):void 0}function ei(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),a=Math.min(e,i,s),r={h:0,l:(n+a)*.5,s:0};return n!==a&&(r.s=r.l<.5?(n-a)/(n+a):(n-a)/(2-n-a),r.h=e===n?(i-s)/(n-a):r.h=i===n?2+(s-e)/(n-a):4+(e-i)/(n-a)
11),r.l*=100,r.s*=100,r.h*=60,r.h<0&&(r.h+=360),r.h>=360&&(r.h-=360),r}function es(t){let e=(t.h%360+360)%360,i=Math.max(0,Math.min(100,t.s)),s=Math.max(0,Math.min(100,t.l)),n=e/360,a=i/100,r=s/100;if(0===i){let t=Math.round(255*r);return{r:t,g:t,b:t}}let o=(t,e,i)=>(i<0&&i++,i>1&&i--,6*i<1)?t+(e-t)*6*i:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t,l=r<.5?r*(1+a):r+a-r*a,c=2*r-l;return{r:Math.round(Math.min(255,255*o(c,l,n+.3333333333333333))),g:Math.round(Math.min(255,255*o(c,l,n))),b:Math.round(Math.min(255,255*o(c,l,n-.3333333333333333)))}}function en(t){let e=t??0;return{b:Math.floor(tO(tj(e,256))),g:Math.floor(tO(tj(e,256))),r:Math.floor(tO(tj(e,256)))}}function ea(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function er(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function eo(t,e,i,s){let n=t,a=e;return void 0===n.r&&(n=es(t)),void 0===a.r&&(a=es(e)),{b:tR(n.b,a.b,i,s),g:tR(n.g,a.g,i,s),r:tR(n.r,a.r,i,s)}}function el(t,e,i){if(i===tf)return en();if("mid"!==i)return i;{let i=t.getFillColor()??t.getStrokeColor(),s=e?.getFillColor()??e?.getStrokeColor();if(i&&s&&e)return eo(i,s,t.getRadius(),e.getRadius());{let t=i??s;if(t)return es(t)}}}function ec(t,e,i,s){let n=tw(e)?e:e.value;return n===tf?s?et(t,{value:n}):i?tf:"mid":"mid"===n?"mid":et(t,{value:n})}function ed(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function eu(t,e,i){let s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(eh(s.h,e.h,i),eh(s.s,e.s,i),eh(s.l,e.l,i)),s}function eh(t,e,i){t.enable=e.enable,t.enable?(t.velocity=tz(e.speed)/100*i,t.decay=1-tz(e.decay),t.status=A.increasing,t.loops=0,t.maxLoops=tz(e.count),t.time=0,t.delayTime=1e3*tz(e.delay),e.sync||(t.velocity
11*=tE(),t.value*=tE()),t.initialValue=t.value,t.offset=tj(e.offset)):t.velocity=0}function ep(t,e,i,s){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0)||(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0)))return;let n=t.offset?tO(t.offset):0,a=(t.velocity??0)*s.factor+3.6*n,r=t.decay??1,o=tV(e),l=tA(e);i&&t.status!==A.increasing?(t.value-=a,t.value<0&&(t.loops||(t.loops=0),t.loops++,t.status=A.increasing)):(t.value+=a,t.value>o&&(t.loops||(t.loops=0),t.loops++,i?t.status=A.decreasing:t.value-=o)),t.velocity&&1!==r&&(t.velocity*=r),t.value=tD(t.value,l,o)}function ef(t,e){if(!t)return;let{h:i,s,l:n}=t;i&&ep(i,{min:0,max:360},!1,e),s&&ep(s,{min:0,max:100},!0,e),n&&ep(n,{min:0,max:100},!0,e)}function em(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function eg(t,e){t.clearRect(0,0,e.width,e.height)}function ev(t,e,i=!1){if(!e||!t)return;let s=t.style;if(!s)return;let n=new Set;for(let t in s)Object.prototype.hasOwnProperty.call(s,t)&&n.add(s[t]);for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.add(e[t]);for(let t of n){let n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}(u=B||(B={})).darken="darken",u.enlighten="enlighten";class ey{constructor(t,e){this.container=t,this._applyPostDrawUpdaters=t=>{for(let e of this._postDrawUpdaters)e.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,e,i,s,n,a)=>{for(let r of this._preDrawUpdaters){if(r.getColorStyles){let{fill:a,stroke:o}=r.getColorStyles(e,t,i,s);a&&(n.fill=a),o&&(n.stroke=o)}if(r.getTransformValues){let t=r.getTransformValues(e);for(let e in t)!function(t,e,i){let s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}(a,t,e)}r.beforeDraw?.(e)}},this._applyResizePlugins=()=>{for(let t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let e,i;for(let s of this._colorPlugins)if(!e&&s.particleFillColor&&(e=ee(this._engine,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=ee(this._engine,s.particleStrokeColor(t))),e&&i)break;return[e,i]},this._initCover=async()=>{let t=this.container.actualOptions.backgroundMask.cover,e=t.color;if(e){let i=et(this._engine,e);if(i){let e={...i,a:t.opacity};this._coverColorStyle=ea(e,e.a)}}else await new Promise((e,i)=>{if(!t.image)return;let s=document.createElement("img");s.addEventListener("load",()=>{this._coverImage={image:s,opacity:t.opacity},e()}),s.addEventListener("error",t=>{i(t.error)}),s.src=t.image})},this._initStyle=()=>{let t=this.element,e=this.container.actualOptions;if(t)for(let i in this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle(),e.style){if(!i||!e.style||!Object.prototype.hasOwnProperty.call(e.style,i))continue;let s=e.style[i];s&&t.style.setProperty(i,s,"important")}},this._initTrail=async()=>{let t=this.container.actualOptions.particles.move.trail,e=t.fill;if(!t.enable)return;let i=1/t.length;if(e.color){let t=et(this._engine,e.color);if(!t)return;this._trailFill={color:{...t},opacity:i}}else await new Promise((t,s)=>{if(!e.image)return;let n=document.createElement("img");n.addEventListener("load",()=>{this._trailFill={image:n,opacity:i},t()}),n.addEventListener("error",t=>{s(t.error)}),n.src=e.image})},this._paintBase=t=>{this.draw(e=>{var i;return i=this.size,void(e.fillStyle=t??"rgba(0,0,0,0)",e.fillRect(0,0,i.width,i.height))})},this._paintImage=(t,e)=>{this.draw(i=>{var s;return s=this.size,void(t&&(i.globalAlpha=e,i.drawImage(t,0,0,s.width,s.height),i.globalAlpha=1))})},this._repairStyle=()=>{let t=this.element;if(!t)return;this._safeMutationObserver(t=>
11t.disconnect()),this._initStyle(),this.initBackground();let e=this._pointerEvents;t.style.pointerEvents=e,t.setAttribute("pointer-events",e),this._safeMutationObserver(e=>{t&&t instanceof Node&&e.observe(t,{attributes:!0})})},this._resetOriginalStyle=()=>{let t=this.element,e=this._originalStyle;t&&e&&ev(t,e,!0)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{let t=this.element;t&&ev(t,t7(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=e,this._standardSize={height:0,width:0};const i=t.retina.pixelRatio,s=this._standardSize;this.size={height:s.height*i,width:s.width*i},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[],this._pointerEvents="none"}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){let t=this.container.actualOptions,e=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&i?i.color?this._paintBase(ea(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):t.clear&&this.draw(t=>{eg(t,this.size)})}destroy(){if(this.stop(),this._generated){let t=this.element;t?.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){let e=this._context;if(e)return t(e)}drawAsync(t){let e=this._context;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;let i=t.getRadius();if(i<=0)return;let s=t.getFillColor(),n=t.getStrokeColor()??s,[a,r]=this._getPluginParticleColors(t);a||(a=s),r||(r=n),(a||r)&&this.draw(s=>{let n=this.container,o=n.actualOptions,l=t.options.zIndex,c=1-t.zIndexFactor,d=c**l.opacityRate,u=t.bubble.opacity??t.opacity?.value??1,h=t.strokeOpacity??u,p=u*d,f={},m={fill:a?er(a,p):void 0};m.stroke=r?er(r,h*d):m.fill,this._applyPreDrawUpdaters(s,t,i,p,m,f),function(t){let{container:e,context:i,particle:s,delta:n,colorStyles:a,backgroundMask:r,composite:o,radius:l,opacity:c,shadow:d,transform:u}=t,h=s.getPosition(),p=s.rotation+(s.pathRotation?s.velocity.angle:0),f={sin:Math.sin(p),cos:Math.cos(p)},m=!!p,g={a:f.cos*(u.a??1),b:m?f.sin*(u.b??1):u.b??0,c:m?-f.sin*(u.c??1):u.c??0,d:f.cos*(u.d??1)};i.setTransform(g.a,g.b,g.c,g.d,h.x,h.y),r&&(i.globalCompositeOperation=o);let v=s.shadowColor;d.enable&&v&&(i.shadowBlur=d.blur,i.shadowColor=ea(v),i.shadowOffsetX=d.offset.x,i.shadowOffsetY=d.offset.y),a.fill&&(i.fillStyle=a.fill);let y=s.strokeWidth??0;i.lineWidth=y,a.stroke&&(i.strokeStyle=a.stroke);let b={container:e,context:i,particle:s,radius:l,opacity:c,delta:n,transformData:g,strokeWidth:y};(function(t){let{container:e,context:i,particle:s,radius:n,opacity:a,delta:r,strokeWidth:o,transformData:l}=t;if(!s.shape)return;let c=e.shapeDrawers.get(s.shape);c&&(i.beginPath(),c.draw({context:i,particle:s,radius:n,opacity:a,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),s.shapeClose&&i.closePath(),o>0&&i.stroke(),s.shapeFill&&i.fill())})(b),function(t){let{container:e,context:i,particle:s,radius:n,opacity:a,delta:r,transformData:o}=t;if(!s.shape)return;let l=e.shapeDrawers.get(s.shape);l?.afterDraw&&l.afterDraw({context:i,particle:s,radius:n,opacity:a,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...o}})}(b),function(t){let{container:e,context:i,particle:s,radius:n,opacity:a,delta:r,transformData:o}=t;if(!s.effect)return;let l=e.effectDrawers.get(s.effect);l&&l.draw({context:i,particle:s,radius:n,opacity:a,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...o}})}(b),i.globalCompositeOperation="source-over",i.resetTransform()}({container:n,context:s,particle:t,delta:e,colorStyles:m,backgroundMask:o.backgroundMask.enable,composite:o.backgroundMask.composite,radius:i*c**l.sizeRate,opacity:p,shadow:t.options.shadow,transform:f}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,e,i){this.draw(s=>{t.drawParticle&&t.drawParticle(s,e,i)})}drawPlugin(t,e){this.draw(i=>{t.draw&&t.draw(i,e)})}
11async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=function(t){if(!tH()&&"u">typeof MutationObserver)return new MutationObserver(t)}(t=>{for(let e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){t$.error(t)}this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){let t=this.container.actualOptions.background,e=this.element;if(!e)return;let i=e.style;if(i){if(t.color){let e=et(this._engine,t.color);i.backgroundColor=e?ea(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}initPlugins(){for(let t of(this._resizePlugins=[],this.container.plugins.values()))t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){for(let t of(this._preDrawUpdaters=[],this._postDrawUpdaters=[],this.container.particles.updaters))t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&tc in t.dataset?"true"===t.dataset[tc]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=function(t){let e=document.createElement("div").style;if(!t)return e;for(let i in t){let s=t[i];if(!Object.prototype.hasOwnProperty.call(t,i)||tC(s))continue;let n=t.getPropertyValue?.(s);if(!n)continue;let a=t.getPropertyPriority?.(s);a?e.setProperty?.(s,n,a):e.setProperty?.(s,n)}return e}(this.element.style);let e=this._standardSize;e.height=t.offsetHeight,e.width=t.offsetWidth;let i=this.container.retina.pixelRatio,s=this.size;t.height=s.height=e.height*i,t.width=s.width=e.width*i,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>
11t.disconnect()),this.container.retina.init(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})})}paint(){let t=this.container.actualOptions;this.draw(e=>{t.backgroundMask.enable&&t.backgroundMask.cover?(eg(e,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;let t=this.container,e=t.canvas._standardSize,i={width:this.element.offsetWidth,height:this.element.offsetHeight},s=t.retina.pixelRatio,n={width:i.width*s,height:i.height*s};if(i.height===e.height&&i.width===e.width&&n.height===this.element.height&&n.width===this.element.width)return!1;let a={...e};e.height=i.height,e.width=i.width;let r=this.size;return this.element.width=r.width=n.width,this.element.height=r.height=n.height,this.container.started&&t.particles.setResizeFactor({width:e.width/a.width,height:e.height/a.height}),!0}setPointerEvents(t){this.element&&(this._pointerEvents=t,this._repairStyle())}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>eg(t,this.size))}async windowResize(){if(!this.element||!this.resize())return;let t=this.container,e=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),e&&await t.refresh()}}function eb(t,e,i,s,n){if(s){let s={passive:!0};tx(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else t.removeEventListener(e,i,n)}(h=F||(F={})).canvas="canvas",h.parent="parent",h.window="window";class ex{constructor(t){this.container=t,this._doMouseTouchClick=t=>{let e=this.container,i=e.actualOptions;if(this._canPush){let t=e.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=new Date().getTime(),t5(i.interactivity.events.onClick.mode,t=>this.container.handleClickMode(t))}"touchend"===t.type&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{let e=this.container,i=e.options,s=i.defaultThemes,n=t.matches?s.dark:s.light,a=i.themes.find(t=>t.name===n);a?.default.auto&&e.loadTheme(n)},this._handleVisibilityChange=()=>{let t=this.container,e=t.actualOptions;this._mouseTouchFinish(),e.pauseOnBlur&&(document?.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);let t=async()=>{let t=this.container.canvas;await t?.windowResize()};this._resizeTimeout=setTimeout(()=>void t(),1e3*this.container.actualOptions.interactivity.events.resize.delay)},this._manageInteractivityListeners=(t,e)=>{let i=this._handlers,s=this.container,n=s.actualOptions,a=s.interactivity.element;if(!a)return;let r=s.canvas;r.setPointerEvents(a===r.element?"initial":"none"),(n.interactivity.events.onHover.enable||n.interactivity.events.onClick.enable)&&(eb(a,tu,i.mouseMove,e),eb(a,"touchstart",i.touchStart,e),eb(a,"touchmove",i.touchMove,e),n.interactivity.events.onClick.enable?(eb(a,th,i.touchEndClick,e),eb(a,"pointerup",i.mouseUp,e),eb(a,"pointerdown",i.mouseDown,e)):eb(a,th,i.touchEnd,e),eb(a,t,i.mouseLeave,e),eb(a,"touchcancel",i.touchCancel,e))},this._manageListeners=t=>{let e=this._handlers,i=this.container,s=i.actualOptions.interactivity.detectsOn,n=i.canvas.element,a=td;s===F.window?(i.interactivity.element=window,a="pointerout"):s===F.parent&&n?i.interactivity.element=n.parentElement??n.parentNode:i.interactivity.element=n,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(a,t),document&&eb(document,"visibilitychange",e.visibilityChange,t,!1)},this._manageMediaMatch=t=>{let e=this._handlers,i=tW("(prefers-color-scheme: dark)");i&&(void 0!==i.addEventListener?eb(i,"change",e.themeChange,t):void 0!==i.addListener&&(t?i.addListener(e.oldThemeChange):i.removeListener(e.oldThemeChange)))},this._manageResize=t=>{let e=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if("u"<typeof ResizeObserver)return void eb(window,"resize",e.resize,t);let s=i.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))},this._mouseDown=()=>{let{interactivity:t}=this.container;if(!t)return;let{mouse:e}=t;e.clicking=!0,e.downPosition=e.position},this._mouseTouchClick=t=>{let e=this.container,i=e.actualOptions,{mouse:s}=e.interactivity;s.inside=!0;let n=!1,a=s.position;if(a&&i.interactivity.events.onClick.enable){for(let t of e.plugins.values())if(t.clickPositionValid&&
11(n=t.clickPositionValid(a)))break;n||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{let t=this.container.interactivity;if(!t)return;let e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=td,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{let e,i=this.container,s=i.actualOptions,n=i.interactivity,a=i.canvas.element;if(!n?.element)return;if(n.mouse.inside=!0,t.type.startsWith("pointer"))if(this._canPush=!0,n.element===window){if(a){let i=a.getBoundingClientRect();e={x:t.clientX-i.left,y:t.clientY-i.top}}}else if(s.interactivity.detectsOn===F.parent){let i=t.target,s=t.currentTarget;if(i&&s&&a){let n=i.getBoundingClientRect(),r=s.getBoundingClientRect(),o=a.getBoundingClientRect();e={x:t.offsetX+2*n.left-(r.left+o.left),y:t.offsetY+2*n.top-(r.top+o.top)}}else e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY}}else t.target===a&&(e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY});else if(this._canPush="touchmove"!==t.type,a){let i=t.touches[t.touches.length-1],s=a.getBoundingClientRect();e={x:i.clientX-(s.left??0),y:i.clientY-(s.top??0)}}let r=i.retina.pixelRatio;e&&(e.x*=r,e.y*=r),n.mouse.position=e,n.status=tu},this._touchEnd=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{for(let e of Array.from(t.changedTouches))this._touches.set(e.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}(p=N||(N={})).configAdded="configAdded",p.containerInit="containerInit",p.particlesSetup="particlesSetup",p.containerStarted="containerStarted",p.containerStopped="containerStopped",p.containerDestroyed="containerDestroyed",p.containerPaused="containerPaused",p.containerPlay="containerPlay",p.containerBuilt="containerBuilt",p.particleAdded="particleAdded",p.particleDestroyed="particleDestroyed",p.particleRemoved="particleRemoved";class ew{constructor(){this.value=""}static create(t,e){let i=new ew;return i.load(t),void 0!==e&&(tw(e)||tk(e)?i.load({value:e}):i.load(e)),i}load(t){!tC(t)&&(tC(t.value)||(this.value=t.value))}}class e_{constructor(){this.color=new ew,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){tC(t)||(void 0!==t.color&&(this.color=ew.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class eP{constructor(){this.opacity=1}load(t){tC(t)||(void 0!==t.color&&(this.color=ew.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.opacity&&(this.opacity=t.opacity))}}class ek{constructor(){this.composite="destination-out",this.cover=new eP,this.enable=!1}load(t){if(!tC(t)){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){let e=t.cover,i=tw(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color||void 0!==e.image?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class eC{constructor(){this.enable=!0,this.zIndex=0}load(t){tC(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class eS{constructor(){this.enable=!1,this.mode=[]}load(t){tC(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}(f=$||($={})).circle="circle",f.rectangle="rectangle";class eM{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=$.circle}load(t){tC(t)||(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.t
11ype=t.type))}}class eT{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){tC(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class eE{constructor(){this.enable=!1,this.mode=[],this.parallax=new eT}load(t){tC(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class eD{constructor(){this.delay=.5,this.enable=!0}load(t){tC(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}class eR{constructor(){this.onClick=new eS,this.onDiv=new eM,this.onHover=new eE,this.resize=new eD}load(t){if(tC(t))return;this.onClick.load(t.onClick);let e=t.onDiv;void 0!==e&&(this.onDiv=t5(e,t=>{let e=new eM;return e.load(t),e})),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class eO{constructor(t,e){this._engine=t,this._container=e}load(t){if(tC(t)||!this._container)return;let e=this._engine.interactors.get(this._container);if(e)for(let i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class ez{constructor(t,e){this.detectsOn=F.window,this.events=new eR,this.modes=new eO(t,e)}load(t){if(tC(t))return;let e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class eA{load(t){!tC(t)&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??L.percent}),t.options&&(this.options=tZ({},t.options)))}}(m=U||(U={})).screen="screen",m.canvas="canvas";class eV{constructor(){this.maxWidth=1/0,this.options={},this.mode=U.canvas}load(t){!tC(t)&&(tC(t.maxWidth)||(this.maxWidth=t.maxWidth),tC(t.mode)||(t.mode===U.screen?this.mode=U.screen:this.mode=U.canvas),tC(t.options)||(this.options=tZ({},t.options)))}}(g=H||(H={})).any="any",g.dark="dark",g.light="light";class ej{constructor(){this.auto=!1,this.mode=H.any,this.value=!1}load(t){tC(t)||(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class eL{constructor(){this.name="",this.default=new ej}load(t){tC(t)||(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=tZ({},t.options)))}}class eI{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){tC(t)||(void 0!==t.count&&(this.count=tj(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=tj(t.speed)),void 0!==t.decay&&(this.decay=tj(t.decay)),void 0!==t.delay&&(this.delay=tj(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class eB extends eI{constructor(){super(),this.mode=z.auto,this.startValue=I.random}load(t){super.load(t),tC(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}class eF extends eI{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),tC(t)||void 0!==t.offset&&(this.offset=tj(t.offset))}}class eN{constructor(){this.h=new eF,this.s=new eF,this.l=new eF}load(t){tC(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class e$ extends ew{constructor(){super(),this.animation=new eN}static create(t,e){let i=new e$;return i.load(t),void 0!==e&&(tw(e)||tk(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),tC(t))return;let e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}(v=W||(W={})).absorb="absorb",v.bounce="bounce",v.destroy="destroy";class eU{constructor(){this.speed=2}load(t){tC(t)||void 0!==t.speed&&(this.speed=t.speed)}}class eH{constructor(){this.enable=!0,this.retries=0}load(t){tC(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class eW{constructor(){this.value=0}load(t){!tC(t)&&(tC(t.value)||(this.value=tj(t.value)))}}class eq extends eW{constructor(){super(),this.animation=new eI}load(t){if(super.load(t),tC(t))return;let e=t.animation;void 0!==e&&this.animation.load(e)}}class eG extends eq{constructor(){super(),this.animation=new eB}load(t){super.load(t)}}class eY extends eW{constructor(){super(),this.value=1}}class eX{constructor(){this.horizontal=new eY,this.vertical=new eY}load(t){tC(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class eK{constructor(){this.absorb=new eU,this.bounce=new eX,this.enable=!1,this.maxSpeed=50,this.mode=W.bounce,this.overlap=new eH}load(t){tC(t)||(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=tj(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class eZ{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(tC(t))return;let e=t.options;if(void 0!==e)for(let t in e){let i=e[t];i&&(this.options[t]=tZ(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.t
11ype=t.type)}}class eQ{constructor(){this.offset=0,this.value=90}load(t){tC(t)||(void 0!==t.offset&&(this.offset=tj(t.offset)),void 0!==t.value&&(this.value=tj(t.value)))}}class eJ{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!tC(t)&&(void 0!==t.distance&&(this.distance=tj(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){let e=t.rotate.x;void 0!==e&&(this.rotate.x=e);let i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}class e0{constructor(){this.x=50,this.y=50,this.mode=L.percent,this.radius=0}load(t){tC(t)||(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}class e1{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){tC(t)||(void 0!==t.acceleration&&(this.acceleration=tj(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=tj(t.maxSpeed)))}}class e2{constructor(){this.clamp=!0,this.delay=new eW,this.enable=!1,this.options={}}load(t){!tC(t)&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=tZ(this.options,t.options)))}}class e5{load(t){tC(t)||(void 0!==t.color&&(this.color=ew.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class e3{constructor(){this.enable=!1,this.length=10,this.fill=new e5}load(t){tC(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0!==t.length&&(this.length=t.length))}}(y=q||(q={})).bounce="bounce",y.none="none",y.out="out",y.destroy="destroy",y.split="split";class e6{constructor(){this.default=q.out}load(t){tC(t)||(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class e4{constructor(){this.acceleration=0,this.enable=!1}load(t){!tC(t)&&(void 0!==t.acceleration&&(this.acceleration=tj(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=tZ({},t.position)))}}class e8{constructor(){this.angle=new eQ,this.attract=new eJ,this.center=new e0,this.decay=0,this.distance={},this.direction=O.none,this.drift=0,this.enable=!1,this.gravity=new e1,this.path=new e2,this.outModes=new e6,this.random=!1,this.size=!1,this.speed=2,this.spin=new e4,this.straight=!1,this.trail=new e3,this.vibrate=!1,this.warp=!1}load(t){if(tC(t))return;this.angle.load(t_(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=tj(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=t_(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=tj(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);let e=t.outModes;void 0!==e&&(tP(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=tj(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class e9 extends eB{constructor(){super(),this.destroy=V.none,this.speed=2}load(t){super.load(t),tC(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}class e7 extends eG{constructor(){super(),this.animation=new e9,this.value=1}load(t){if(tC(t))return;super.load(t);let e=t.animation;void 0!==e&&this.animation.load(e)}}class it{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(tC(t))return;void 0!==t.enable&&(this.enable=t.enable);let e=t.width;void 0!==e&&(this.width=e);let i=t.height;void 0!==i&&(this.height=i)}}(b=G||(G={})).delete="delete",b.wait="wait";class ie{constructor(){this.mode=G.delete,this.value=0}load(t){tC(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class ii{constructor(){this.density=new it,this.limit=new ie,this.value=0}load(t){tC(t)||(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}class is{constructor(){this.blur=0,this.color=new ew,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){tC(t)||(void 0!==t.blur&&(this.blur=t.blur),this.color=ew.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class ia{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(tC(t))return;let e=t.options;if(void 0!==e)for(let t in e){let i=e[t];i&&(this.options[t]=tZ(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.t
11ype=t.type)}}class ir extends eB{constructor(){super(),this.destroy=V.none,this.speed=5}load(t){super.load(t),tC(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}class io extends eG{constructor(){super(),this.animation=new ir,this.value=3}load(t){if(super.load(t),tC(t))return;let e=t.animation;void 0!==e&&this.animation.load(e)}}class il{constructor(){this.width=0}load(t){tC(t)||(void 0!==t.color&&(this.color=e$.create(this.color,t.color)),void 0!==t.width&&(this.width=tj(t.width)),void 0!==t.opacity&&(this.opacity=tj(t.opacity)))}}class ic extends eW{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),tC(t)||(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class id{constructor(t,e){this._engine=t,this._container=e,this.bounce=new eX,this.collisions=new eK,this.color=new e$,this.color.value="#fff",this.effect=new eZ,this.groups={},this.move=new e8,this.number=new ii,this.opacity=new e7,this.reduceDuplicates=!1,this.shadow=new is,this.shape=new ia,this.size=new io,this.stroke=new il,this.zIndex=new ic}load(t){if(tC(t))return;if(void 0!==t.groups)for(let e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;let i=t.groups[e];void 0!==i&&(this.groups[e]=tZ(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(e$.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=tZ({},t.interactivity));let e=t.stroke;if(e&&(this.stroke=t5(e,t=>{let e=new il;return e.load(t),e})),this._container){let e=this._engine.updaters.get(this._container);if(e)for(let i of e)i.loadOptions&&i.loadOptions(this,t);let i=this._engine.interactors.get(this._container);if(i)for(let e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}function iu(t,...e){for(let i of e)t.load(i)}function ih(t,e,...i){let s=new id(t,e);return iu(s,...i),s}class ip{constructor(t,e){this._findDefaultTheme=t=>this.themes.find(e=>e.default.value&&e.default.mode===t)??this.themes.find(t=>t.default.value&&t.default.mode===H.any),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new e_,this.backgroundMask=new ek,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new eC,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new ez(t,e),this.manualParticles=[],this.particles=ih(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(tC(t))return;void 0!==t.preset&&t5(t.preset,t=>this._importPreset(t)),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=tj(t.delay));let e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=tj(t.duration));let i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);let s=t.fullScreen;tx(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(t=>{let e=new eA;return e.load(t),e})),this.particles.load(t.particles),this.style=tZ(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);let n=this._engine.interactors.get(this._container);if(n)for(let e of n)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(let e of t.responsive){let t=new eV;t.load(e),this.responsive.push(t)}if(this.responsive.sort((t,e)=>t.maxWidth-e.maxWidth),void 0!==t.themes)for(let e of t.themes){let t=this.themes.find(t=>t.name===e.name);if(t)t.load(e);else{let t=new eL;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme(H.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(H.light)?.name}setResponsive(t,e,i){this.load(i);let s=this.responsive.find(i=>i.mode===U.screen&&screen?i.maxWidth>
11screen.availWidth:i.maxWidth*e>t);return this.load(s?.options),s?.maxWidth}setTheme(t){if(t){let e=this.themes.find(e=>e.name===t);e&&this.load(e.options)}else{let t=tW("(prefers-color-scheme: dark)"),e=t?.matches,i=this._findDefaultTheme(e?H.dark:H.light);i&&this.load(i.options)}}}(x=Y||(Y={})).external="external",x.particles="particles";class im{constructor(t,e){this.container=e,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(let e of this._externalInteractors)e.isEnabled()&&e.interact(t)}handleClickMode(t){for(let e of this._externalInteractors)e.handleClickMode?.(t)}async init(){for(let t of(this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[],this._interactors)){switch(t.type){case Y.external:this._externalInteractors.push(t);break;case Y.particles:this._particleInteractors.push(t)}t.init()}}particlesInteract(t,e){for(let i of this._externalInteractors)i.clear(t,e);for(let i of this._particleInteractors)i.isEnabled(t)&&i.interact(t,e)}reset(t){for(let e of this._externalInteractors)e.isEnabled()&&e.reset(t);for(let e of this._particleInteractors)e.isEnabled(t)&&e.reset(t)}}function ig(t){if(!tq(t.outMode,t.checkModes))return;let e=2*t.radius;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)}(w=X||(X={})).normal="normal",w.inside="inside",w.outside="outside";class iv{constructor(t,e){this.container=e,this._calcPosition=(t,e,i,s=tb)=>{var n;for(let s of t.plugins.values()){let t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(t)return tS.create(t.x,t.y,i)}let a=(n={size:t.canvas.size,position:e},{x:n.position?.x??tE()*n.size.width,y:n.position?.y??tE()*n.size.height}),r=tS.create(a.x,a.y,i),o=this.getRadius(),l=this.options.move.outModes,c=e=>{ig({outMode:e,checkModes:[q.bounce],coord:r.x,maxCoord:t.canvas.size.width,setCb:t=>r.x+=t,radius:o})},d=e=>{ig({outMode:e,checkModes:[q.bounce],coord:r.y,maxCoord:t.canvas.size.height,setCb:t=>r.y+=t,radius:o})};return(c(l.left??l.default),c(l.right??l.default),d(l.top??l.default),d(l.bottom??l.default),this._checkOverlap(r,s))?this._calcPosition(t,void 0,i,s+1):r},this._calculateVelocity=()=>{var t;let e,i=(t=this.direction,(e=tM.origin).length=1,e.angle=t,e).copy(),s=this.options.move;if(s.direction===O.inside||s.direction===O.outside)return i;let n=tB(tz(s.angle.value)),a=tB(tz(s.angle.offset)),r={left:a-.5*n,right:a+.5*n};return s.straight||(i.angle+=tO(tj(r.left,r.right))),s.random&&"number"==typeof s.speed&&(i.length*=tE()),i},this._checkOverlap=(t,e=tb)=>{let i=this.options.collisions,s=this.getRadius();if(!i.enable)return!1;let n=i.overlap;if(n.enable)return!1;let a=n.retries;if(a>=0&&e>a)throw Error(`${tp} particle is overlapping and can't be placed`);return!!this.container.particles.find(e=>tI(t,e.position)<s+e.getRadius())},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;let e=this.roll.horizontal&&this.roll.vertical?2:1,i=this.roll.horizontal?.5*Math.PI:0;if(!(Math.floor(((this.roll.angle??0)+i)/(Math.PI/e))%2))return t;if(this.backColor)return this.backColor;if(this.roll.alter){var s,n;return s=this.roll.alter.type,n=this.roll.alter.value,{h:t.h,s:t.s,l:t.l+(s===B.darken?-1:1)*n}}return t},this._initPosition=t=>{let e=this.container,i=tz(this.options.zIndex.value);this.position=this._calcPosition(e,t,tD(i,0,e.zLayers)),this.initialPosition=this.position.copy();let s=e.canvas.size;switch(this.moveCenter={...t8(this.options.move.center,s),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??L.percent},this.direction=function(t,e,i){if(t_(t))return tB(t);switch(t){case O.top:return-(.5*Math.PI);case O.topRight:return-(.25*Math.PI);case O.right:return 0;case O.bottomRight:return .25*Math.PI;case O.bottom:return .5*Math.PI;case O.bottomLeft:return .75*Math.PI;case O.left:return Math.PI;case O.topLeft:return-(.75*Math.PI);case O.inside:return Math.atan2(i.y-e.y,i.x-e.x);case O.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return tE()*tm}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case O.inside:this.outType=X.inside;break;case O.outside:this.outType=X.outside}this.offset=tM.origin},this._engine=t}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;let e=this.container,i=this.pathGenerator,s=e.shapeDrawers.get(this.shape);
11for(let i of(s?.particleDestroy?.(this),e.plugins.values()))i.particleDestroyed?.(this,t);for(let i of e.particles.updaters)i.particleDestroyed?.(this,t);i?.reset(this),this._engine.dispatchEvent(N.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){let e=this.container,i=e.canvas;for(let s of e.plugins.values())i.drawParticlePlugin(s,this,t);i.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??ed(this.color))}getMass(){return this.getRadius()**2*Math.PI*.5}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??ed(this.strokeColor))}init(t,e,i,s){let n=this.container,a=this._engine;this.id=t,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=X.normal,this.ignoresResizeRatio=!0;let r=n.retina.pixelRatio,o=n.actualOptions,l=ih(this._engine,n,o.particles),{reduceDuplicates:c}=l,d=l.effect.type,u=l.shape.type;this.effect=t3(d,this.id,c),this.shape=t3(u,this.id,c);let h=l.effect,p=l.shape;if(i){if(i.effect?.type){let t=t3(i.effect.type,this.id,c);t&&(this.effect=t,h.load(i.effect))}if(i.shape?.type){let t=t3(i.shape.type,this.id,c);t&&(this.shape=t,p.load(i.shape))}}if(this.effect===tf){let t=[...this.container.effectDrawers.keys()];this.effect=t[Math.floor(tE()*t.length)]}if(this.shape===tf){let t=[...this.container.shapeDrawers.keys()];this.shape=t[Math.floor(tE()*t.length)]}this.effectData=function(t,e,i,s){let n=e.options[t];if(n)return tZ({close:e.close,fill:e.fill},t3(n,i,s))}(this.effect,h,this.id,c),this.shapeData=function(t,e,i,s){let n=e.options[t];if(n)return tZ({close:e.close,fill:e.fill},t3(n,i,s))}(this.shape,p,this.id,c),l.load(i);let f=this.effectData;f&&l.load(f.particles);let m=this.shapeData;m&&l.load(m.particles);let g=new ez(a,n);g.load(n.actualOptions.interactivity),g.load(l.interactivity),this.interactivity=g,this.effectFill=f?.fill??l.effect.fill,this.effectClose=f?.close??l.effect.close,this.shapeFill=m?.fill??l.shape.fill,this.shapeClose=m?.close??l.shape.close,this.options=l;let v=this.options.move.path;this.pathDelay=1e3*tz(v.delay.value),v.generator&&(this.pathGenerator=this._engine.getPathGenerator(v.generator),this.pathGenerator&&n.addPath(v.generator,this.pathGenerator)&&this.pathGenerator.init(n)),n.retina.initParticle(this),this.size=t4(this.options.size,r),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(e),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-tz(this.options.move.decay);let y=n.particles;y.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24;let b=n.effectDrawers.get(this.effect);!b&&(b=this._engine.getEffectDrawer(this.effect))&&n.effectDrawers.set(this.effect,b),b?.loadEffect&&b.loadEffect(this);let x=n.shapeDrawers.get(this.shape);!x&&(x=this._engine.getShapeDrawer(this.shape))&&n.shapeDrawers.set(this.shape,x),x?.loadShape&&x.loadShape(this);let w=x?.getSidesCount;for(let t of(w&&(this.sides=w(this)),this.spawning=!1,this.shadowColor=et(this._engine,this.options.shadow.color),y.updaters))t.init(this);for(let t of y.movers)t.init?.(this);for(let t of(b?.particleInit?.(n,this),x?.particleInit?.(n,this),n.plugins.values()))t.particleCreated?.(this)}isInsideCanvas(){let t=this.getRadius(),e=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=e.height+t&&i.x<=e.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(let t of this.container.particles.updaters)t.reset?.(this)}}class iy{constructor(t,e){this.position=t,this.particle=e}}(_=K||(K={})).circle="circle",_.rectangle="rectangle";class ib{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class ix extends ib{constructor(t,e,i){super(t,e,K.circle),this.radius=i}contains(t){return tI(t,this.position)<=this.radius}intersects(t){let e=this.position,i=t.position,s={x:Math.abs(i.x-e.x),y:Math.abs(i.y-e.y)},n=this.radius;if(t instanceof ix||t.type===K.circle)return n+t.radius>Math.sqrt(s.x**2+s.y**2);if(t instanceof iw||t.type===K.rectangle){let{width:e,height:i}=t.size;return Math.pow(s.x-e,2)+Math.pow(s.y-i,2)<=n**2||s.x<=n+e&&s.y<=n+i||s.x<=e||s.y<=i}return!1}}class iw extends ib{constructor(t,e,i,s){super(t,e,K.rectangle),this.size={height:s,width:i}}contains(t){let e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof ix)return t.intersects(this);let e=this.size.width,i=this.size.height,s=this.position,n=t.position,a=t instanceof iw?t.size:{width:0,height:0},r=a.width,o=a.height;return n.x<s.x+e&&n.x+r>s.x&&n.y<s.y+i&&n.y+o>s.y}}class i_{constructor(t,e){this.rectangle=t,this.capacity=e,this._subdivide=()=>{let{x:t,y:e}=this.rectangle.position,{width:i,height:s}=this.rectangle.size,{capacity:n}=this;for(let a=0;a<4;a++){let r=a%2;
11this._subs.push(new i_(new iw(t+.5*i*r,e+.5*s*(Math.round(.5*a)-r),.5*i,.5*s),n))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some(e=>e.insert(t))))}query(t,e){let i=[];if(!t.intersects(this.rectangle))return[];for(let s of this._points)!t.contains(s.position)&&tI(t.position,s.position)>s.particle.getRadius()&&(!e||e(s.particle))||i.push(s.particle);if(this._divided)for(let s of this._subs)i.push(...s.query(t,e));return i}queryCircle(t,e,i){return this.query(new ix(t.x,t.y,e),i)}queryRectangle(t,e,i){return this.query(new iw(t.x,t.y,e.width,e.height),i)}}let iP=t=>{let{height:e,width:i}=t;return new iw(-.25*i,-.25*e,1.5*i,1.5*e)};class ik{constructor(t,e){this._addToPool=(...t)=>{this._pool.push(...t)},this._applyDensity=(t,e,i,s)=>{let n=t.number;if(!t.number.density?.enable)return void(void 0===i?this._limit=n.limit.value:(s?.number.limit?.value??n.limit.value)&&this._groupLimits.set(i,s?.number.limit?.value??n.limit.value));let a=this._initDensityFactor(n.density),r=n.value,o=n.limit.value>0?n.limit.value:r,l=Math.min(r,o)*a+e,c=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this._limit=n.limit.value*a:this._groupLimits.set(i,n.limit.value*a),c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)},this._initDensityFactor=t=>{let e=this._container;if(!e.canvas.element||!t.enable)return 1;let i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.height*t.width*s**2)},this._pushParticle=(t,e,i,s)=>{try{let n=this._pool.pop();n||(n=new iv(this._engine,this._container)),n.init(this._nextId,t,e,i);let a=!0;if(s&&(a=s(n)),!a)return;return this._array.push(n),this._zArray.push(n),this._nextId++,this._engine.dispatchEvent(N.particleAdded,{container:this._container,data:{particle:n}}),n}catch(t){t$.warning(`${tp} adding particle: ${t}`)}},this._removeParticle=(t,e,i)=>{let s=this._array[t];if(!s||s.group!==e)return!1;let n=this._zArray.indexOf(s);return this._array.splice(t,1),this._zArray.splice(n,1),s.destroy(i),this._engine.dispatchEvent(N.particleRemoved,{container:this._container,data:{particle:s}}),this._addToPool(s),!0},this._engine=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new im(t,e),this._pluginsInitialized=!1;const i=e.canvas.size;this.quadTree=new i_(iP(i),4),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){let t=this._container;t.actualOptions.manualParticles.forEach(e=>this.addParticle(e.position?t8(e.position,t.canvas.size):void 0,e.options))}addParticle(t,e,i,s){let n=this._container.actualOptions.particles.number.limit.mode,a=void 0===i?this._limit:this._groupLimits.get(i)??this._limit,r=this.count;if(a>0)switch(n){case G.delete:{let t=r+1-a;t>0&&this.removeQuantity(t);break}case G.wait:if(r>=a)return}return this._pushParticle(t,e,i,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){let e=this._container,i=e.canvas;for(let s of(i.clear(),this.update(t),e.plugins.values()))i.drawPlugin(s,t);for(let e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}
11async init(){let t=this._container,e=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(let e of t.plugins.values())if(i=e.particlesInitialization?.()??i)break;if(this.addManualParticles(),!i){let t=e.particles,i=t.groups;for(let e in i){let s=i[e];for(let i=this.count,n=0;n<s.number?.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;let t=this._container;for(let e of(this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0),await this._interactionManager.init(),t.pathGenerators.values()))e.init(t)}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e?.position,i,s)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(t,e,i){this.removeAt(this._array.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let a=t;n<e&&a<this.count;a++)this._removeParticle(a,i,s)&&(a--,n++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){let t=this._container.actualOptions,e=t.particles.groups,i=t.manualParticles.length;for(let t in e)this._applyDensity(e[t],i,t);this._applyDensity(t.particles,i)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}update(t){let e=this._container,i=new Set;for(let t of(this.quadTree=new i_(iP(e.canvas.size),4),e.pathGenerators.values()))t.update();for(let i of e.plugins.values())i.update?.(t);let s=this._resizeFactor;for(let e of this._array){for(let i of(s&&!e.ignoresResizeRatio&&(e.position.x*=s.width,e.position.y*=s.height,e.initialPosition.x*=s.width,e.initialPosition.y*=s.height),e.ignoresResizeRatio=!1,this._interactionManager.reset(e),this._container.plugins.values())){if(e.destroyed)break;i.particleUpdate?.(e,t)}for(let i of this.movers)i.isEnabled(e)&&i.move(e,t);if(e.destroyed){i.add(e);continue}this.quadTree.insert(new iy(e.getPosition(),e))}if(i.size){let t=t=>!i.has(t);for(let e of(this._array=this.filter(t),this._zArray=this._zArray.filter(t),i))this._engine.dispatchEvent(N.particleRemoved,{container:this._container,data:{particle:e}});this._addToPool(...i)}for(let e of(this._interactionManager.externalInteract(t),this._array)){for(let i of this.updaters)i.update(e,t);e.destroyed||e.spawning||this._interactionManager.particlesInteract(e,t)}if(delete this._resizeFactor,this._needsSort){let t=this._zArray;t.sort((t,e)=>e.position.z-t.position.z||t.id-e.id),this._lastZIndex=t[t.length-1].position.z,this._needsSort=!1}}}class iC{constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){let t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||tH()?1:devicePixelRatio,this.reduceFactor=1;let i=this.pixelRatio,s=t.canvas;if(s.element){let t=s.element;s.size.width=t.offsetWidth*i,s.size.height=t.offsetHeight*i}let n=e.particles,a=n.move;this.maxSpeed=tz(a.gravity.maxSpeed)*i,this.sizeAnimationSpeed=tz(n.size.animation.speed)*i}initParticle(t){let e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,a=t.retina;a.moveDrift=tz(s.drift)*i,a.moveSpeed=tz(s.speed)*i,a.sizeAnimationSpeed=tz(e.size.animation.speed)*i;let r=a.maxDistance;r.horizontal=void 0!==n.horizontal?n.horizontal*i:void 0,r.vertical=void 0!==n.vertical?n.vertical*i:void 0,a.maxSpeed=tz(s.gravity.maxSpeed)*i}}function iS(t){return t&&!t.destroyed}function iM(t,e,...i){let s=new ip(t,e);return iu(s,...i),s}class iT{constructor(t,e,i){this._intersectionManager=t=>{if(iS(this)&&this.actualOptions.pauseOnOutsideViewport)for(let e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())},this._nextFrame=t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+1e3/this.fpsLimit)return void this.draw(!1);this._lastFrameTime??=t;let e=function(t,e=60,i=!1){return{value:t,factor:i?60/e:60*t/1e3}}(t-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(e.value),this._lastFrameTime=t,e.value>1e3)return void this.draw(!1);if(this.particles.draw(e),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){t$.error(`${tp} in animation loop`,t)}},this._engine=t,this.id=Symbol(e),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new iC(this),this.canvas=new ey(this,this._engine),this.particles=new ik(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=iM(this._engine,this),this.actualOptions=iM(this._engine,this),this._eventListeners=new ex(this),this._intersectionObserver=function(t){if(!tH()&&"u">typeof IntersectionObserver)return new IntersectionObserver(t)}(t=>this._intersectionManager(t)),this._engine.dispatchEvent(N.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&iS(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!iS(this))return;let e=this.interactivity.element;if(!e)return;let i=(e,i,s)=>{if(!iS(this))return;let n=this.retina.pixelRatio,a={x:i.x*n,y:i.y*n};t(e,this.particles.quadTree.queryCircle(a,s*n))},s=t=>{if(!iS(this))return;let e={x:t.offsetX||t.clientX,y:t.offsetY||t.clientY};i(t,e,1)},n=()=>{iS(this)&&(l=!0,c=!1)},a=()=>{iS(this)&&(c=!0)},r=t=>{if(iS(this)){if(l&&!c){let e=t.touches[t.touches.length-1];if(!e&&!(e=t.changedTouches[t.changedTouches.length-1]))return;let s=this.canvas.element,n=s?s.getBoundingClientRect():void 0;i(t,{x:e.clientX-(n?n.left:0),y:e.clientY-(n?n.top:0)},Math.max(e.radiusX,e.radiusY))}l=!1,c=!1}},o=()=>{iS(this)&&(l=!1,c=!1)}
11,l=!1,c=!1;for(let[t,i]of(this._clickHandlers.set("click",s),this._clickHandlers.set("touchstart",n),this._clickHandlers.set("touchmove",a),this._clickHandlers.set("touchend",r),this._clickHandlers.set("touchcancel",o),this._clickHandlers))e.addEventListener(t,i)}addLifeTime(t){this._lifeTime+=t}addPath(t,e,i=!1){return!(!iS(this)||!i&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,e),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(iS(this)){for(let[t,e]of this._clickHandlers)this.interactivity.element?.removeEventListener(t,e);this._clickHandlers.clear()}}destroy(t=!0){if(iS(this)){for(let t of(this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy(),this.effectDrawers.values()))t.destroy?.(this);for(let t of this.shapeDrawers.values())t.destroy?.(this);for(let t of this.effectDrawers.keys())this.effectDrawers.delete(t);for(let t of this.shapeDrawers.keys())this.shapeDrawers.delete(t);if(this._engine.clearPlugins(this),this.destroyed=!0,t){let t=this._engine.items,e=t.findIndex(t=>t===this);e>=0&&t.splice(e,1)}this._engine.dispatchEvent(N.containerDestroyed,{container:this})}}draw(t){if(!iS(this))return;let e=t,i=t=>{e&&(this._lastFrameTime=void 0,e=!1),this._nextFrame(t)};this._drawAnimationFrame=requestAnimationFrame(t=>i(t))}async export(t,e={}){for(let i of this.plugins.values()){if(!i.export)continue;let s=await i.export(t,e);if(s.supported)return s.blob}t$.error(`${tp} - Export plugin with type ${t} not found`)}handleClickMode(t){if(iS(this))for(let e of(this.particles.handleClickMode(t),this.plugins.values()))e.handleClickMode?.(t)}
11async init(){if(!iS(this))return;for(let t of this._engine.getSupportedEffects()){let e=this._engine.getEffectDrawer(t);e&&this.effectDrawers.set(t,e)}for(let t of this._engine.getSupportedShapes()){let e=this._engine.getShapeDrawer(t);e&&this.shapeDrawers.set(t,e)}for(let[t,e]of(await this.particles.initPlugins(),this._options=iM(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=iM(this._engine,this,this._options),await this._engine.getAvailablePlugins(this)))this.plugins.set(t,e);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();let{zLayers:t,duration:e,delay:i,fpsLimit:s,smooth:n}=this.actualOptions;for(let a of(this.zLayers=t,this._duration=1e3*tz(e),this._delay=1e3*tz(i),this._lifeTime=0,this.fpsLimit=s>0?s:120,this._smooth=n,this.effectDrawers.values()))await a.init?.(this);for(let t of this.shapeDrawers.values())await t.init?.(this);for(let t of this.plugins.values())await t.init?.();for(let t of(this._engine.dispatchEvent(N.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity(),this.plugins.values()))t.particlesSetup?.();this._engine.dispatchEvent(N.particlesSetup,{container:this})}async loadTheme(t){iS(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(iS(this)){if(void 0!==this._drawAnimationFrame){var t;t=this._drawAnimationFrame,cancelAnimationFrame(t),delete this._drawAnimationFrame}if(!this._paused){for(let t of this.plugins.values())t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(N.containerPaused,{container:this})}}}play(t){if(!iS(this))return;let e=this._paused||t;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),e)for(let t of this.plugins.values())t.play&&t.play();this._engine.dispatchEvent(N.containerPlay,{container:this}),this.draw(e??!1)}async refresh(){if(iS(this))return this.stop(),this.start()}async reset(t){if(iS(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=iM(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=iM(this._engine,this,this._options),this.refresh()}async start(){iS(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{let e=async()=>{for(let t of(this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element),this.plugins.values()))await t.start?.();this._engine.dispatchEvent(N.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>void e(),this._delay)}))}stop(){if(iS(this)&&this.started){for(let t of(this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element),this.plugins.values()))t.stop?.();for(let t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent(N.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];let t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==t&&(this._responsiveMaxWidth=t,!0)}}class iE{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){let i=this._listeners.get(t);i?.forEach(t=>t(e))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){let i=this._listeners.get(t);if(!i)return;let s=i.length,n=i.indexOf(e);n<0||(1===s?this._listeners.delete(t):i.splice(n,1))}}async function iD(t,e,i,s=!1){let n=e.get(t);return(!n||s)&&(n=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,n)),n}async function iR(t){let e=t3(t.url,t.index);if(!e)return t.fallback;let i=await fetch(e);return i.ok?await i.json():(t$.error(`${tp} ${i.status} while retrieving config file`),t.fallback)}class iO{constructor(t){this.type=Y.external,this.container=t}}class iz{constructor(t){this.type=Y.particles,this.container=t}}(P=Z||(Z={})).clockwise="clockwise",P.counterClockwise="counter-clockwise",P.random="random",(k=Q||
11(Q={})).linear="linear",k.radial="radial",k.random="random",(C=J||(J={})).easeInBack="ease-in-back",C.easeInCirc="ease-in-circ",C.easeInCubic="ease-in-cubic",C.easeInLinear="ease-in-linear",C.easeInQuad="ease-in-quad",C.easeInQuart="ease-in-quart",C.easeInQuint="ease-in-quint",C.easeInExpo="ease-in-expo",C.easeInSine="ease-in-sine",C.easeOutBack="ease-out-back",C.easeOutCirc="ease-out-circ",C.easeOutCubic="ease-out-cubic",C.easeOutLinear="ease-out-linear",C.easeOutQuad="ease-out-quad",C.easeOutQuart="ease-out-quart",C.easeOutQuint="ease-out-quint",C.easeOutExpo="ease-out-expo",C.easeOutSine="ease-out-sine",C.easeInOutBack="ease-in-out-back",C.easeInOutCirc="ease-in-out-circ",C.easeInOutCubic="ease-in-out-cubic",C.easeInOutLinear="ease-in-out-linear",C.easeInOutQuad="ease-in-out-quad",C.easeInOutQuart="ease-in-out-quart",C.easeInOutQuint="ease-in-out-quint",C.easeInOutExpo="ease-in-out-expo",C.easeInOutSine="ease-in-out-sine";let iA=((i=new class t{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new iE,this._initialized=!1,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){let t={};for(let[e,i]of this._configs)t[e]=i;return t}get items(){return this._domArray}get version(){return"3.9.1"}async addColorManager(t,e=!0){this.colorManagers.set(t.key,t),await this.refresh(e)}addConfig(t){let e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent(N.configAdded,{data:{name:e,config:t}})}async addEasing(t,e,i=!0){this.getEasing(t)||(this.easingFunctions.set(t,e),await this.refresh(i))}async addEffect(t,e,i=!0){t5(t,t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,e)}),await this.refresh(i)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,s=!0){(i||!this.getPreset(t))&&this.presets.set(t,e),await this.refresh(s)}async addShape(t,e=!0){for(let e of t.validTypes)this.getShapeDrawer(e)||this.shapeDrawers.set(e,t);await this.refresh(e)}checkVersion(t){if(this.version!==t)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){let e=new Map;for(let i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return iD(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return iD(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return iD(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}item(t){let{items:e}=this,i=e[t];return!i||i.destroyed?void e.splice(t,1):i}async load(t){let e,i=t.id??t.element?.id??`tsparticles${Math.floor(1e4*tE())}`,{index:s,url:n}=t,a=t3(n?await iR({fallback:t.options,url:n,index:s}):t.options,s),{items:r}=this,o=r.findIndex(t=>t.id.description===i),l=new iT(this,i,a);if(o>=0){let t=this.item(o),e=+!!t;t&&!t.destroyed&&t.destroy(!1),r.splice(o,e,l)}else r.push(l);let c=(t=>{let e;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===ty)(e=t).dataset[tc]||(e.dataset[tc]=tv);else{let i=t.getElementsByTagName(ty);i.length?(e=i[0]).dataset[tc]=tv:((e=document.createElement(ty)).dataset[tc]=tg,t.appendChild(e))}let i="100%";return e.style.width||(e.style.width=i),e.style.height||(e.style.height=i),e}
11)(((e=t.element??document.getElementById(i))||((e=document.createElement("div")).id=i,e.dataset[tc]=tg,document.body.append(e)),e));return l.canvas.loadCanvas(c),await l.start(),l}loadOptions(t,e){this.plugins.forEach(i=>i.loadOptions?.(t,e))}loadParticlesOptions(t,e,...i){let s=this.updaters.get(t);s&&s.forEach(t=>t.loadOptions?.(e,...i))}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){let{items:e}=this;if(!e.length)throw Error(`${tp} can only set click handlers after calling tsParticles.load()`);e.forEach(e=>e.addClickHandler(t))}}).init(),i);tH()||(window.tsParticles=iA);let iV=t=>{let e=t.id??"tsparticles";return(0,tl.useEffect)(()=>{let i;return iA.load({id:e,url:t.url,options:t.options}).then(e=>{var s;i=e,null==(s=t.particlesLoaded)||s.call(t,e)}),()=>{null==i||i.destroy()}},[e,t,t.url,t.options]),(0,tr.jsx)("div",{id:e,className:t.className})};async function ij(t){await t(iA)}let iL=2*Math.PI;class iI{init(t){let e=t.options.move.gravity;t.gravity={enable:e.enable,acceleration:tz(e.acceleration),inverse:e.inverse},function(t){let e=t.container,i=t.options.move.spin;if(!i.enable)return;let s=i.position??{x:50,y:50},n={x:.01*s.x*e.canvas.size.width,y:.01*s.y*e.canvas.size.height},a=tI(t.getPosition(),n),r=tz(i.acceleration);t.retina.spinAcceleration=r*e.retina.pixelRatio,t.spin={center:n,direction:t.velocity.x>=0?Z.clockwise:Z.counterClockwise,angle:tE()*iL,radius:a,acceleration:t.retina.spinAcceleration}}(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,e){let i=t.options,s=i.move;if(!s.enable)return;let n=t.container,a=n.retina.pixelRatio;t.retina.moveSpeed??=tz(s.speed)*a,t.retina.moveDrift??=tz(t.options.move.drift)*a;let r=t.slow.inRange?t.slow.factor:1,o=n.retina.reduceFactor,l=t.retina.moveSpeed,c=t.retina.moveDrift,d=tV(i.size.value)*a,u=l*(s.size?t.getRadius()/d:1)*r*(e.factor||1)/2,h=t.retina.maxSpeed??n.retina.maxSpeed;s.spin.enable?function(t,e,i){let s=t.container;if(!t.spin)return;let n=t.spin.direction===Z.clockwise,a={x:n?Math.cos:Math.sin,y:n?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*a.x(t.spin.angle)*i,t.position.y=t.spin.center.y+t.spin.radius*a.y(t.spin.angle)*i,t.spin.radius+=t.spin.acceleration*i;let r=Math.max(s.canvas.size.width,s.canvas.size.height),o=.5*r;t.spin.radius>o?(t.spin.radius=o,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=.01*e*(1-t.spin.radius/r)}(t,u,o):function(t,e,i,s,n,a,r){!function(t,e){let i=t.options.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}let s=t.pathGenerator?.generate(t,e);s&&t.velocity.addTo(s),i.clamp&&(t.velocity.x=tD(t.velocity.x,-1,1),t.velocity.y=tD(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}(t,r);let o=t.gravity,l=o?.enable&&o.inverse?-1:1;n&&i&&(t.velocity.x+=n*r.factor/(60*i)),o?.enable&&i&&(t.velocity.y+=l*(o.acceleration*r.factor)/(60*i));let c=t.moveDecay;t.velocity.multTo(c);let d=t.velocity.mult(i);o?.enable&&s>0&&(!o.inverse&&d.y>=0&&d.y>=s||o.inverse&&d.y<=0&&d.y<=-s)&&(d.y=l*s,i&&(t.velocity.y=d.y/i));let u=t.options.zIndex,h=(1-t.zIndexFactor)**u.velocityRate;d.multTo(h),d.multTo(a);let{position:p}=t;p.addTo(d),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y))*a,p.y+=Math.cos(p.y*Math.sin(p.x))*a)}(t,s,u,h,c,o,e),function(t){let e=t.initialPosition,{dx:i,dy:s}=tL(e,t.position),n=Math.abs(i),a=Math.abs(s),{maxDistance:r}=t.retina,o=r.horizontal,l=r.vertical;if(o||l){if((o&&n>=o||l&&a>=l)&&!t.misplaced)t.misplaced=!!o&&n>o||!!l&&a>l,o&&(t.velocity.x=.5*t.velocity.y-t.velocity.x),l&&(t.velocity.y=.5*t.velocity.x-t.velocity.y);else if((!o||n<o)&&(!l||a<l)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){let i=t.position,s=t.velocity;o&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-tE()),l&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-tE())}}}(t)}}async function iB(t,e=!0){t.checkVersion("3.9.1"),await t.addMover("base",()=>Promise.resolve(new iI),e)}let iF=2*Math.PI;class iN{constructor(){this.validTypes=["circle"]}draw(t){!function(t){let{context:e,particle:i,radius:s}=t;i.circleRange||(i.circleRange={min:0,max:iF});let n=i.circleRange;e.arc(0,0,s,n.min,n.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){let i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=tP(s)?{min:tB(s.min),max:tB(s.max)}:{min:0,max:tB(s)}}}async function i$(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new iN,e)}class iU{constructor(t,e){this._container=t,this._engine=e}init(t){let e=ee(this._engine,t.options.color,t.id,t.options.reduceDuplicates);
11e&&(t.color=eu(e,t.options.color.animation,this._container.retina.reduceFactor))}isEnabled(t){let{h:e,s:i,l:s}=t.options.color.animation,{color:n}=t;return!t.destroyed&&!t.spawning&&(n?.h.value!==void 0&&e.enable||n?.s.value!==void 0&&i.enable||n?.l.value!==void 0&&s.enable)}update(t,e){ef(t.color,e)}}async function iH(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("color",e=>Promise.resolve(new iU(e,t)),e)}(S=tt||(tt={}))[S.r=1]="r",S[S.g=2]="g",S[S.b=3]="b",S[S.a=4]="a";let iW=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,iq=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class iG{constructor(){this.key="hex",this.stringPrefix="#"}handleColor(t){return this._parseString(t.value)}handleRangeColor(t){return this._parseString(t.value)}parseString(t){return this._parseString(t)}_parseString(t){if("string"!=typeof t||!t?.startsWith(this.stringPrefix))return;let e=t.replace(iW,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0!==n?n+n:"")),i=iq.exec(e);return i?{a:void 0!==i[tt.a]?parseInt(i[tt.a],16)/255:1,b:parseInt(i[tt.b],16),g:parseInt(i[tt.g],16),r:parseInt(i[tt.r],16)}:void 0}}async function iY(t,e=!0){t.checkVersion("3.9.1"),await t.addColorManager(new iG,e)}(M=te||(te={}))[M.h=1]="h",M[M.s=2]="s",M[M.l=3]="l",M[M.a=5]="a";class iX{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return es(e)}handleRangeColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return es({h:tz(e.h),l:tz(e.l),s:tz(e.s)})}parseString(t){var e;let i;if(!t.startsWith("hsl"))return;let s=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(t);return s?(i=es(e={a:s.length>4?tN(s[te.a]):1,h:parseInt(s[te.h],10),l:parseInt(s[te.l],10),s:parseInt(s[te.s],10)}),{a:e.a,b:i.b,g:i.g,r:i.r}):void 0}}async function iK(t,e=!0){t.checkVersion("3.9.1"),await t.addColorManager(new iX,e)}class iZ{constructor(t){this.container=t}init(t){let e=t.options.opacity;t.opacity=t4(e,1);let i=e.animation;i.enable&&(t.opacity.velocity=tz(i.speed)/100*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=tE()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&t9(t,t.opacity,!0,t.options.opacity.animation.destroy,e)}}async function iQ(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("opacity",t=>Promise.resolve(new iZ(t)),e)}class iJ{constructor(t){this.container=t,this.modes=[q.bounce,q.split]}update(t,e,i,s){if(!this.modes.includes(s))return;let n=this.container,a=!1;for(let s of n.plugins.values())if(void 0!==s.particleBounce&&(a=s.particleBounce(t,i,e)),a)break;if(a)return;let r=t.getPosition(),o=t.offset,l=t.getRadius(),c=tK(r,l),d=n.canvas.size;!function(t){if(t.outMode!==q.bounce&&t.outMode!==q.split||t.direction!==j.left&&t.direction!==j.right)return;t.bounds.right<0&&t.direction===j.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===j.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);let e=t.particle.velocity.x,i=!1;if(t.direction===j.right&&t.bounds.right>=t.canvasSize.width&&e>0||t.direction===j.left&&t.bounds.left<=0&&e<0){let e=tz(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;let s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===j.right?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&t.direction===j.left&&(t.particle.position.x=s),t.outMode===q.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:d,offset:o,size:l}),function(t){if(t.outMode!==q.bounce&&t.outMode!==q.split||t.direction!==j.bottom&&t.direction!==j.top)return;t.bounds.bottom<0&&t.direction===j.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===j.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);let e=t.particle.velocity.y,i=!1;if(t.direction===j.bottom&&t.bounds.bottom>=t.canvasSize.height&&e>0||t.direction===j.top&&t.bounds.top<=0&&e<0){let e=tz(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;let s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===j.bottom?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&t.direction===j.top&&(t.particle.position.y=s),t.outMode===q.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:d,offset:o,size:l})}}class i0{constructor(t){this.container=t,this.modes=[q.destroy]}update(t,e,i,s){if(!this.modes.includes(s))return;let n=this.container;switch(t.outType){case X.normal:case X.outside:if(tX(t.position,n.canvas.size,tM.origin,t.getRadius(),e))return;break;case X.inside:{let{dx:e,dy:i}=tL(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return}}n.particles.remove(t,t.group,!0)}}class i1{constructor(t){this.container=t,this.modes=[q.none]}update(t,e,i,s){if(!this.modes.includes(s)||((t.options.move.distance.horizontal&&(e===j.left||e===j.right))??(t.options.move.distance.vertical&&(e===j.top||e===j.bottom))))return;let n=t.options.move.gravity,a=this.container,r=a.canvas.size,o=t.getRadius();if(n.enable){let i=t.position;(!n.inverse&&i.y>r.height+o&&e===j.bottom||n.inverse&&i.y<-o&&e===j.top)&&a.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=r.height+o||t.velocity.y<0&&t.position.y>=-o||t.velocity.x>0&&t.position.x<=r.width+o||t.velocity.x<0&&t.position.x>=-o)return;tX(t.position,a.canvas.size,tM.origin,o,e)||a.particles.remove(t)}}}class i2{constructor(t){this.container=t,this.modes=[q.out]}update(t,e,i,s){if(!this.modes.includes(s))return;let n=this.container;if(t.outType===X.inside){let{x:e,y:i}=t.velocity,s=tM.origin;s.length=t.moveCenter.radius,s.angle=t.velocity.angle+Math.PI,s.addTo(tM.create(t.moveCenter));let{dx:a,dy:r}=tL(t.position,s);if(e<=0&&a>=0||i<=0&&r>=0||e>=0&&a<=0||i>=0&&r<=0)return;t.position.x=Math.floor(tO({min:0,max:n.canvas.size.width})),t.position.y=Math.floor(tO({min:0,max:n.canvas.size.height}));let{dx:o,dy:l}=tL(t.position,t.moveCenter);t.direction=Math.atan2(-l,-o),t.velocity.angle=t.direction}else{if(tX(t.position,n.canvas.size,tM.origin,t.getRadius(),e))return;switch(t.outType){case X.outside:{t.position.x=Math.floor(tO({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(tO({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;let{dx:e,dy:i}=tL(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction);break}case X.normal:{let i=t.options.move.warp,s=n.canvas.size,a={bottom:s.height+t.getRadius()+t.offset.y,left
11:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},r=t.getRadius(),o=tK(t.position,r);e===j.right&&o.left>s.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,i||(t.position.y=tE()*s.height,t.initialPosition.y=t.position.y)):e===j.left&&o.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,i||(t.position.y=tE()*s.height,t.initialPosition.y=t.position.y)),e===j.bottom&&o.top>s.height+t.offset.y?(i||(t.position.x=tE()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y):e===j.top&&o.bottom<-t.offset.y&&(i||(t.position.x=tE()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y)}}}}}class i5{constructor(t){this._addUpdaterIfMissing=(t,e,i)=>{let s=t.options.move.outModes;this.updaters.has(e)||s.default!==e&&s.bottom!==e&&s.left!==e&&s.right!==e&&s.top!==e||this.updaters.set(e,i(this.container))},this._updateOutMode=(t,e,i,s)=>{for(let n of this.updaters.values())n.update(t,s,e,i)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,q.bounce,t=>new iJ(t)),this._addUpdaterIfMissing(t,q.out,t=>new i2(t)),this._addUpdaterIfMissing(t,q.destroy,t=>new i0(t)),this._addUpdaterIfMissing(t,q.none,t=>new i1(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){let i=t.options.move.outModes;this._updateOutMode(t,e,i.bottom??i.default,j.bottom),this._updateOutMode(t,e,i.left??i.default,j.left),this._updateOutMode(t,e,i.right??i.default,j.right),this._updateOutMode(t,e,i.top??i.default,j.top)}}async function i3(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("outModes",t=>Promise.resolve(new i5(t)),e)}(T=ti||(ti={}))[T.r=1]="r",T[T.g=2]="g",T[T.b=3]="b",T[T.a=5]="a";class i6{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){let e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){let e=t.value.rgb??t.value;if(void 0!==e.r)return{r:tz(e.r),g:tz(e.g),b:tz(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;let e=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(t);return e?{a:e.length>4?tN(e[ti.a]):1,b:parseInt(e[ti.b],10),g:parseInt(e[ti.g],10),r:parseInt(e[ti.r],10)}:void 0}}async function i4(t,e=!0){t.checkVersion("3.9.1"),await t.addColorManager(new i6,e)}class i8{init(t){let e=t.container,i=t.options.size.animation;i.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??e.retina.sizeAnimationSpeed)/100*e.retina.reduceFactor,i.sync||(t.size.velocity*=tE()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}reset(t){t.size.loops=0}update(t,e){this.isEnabled(t)&&t9(t,t.size,!0,t.options.size.animation.destroy,e)}}async function i9(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("size",()=>Promise.resolve(new i8),e)}async function i7(t,e=!0){t.checkVersion("3.9.1"),await iY(t,!1),await iK(t,!1),await i4(t,!1),await iB(t,!1),await i$(t,!1),await iH(t,!1),await iQ(t,!1),await i3(t,!1),await i9(t,!1),await t.refresh(e)}async function st(t,e=!0){t.checkVersion("3.9.1"),await t.addEasing(J.easeInQuad,t=>t**2,!1),await t.addEasing(J.easeOutQuad,t=>1-(1-t)**2,!1),await t.addEasing(J.easeInOutQuad,t=>t<.5?2*t**2:1-(-2*t+2)**2/2,!1),await t.refresh(e)}let se='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class si{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(let[t,e]of this._emojiShapeDict)e instanceof ImageBitmap&&e?.close(),this._emojiShapeDict.delete(t)}draw(t){let e=t.particle.emojiDataKey;if(!e)return;let i=this._emojiShapeDict.get(e);i&&function(t,e){let{context:i,opacity:s}=t,n=i.globalAlpha;if(!e)return;let a=e.width,r=.5*a;i.globalAlpha=s,i.drawImage(e,-r,-r,a,a),i.globalAlpha=n}(t,i)}async init(t){let e=t.actualOptions,{validTypes:i}=this;if(!i.find(t=>tq(t,e.particles.shape.type)))return;let s=[tG(se)],n=i.map(t=>e.particles.shape.options[t]).find(t=>!!t);n&&t5(n,t=>{t.font&&s.push(tG(t.font))}),await Promise.all(s)}particleDestroy(t){t.emojiDataKey=void 0}particleInit(t,e){let i,s=e.shapeData;if(!s?.value)return;let n=t3(s.value,e.randomIndexData);if(!n)return;let a="string"==typeof n?{font:s.font??se,padding:s.padding??0,value:n}:{font:se,padding:0,...s,...n},r=a.font,o=a.value,l=`${o}_${r}`;if(this._emojiShapeDict.has(l)){e.emojiDataKey=l;return}let c=2*a.padding,d=tV(e.size.value),u=d+c,h=2*u;if("u">typeof OffscreenCanvas){let t=new OffscreenCanvas(h,h),e=t.getContext("2d");if(!e)return;e.font=`400 ${2*d}px ${r}`,e.textBaseline="middle",e.textAlign="center",e.fillText(o,u,u),i=t.transferToImageBitmap()}else{let t=document.createElement("canvas");t.width=h,t.height=h;let e=t.getContext("2d");if(!e)return;e.font=`400 ${2*d}px ${r}`,e.textBaseline="middle",e.textAlign="center",e.fillText(o,u,u),i=t}this._emojiShapeDict.set(l,i),e.emojiDataKey=l}}async function ss(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new si,e)}
11function sn(t,e,i,s,n,a){let r=e.actualOptions.interactivity.modes.attract;if(r)for(let o of e.particles.quadTree.query(n,a)){let{dx:e,dy:n,distance:a}=tL(o.position,i),l=r.speed*r.factor,c=tD(t.getEasing(r.easing)(1-a/s)*l,1,r.maxSpeed),d=tM.create(a?e/a*c:l,a?n/a*c:l);o.position.subFrom(d)}}class sa{constructor(){this.distance=200,this.duration=.4,this.easing=J.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(t){tC(t)||(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}let sr="attract";class so extends iO{constructor(t,e){super(e),this._engine=t,e.attract||(e.attract={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.attract;if(i&&t===sr){for(let t of(e.attract||(e.attract={particles:[]}),e.attract.clicking=!0,e.attract.count=0,e.attract.particles))this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout(()=>{e.destroyed||(e.attract||(e.attract={particles:[]}),e.attract.clicking=!1)},1e3*i.duration)}}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.attract;e&&(t.retina.attractModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===tu,s=e.interactivity.events,{enable:n,mode:a}=s.onHover,{enable:r,mode:o}=s.onClick;if(i&&n&&tq(sr,a)){var l,c,d;let t,e;l=this._engine,c=this.container,d=t=>this.isEnabled(t),t=c.interactivity.mouse.position,(e=c.retina.attractModeDistance)&&!(e<0)&&t&&sn(l,c,t,e,new ix(t.x,t.y,e),t=>d(t))}else r&&tq(sr,o)&&function(t,e,i){e.attract||(e.attract={particles:[]});let{attract:s}=e;if(s.finish||(s.count||(s.count=0),s.count++,s.count===e.particles.count&&(s.finish=!0)),s.clicking){let s=e.interactivity.mouse.clickPosition,n=e.retina.attractModeDistance;if(!n||n<0||!s)return;sn(t,e,s,n,new ix(s.x,s.y,n),t=>i(t))}else!1===s.clicking&&(s.particles=[])}(this._engine,this.container,t=>this.isEnabled(t))}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events;if((!s.position||!n.onHover.enable)&&(!s.clickPosition||!n.onClick.enable))return!1;let a=n.onHover.mode,r=n.onClick.mode;return tq(sr,a)||tq(sr,r)}loadModeOptions(t,...e){for(let i of(t.attract||(t.attract=new sa),e))t.attract.load(i?.attract)}reset(){}}async function sl(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalAttract",e=>Promise.resolve(new so(t,e)),e)}let sc=.5*Math.PI;function sd(t,e,i,s,n){for(let a of t.particles.quadTree.query(s,n))s instanceof ix?t2(t1(a),{position:e,radius:i,mass:i**2*sc,velocity:tM.origin,factor:tM.origin}):s instanceof iw&&function(t,e){let i=tK(t.getPosition(),t.getRadius()),s=t.options.bounce,n=tU({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:tz(s.horizontal.value)});n.bounced&&(void 0!==n.velocity&&(t.velocity.x=n.velocity),void 0!==n.position&&(t.position.x=n.position));let a=tU({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:tz(s.vertical.value)});a.bounced&&(void 0!==a.velocity&&(t.velocity.y=a.velocity),void 0!==a.position&&(t.position.y=a.position))}(a,tK(e,i))}class su{constructor(){this.distance=200}load(t){tC(t)||void 0!==t.distance&&(this.distance=t.distance)}}let sh="bounce";class sp extends iO{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bounce;e&&(t.retina.bounceModeDistance=e.distance*t.retina.pixelRatio)}interact(){var t,e,i,s;let n=this.container,a=n.actualOptions.interactivity.events,r=n.interactivity.status===tu,o=a.onHover.enable,l=a.onHover.mode,c=a.onDiv;if(r&&o&&tq(sh,l)){let i,s,n;t=this.container,e=t=>this.isEnabled(t),i=t.retina.pixelRatio,s=t.interactivity.mouse.position,(n=t.retina.bounceModeDistance)&&!(n<0)&&s&&sd(t,s,n,new ix(s.x,s.y,n+10*i),e)}else i=this.container,s=t=>this.isEnabled(t),tJ(sh,c,(t,e)=>{var n;let a;return n=(t,e,n)=>sd(i,t,e,n,s),void((a=document.querySelectorAll(t)).length&&a.forEach(t=>{let s=i.retina.pixelRatio,a={x:(t.offsetLeft+.5*t.offsetWidth)*s,y:(t.offsetTop+.5*t.offsetHeight)*s},r=.5*t.offsetWidth*s,o=10*s,l=e.type===$.circle?new ix(a.x,a.y,r+o):new iw(t.offsetLeft*s-o,t.offsetTop*s-o,t.offsetWidth*s+2*o,t.offsetHeight*s+2*o);n(a,r,l)}))})}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events,a=n.onDiv;return!!s.position&&n.onHover.enable&&tq(sh,n.onHover.mode)||tQ(sh,a)}loadModeOptions(t,...e){for(let i of(t.bounce||(t.bounce=new su),e))t.bounce.load(i?.bounce)}reset(){}}async function sf(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalBounce",t=>Promise.resolve(new sp(t)),e)}class sm{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(!tC(t)){if(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color){let e=tk(this.color)?void 0:this.color;this.color=t5(t.color,t=>ew.create(e,t))}void 0!==t.size&&(this.size=t.size)}}}class sg extends sm{constructor(){super(),this.selectors=[]}load(t){super.load(t),tC(t)||void 0!==t.selectors&&(this.selectors=t.selectors)}}class sv extends sm{load(t){super.load(t),tC(t)||(this.divs=t5(t.div
11s,t=>{let e=new sg;return e.load(t),e}))}}function sy(t,e,i,s){return e>=i?tD(t+(e-i)*s,t,e):e<i?tD(t-(i-e)*s,e,t):void 0}(E=ts||(ts={})).color="color",E.opacity="opacity",E.size="size";let sb="bubble";class sx extends iO{constructor(t,e){super(t),this._clickBubble=()=>{let t=this.container,e=t.actualOptions,i=t.interactivity.mouse.clickPosition,s=e.interactivity.modes.bubble;if(!s||!i)return;t.bubble||(t.bubble={});let n=t.retina.bubbleModeDistance;if(!n||n<0)return;let a=t.particles.quadTree.queryCircle(i,n,t=>this.isEnabled(t)),{bubble:r}=t;for(let e of a){if(!r.clicking)continue;e.bubble.inRange=!r.durationEnd;let a=tI(e.getPosition(),i),o=(new Date().getTime()-(t.interactivity.mouse.clickTime??0))/1e3;o>s.duration&&(r.durationEnd=!0),o>2*s.duration&&(r.clicking=!1,r.durationEnd=!1);let l={bubbleObj:{optValue:t.retina.bubbleModeSize,value:e.bubble.radius},particlesObj:{optValue:tV(e.options.size.value)*t.retina.pixelRatio,value:e.size.value},type:ts.size};this._process(e,a,o,l);let c={bubbleObj:{optValue:s.opacity,value:e.bubble.opacity},particlesObj:{optValue:tV(e.options.opacity.value),value:e.opacity?.value??1},type:ts.opacity};this._process(e,a,o,c),!r.durationEnd&&a<=n?this._hoverBubbleColor(e,a):delete e.bubble.color}},this._hoverBubble=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.bubbleModeDistance;if(i&&!(i<0)&&e)for(let s of t.particles.quadTree.queryCircle(e,i,t=>this.isEnabled(t))){s.bubble.inRange=!0;let n=tI(s.getPosition(),e),a=1-n/i;n<=i?a>=0&&t.interactivity.status===tu&&(this._hoverBubbleSize(s,a),this._hoverBubbleOpacity(s,a),this._hoverBubbleColor(s,a)):this.reset(s),t.interactivity.status===td&&this.reset(s)}},this._hoverBubbleColor=(t,e,i)=>{let s=this.container.actualOptions,n=i??s.interactivity.modes.bubble;if(n){if(!t.bubble.finalColor){let e=n.color;if(!e)return;let i=t3(e);t.bubble.finalColor=ee(this._engine,i)}if(t.bubble.finalColor)if(n.mix){t.bubble.color=void 0;let i=t.getFillColor();t.bubble.color=i?ei(eo(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}},this._hoverBubbleOpacity=(t,e,i)=>{let s=this.container.actualOptions,n=i?.opacity??s.interactivity.modes.bubble?.opacity;if(!n)return;let a=t.options.opacity.value,r=sy(t.opacity?.value??1,n,tV(a),e);void 0!==r&&(t.bubble.opacity=r)},this._hoverBubbleSize=(t,e,i)=>{let s=this.container,n=i?.size?i.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(void 0===n)return;let a=tV(t.options.size.value)*s.retina.pixelRatio,r=sy(t.size.value,n,a,e);void 0!==r&&(t.bubble.radius=r)},this._process=(t,e,i,s)=>{let n=this.container,a=s.bubbleObj.optValue,r=n.actualOptions.interactivity.modes.bubble;if(!r||void 0===a)return;let o=r.duration,l=n.retina.bubbleModeDistance,c=s.particlesObj.optValue,d=s.bubbleObj.value,u=s.particlesObj.value??0,h=s.type;if(l&&!(l<0)&&a!==c)if(n.bubble||(n.bubble={}),n.bubble.durationEnd)d&&(h===ts.size&&delete t.bubble.radius,h===ts.opacity&&delete t.bubble.opacity);else if(e<=l){if((d??u)!==a){let e=u-i*(u-a)/o;h===ts.size&&(t.bubble.radius=e),h===ts.opacity&&(t.bubble.opacity=e)}}else h===ts.size&&delete t.bubble.radius,h===ts.opacity&&delete t.bubble.opacity},this._singleSelectorHover=(t,e,i)=>{let s=this.container,n=document.querySelectorAll(e),a=s.actualOptions.interactivity.modes.bubble;a&&n.length&&n.forEach(e=>{let n=s.retina.pixelRatio,r={x:(e.offsetLeft+.5*e.offsetWidth)*n,y:(e.offsetTop+.5*e.offsetHeight)*n},o=.5*e.offsetWidth*n,l=i.type===$.circle?new ix(r.x,r.y,o):new iw(e.offsetLeft*n,e.offsetTop*n,e.offsetWidth*n,e.offsetHeight*n);for(let i of s.particles.quadTree.query(l,t=>this.isEnabled(t))){if(!l.contains(i.getPosition()))continue;i.bubble.inRange=!0;let s=t0(a.divs,e);i.bubble.div&&i.bubble.div===e||(this.clear(i,t,!0),i.bubble.div=e),this._hoverBubbleSize(i,1,s),this._hoverBubbleOpacity(i,1,s),this._hoverBubbleColor(i,1,s)}})},this._engine=e,t.bubble||(t.bubble={}),this.handleClickMode=e=>{e===sb&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,e,i){(!t.bubble.inRange||i)&&(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bubble;e&&(t.retina.bubbleModeDistance=e.distance*t.retina.pixelRatio,void 0!==e.size&&(t.retina.bubbleModeSize=e.size*t.retina.pixelRatio))}interact(t){let e=this.container.actualOptions.interactivity.events,i=e.onHover,s=e.onClick,n=i.enable,a=i.mode,r=s.enable,o=s.mode,l=e.onDiv;n&&tq(sb,a)?this._hoverBubble():r&&tq(sb,o)?this._clickBubble():tJ(sb,l,(e,i)=>this._singleSelectorHover(t,e,i))}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,{onClick:n,onDiv:a,onHover:r}=(t?.interactivity??i.interactivity).events,o=tQ(sb,a);return!!(o||r.enable&&s.position||n.enable&&s.clickPosition)&&(tq(sb,r.mode)||tq(sb,n.mode)||o)}loadModeOptions(t,...e){for(let i of(t.bubble||(t.bubble=new sv),e))t.bubble.load(i?.bubble)}reset(t){t.bubble.inRange=!1}}async function sw(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalBubble",e=>Promise.resolve(new sx(e,t)),e)}class s_{constructor(){this.opacity=.5}load(t){tC(t)||void 0!==t.opacity&&(this.opacity=t.opacity)}}class sP{constructor(){this.distance=80,this.links=new s_,this.radius=60}load(t){tC(t)||(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links),void 0!==t.radius&&(this.radius=t.radius))}}class sk extends iO{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.connect;
11e&&(t.retina.connectModeDistance=e.distance*t.retina.pixelRatio,t.retina.connectModeRadius=e.radius*t.retina.pixelRatio)}interact(){let t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"pointermove"===t.interactivity.status){let e=t.interactivity.mouse.position,{connectModeDistance:i,connectModeRadius:s}=t.retina;if(!i||i<0||!s||s<0||!e)return;let n=Math.abs(s),a=t.particles.quadTree.queryCircle(e,n,t=>this.isEnabled(t));a.forEach((e,s)=>{let n=e.getPosition();for(let r of a.slice(s+1)){let s=r.getPosition(),a=Math.abs(i),o=Math.abs(n.x-s.x),l=Math.abs(n.y-s.y);o<a&&l<a&&function(t,e,i){t.canvas.draw(s=>{var n;let a=function(t,e,i,s){let n=t.actualOptions.interactivity.modes.connect;if(n)return function(t,e,i,s){let n=Math.floor(i.getRadius()/e.getRadius()),a=e.getFillColor(),r=i.getFillColor();if(!a||!r)return;let o=e.getPosition(),l=i.getPosition(),c=eo(a,r,e.getRadius(),i.getRadius()),d=t.createLinearGradient(o.x,o.y,l.x,l.y);return d.addColorStop(0,er(a,s)),d.addColorStop(tD(n,0,1),ea(c,s)),d.addColorStop(1,er(r,s)),d}(e,i,s,n.links.opacity)}(t,s,e,i);if(!a)return;let r=e.getPosition(),o=i.getPosition();n=e.retina.linksWidth??0,em(s,r,o),s.lineWidth=n,s.strokeStyle=a,s.stroke()})}(t,e,r)}})}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return!!(s.onHover.enable&&i.position)&&tq("connect",s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.connect||(t.connect=new sP),e))t.connect.load(i?.connect)}reset(){}}async function sC(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalConnect",t=>Promise.resolve(new sk(t)),e)}class sS{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){tC(t)||(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=ew.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class sM{constructor(){this.distance=100,this.links=new sS}load(t){tC(t)||(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links))}}class sT extends iO{constructor(t,e){super(t),this._engine=e}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.grab;e&&(t.retina.grabModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions.interactivity;if(!e.modes.grab||!e.events.onHover.enable||t.interactivity.status!==tu)return;let i=t.interactivity.mouse.position;if(!i)return;let s=t.retina.grabModeDistance;if(s&&!(s<0))for(let n of t.particles.quadTree.queryCircle(i,s,t=>this.isEnabled(t))){let a=tI(n.getPosition(),i);if(a>s)continue;let r=e.modes.grab.links,o=r.opacity,l=o-a*o/s;if(l<=0)continue;let c=r.color??n.options.links?.color;if(!t.particles.grabLineColor&&c){let i=e.modes.grab.links;t.particles.grabLineColor=ec(this._engine,c,i.blink,i.consent)}let d=el(n,void 0,t.particles.grabLineColor);d&&function(t,e,i,s,n){t.canvas.draw(t=>{var a;let r=e.getPosition();a=e.retina.linksWidth??0,em(t,r,n),t.strokeStyle=ea(i,s),t.lineWidth=a,t.stroke()})}(t,n,d,l,i)}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&tq("grab",s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.grab||(t.grab=new sM),e))t.grab.load(i?.grab)}reset(){}}async function sE(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalGrab",e=>Promise.resolve(new sT(e,t)),e)}class sD extends iO{constructor(t){super(t),this.handleClickMode=t=>{if("pause"!==t)return;let e=this.container;e.animationStatus?e.pause():e.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function sR(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalPause",t=>Promise.resolve(new sD(t)),e)}class sO{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(tC(t))return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map(t=>t)),this.groups.length||(this.default=!0);let e=t.quantity;void 0!==e&&(this.quantity=tj(e)),this.particles=t5(t.particles,t=>tZ({},t))}}class sz extends iO{constructor(t){super(t),this.handleClickMode=t=>
11{if("push"!==t)return;let e=this.container,i=e.actualOptions.interactivity.modes.push;if(!i)return;let s=tz(i.quantity);if(s<=0)return;let n=tY([void 0,...i.groups]),a=tZ(void 0!==n?e.actualOptions.particles.groups[n]:void 0,t3(i.particles));e.particles.push(s,e.interactivity.mouse,a,n)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.push||(t.push=new sO),e))t.push.load(i?.push)}reset(){}}async function sA(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalPush",t=>Promise.resolve(new sz(t)),e)}class sV{constructor(){this.quantity=2}load(t){if(tC(t))return;let e=t.quantity;void 0!==e&&(this.quantity=tj(e))}}class sj extends iO{constructor(t){super(t),this.handleClickMode=t=>{let e=this.container,i=e.actualOptions;if(!i.interactivity.modes.remove||"remove"!==t)return;let s=tz(i.interactivity.modes.remove.quantity);e.particles.removeQuantity(s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.remove||(t.remove=new sV),e))t.remove.load(i?.remove)}reset(){}}async function sL(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalRemove",t=>Promise.resolve(new sj(t)),e)}class sI{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=J.easeOutQuad}load(t){tC(t)||(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class sB extends sI{constructor(){super(),this.selectors=[]}load(t){super.load(t),tC(t)||void 0!==t.selectors&&(this.selectors=t.selectors)}}class sF extends sI{load(t){super.load(t),tC(t)||(this.divs=t5(t.divs,t=>{let e=new sB;return e.load(t),e}))}}let sN="repulse";class s$ extends iO{constructor(t,e){super(e),this._clickRepulse=()=>{let t=this.container,e=t.actualOptions.interactivity.modes.repulse;if(!e)return;let i=t.repulse??{particles:[]};if(i.finish||(i.count||(i.count=0),i.count++,i.count===t.particles.count&&(i.finish=!0)),i.clicking){let s=t.retina.repulseModeDistance;if(!s||s<0)return;let n=Math.pow(s/6,3),a=t.interactivity.mouse.clickPosition;if(void 0===a)return;let r=new ix(a.x,a.y,n);for(let s of t.particles.quadTree.query(r,t=>this.isEnabled(t))){let{dx:t,dy:r,distance:o}=tL(a,s.position),l=o**2,c=-n*e.speed/l;if(l<=n){i.particles.push(s);let e=tM.create(t,r);e.length=c,s.velocity.setTo(e)}}}else if(!1===i.clicking){for(let t of i.particles)t.velocity.setTo(t.initialVelocity);i.particles=[]}},this._hoverRepulse=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.repulseModeDistance;i&&!(i<0)&&e&&this._processRepulse(e,i,new ix(e.x,e.y,i))},this._processRepulse=(t,e,i,s)=>{let n=this.container,a=n.particles.quadTree.query(i,t=>this.isEnabled(t)),r=n.actualOptions.interactivity.modes.repulse;if(!r)return;let{easing:o,speed:l,factor:c,maxSpeed:d}=r,u=this._engine.getEasing(o),h=(s?.speed??l)*c;for(let i of a){let{dx:s,dy:n,distance:a}=tL(i.position,t),r=tD(u(1-a/e)*h,0,d),o=tM.create(a?s/a*r:h,a?n/a*r:h);i.position.addTo(o)}},this._singleSelectorRepulse=(t,e)=>{let i=this.container,s=i.actualOptions.interactivity.modes.repulse;if(!s)return;let n=document.querySelectorAll(t);n.length&&n.forEach(t=>{let n=i.retina.pixelRatio,a={x:(t.offsetLeft+.5*t.offsetWidth)*n,y:(t.offsetTop+.5*t.offsetHeight)*n},r=.5*t.offsetWidth*n,o=e.type===$.circle?new ix(a.x,a.y,r):new iw(t.offsetLeft*n,t.offsetTop*n,t.offsetWidth*n,t.offsetHeight*n),l=t0(s.divs,t);this._processRepulse(a,r,o,l)})},this._engine=t,e.repulse||(e.repulse={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.repulse;if(!i||t!==sN)return;e.repulse||(e.repulse={particles:[]});let s=e.repulse;for(let t of(s.clicking=!0,s.count=0,e.repulse.particles))this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{e.destroyed||(s.clicking=!1)},1e3*i.duration)}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.repulse;e&&(t.retina.repulseModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===tu,s=e.interactivity.events,n=s.onHover,a=n.enable,r=n.mode,o=s.onClick,l=o.enable,c=o.mode,d=s.onDiv;i&&a&&tq(sN,r)?this._hoverRepulse():l&&tq(sN,c)?this._clickRepulse():tJ(sN,d,(t,e)=>this._singleSelectorRepulse(t,e))}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events,a=n.onDiv,r=n.on
11Hover,o=n.onClick,l=tQ(sN,a);if(!(l||r.enable&&s.position||o.enable&&s.clickPosition))return!1;let c=r.mode,d=o.mode;return tq(sN,c)||tq(sN,d)||l}loadModeOptions(t,...e){for(let i of(t.repulse||(t.repulse=new sF),e))t.repulse.load(i?.repulse)}reset(){}}async function sU(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalRepulse",e=>Promise.resolve(new s$(t,e)),e)}class sH{constructor(){this.factor=3,this.radius=200}load(t){tC(t)||(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class sW extends iO{constructor(t){super(t)}clear(t,e,i){(!t.slow.inRange||i)&&(t.slow.factor=1)}init(){let t=this.container,e=t.actualOptions.interactivity.modes.slow;e&&(t.retina.slowModeRadius=e.radius*t.retina.pixelRatio)}interact(){}isEnabled(t){let e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&tq("slow",s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.slow||(t.slow=new sH),e))t.slow.load(i?.slow)}reset(t){t.slow.inRange=!1;let e=this.container,i=e.actualOptions,s=e.interactivity.mouse.position,n=e.retina.slowModeRadius,a=i.interactivity.modes.slow;if(!a||!n||n<0||!s)return;let r=tI(s,t.getPosition()),o=a.factor,{slow:l}=t;r>n||(l.inRange=!0,l.factor=r/n/o)}}async function sq(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalSlow",t=>Promise.resolve(new sW(t)),e)}let sG=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function sY(t){return new Promise(e=>{t.loading=!0;let i=new Image;t.element=i,i.addEventListener("load",()=>{t.loading=!1,e()}),i.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,t$.error(`${tp} loading image: ${t.source}`),e()}),i.src=t.source})}async function sX(t){if("svg"!==t.type)return void await sY(t);t.loading=!0;let e=await fetch(t.source);e.ok?t.svgData=await e.text():(t$.error(`${tp} Image not found`),t.error=!0),t.loading=!1}let sK=[0,4,2,1],sZ=[8,8,4,2];class sQ{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){let e=this.data.slice(this.pos,this.pos+t);return this.pos+=e.length,e.reduce((t,e)=>t+String.fromCharCode(e),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",e=0;do{e=this.data[this.pos++];for(let i=e;--i>=0;t+=String.fromCharCode(this.data[this.pos++]));}while(0!==e)return t}readSubBlocksBin(){let t=this.data[this.pos],e=0;for(let i=0;0!==t;i+=t+1,t=this.data[this.pos+i])e+=t;let i=new Uint8Array(e);t=this.data[this.pos++];for(let e=0;0!==t;t=this.data[this.pos++])for(let s=t;--s>=0;i[e++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;0!==this.data[this.pos];this.pos+=this.data[this.pos]+1);this.pos++}}(D=tn||(tn={}))[D.Replace=0]="Replace",D[D.Combine=1]="Combine",D[D.RestoreBackgroun
11d=2]="RestoreBackground",D[D.RestorePrevious=3]="RestorePrevious",D[D.UndefinedA=4]="UndefinedA",D[D.UndefinedB=5]="UndefinedB",D[D.UndefinedC=6]="UndefinedC",D[D.UndefinedD=7]="UndefinedD",(R=ta||(ta={}))[R.Extension=33]="Extension",R[R.ApplicationExtension=255]="ApplicationExtension",R[R.GraphicsControlExtension=249]="GraphicsControlExtension",R[R.PlainTextExtension=1]="PlainTextExtension",R[R.CommentExtension=254]="CommentExtension",R[R.Image=44]="Image",R[R.EndOfFile=59]="EndOfFile";function sJ(t,e){let i=[];for(let s=0;s<e;s++)i.push({r:t.data[t.pos],g:t.data[t.pos+1],b:t.data[t.pos+2]}),t.pos+=3;return i}async function s0(t,e,i,s,n,a){let r=e.frames[s(!0)];r.left=t.nextTwoBytes(),r.top=t.nextTwoBytes(),r.width=t.nextTwoBytes(),r.height=t.nextTwoBytes();let o=t.nextByte(),l=(128&o)==128;r.sortFlag=(32&o)==32,r.reserved=(24&o)>>>3,l&&(r.localColorTable=sJ(t,1<<(7&o)+1));let c=t=>{let{r:s,g:a,b:o}=(l?r.localColorTable:e.globalColorTable)[t];return t!==n(null)?{r:s,g:a,b:o,a:255}:{r:s,g:a,b:o,a:i?~~((s+a+o)/3):0}},d=(()=>{try{return new ImageData(r.width,r.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==d)throw EvalError("GIF frame size is to large");let u=t.nextByte(),h=t.readSubBlocksBin(),p=1<<u,f=(t,e)=>{let i=t>>>3,s=7&t;return(h[i]+(h[i+1]<<8)+(h[i+2]<<16)&(1<<e)-1<<s)>>>s};if((64&o)==64){for(let i=0,n=u+1,o=0,l=[[0]],h=0;h<4;h++){if(sK[h]<r.height){let t=0,e=0,s=!1;for(;!s;){let a=i;if(i=f(o,n),o+=n+1,i===p){n=u+1,l.length=p+2;for(let t=0;t<l.length;t++)l[t]=t<p?[t]:[]}else{for(let s of(i>=l.length?l.push(l[a].concat(l[a][0])):a!==p&&l.push(l[a].concat(l[i][0])),l[i])){let{r:i,g:n,b:a,a:o}=c(s);d.data.set([i,n,a,o],sK[h]*r.width+sZ[h]*e+t%(4*r.width)),t+=4}l.length===1<<n&&n<12&&n++}t===4*r.width*(e+1)&&(e++,sK[h]+sZ[h]*e>=r.height&&(s=!0))}}a?.(t.pos/(t.data.length-1),s(!1)+1,d,{x:r.left,y:r.top},{width:e.width,height:e.height})}r.image=d,r.bitmap=await createImageBitmap(d)}else{let i=0,n=u+1,o=0,l=-4,h=!1,m=[[0]];for(;!h;){let t=i;if(i=f(o,n),o+=n,i===p){n=u+1,m.length=p+2;for(let t=0;t<m.length;t++)m[t]=t<p?[t]:[]}else{if(i===p+1){h=!0;break}for(let e of(i>=m.length?m.push(m[t].concat(m[t][0])):t!==p&&m.push(m[t].concat(m[i][0])),m[i])){let{r:t,g:i,b:s,a:n}=c(e);d.data.set([t,i,s,n],l+=4)}m.length>=1<<n&&n<12&&n++}}r.image=d,r.bitmap=await createImageBitmap(d),a?.((t.pos+1)/t.data.length,s(!1)+1,r.image,{x:r.left,y:r.top},{width:e.width,height:e.height})}}async function s1(t,e,i,s,n,a){switch(t.nextByte()){case ta.EndOfFile:return!0;case ta.Image:await s0(t,e,i,s,n,a);break;case ta.Extension:switch(t.nextByte()){case ta.GraphicsControlExtension:{let i=e.frames[s(!1)];t.pos++;let a=t.nextByte();i.GCreserved=(224&a)>>>5,i.disposalMethod=(28&a)>>>2,i.userInputDelayFlag=(2&a)==2,i.delayTime=10*t.nextTwoBytes();let r=t.nextByte();(1&a)==1&&n(r),t.pos++;break}case ta.ApplicationExtension:{t.pos++;let i={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(i);break}case ta.CommentExtension:e.comments.push([s(!1),t.readSubBlocks()]);break;case ta.PlainTextExtension:if(0===e.globalColorTable.length)throw EvalError("plain text extension without global color table");t.pos++,e.frames[s(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break;default:t.skipSubBlocks()}break;default:throw EvalError("undefined block found")}return!1}async function s2(t,e,i){i||(i=!1);let s=await fetch(t);if(!s.ok&&404===s.status)throw EvalError("file not found");let n=await s.arrayBuffer(),a={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},r=new sQ(new Uint8ClampedArray(n));if("GIF89a"!==r.getString(6))throw Error("not a supported GIF file");a.width=r.nextTwoBytes(),a.height=r.nextTwoBytes();let o=r.nextByte(),l=(128&o)==128;a.colorRes=(112&o)>>>4,a.sortFlag=(8&o)==8;let c=r.nextByte();a.pixelAspectRatio=r.nextByte(),0!==a.pixelAspectRatio&&(a.pixelAspectRatio=(a.pixelAspectRatio+15)/64),l&&(a.globalColorTable=sJ(r,1<<(7&o)+1));let d=(()=>{try{return new ImageData(a.width,a.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==d)throw Error("GIF frame size is to large");let{r:u,g:h,b:p}=a.globalColorTable[c];d.data.set(l?[u,h,p,255]:[0,0,0,0]);for(let t=4;t<d.data.length;t*=2)d.data.copyWithin(t,0,t);a.backgroundImage=d;let f=-1,m=!0,g=-1,v=t=>(t&&(m=!0),f),y=t=>(null!=t&&(g=t),g);try{do m&&(a.frames.push({left:0,top:0,width:0,height:0,disposalMethod:tn.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}
11),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),f++,g=-1,m=!1);while(!await s1(r,a,i,v,y,e))for(let t of(a.frames.length--,a.frames)){if(t.userInputDelayFlag&&0===t.delayTime){a.totalTime=1/0;break}a.totalTime+=t.delayTime}return a}catch(t){if(t instanceof EvalError)throw Error(`error while parsing frame ${f} "${t.message}"`);throw t}}async function s5(t){if("gif"!==t.type)return void await sY(t);t.loading=!0;try{t.gifData=await s2(t.source),t.gifLoopCount=function(t){for(let e of t.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}(t.gifData)??0,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}class s3{constructor(t){this.validTypes=["image","images"],this.loadImageShape=async t=>{if(!this._engine.loadImage)throw Error(`${tp} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??!1,src:t.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t){let{context:e,radius:i,particle:s,opacity:n}
11=t,a=s.image,r=a?.element;if(a){if(e.globalAlpha=n,a.gif&&a.gifData)!function(t){let{context:e,radius:i,particle:s,delta:n}=t,a=s.image;if(!a?.gifData||!a.gif)return;let r=new OffscreenCanvas(a.gifData.width,a.gifData.height),o=r.getContext("2d");if(!o)throw Error("could not create offscreen canvas context");o.imageSmoothingQuality="low",o.imageSmoothingEnabled=!1,o.clearRect(0,0,r.width,r.height),void 0===s.gifLoopCount&&(s.gifLoopCount=a.gifLoopCount??0);let l=s.gifFrame??0,c={x:-(.5*a.gifData.width),y:-(.5*a.gifData.height)},d=a.gifData.frames[l];if(void 0===s.gifTime&&(s.gifTime=0),d.bitmap){switch(e.scale(i/a.gifData.width,i/a.gifData.height),d.disposalMethod){case tn.UndefinedA:case tn.UndefinedB:case tn.UndefinedC:case tn.UndefinedD:case tn.Replace:o.drawImage(d.bitmap,d.left,d.top),e.drawImage(r,c.x,c.y),o.clearRect(0,0,r.width,r.height);break;case tn.Combine:o.drawImage(d.bitmap,d.left,d.top),e.drawImage(r,c.x,c.y);break;case tn.RestoreBackground:o.drawImage(d.bitmap,d.left,d.top),e.drawImage(r,c.x,c.y),o.clearRect(0,0,r.width,r.height),a.gifData.globalColorTable.length?o.putImageData(a.gifData.backgroundImage,c.x,c.y):o.putImageData(a.gifData.frames[0].image,c.x+d.left,c.y+d.top);break;case tn.RestorePrevious:{let t=o.getImageData(0,0,r.width,r.height);o.drawImage(d.bitmap,d.left,d.top),e.drawImage(r,c.x,c.y),o.clearRect(0,0,r.width,r.height),o.putImageData(t,0,0)}}if(s.gifTime+=n.value,s.gifTime>d.delayTime){if(s.gifTime-=d.delayTime,++l>=a.gifData.frames.length){if(--s.gifLoopCount<=0)return;l=0,o.clearRect(0,0,r.width,r.height)}s.gifFrame=l}e.scale(a.gifData.width/i,a.gifData.height/i)}}(t);else if(r){let t=a.ratio,s={x:-i,y:-i},n=2*i;e.drawImage(r,s.x,s.y,n,n/t)}e.globalAlpha=1}}getSidesCount(){return 12}async init(t){let e=t.actualOptions;if(e.preload&&this._engine.loadImage)for(let t of e.preload)await this._engine.loadImage(t)}loadShape(t){if("image"!==t.shape&&"images"!==t.shape)return;this._engine.images||(this._engine.images=[]);let e=t.shapeData;!e||this._engine.images.find(t=>t.name===e.name||t.source===e.src)||this.loadImageShape(e).then(()=>{this.loadShape(t)})}particleInit(t,e){if("image"!==e.shape&&"images"!==e.shape)return;this._engine.images||(this._engine.images=[]);let i=this._engine.images,s=e.shapeData;if(!s)return;let n=e.getFillColor(),a=i.find(t=>t.name===s.name||t.source===s.src);if(!a)return;let r=s.replaceColor??a.replaceColor;a.loading?setTimeout(()=>{this.particleInit(t,e)}):(async()=>{let t;if(a.svgData&&n){let i,r;t=await (i=function(t,e,i){let{svgData:s}=t;if(!s)return"";let n=er(e,i);if(s.includes("fill"))return s.replace(sG,()=>n);let a=s.indexOf(">");return`${s.substring(0,a)} fill="${n}"${s.substring(a)}`}(a,n,e.opacity?.value??1),r={color:n,gif:s.gif,data:{...a,svgData:i},loaded:!1,ratio:s.width/s.height,replaceColor:s.replaceColor,source:s.src},new Promise(t=>{let e=new Blob([i],{type:"image/svg+xml"}),s=URL||window.URL||window.webkitURL||window,n=s.createObjectURL(e),o=new Image;o.addEventListener("load",()=>{r.loaded=!0,r.element=o,t(r),s.revokeObjectURL(n)});let l=async()=>{s.revokeObjectURL(n);let e={...a,error:!1,loading:!0};await sY(e),r.loaded=!0,r.element=e.element,t(r)};o.addEventListener("error",()=>void l()),o.src=n}))}else t={color:n,data:a,element:a.element,gif:a.gif,gifData:a.gifData,gifLoopCount:a.gifLoopCount,loaded:!0,ratio:s.width&&s.height?s.width/s.height:a.ratio??1,replaceColor:r,source:s.src};t.ratio||(t.ratio=1);let i=s.fill??e.shapeFill,o=s.close??e.shapeClose;e.image=t,e.shapeFill=i,e.shapeClose=o})()}}class s6{constructor(){this.src="",this.gif=!1}load(t){tC(t)||(void 0!==t.gif&&(this.gif=t.gif),void 0!==t.height&&(this.height=t.height),void 0!==t.name&&(this.name=t.name),void 0!==t.replaceColor&&(this.replaceColor=t.replaceColor),void 0!==t.src&&(this.src=t.src),void 0!==t.width&&(this.width=t.width))}}class s4{constructor(t){this.id="imagePreloader",this._engine=t}async getPlugin(){return await Promise.resolve(),{}}loadOptions(t,e){if(!e?.preload)return;t.preload||(t.preload=[]);let i=t.preload;for(let t of e.preload){let e=i.find(e=>e.name===t.name||e.src===t.src);if(e)e.load(t);else{let e=new s6;e.load(t),i.push(e)}}}needsPlugin(){return!0}}async function s8(t,e=!0){t.checkVersion("3.9.1"),t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw Error(`${tp} no image source provided`);if(t.images||(t.images=[]),!t.images.find(t=>t.name===e.name||t.source===e.src))try{let i,s={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-3),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};t.images.push(s),i=e.gif?s5:e.replaceColor?sX:sY,await i(s)}catch{throw Error(`${tp} ${e.name??e.src}
11 not found`)}});let i=new s4(t);await t.addPlugin(i,e),await t.addShape(new s3(t),e)}class s9 extends eW{constructor(){super(),this.sync=!1}load(t){tC(t)||(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class s7 extends eW{constructor(){super(),this.sync=!1}load(t){tC(t)||(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class nt{constructor(){this.count=0,this.delay=new s9,this.duration=new s7}load(t){tC(t)||(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class ne{constructor(t){this.container=t}init(t){let e=this.container,i=t.options.life;i&&(t.life={delay:e.retina.reduceFactor?tz(i.delay.value)*(i.delay.sync?1:tE())/e.retina.reduceFactor*1e3:0,delayTime:0,duration:e.retina.reduceFactor?tz(i.duration.value)*(i.duration.sync?1:tE())/e.retina.reduceFactor*1e3:0,time:0,count:i.count},t.life.duration<=0&&(t.life.duration=-1),t.life.count<=0&&(t.life.count=-1),t.life&&(t.spawning=t.life.delay>0))}isEnabled(t){return!t.destroyed}loadOptions(t,...e){for(let i of(t.life||(t.life=new nt),e))t.life.load(i?.life)}update(t,e){this.isEnabled(t)&&t.life&&function(t,e,i){if(!t.life)return;let s=t.life,n=!1;if(t.spawning){if(s.delayTime+=e.value,!(s.delayTime>=t.life.delay))return;n=!0,t.spawning=!1,s.delayTime=0,s.time=0}if(-1===s.duration||t.spawning||(n?s.time=0:s.time+=e.value,s.time<s.duration))return;if(s.time=0,t.life.count>0&&t.life.count--,0===t.life.count)return t.destroy();let a=tj(0,i.width),r=tj(0,i.width);t.position.x=tO(a),t.position.y=tO(r),t.spawning=!0,s.delayTime=0,s.time=0,t.reset();let o=t.options.life;o&&(s.delay=1e3*tz(o.delay.value),s.duration=1e3*tz(o.duration.value))}(t,e,this.container.canvas.size)}}async function ni(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("life",async t=>Promise.resolve(new ne(t)),e)}class ns{constructor(){this.validTypes=["line"]}draw(t){!function(t){let{context:e,particle:i,radius:s}=t,n=i.shapeData;e.moveTo(-s,0),e.lineTo(s,0),e.lineCap=n?.cap??"butt"}(t)}getSidesCount(){return 1}}async function nn(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new ns,e)}class na{init(){}isEnabled(t){return!tH()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){let e=t.container,i=e.actualOptions.interactivity.events.onHover.parallax;if(tH()||!i.enable)return;let s=i.force,n=e.interactivity.mouse.position;if(!n)return;let a=e.canvas.size,r={x:.5*a.width,y:.5*a.height},o=i.smooth,l=t.getRadius()/s,c={x:(n.x-r.x)*l,y:(n.y-r.y)*l},{offset:d}=t;d.x+=(c.x-d.x)/o,d.y+=(c.y-d.y)/o}}async function nr(t,e=!0){t.checkVersion("3.9.1"),await t.addMover("parallax",()=>Promise.resolve(new na),e)}class no extends iz{constructor(t){super(t)}clear(){}init(){}interact(t){let e=this.container;void 0===t.attractDistance&&(t.attractDistance=tz(t.options.move.attract.distance)*e.retina.pixelRatio);let i=t.attractDistance,s=t.getPosition();for(let n of e.particles.quadTree.queryCircle(s,i)){if(t===n||!n.options.move.attract.enable||n.destroyed||n.spawning)continue;let{dx:e,dy:i}=tL(s,n.getPosition()),a=t.options.move.attract.rotate,r=e/(1e3*a.x),o=i/(1e3*a.y),l=n.size.value/t.size.value,c=1/l;t.velocity.x-=r*l,t.velocity.y-=o*l,n.velocity.x+=r*c,n.velocity.y+=o*c}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function nl(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("particlesAttract",t=>Promise.resolve(new no(t)),e)}function nc(t,e,i,s,n,a){let r=tD(t.options.collisions.absorb.speed*n.factor/10,0,s);t.size.value+=.5*r,i.size.value-=r,s<=a&&(i.size.value=0,i.destroy())}let nd=t=>{void 0===t.collisionMaxSpeed&&(t.collisionMaxSpeed=tz(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function nu(t,e){t2(t1(t),t1(e)),nd(t),nd(e)}class nh extends iz{constructor(t){super(t)}clear(){}init(){}interact(t,e){if(t.destroyed||t.spawning)return;let i=this.container,s=t.getPosition(),n=t.getRadius();for(let a of i.particles.quadTree.queryCircle(s,2*n)){if(t===a||!a.options.collisions.enable||t.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;let r=a.getPosition(),o=a.getRadius();if(!(Math.abs(Math.round(s.z)-Math.round(r.z))>n+o))tI(s,r)>
11n+o||function(t,e,i,s){switch(t.options.collisions.mode){case W.absorb:let n,a;n=t.getRadius(),a=e.getRadius(),void 0===n&&void 0!==a?t.destroy():void 0!==n&&void 0===a?e.destroy():void 0!==n&&void 0!==a&&(n>=a?nc(t,n,e,a,i,s):nc(e,a,t,n,i,s));break;case W.bounce:nu(t,e);break;case W.destroy:t.unbreakable||e.unbreakable||nu(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e:t).destroy()}}(t,a,e,i.retina.pixelRatio)}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function np(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("particlesCollisions",t=>Promise.resolve(new nh(t)),e)}class nf extends ix{constructor(t,e,i,s){super(t,e,i),this.canvasSize=s,this.canvasSize={...s}}contains(t){let{width:e,height:i}=this.canvasSize,{x:s,y:n}=t;return super.contains(t)||super.contains({x:s-e,y:n})||super.contains({x:s-e,y:n-i})||super.contains({x:s,y:n-i})}intersects(t){if(super.intersects(t))return!0;let e={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==t.radius){let i=new ix(e.x,e.y,2*t.radius);return super.intersects(i)}if(void 0!==t.size){let i=new iw(e.x,e.y,2*t.size.width,2*t.size.height);return super.intersects(i)}return!1}}class nm{constructor(){this.blur=5,this.color=new ew,this.color.value="#000",this.enable=!1}load(t){tC(t)||(void 0!==t.blur&&(this.blur=t.blur),this.color=ew.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class ng{constructor(){this.enable=!1,this.frequency=1}load(t){tC(t)||(void 0!==t.color&&(this.color=ew.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class nv{constructor(){this.blink=!1,this.color=new ew,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new nm,this.triangles=new ng,this.width=1,this.warp=!1}load(t){tC(t)||(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=ew.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0!==t.warp&&(this.warp=t.warp))}}class ny extends iz{constructor(t,e){super(t),this._setColor=t=>{if(!t.options.links)return;let e=this._linkContainer,i=t.options.links,s=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(s)return;let n=i.color;s=ec(this._engine,n,i.blink,i.consent),void 0===i.id?e.particles.linksColor=s:e.particles.linksColors.set(i.id,s)},this._linkContainer=t,this._engine=e}clear(){}init(){this._linkContainer.particles.linksColor=void 0,this._linkContainer.particles.linksColors=new Map}interact(t){let e;if(!t.options.links)return;t.links=[];let i=t.getPosition(),s=this.container,n=s.canvas.size;if(i.x<0||i.y<0||i.x>n.width||i.y>n.height)return;let a=t.options.links,r=a.opacity,o=t.retina.linksDistance??0,l=a.warp;for(let c of(e=l?new nf(i.x,i.y,o,n):new ix(i.x,i.y,o),s.particles.quadTree.query(e))){let e=c.options.links;if(t===c||!e?.enable||a.id!==e.id||c.spawning||c.destroyed||!c.links||t.links.some(t=>t.destination===c)||c.links.some(e=>e.destination===t))continue;let s=c.getPosition();if(s.x<0||s.y<0||s.x>n.width||s.y>n.height)continue;let d=function(t,e,i,s,n){let{dx:a,dy:r,distance:o}=tL(t,e);if(!n||o<=i)return o;let l={x:Math.abs(a),y:Math.abs(r)},c={x:Math.min(l.x,s.width-l.x),y:Math.min(l.y,s.height-l.y)};return Math.sqrt(c.x**2+c.y**2)}(i,s,o,n,l&&e.warp);if(d>o)continue;let u=(1-d/o)*r;this._setColor(t),t.links.push({destination:c,opacity:u})}}isEnabled(t){return!!t.options.links?.enable}loadParticlesOptions(t,...e){for(let i of(t.links||(t.links=new nv),e))t.links.load(i?.links)}reset(){}}async function nb(t,e=!0){await t.addInteractor("particlesLinks",async e=>Promise.resolve(new ny(e,t)),e)}function nx(t,e){var i;let s=((i=t.map(t=>
11t.id)).sort((t,e)=>t-e),i.join("_")),n=e.get(s);return void 0===n&&(n=tE(),e.set(s,n)),n}class nw{constructor(t,e){this._drawLinkLine=(t,e)=>{let i=t.options.links;if(!i?.enable)return;let s=this._container,n=s.actualOptions,a=e.destination,r=t.getPosition(),o=a.getPosition(),l=e.opacity;s.canvas.draw(e=>{let c,d=t.options.twinkle?.lines;if(d?.enable){let t=d.frequency,e=et(this._engine,d.color);tE()<t&&e&&(c=e,l=tz(d.opacity))}if(c||(c=el(t,a,void 0!==i.id?s.particles.linksColors.get(i.id):s.particles.linksColor)),!c)return;let u=t.retina.linksWidth??0,h=t.retina.linksDistance??0,{backgroundMask:p}=n;!function(t){let e=!1,{begin:i,end:s,engine:n,maxDistance:a,context:r,canvasSize:o,width:l,backgroundMask:c,colorLine:d,opacity:u,links:h}=t;if(tI(i,s)<=a)em(r,i,s),e=!0;else if(h.warp){let t,n,l=tL(i,{x:s.x-o.width,y:s.y});if(l.distance<=a){let e=i.y-l.dy/l.dx*i.x;t={x:0,y:e},n={x:o.width,y:e}}else{let e=tL(i,{x:s.x,y:s.y-o.height});if(e.distance<=a){let s=-(i.y-e.dy/e.dx*i.x)/(e.dy/e.dx);t={x:s,y:0},n={x:s,y:o.height}}else{let e=tL(i,{x:s.x-o.width,y:s.y-o.height});if(e.distance<=a){let s=i.y-e.dy/e.dx*i.x;n={x:(t={x:-s/(e.dy/e.dx),y:s}).x+o.width,y:t.y+o.height}}}}t&&n&&(em(r,i,t),em(r,s,n),e=!0)}if(!e)return;r.lineWidth=l,c.enable&&(r.globalCompositeOperation=c.composite),r.strokeStyle=ea(d,u);let{shadow:p}=h;if(p.enable){let t=et(n,p.color);t&&(r.shadowBlur=p.blur,r.shadowColor=ea(t))}r.stroke()}({context:e,width:u,begin:r,end:o,engine:this._engine,maxDistance:h,canvasSize:s.canvas.size,links:i,backgroundMask:p,colorLine:c,opacity:l})})},this._drawLinkTriangle=(t,e,i)=>{let s=t.options.links;if(!s?.enable)return;let n=s.triangles;if(!n.enable)return;let a=this._container,r=a.actualOptions,o=e.destination,l=i.destination,c=n.opacity??(e.opacity+i.opacity)*.5;c<=0||a.canvas.draw(e=>{let i=t.getPosition(),d=o.getPosition(),u=l.getPosition(),h=t.retina.linksDistance??0;if(tI(i,d)>h||tI(u,d)>h||tI(u,i)>h)return;let p=et(this._engine,n.color);p||(p=el(t,o,void 0!==s.id?a.particles.linksColors.get(s.id):a.particles.linksColor)),p&&function(t){let{context:e,pos1:i,pos2:s,pos3:n,backgroundMask:a,colorTriangle:r,opacityTriangle:o}=t;e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(s.x,s.y),e.lineTo(n.x,n.y),e.closePath(),a.enable&&(e.globalCompositeOperation=a.composite),e.fillStyle=ea(r,o),e.fill()}({context:e,pos1:i,pos2:d,pos3:u,backgroundMask:r.backgroundMask,colorTriangle:p,opacityTriangle:c})})},this._drawTriangles=(t,e,i,s)=>{let n=i.destination;if(!(t.links?.triangles.enable&&n.options.links?.triangles.enable))return;let a=n.links?.filter(t=>{let e=this._getLinkFrequency(n,t.destination);return n.options.links&&e<=n.options.links.frequency&&s.findIndex(e=>e.destination===t.destination)>=0});if(a?.length)for(let s of a){let a=s.destination;this._getTriangleFrequency(e,n,a)>t.links.triangles.frequency||this._drawLinkTriangle(e,i,s)}},this._getLinkFrequency=(t,e)=>nx([t,e],this._freqs.links),this._getTriangleFrequency=(t,e,i)=>nx([t,e,i],this._freqs.triangles),this._container=t,this._engine=e,this._freqs={links:new Map,triangles:new Map}}drawParticle(t,e){let{links:i,options:s}=e;if(!i?.length)return;let n=i.filter(t=>s.links&&(s.links.frequency>=1||this._getLinkFrequency(e,t.destination)<=s.links.frequency));for(let t of n)this._drawTriangles(s,e,t,n),t.opacity>0&&(e.retina.linksWidth??0)>0&&this._drawLinkLine(e,t)}
11async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(t){if(t.links=[],!t.options.links)return;let e=this._container.retina.pixelRatio,{retina:i}=t,{distance:s,width:n}=t.options.links;i.linksDistance=s*e,i.linksWidth=n*e}particleDestroyed(t){t.links=[]}}class n_{constructor(t){this.id="links",this._engine=t}getPlugin(t){return Promise.resolve(new nw(t,this._engine))}loadOptions(){}needsPlugin(){return!0}}async function nP(t,e=!0){let i=new n_(t);await t.addPlugin(i,e)}async function nk(t,e=!0){t.checkVersion("3.9.1"),await nb(t,e),await nP(t,e)}class nC{draw(t){let{particle:e,radius:i}=t;!function(t,e,i){let{context:s}=t,n=i.count.numerator*i.count.denominator,a=i.count.numerator/i.count.denominator,r=Math.PI-tB(180*(a-2)/a);if(s){s.beginPath(),s.translate(e.x,e.y),s.moveTo(0,0);for(let t=0;t<n;t++)s.lineTo(i.length,0),s.translate(i.length,0),s.rotate(r)}}(t,this.getCenter(e,i),this.getSidesData(e,i))}getSidesCount(t){let e=t.shapeData;return Math.round(tz(e?.sides??5))}}class nS extends nC{constructor(){super(...arguments),this.validTypes=["polygon"]}getCenter(t,e){return{x:-e/(t.sides/3.5),y:-e/.76}}getSidesData(t,e){let i=t.sides;return{count:{denominator:1,numerator:i},length:2.66*e/(i/3)}}}class nM extends nC{constructor(){super(...arguments),this.validTypes=["triangle"]}getCenter(t,e){return{x:-e,y:e/1.66}}getSidesCount(){return 3}getSidesData(t,e){return{count:{denominator:2,numerator:3},length:2*e}}}async function nT(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new nS,e)}async function nE(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new nM,e)}async function nD(t,e=!0){t.checkVersion("3.9.1"),await nT(t,e),await nE(t,e)}class nR{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){tC(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=tj(t.speed)),void 0!==t.decay&&(this.decay=tj(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class nO extends eW{constructor(){super(),this.animation=new nR,this.direction=Z.clockwise,this.path=!1,this.value=0}load(t){tC(t)||(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}let nz=2*Math.PI;class nA{constructor(t){this.container=t}init(t){let e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:tB(tz(e.value)),min:0,max:nz},t.pathRotation=e.path;let i=e.direction;switch(i===Z.random&&(i=Math.floor(2*tE())>0?Z.counterClockwise:Z.clockwise),i){case Z.counterClockwise:case"counterClockwise":t.rotate.status=A.decreasing;break;case Z.clockwise:t.rotate.status=A.increasing}let s=e.animation;s.enable&&(t.rotate.decay=1-tz(s.decay),t.rotate.velocity=tz(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.rotate.velocity*=tE())),t.rotation=t.rotate.value}isEnabled(t){let e=t.options.rotate;return!!e&&!t.destroyed&&!t.spawning&&(!!e.value||e.animation.enable||e.path)}loadOptions(t,...e){for(let i of(t.rotate||(t.rotate=new nO),e))t.rotate.load(i?.rotate)}update(t,e){!this.isEnabled(t)||(t.isRotating=!!t.rotate,t.rotate&&(t9(t,t.rotate,!1,V.none,e),t.rotation=t.rotate.value))}}async function nV(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("rotate",t=>Promise.resolve(new nA(t)),e)}let nj=Math.sqrt(2);class nL{constructor(){this.validTypes=["edge","square"]}draw(t){!function(t){let{context:e,radius:i}=t,s=i/nj,n=2*s;e.rect(-s,-s,n,n)}(t)}getSidesCount(){return 4}}async function nI(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new nL,e)}class nB{constructor(){this.validTypes=["star"]}draw(t){!function(t){let{context:e,particle:i,radius:s}=t,n=i.sides,a=i.starInset??2;e.moveTo(0,0-s);for(let t=0;t<n;t++)e.rotate(Math.PI/n),e.lineTo(0,0-s*a),e.rotate(Math.PI/n),e.lineTo(0,0-s)}(t)}getSidesCount(t){let e=t.shapeData;return Math.round(tz(e?.sides??5))}particleInit(t,e){let i=e.shapeData;e.starInset=tz(i?.inset??2)}}async function nF(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new nB,e)}class nN{constructor(t,e){this._container=t,this._engine=e}init(t){let e=this._container,i=t.options,s=t3(i.stroke,t.id,i.reduceDuplicates);t.strokeWidth=tz(s.width)*e.retina.pixelRatio,t.strokeOpacity=tz(s.opacity??1),t.strokeAnimation=s.color?.animation;let n=ee(this._engine,s.color)??t.getFillColor();
11n&&(t.strokeColor=eu(n,t.strokeAnimation,e.retina.reduceFactor))}isEnabled(t){let e=t.strokeAnimation,{strokeColor:i}=t;return!t.destroyed&&!t.spawning&&!!e&&(i?.h.value!==void 0&&i.h.enable||i?.s.value!==void 0&&i.s.enable||i?.l.value!==void 0&&i.l.enable)}update(t,e){this.isEnabled(t)&&ef(t.strokeColor,e)}}async function n$(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("strokeColor",e=>Promise.resolve(new nN(e,t)),e)}async function nU(t,e=!0){t.checkVersion("3.9.1"),await nr(t,!1),await sl(t,!1),await sf(t,!1),await sw(t,!1),await sC(t,!1),await sE(t,!1),await sR(t,!1),await sA(t,!1),await sL(t,!1),await sU(t,!1),await sq(t,!1),await nl(t,!1),await np(t,!1),await nk(t,!1),await st(t,!1),await ss(t,!1),await s8(t,!1),await nn(t,!1),await nD(t,!1),await nI(t,!1),await nF(t,!1),await ni(t,!1),await nV(t,!1),await n$(t,!1),await i7(t,e)}var nH=t.i(53533),nW=t.i(98311),nq=t.i(57126),nG=t.i(39016),nY=t.i(61263),nX=t.i(94364),nK=t.i(88905);function nZ(t,e){[...e].reverse().forEach(i=>{let s=t.getVariant(i);s&&(0,nX.setTarget)(t,s),t.variantChildren&&t.variantChildren.forEach(t=>{nZ(t,e)})})}function nQ(){let t=!1,e=new Set,i={subscribe:t=>(e.add(t),()=>void e.delete(t)),start(i,s){(0,nK.invariant)(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let n=[];return e.forEach(t=>{n.push((0,nY.animateVisualElement)(t,i,{transitionOverride:s}))}),Promise.all(n)},set:i=>((0,nK.invariant)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(t=>{var e,s;e=t,Array.isArray(s=i)?nZ(e,s):"string"==typeof s?nZ(e,[s]):(0,nX.setTarget)(e,s)})),stop(){e.forEach(t=>{t.values.forEach(t=>t.stop())})},mount:()=>(t=!0,()=>{t=!1,i.stop()})};return i}let nJ=function(){let t=(0,nq.useConstant)(nQ);return(0,nG.useIsomorphicLayoutEffect)(t.mount,[]),t},n0=t=>{let{id:e,className:i,background:s,minSize:n,maxSize:a,speed:r,particleColor:o,particleDensity:l}=t,[c,d]=(0,tl.useState)(!1);(0,tl.useEffect)(()=>{ij(async t=>{await nU(t)}).then(()=>{d(!0)})},[]);let u=nJ(),h=async t=>{t&&await u.start({opacity:1,transition:{duration:1}})},p=(0,tl.useId)();return(0,tr.jsx)(nW.motion.div,{animate:u,className:(0,nH.cn)("opacity-0",i),children:c&&(0,tr.jsx)(iV,{id:e??p,className:(0,nH.cn)("size-full"),particlesLoaded:h,options:{background:{color:{value:s??"#0d47a1"}},fullScreen:{enable:!1,zIndex:1},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!1,mode:"repulse"},resize:{enable:!0}},modes:{push:{quantity:4},repulse:{distance:200,duration:.4}}},particles:{bounce:{horizontal:{value:1},vertical:{value:1}},collisions:{absorb:{speed:2},bounce:{horizontal:{value:1},vertical:{value:1}},enable:!1,maxSpeed:50,mode:"bounce",overlap:{enable:!0,retries:0}},color:{value:o??"#ffffff",animation:{h:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},s:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},l:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0}}},effect:{close:!0,fill:!0,options:{},type:{}},groups:{},move:{angle:{offset:0,value:90},attract:{distance:200,enable:!1,rotate:{x:3e3,y:3e3}},center:{x:50,y:50,mode:"percent",radius:0},decay:0,distance:{},direction:"none",drift:0,enable:!0,gravity:{acceleration:9.81,enable:!1,inverse:!1,maxSpeed:50},path:{clamp:!0,delay:{value:0},enable:!1,options:{}},outModes:{default:"out"},random:!1,size:!1,speed:{min:.1,max:1},spin:{acceleration:0,enable:!1},straight:!1,trail:{enable:!1,length:10,fill:{}},vibrate:!1,warp:!1},number:{density:{enable:!0,width:400,height:400},limit:{mode:"delete",value:0},value:l??120},opacity:{value:{min:.1,max:1},animation:{count:0,enable:!0,speed:r??4,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},reduceDuplicates:!1,shadow:{blur:0,color:{value:"#000"},enable:!1,offset:{x:0,y:0}},shape:{close:!0,fill:!0,options:{},type:"circle"},size:{value:{min:n??1,max:a??3},animation:{count:0,enable:!1,speed:5,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},stroke:{width:0},zIndex:{value:0,opacityRate:1,sizeRate:1,velocityRate:1},destroy:{bounds:{},mode:"none",split:{count:1,factor:{value:3},rate:{value:{min:4,max:9}},sizeOffset:!0}}
11,roll:{darken:{enable:!1,value:0},enable:!1,enlighten:{enable:!1,value:0},mode:"vertical",speed:25},tilt:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",enable:!1},twinkle:{lines:{enable:!1,frequency:.05,opacity:1},particles:{enable:!1,frequency:.05,opacity:1}},wobble:{distance:5,enable:!1,speed:{angle:50,move:10}},life:{count:0,delay:{value:0,sync:!1},duration:{value:0,sync:!1}},rotate:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",path:!1},orbit:{animation:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!1},enable:!1,opacity:1,rotation:{value:45},width:1},links:{blink:!1,color:{value:"#fff"},consent:!1,distance:100,enable:!1,frequency:1,opacity:1,shadow:{blur:5,color:{value:"#000"},enable:!1},triangles:{enable:!1,frequency:1},width:1,warp:!1},repulse:{value:0,enabled:!1,distance:1,duration:1,factor:1,speed:1}},detectRetina:!0}},p)})};t.s(["SparklesCore",0,n0],17704),t.s(["default",0,()=>(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsx)(n0,{background:"transparent",minSize:.4,maxSize:1,particleDensity:400,className:"absolute -z-10 ml-20 size-30 [mask-image:radial-gradient(100px_100px_at_center,white,transparent_80%)]",particleColor:"#FFFFFF",speed:1}),(0,tr.jsx)("div",{className:"z-50 flex px-10 pt-10",style:{background:"radial-gradient(at 70% 35%,rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 30%)"},children:(0,tr.jsx)("div",{className:"flex rounded-[17px] bg-gradient-to-tr from-[#232424] from-50% to-[#9AA4AF] p-px",children:(0,tr.jsx)("div",{className:"flex h-[110px] w-[110px] justify-center rounded-2xl bg-gradient-to-tr from-black to-[#414546] p-2",children:(0,tr.jsx)("div",{className:"flex rounded-[13px] bg-gradient-to-tr from-[#262626] from-50% to-[#E6EBEF] p-px",children:(0,tr.jsx)("div",{className:"flex items-center justify-center rounded-xl bg-radial from-[#262728] to-[#151617] p-4",children:(0,tr.jsx)(to.default,{src:"/tri_hex_logo.svg",width:62,height:62,alt:"hex logo",loading:"lazy"})})})})})})]})],45726)},2825,t=>{"use strict";var e=t.i(91398),i=t.i(41158),s=t.i(39310);t.s(["default",0,({text:t,link:n})=>(0,e.jsx)("span",{className:"w-fit rounded-full p-px",style:{background:"radial-gradient(66.02% 69.44% at 50% 0%, #F0FCE4 8.38%, #1DC67D 46.43%, #323A2C 100%0)"},children:(0,e.jsx)(s.Button,{asChild:!0,className:"group relative w-[190px] overflow-hidden rounded-full transition-all duration-300 hover:shadow-[0_0_15px_rgba(29,198,125,0.4)]",style:{background:"radial-gradient(63.38% 66.67% at 50% 0%, #FFF 1%, #1DC67D 20%, #0F1113 100%)"},children:(0,e.jsxs)(i.default,{href:n,scroll:!1,children:[(0,e.jsx)("span",{className:"absolute inset-0 bg-transparent opacity-0 transition-opacity duration-300 group-hover:bg-[radial-gradient(70%_80%_at_50%_0%,rgba(255,255,255,0.4)_0%,rgba(29,198,125,0.2)_30%,transparent_100%)] group-hover:opacity-100"}),(0,e.jsx)("p",{className:"px-4",children:t})]})})})])},2790,t=>{t.v({className:"inter_5972bc34-module__OU16Qa__className"})},85130,t=>{"use strict";var e=t.i(2790);let i={className:e.default.className,style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"}};null!=e.default.variable&&(i.variable=e.default.variable),t.s(["default",0,i])},3828,(t,e,i)=>{e.exports=t.r(26990)},93087,91900,t=>{"use strict";let e,i;var s=t.i(83026),n=t.i(88905),a=t.i(91788),r=t.i(44063),o=t.i(62448);function l(t,e){let i,s=()=>{let{currentTime:s}=e,n=(null===s?0:s.value)/100;i!==n&&t(n),i=n};return o.frame.preUpdate(s,!0),()=>(0,o.cancelFrame)(s)}var c=t.i(91424),d=t.i(20972),u=t.i(98715);let h=new WeakMap,p=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:(0,d.isSVGElement)(s)&&"getBBox"in s?s.getBBox()[e]:s[i],f=p("inline","width","offsetWidth"),m=p("block","height","offsetHeight");function g({target:t,borderBoxSize:e}){h.get(t)?.forEach(i=>{i(t,{get width(){return f(t,e)},get height(){return m(t,e)}})})}function v(t){t.forEach(g)}let y=new Set;var b=t.i(61064),x=t.i(50833);let w=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),_={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function P(t,e,i,s){let n=i[e],{length:a,position:r}=_[e],o=n.current,l=i.time;n.current=t[`scroll${r}`],n.scrollLength=t[`scroll${a}`]-t[`client${a}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=(0,b.progress)(0,n.scrollLength,n.current);let c=s-l;n.velocity=c>50?0:(0,x.velocityPerSecond)(n.current-o,c)}t.i(50461);var k=t.i(54833),C=t.i(95129),S=t.i(71955),M=t.i(51723);let T={start:0,center:.5,end:1};function E(t,e,i=0){let s=0;if(t in T&&(t=T[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?s=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?s=e/100*document.documentElement.clientWidth:t.endsWith("vh")?s=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(s=e*t),i+s}let D=[0,0],R=[[0,0],[1,1]],O={x:0,y:0},z=new WeakMap,A=new WeakMap,V=new WeakMap,j=new WeakMap,L=new WeakMap,I=t=>t===document.scrollingElement?window:t;function B(t,{container:s=document.scrollingElement,trackContentSize:n=!1,...a}={}){if(!s)return r.noop;let l=V.get(s);l||(l=new Set,V.set(s,l));
11let c=function(t,e,i,s={}){return{measure:e=>{!function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let s=e;for(;s&&s!==t;)i.x.targetOffset+=s.offsetLeft,i.y.targetOffset+=s.offsetTop,s=s.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight}(t,s.target,i),P(t,"x",i,e),P(t,"y",i,e),i.time=e,(s.offset||s.target)&&function(t,e,i){let{offset:s=R}=i,{target:n=t,axis:a="y"}=i,r="y"===a?"height":"width",o=n!==t?function(t,e){let i={x:0,y:0},s=t;for(;s&&s!==e;)if((0,M.isHTMLElement)(s))i.x+=s.offsetLeft,i.y+=s.offsetTop,s=s.offsetParent;else if("svg"===s.tagName){let t=s.getBoundingClientRect(),e=(s=s.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(s instanceof SVGGraphicsElement){let{x:t,y:e}=s.getBBox();i.x+=t,i.y+=e;let n=null,a=s.parentNode;for(;!n;)"svg"===a.tagName&&(n=a),a=s.parentNode;s=n}else break;return i}(n,t):O,l=n===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in n&&"svg"!==n.tagName?n.getBBox():{width:n.clientWidth,height:n.clientHeight},c={width:t.clientWidth,height:t.clientHeight};e[a].offset.length=0;let d=!e[a].interpolate,u=s.length;for(let t=0;t<u;t++){let i=function(t,e,i,s){let n=Array.isArray(t)?t:D,a=0;return"number"==typeof t?n=[t,t]:"string"==typeof t&&(n=(t=t.trim()).includes(" ")?t.split(" "):[t,T[t]?t:"0"]),(a=E(n[0],i,s))-E(n[1],e)}(s[t],c[r],l[r],o[a]);d||i===e[a].interpolatorOffsets[t]||(d=!0),e[a].offset[t]=i}d&&(e[a].interpolate=(0,k.interpolate)(e[a].offset,(0,C.defaultOffset)(s),{clamp:!1}),e[a].interpolatorOffsets=[...e[a].offset]),e[a].progress=(0,S.clamp)(0,1,e[a].interpolate(e[a].current))}(t,i,s)},notify:()=>e(i)}}(s,t,{time:0,x:w(),y:w()},a);if(l.add(c),!z.has(s)){let t,n=()=>{for(let t of l)t.measure(o.frameData.timestamp);o.frame.preUpdate(a)},a=()=>{for(let t of l)t.notify()},r=()=>o.frame.read(n);z.set(s,r);let c=I(s);window.addEventListener("resize",r,{passive:!0}),s!==document.documentElement&&A.set(s,"function"==typeof s?(y.add(s),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};y.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{y.delete(s),y.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(v)),(t=(0,u.resolveElements)(s)).forEach(t=>{let i=h.get(t);i||(i=new Set,h.set(t,i)),i.add(r),e?.observe(t)}),()=>{t.forEach(t=>{let i=h.get(t);i?.delete(r),i?.size||e?.unobserve(t)})})),c.addEventListener("scroll",r,{passive:!0}),r()}if(n&&!L.has(s)){let t=z.get(s),e={width:s.scrollWidth,height:s.scrollHeight};j.set(s,e);let i=o.frame.read(()=>{let i=s.scrollWidth,n=s.scrollHeight;(e.width!==i||e.height!==n)&&(t(),e.width=i,e.height=n)},!0);L.set(s,i)}let d=z.get(s);return o.frame.read(d,!1,!0),()=>{(0,o.cancelFrame)(d);let t=V.get(s);if(!t||(t.delete(c),t.size))return;let e=z.get(s);z.delete(s),e&&(I(s).removeEventListener("scroll",e),A.get(s)?.(),window.removeEventListener("resize",e));let i=L.get(s);i&&((0,o.cancelFrame)(i),L.delete(s)),j.delete(s)}}let F=new Map;function N({source:t,container:e,...i}){var s;let n,a,{axis:r}=i;t&&(e=t);let o=F.get(e)??new Map;F.set(e,o);let l=i.target??"self",d=o.get(l)??{},u=r+(i.offset??[]).join(",");return d[u]||(d[u]=!i.target&&(0,c.supportsScrollTimeline)()?new ScrollTimeline({source:e,axis:r}):(s={container:e,...i},n={value:0},a=B(t=>{n.value=100*t[s.axis].progress},s),{currentTime:n,cancel:a})),d[u]}var $=t.i(57126),U=t.i(39016);let H=()=>({scrollX:(0,s.motionValue)(0),scrollY:(0,s.motionValue)(0),scrollXProgress:(0,s.motionValue)(0),scrollYProgress:(0,s.motionValue)(0)}),W=t=>!!t&&!t.current;function q({container:t,target:e,...i}={}){let s=(0,$.useConstant)(H),o=(0,a.useRef)(null),c=(0,a.useRef)(!1),d=(0,a.useCallback)(()=>(o.current=function(t,{axis:e="y",container:i=document.scrollingElement,...s}={}){var n,a;let o;if(!i)return r.noop;let c={axis:e,container:i,...s};return"function"==typeof t?(n=t,a=c,2===n.length?B(t=>{n(t[a.axis].progress,t)},a):l(n,N(a))):(o=N(c),t.attachTimeline({timeline:c.target?void 0:o,observe:t=>(t.pause(),l(e=>{t.time=t.iterationDuration*e},o))}))}((t,{x:e,y:i})=>{s.scrollX.set(e.current),s.scrollXProgress.set(e.progress),s.scrollY.set(i.current),s.scrollYProgress.set(i.progress)},{...i,container:t?.current||void 0,target:e?.current||void 0}),()=>{o.current?.()}),[t,e,JSON.stringify(i.offset)]);return(0,U.useIsomorphicLayoutEffect)(()=>
11{if(c.current=!1,!(W(t)||W(e)))return d();c.current=!0},[d]),(0,a.useEffect)(()=>c.current?((0,n.invariant)(!W(t),"Container ref is defined but not hydrated","use-scroll-ref"),(0,n.invariant)(!W(e),"Target ref is defined but not hydrated","use-scroll-ref"),d()):void 0,[d]),s}function G(t,e,i){(0,a.useInsertionEffect)(()=>t.on(e,i),[t,e,i])}t.s(["useScroll",()=>q],93087),t.s(["useMotionValueEvent",()=>G],91900)},30245,t=>{"use strict";var e=t.i(91398),i=t.i(58678),s=t.i(79935),n=t.i(85130),a=t.i(3828),r=t.i(91788),o=t.i(98311),l=t.i(98817),c=t.i(93087),d=t.i(91900),u=t.i(53533),h=t.i(39310),p=t.i(41158),f=t.i(26019);let m=(0,t.i(69547).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),g=({navItems:t,className:i,scrollContainerRef:s})=>{let{scrollYProgress:n}=(0,c.useScroll)({container:s}),[g,v]=(0,r.useState)(!0),[y,b]=(0,r.useState)(!1),x=(0,a.useRouter)().pathname;return(0,d.useMotionValueEvent)(n,"change",t=>{if("number"==typeof t){if(t<=.01)return void v(!0);t-n.getPrevious()<0?v(!0):(v(!1),b(!1))}}),(0,r.useEffect)(()=>{b(!1)},[x]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(l.AnimatePresence,{mode:"wait",children:(0,e.jsxs)(o.motion.div,{initial:{opacity:1,y:-100,height:64},animate:{y:g?0:-100,opacity:+!!g,height:y?285:64},transition:{duration:.3,ease:"easeInOut"},style:{background:"linear-gradient(90deg, rgba(16, 17, 18, 0.90) 0%, rgba(30, 35, 42, 0.90) 100%)"},className:(0,u.cn)("fixed inset-x-0 top-4 z-[5000] mx-auto flex w-[95svw] max-w-[1240px] flex-col overflow-hidden rounded-xl border-[1px] border-[#3B4144] shadow-[0px_2px_3px_-1px_rgba(0,0,0,0.1),0px_1px_0px_0px_rgba(25,28,33,0.02),0px_0px_0px_1px_rgba(25,28,33,0.08)] backdrop-blur-[3px] lg:max-h-[64px]",i),children:[(0,e.jsxs)("div",{className:"flex w-full items-center justify-between px-5 pt-3 lg:px-10",children:[(0,e.jsx)(p.default,{href:"/",className:"h-[20px] w-[120px]",children:(0,e.jsx)(f.default,{width:120,height:20,src:"/frosco-tm-white.svg",alt:"Frosco Logo",priority:!0})}),(0,e.jsx)("div",{className:"flex gap-4",children:t.map((t,i)=>(0,e.jsx)(p.default,{href:t.link,target:"Blog"===t.name?"_blank":"",className:(0,u.cn)((0,h.buttonVariants)({variant:"link"}),"hidden text-white hover:text-[#1DC67D] lg:block",{"border-0 border-b-2 border-[#1DC67D] bg-gradient-to-t text-[#1DC67D] hover:bg-inherit hover:text-[#1DC67D] hover:no-underline":t.link===x}),style:t.link===x?{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.00) 50%, rgba(29, 198, 125, 0.40) 100%)"}:{},children:(0,e.jsx)("span",{className:"hidden text-sm md:block",children:t.name})},`link=${i}`))}),(0,e.jsx)("span",{className:"hidden w-fit rounded-full bg-gradient-to-b from-[#B0BDCA] via-[#2E343D] to-[#262B32] p-px lg:block",children:(0,e.jsx)(h.Button,{className:"group relative w-fit overflow-hidden rounded-full bg-gradient-to-b from-[#313A46] to-[#1B212B] transition-all duration-300 hover:shadow-[0_0_15px_rgba(29,198,125,0.4)]",asChild:!0,children:(0,e.jsx)(p.default,{href:"/contact",scroll:!1,children:(0,e.jsx)("p",{children:"Contact Us"})})})}),(0,e.jsx)(h.Button,{variant:"ghost",className:"flex size-10 hover:bg-transparent hover:opacity-70 lg:hidden",onClick:()=>b(!y),children:(0,e.jsx)(m,{className:"scale-180 text-white"})})]}),y&&(0,e.jsxs)("div",{className:"flex flex-col gap-2 px-3 py-2 text-white lg:hidden",children:[t.map((t,i)=>(0,e.jsx)(p.default,{href:t.link,target:"Blog"===t.name?"_blank":"",className:"block rounded-md px-2 py-2 text-sm hover:bg-[#2a2f36] hover:text-[#1DC67D]",onClick:()=>b(!1),children:t.name},`mobile-link-${i}`)),(0,e.jsx)(p.default,{href:"/contact",className:"block rounded-md px-2 py-2 text-sm hover:bg-[#2a2f36] hover:text-[#1DC67D]",children:"Contact Us"})]})]})})})},v=[{link:"/",name:"Home",icon:(0,e.jsx)(function(t){return(0,e.jsx)("svg",{width:800,height:624,viewBox:"0 0 800 624",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,e.jsx)("path",{d:"M389.404 162.36L133.335 373.263v227.625a22.223 22.223 0 0022.222 22.222l155.639-.403a22.22 22.22 0 0022.111-22.222V467.554a22.22 22.22 0 0122.222-22.222h88.889a22.22 22.22 0 0122.222 22.222v132.834a22.217 22.217 0 006.484 15.758 22.232 22.232
110 0015.738 6.533l155.584.431a22.22 22.22 0 0022.222-22.222V373.11L410.654 162.36a16.93 16.93 0 00-21.25 0zM793.89 305.707l-116.111-95.708V17.624A16.665 16.665 0 00661.112.957h-77.777a16.668 16.668 0 00-16.667 16.667V118.47L442.321 16.165a66.666 66.666 0 00-84.723 0L6.029 305.707a16.675 16.675 0 00-5.974 11.276 16.664 16.664 0 003.752 12.196l35.416 43.056a16.66 16.66 0 0011.274 6.003c2.181.21 4.383-.012 6.479-.653a16.684 16.684 0 005.734-3.086l326.694-269.084a16.93 16.93 0 0121.25 0l326.708 269.084a16.675 16.675 0 0018.429 1.887 16.678 16.678 0 005.044-4.11l35.416-43.055a16.656 16.656 0 003.708-12.248 16.672 16.672 0 00-6.069-11.266z",fill:"currentColor"})})},{})},{link:"/solutions",name:"Solutions",icon:(0,e.jsx)(function(t){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:800,height:700,viewBox:"0 0 800 700",fill:"none",...t,children:(0,e.jsx)("path",{d:"M100 100H0c0 193.281 156.719 350 350 350v225c0 13.75 11.25 25 25 25h50c13.75 0 25-11.25 25-25V450c0-193.281-156.719-350-350-350zM700 0C568.438 0 454.062 72.656 394.219 180c43.281 47.188 75.312 104.531 92.187 168.125C662.5 329.844 800 181.094 800 0H700z",fill:"
11currentColor"})})},{})},{link:"/about",name:"About",icon:(0,e.jsx)(function(t){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:800,height:624,viewBox:"0 0 800 624",fill:"none",...t,children:(0,e.jsx)("path",{d:"M753.083.958C676.972 5.278 525.694 21 432.306 78.167c-6.445 3.944-10.098 10.958-10.098 18.291v505.375c0 16.042 17.542 26.181 32.334 18.736 96.083-48.361 235.041-61.555 303.75-65.166 23.458-1.236 41.694-20.042 41.694-42.584V43.597C800 19 778.667-.486 753.083.958zM367.681 78.167C274.306 21 123.028 5.292 46.917.958 21.333-.486 0 19 0 43.598v469.235c0 22.556 18.236 41.361 41.694 42.584 68.737 3.611 207.764 16.819 303.848 65.208 14.75 7.43 32.236-2.695 32.236-18.695V96.208c0-7.347-3.639-14.083-10.097-18.041z",fill:"currentColor"})})},{})},{link:"https://blog.frosco.io",name:"Blog",icon:(0,e.jsx)(function(t){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:800,height:600,viewBox:"0 0 800 600",fill:"none",...t,children:(0,e.jsx)("path",{d:"M784.844 198.125c6.094-4.844 15.156-.313 15.156 7.344V525c0 41.406-33.594 75-75 75H75c-41.406 0-75-33.594-75-75V205.625c0-7.812 8.906-12.188 15.156-7.344 35 27.188 81.406 61.719 240.782 177.5 32.968 24.063 88.593 74.688 144.062 74.375 55.781.469 112.5-51.25 144.219-74.375C703.594 260 749.844 225.312 784.844 198.125zM400 400c36.25.625 88.438-45.625 114.688-64.688 207.343-150.468 223.124-163.593 270.937-201.093C794.688 127.187 800 116.25 800 104.688V75c0-41.406-33.594-75-75-75H75C33.594 0 0 33.594 0 75v29.688c0 11.562 5.313 22.343 14.375 29.531 47.813 37.343 63.594 50.625 270.937 201.093C311.562 354.375 363.75 400.625 400 400z",fill:"currentColor"})})},{})}];function y({children:t}){let o=(0,a.useRouter)(),l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{l.current&&d(!0)},[]),(0,r.useEffect)(()=>{l.current&&(l.current.scrollTop=0)},[o.asPath]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.default,{children:[(0,e.jsx)("title",{children:"Frosco"}),(0,e.jsx)("meta",{name:"description",content:"Froscoâ¢: Exclusive technology that ensures crop protection"}),(0,e.jsx)("link",{rel:"icon",href:"/frosco.ico"})]}
11),c&&l.current&&(0,e.jsx)(g,{navItems:v,scrollContainerRef:l}),(0,e.jsx)("main",{className:`h-screen overflow-x-hidden overflow-y-auto ${n.default.className}`,ref:l,children:t}),(0,e.jsx)(s.Toaster,{richColors:!0,position:"bottom-right"})]})}t.s(["Layout",()=>y],30245)}]);
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.