react-email 3.0.7 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cli/index.js +10 -4
- package/dist/cli/index.mjs +9 -3
- package/dist/preview/.next/BUILD_ID +1 -1
- package/dist/preview/.next/app-build-manifest.json +14 -12
- package/dist/preview/.next/build-manifest.json +3 -3
- package/dist/preview/.next/cache/.rscinfo +1 -1
- package/dist/preview/.next/cache/webpack/client-production/0.pack +0 -0
- package/dist/preview/.next/cache/webpack/client-production/index.pack +0 -0
- package/dist/preview/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/dist/preview/.next/cache/webpack/server-production/0.pack +0 -0
- package/dist/preview/.next/cache/webpack/server-production/index.pack +0 -0
- package/dist/preview/.next/next-minimal-server.js.nft.json +1 -1
- package/dist/preview/.next/next-server.js.nft.json +1 -1
- package/dist/preview/.next/prerender-manifest.json +1 -1
- package/dist/preview/.next/required-server-files.json +1 -1
- package/dist/preview/.next/server/app/_not-found/page.js +1 -1
- package/dist/preview/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/preview/.next/server/app/favicon.ico/route.js +1 -1
- package/dist/preview/.next/server/app/page.js +1 -1
- package/dist/preview/.next/server/app/page.js.nft.json +1 -1
- package/dist/preview/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/preview/.next/server/app/preview/[...slug]/page.js +5 -5
- package/dist/preview/.next/server/app/preview/[...slug]/page.js.nft.json +1 -1
- package/dist/preview/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -1
- package/dist/preview/.next/server/chunks/196.js +1 -1
- package/dist/preview/.next/server/chunks/282.js +15 -0
- package/dist/preview/.next/server/chunks/667.js +1 -0
- package/dist/preview/.next/server/middleware-build-manifest.js +1 -1
- package/dist/preview/.next/server/next-font-manifest.js +1 -1
- package/dist/preview/.next/server/next-font-manifest.json +1 -1
- package/dist/preview/.next/server/pages/500.html +1 -1
- package/dist/preview/.next/server/server-reference-manifest.js +1 -1
- package/dist/preview/.next/server/server-reference-manifest.json +1 -1
- package/dist/preview/.next/server/webpack-runtime.js +1 -1
- package/dist/preview/.next/static/chunks/207-7ab46c2d84f60fed.js +1 -0
- package/dist/preview/.next/static/chunks/490-9a10c001ec2dffb2.js +1 -0
- package/dist/preview/.next/static/chunks/afa401a5-9ebf2515b1397993.js +6 -0
- package/dist/preview/.next/static/chunks/app/layout-f1bad3fcfbc7eb6b.js +1 -0
- package/dist/preview/.next/static/chunks/app/page-800163ba6c6d943d.js +1 -0
- package/dist/preview/.next/static/chunks/app/preview/[...slug]/page-5b5c4557fc89db64.js +1 -0
- package/dist/preview/.next/static/chunks/{main-app-771a0fc4ad5aa154.js → main-app-d1b0aa870bcfb13e.js} +1 -1
- package/dist/preview/.next/static/css/d6c4def4cc3fb858.css +3 -0
- package/dist/preview/.next/trace +22 -21
- package/dist/preview/.next/types/app/layout.ts +1 -1
- package/dist/preview/.next/types/app/preview/[...slug]/page.ts +1 -1
- package/package.json +8 -2
- package/src/actions/email-validation/check-images.spec.tsx +90 -0
- package/src/actions/email-validation/check-images.ts +142 -0
- package/src/actions/email-validation/check-links.spec.tsx +92 -0
- package/src/actions/email-validation/check-links.ts +91 -0
- package/src/actions/email-validation/get-line-and-column-from-index.spec.ts +22 -0
- package/src/actions/email-validation/get-line-and-column-from-index.ts +43 -0
- package/src/actions/email-validation/quick-fetch.ts +12 -0
- package/src/animated-icons-data/help.json +1082 -0
- package/src/animated-icons-data/link.json +1309 -0
- package/src/animated-icons-data/load.json +443 -0
- package/src/animated-icons-data/mail.json +1320 -0
- package/src/app/globals.css +0 -24
- package/src/app/layout.tsx +6 -2
- package/src/app/page.tsx +8 -9
- package/src/app/preview/[...slug]/page.tsx +1 -0
- package/src/app/preview/[...slug]/preview.tsx +3 -3
- package/src/app/preview/[...slug]/rendering-error.tsx +6 -6
- package/src/components/button.tsx +53 -42
- package/src/components/code-container.tsx +6 -6
- package/src/components/code-snippet.tsx +11 -0
- package/src/components/code.tsx +4 -4
- package/src/components/icons/icon-button.tsx +1 -1
- package/src/components/icons/icon-circle-check.tsx +21 -0
- package/src/components/icons/icon-circle-close.tsx +17 -0
- package/src/components/icons/icon-circle-warning.tsx +17 -0
- package/src/components/icons/icon-email.tsx +18 -0
- package/src/components/icons/icon-image.tsx +19 -0
- package/src/components/icons/icon-link.tsx +14 -0
- package/src/components/icons/icon-stamp.tsx +14 -0
- package/src/components/send.tsx +9 -9
- package/src/components/shell.tsx +32 -34
- package/src/components/sidebar/checking-results.tsx +150 -0
- package/src/components/sidebar/{sidebar-directory-children.tsx → file-tree-directory-children.tsx} +19 -15
- package/src/components/sidebar/{sidebar-directory.tsx → file-tree-directory.tsx} +9 -10
- package/src/components/sidebar/file-tree.tsx +31 -0
- package/src/components/sidebar/image-checker.tsx +161 -0
- package/src/components/sidebar/link-checker.tsx +151 -0
- package/src/components/sidebar/sidebar.tsx +344 -22
- package/src/components/tooltip-content.tsx +2 -2
- package/src/components/topbar.tsx +13 -16
- package/src/hooks/use-icon-animation.ts +41 -0
- package/tsconfig.json +1 -0
- package/dist/preview/.next/server/chunks/693.js +0 -1
- package/dist/preview/.next/server/chunks/720.js +0 -10
- package/dist/preview/.next/static/chunks/12-b9450aa0845e7574.js +0 -1
- package/dist/preview/.next/static/chunks/154-f7f86c8589140c56.js +0 -1
- package/dist/preview/.next/static/chunks/app/layout-6d33e2ffcffd58d4.js +0 -1
- package/dist/preview/.next/static/chunks/app/page-43a07e4b8c5c0840.js +0 -1
- package/dist/preview/.next/static/chunks/app/preview/[...slug]/page-71202390d5f9a34b.js +0 -1
- package/dist/preview/.next/static/css/a34876a6c565fff8.css +0 -3
- /package/dist/preview/.next/static/{RZga3-2qKYa2RLg-hxunV → Mn2FuRztLqr32yO8CKHi9}/_buildManifest.js +0 -0
- /package/dist/preview/.next/static/{RZga3-2qKYa2RLg-hxunV → Mn2FuRztLqr32yO8CKHi9}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{5424:(e,t,r)=>{var n=r(6912);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},3935:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let n=r(5409),i=r(4789),o=n._(r(5569)),s=r(5066),a=r(9444),l=r(4458),u=r(6707),c=r(7879),d=r(7892),h=r(3550);function f(e,t,r){"undefined"!=typeof window&&(async()=>e.prefetch(t,r))().catch(e=>{})}function p(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}r(2689);let m=o.default.forwardRef(function(e,t){let r,n;let{href:s,as:m,children:g,prefetch:v=null,passHref:y,replace:b,shallow:x,scroll:w,onClick:P,onMouseEnter:E,onTouchStart:S,legacyBehavior:C=!1,...T}=e;r=g,C&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let A=o.default.useContext(a.AppRouterContext),R=!1!==v,k=null===v?u.PrefetchKind.AUTO:u.PrefetchKind.FULL,{href:M,as:j}=o.default.useMemo(()=>{let e=p(s);return{href:e,as:m?p(m):e}},[s,m]),L=o.default.useRef(M),D=o.default.useRef(j);C&&(n=o.default.Children.only(r));let O=C?n&&"object"==typeof n&&n.ref:t,[N,V,I]=(0,l.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(e=>{(D.current!==j||L.current!==M)&&(I(),D.current=j,L.current=M),N(e)},[j,M,I,N]),B=(0,c.useMergedRef)(F,O);o.default.useEffect(()=>{A&&V&&R&&f(A,M,{kind:k})},[j,M,V,R,A,k]);let _={ref:B,onClick(e){C||"function"!=typeof P||P(e),C&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),A&&!e.defaultPrevented&&function(e,t,r,n,i,s,a){let{nodeName:l}=e.currentTarget;"A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||(e.preventDefault(),o.default.startTransition(()=>{let e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:s,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})}))}(e,A,M,j,b,x,w)},onMouseEnter(e){C||"function"!=typeof E||E(e),C&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),A&&R&&f(A,M,{kind:k})},onTouchStart:function(e){C||"function"!=typeof S||S(e),C&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),A&&R&&f(A,M,{kind:k})}};return(0,d.isAbsoluteUrl)(j)?_.href=j:C&&!y&&("a"!==n.type||"href"in n.props)||(_.href=(0,h.addBasePath)(j)),C?o.default.cloneElement(n,_):(0,i.jsx)("a",{...T,..._,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4312:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return x}});let n=r(5409),i=r(2474),o=r(4789),s=i._(r(5569)),a=n._(r(9748)),l=n._(r(4309)),u=r(484),c=r(7217),d=r(6059);r(2689);let h=r(4226),f=n._(r(224)),p=r(7879),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,o,s){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function v(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,s.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:a,width:l,decoding:u,className:c,style:d,fetchPriority:h,placeholder:f,loading:m,unoptimized:y,fill:b,onLoadRef:x,onLoadingCompleteRef:w,setBlurComplete:P,setShowAltText:E,sizesInput:S,onLoad:C,onError:T,...A}=e,R=(0,s.useCallback)(e=>{e&&(T&&(e.src=e.src),e.complete&&g(e,f,x,w,P,y,S))},[r,f,x,w,P,T,y,S]),k=(0,p.useMergedRef)(t,R);return(0,o.jsx)("img",{...A,...v(h),loading:m,width:l,height:a,decoding:u,"data-nimg":b?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:k,onLoad:e=>{g(e.currentTarget,f,x,w,P,y,S)},onError:e=>{E(!0),"empty"!==f&&P(!0),T&&T(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...v(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let x=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(h.RouterContext),n=(0,s.useContext)(d.ImageConfigContext),i=(0,s.useMemo)(()=>{let e=m||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:a,onLoadingComplete:l}=e,p=(0,s.useRef)(a);(0,s.useEffect)(()=>{p.current=a},[a]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[v,x]=(0,s.useState)(!1),[w,P]=(0,s.useState)(!1),{props:E,meta:S}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:v,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...E,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:x,setShowAltText:P,sizesInput:e.sizes,ref:t}),S.priority?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4497:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4458:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(5569),i=r(4497),o="function"==typeof IntersectionObserver,s=new Map,a=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{h.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=h.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=a.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},a.push(r),s.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),s.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,h.current]),[f,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(5569);function i(e,t){let r=(0,n.useRef)(()=>{}),i=(0,n.useRef)(()=>{});return(0,n.useMemo)(()=>e&&t?n=>{null===n?(r.current(),i.current()):(r.current=o(e,n),i.current=o(t,n))}:e||t,[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7837:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(5409)._(r(5569)).default.createContext({})},3353:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},484:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),r(2689);let n=r(13),i=r(7217);function o(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var r;let a,l,u,{src:c,sizes:d,unoptimized:h=!1,priority:f=!1,loading:p,className:m,quality:g,width:v,height:y,fill:b=!1,style:x,overrideSrc:w,onLoad:P,onLoadingComplete:E,placeholder:S="empty",blurDataURL:C,fetchPriority:T,decoding:A="async",layout:R,objectFit:k,objectPosition:M,lazyBoundary:j,lazyRoot:L,...D}=e,{imgConf:O,showAltText:N,blurComplete:V,defaultLoader:I}=t,F=O||i.imageConfigDefault;if("allSizes"in F)a=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t);a={...F,allSizes:e,deviceSizes:t}}if(void 0===I)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let B=D.loader||I;delete D.loader,delete D.srcSet;let _="__next_img_default"in B;if(_){if("custom"===a.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=B;B=t=>{let{config:r,...n}=t;return e(n)}}if(R){"fill"===R&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[R];t&&!d&&(d=t)}let z="",U=s(v),W=s(y);if((r=c)&&"object"==typeof r&&(o(r)||void 0!==r.src)){let e=o(c)?c.default:c;if(!e.src)throw 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));if(!e.height||!e.width)throw 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));if(l=e.blurWidth,u=e.blurHeight,C=C||e.blurDataURL,z=e.src,!b){if(U||W){if(U&&!W){let t=U/e.width;W=Math.round(e.height*t)}else if(!U&&W){let t=W/e.height;U=Math.round(e.width*t)}}else U=e.width,W=e.height}}let G=!f&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(h=!0,G=!1),a.unoptimized&&(h=!0),_&&!a.dangerouslyAllowSVG&&c.split("?",1)[0].endsWith(".svg")&&(h=!0);let $=s(g),H=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:k,objectPosition:M}:{},N?{}:{color:"transparent"},x),Y=V||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:U,heightInt:W,blurWidth:l,blurHeight:u,blurDataURL:C||"",objectFit:H.objectFit})+'")':'url("'+S+'")',K=Y?{backgroundSize:H.objectFit||"cover",backgroundPosition:H.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},X=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:s,loader:a}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,s),c=l.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:l.map((e,n)=>a({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:a({config:t,src:r,quality:o,width:l[c]})}}({config:a,src:c,unoptimized:h,width:U,quality:$,sizes:d,loader:B});return{props:{...D,loading:G?"lazy":p,fetchPriority:T,width:U,height:W,decoding:A,className:m,style:{...H,...K},sizes:X.sizes,srcSet:X.srcSet,src:w||X.src},meta:{unoptimized:h,priority:f,placeholder:S,fill:b}}}},4309:(e,t,r)=>{var n=r(92);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},defaultHead:function(){return h}});let i=r(5409),o=r(2474),s=r(4789),a=o._(r(5569)),l=i._(r(8450)),u=r(7837),c=r(3885),d=r(3353);function h(e){void 0===e&&(e=!1);let t=[(0,s.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(2689);let p=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(h(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let o=!0,s=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){s=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(i.props.hasOwnProperty(t)){if("charSet"===t)r.has(t)?o=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!s)&&r.has(e)?o=!1:(r.add(e),n[t]=r)}}}}return o}}()).reverse().map((e,t)=>{let i=e.key||t;if(n.env.__NEXT_OPTIMIZE_FONTS&&!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:i})})}let g=function(e){let{children:t}=e,r=(0,a.useContext)(u.AmpStateContext),n=(0,a.useContext)(c.HeadManagerContext);return(0,s.jsx)(l.default,{reduceComponentsToState:m,headManager:n,inAmpMode:(0,d.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13:(e,t)=>{function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:s}=e,a=n?40*n:t,l=i?40*i:r,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},6059:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=r(5409)._(r(5569)),i=r(7217),o=n.default.createContext(i.imageConfigDefault)},7217:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],unoptimized:!1}},224:(e,t)=>{function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)+(r.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},4226:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(5409)._(r(5569)).default.createContext(null)},5066:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return a},urlObjectKeys:function(){return s}});let n=r(2474)._(r(8162)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,o=e.protocol||"",s=e.pathname||"",a=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(s=s.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return o(e)}},8162:(e,t)=>{function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,i]=e;Array.isArray(i)?i.forEach(e=>t.append(r,n(e))):t.set(r,n(i))}),t}function o(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i}})},8450:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(5569),i="undefined"==typeof window,o=i?()=>{}:n.useLayoutEffect,s=i?()=>{}:n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}if(i){var l;null==t||null==(l=t.mountedInstances)||l.add(e.children),a()}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},7892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return v},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return h},ST:function(){return f},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return s},getURL:function(){return a},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return r||(r=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function s(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function a(){let{href:e}=window.location,t=s();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let h="undefined"!=typeof performance,f=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},4806:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},260:(e,t,r)=>{r.d(t,{UC:()=>A,bL:()=>C,l9:()=>T});var n=r(5569),i=r(4806),o=r(3277),s=r(6981),a=r(4705),l=r(2377),u=r(5245),c=r(4371),d=r(7637),h=r(4789),f="Collapsible",[p,m]=(0,o.A)(f),[g,v]=p(f),y=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:a,onOpenChange:l,...c}=e,[f=!1,p]=(0,s.i)({prop:i,defaultProp:o,onChange:l});return(0,h.jsx)(g,{scope:r,disabled:a,contentId:(0,d.B)(),open:f,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),children:(0,h.jsx)(u.sG.div,{"data-state":S(f),"data-disabled":a?"":void 0,...c,ref:t})})});y.displayName=f;var b="CollapsibleTrigger",x=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,o=v(b,r);return(0,h.jsx)(u.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":S(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:(0,i.m)(e.onClick,o.onOpenToggle)})});x.displayName=b;var w="CollapsibleContent",P=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=v(w,e.__scopeCollapsible);return(0,h.jsx)(c.C,{present:r||i.open,children:e=>{let{present:r}=e;return(0,h.jsx)(E,{...n,ref:t,present:r})}})});P.displayName=w;var E=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:i,children:o,...s}=e,c=v(w,r),[d,f]=n.useState(i),p=n.useRef(null),m=(0,l.s)(t,p),g=n.useRef(0),y=g.current,b=n.useRef(0),x=b.current,P=c.open||d,E=n.useRef(P),C=n.useRef();return n.useEffect(()=>{let e=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,a.N)(()=>{let e=p.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,b.current=t.width,E.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),f(i)}},[c.open,i]),(0,h.jsx)(u.sG.div,{"data-state":S(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!P,...s,ref:m,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":x?"".concat(x,"px"):void 0,...e.style},children:P&&o})});function S(e){return e?"open":"closed"}var C=y,T=x,A=P},2377:(e,t,r)=>{r.d(t,{s:()=>o,t:()=>i});var n=r(5569);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return n.useCallback(i(...e),e)}},3277:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(5569),i=r(4789);function o(e,t=[]){let r=[],s=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return s.scopeName=e,[function(t,o){let s=n.createContext(o),a=r.length;function l(t){let{scope:r,children:o,...l}=t,u=r?.[e][a]||s,c=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})}return r=[...r,o],l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e][a]||s,u=n.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(s,...t)]}},8039:(e,t,r)=>{r.d(t,{qW:()=>h});var n,i=r(5569),o=r(4806),s=r(5245),a=r(2377),l=r(6713),u=r(4789),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=i.forwardRef((e,t)=>{var r,h;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:b,onDismiss:x,...w}=e,P=i.useContext(d),[E,S]=i.useState(null),C=null!==(h=null==E?void 0:E.ownerDocument)&&void 0!==h?h:null===(r=globalThis)||void 0===r?void 0:r.document,[,T]=i.useState({}),A=(0,a.s)(t,e=>S(e)),R=Array.from(P.layers),[k]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),M=R.indexOf(k),j=E?R.indexOf(E):-1,L=P.layersWithOutsidePointerEventsDisabled.size>0,D=j>=M,O=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,l.c)(e),o=i.useRef(!1),s=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){p("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",s.current),s.current=t,r.addEventListener("click",s.current,{once:!0})):t()}else r.removeEventListener("click",s.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",s.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,r=[...P.branches].some(e=>e.contains(t));!D||r||(null==v||v(e),null==b||b(e),e.defaultPrevented||null==x||x())},C),N=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,l.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&p("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...P.branches].some(e=>e.contains(t))||(null==y||y(e),null==b||b(e),e.defaultPrevented||null==x||x())},C);return!function(e,t=globalThis?.document){let r=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{j!==P.layers.size-1||(null==g||g(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},C),i.useEffect(()=>{if(E)return m&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(n=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(E)),P.layers.add(E),f(),()=>{m&&1===P.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=n)}},[E,C,m,P]),i.useEffect(()=>()=>{E&&(P.layers.delete(E),P.layersWithOutsidePointerEventsDisabled.delete(E),f())},[E,P]),i.useEffect(()=>{let e=()=>T({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(s.sG.div,{...w,ref:A,style:{pointerEvents:L?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,O.onPointerDownCapture)})});function f(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,r,n){let{discrete:i}=n,o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),i?(0,s.hO)(o,a):o.dispatchEvent(a)}h.displayName="DismissableLayer",i.forwardRef((e,t)=>{let r=i.useContext(d),n=i.useRef(null),o=(0,a.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(s.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},7637:(e,t,r)=>{r.d(t,{B:()=>l});var n,i=r(5569),o=r(4705),s=(n||(n=r.t(i,2)))["useId".toString()]||(()=>void 0),a=0;function l(e){let[t,r]=i.useState(s());return(0,o.N)(()=>{e||r(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},8474:(e,t,r)=>{r.d(t,{Mz:()=>eH,UC:()=>eX,ZL:()=>eK,bL:()=>e$,l9:()=>eY});var n,i,o=r(5569),s=r(4806),a=r(2377),l=r(3277),u=r(8039),c=0;function d(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var h=r(5245),f=r(6713),p=r(4789),m="focusScope.autoFocusOnMount",g="focusScope.autoFocusOnUnmount",v={bubbles:!1,cancelable:!0},y=o.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[u,c]=o.useState(null),d=(0,f.c)(i),y=(0,f.c)(s),E=o.useRef(null),S=(0,a.s)(t,e=>c(e)),C=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(n){let e=function(e){if(C.paused||!u)return;let t=e.target;u.contains(t)?E.current=t:w(E.current,{select:!0})},t=function(e){if(C.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||w(E.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&w(u)});return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,u,C.paused]),o.useEffect(()=>{if(u){P.add(C);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(m,v);u.addEventListener(m,d),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(w(n,{select:t}),document.activeElement!==r)return}(b(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&w(u))}return()=>{u.removeEventListener(m,d),setTimeout(()=>{let t=new CustomEvent(g,v);u.addEventListener(g,y),u.dispatchEvent(t),t.defaultPrevented||w(null!=e?e:document.body,{select:!0}),u.removeEventListener(g,y),P.remove(C)},0)}}},[u,d,y,C]);let T=o.useCallback(e=>{if(!r&&!n||C.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,o]=function(e){let t=b(e);return[x(t,e),x(t.reverse(),e)]}(t);n&&o?e.shiftKey||i!==o?e.shiftKey&&i===n&&(e.preventDefault(),r&&w(o,{select:!0})):(e.preventDefault(),r&&w(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,C.paused]);return(0,p.jsx)(h.sG.div,{tabIndex:-1,...l,ref:S,onKeyDown:T})});function b(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function x(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function w(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}y.displayName="FocusScope";var P=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=E(e,t)).unshift(t)},remove(t){var r;null===(r=(e=E(e,t))[0])||void 0===r||r.resume()}}}();function E(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var S=r(7637),C=r(7443),T=r(8344),A=r(4371),R=r(1719),k=r(6981),M=new WeakMap,j=new WeakMap,L={},D=0,O=function(e){return e&&(e.host||O(e.parentNode))},N=function(e,t,r,n){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=O(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});L[r]||(L[r]=new WeakMap);var o=L[r],s=[],a=new Set,l=new Set(i),u=function(e){!e||a.has(e)||(a.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))c(e);else try{var t=e.getAttribute(n),i=null!==t&&"false"!==t,l=(M.get(e)||0)+1,u=(o.get(e)||0)+1;M.set(e,l),o.set(e,u),s.push(e),1===l&&i&&j.set(e,!0),1===u&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),a.clear(),D++,function(){s.forEach(function(e){var t=M.get(e)-1,i=o.get(e)-1;M.set(e,t),o.set(e,i),t||(j.has(e)||e.removeAttribute(n),j.delete(e)),i||e.removeAttribute(r)}),--D||(M=new WeakMap,M=new WeakMap,j=new WeakMap,L={})}},V=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n,i=Array.from(Array.isArray(e)?e:[e]),o=t||(n=e,"undefined"==typeof document?null:(Array.isArray(n)?n[0]:n).ownerDocument.body);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),N(i,o,r,"aria-hidden")):function(){return null}},I=function(){return(I=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function F(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}Object.create,Object.create;var B=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),_="width-before-scroll-bar";function z(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var U="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,W=new WeakMap;function G(e){return e}var $=function(e){void 0===e&&(e={});var t,r,n,i=(void 0===t&&(t=G),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),r={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),r}}}});return i.options=I({async:!0,ssr:!1},e),i}(),H=function(){},Y=o.forwardRef(function(e,t){var r,n,i,s,a=o.useRef(null),l=o.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),u=l[0],c=l[1],d=e.forwardProps,h=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,y=e.noIsolation,b=e.inert,x=e.allowPinchZoom,w=e.as,P=e.gapMode,E=F(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(r=[a,t],n=function(e){return r.forEach(function(t){return z(t,e)})},(i=(0,o.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,s=i.facade,U(function(){var e=W.get(s);if(e){var t=new Set(e),n=new Set(r),i=s.current;t.forEach(function(e){n.has(e)||z(e,null)}),n.forEach(function(e){t.has(e)||z(e,i)})}W.set(s,r)},[r]),s),C=I(I({},E),u);return o.createElement(o.Fragment,null,m&&o.createElement(v,{sideCar:$,removeScrollBar:p,shards:g,noIsolation:y,inert:b,setCallbacks:c,allowPinchZoom:!!x,lockRef:a,gapMode:P}),d?o.cloneElement(o.Children.only(h),I(I({},C),{ref:S})):o.createElement(void 0===w?"div":w,I({},C,{className:f,ref:S}),h))});Y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Y.classNames={fullWidth:_,zeroRight:B};var K=function(e){var t=e.sideCar,r=F(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return o.createElement(n,I({},r))};K.isSideCarExport=!0;var X=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,s;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),s=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},q=function(){var e=X();return function(t,r){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Z=function(){var e=q();return function(t){return e(t.styles,t.dynamic),null}},Q={left:0,top:0,right:0,gap:0},J=function(e){return parseInt(e||"",10)||0},ee=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[J(r),J(n),J(i)]},et=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Q;var t=ee(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},er=Z(),en="data-scroll-locked",ei=function(e,t,r,n){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(a,"px ").concat(n,";\n }\n body[").concat(en,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(B," {\n right: ").concat(a,"px ").concat(n,";\n }\n \n .").concat(_," {\n margin-right: ").concat(a,"px ").concat(n,";\n }\n \n .").concat(B," .").concat(B," {\n right: 0 ").concat(n,";\n }\n \n .").concat(_," .").concat(_," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(en,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},eo=function(){var e=parseInt(document.body.getAttribute(en)||"0",10);return isFinite(e)?e:0},es=function(){o.useEffect(function(){return document.body.setAttribute(en,(eo()+1).toString()),function(){var e=eo()-1;e<=0?document.body.removeAttribute(en):document.body.setAttribute(en,e.toString())}},[])},ea=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;es();var s=o.useMemo(function(){return et(i)},[i]);return o.createElement(er,{styles:ei(s,!t,i,r?"":"!important")})},el=!1;if("undefined"!=typeof window)try{var eu=Object.defineProperty({},"passive",{get:function(){return el=!0,!0}});window.addEventListener("test",eu,eu),window.removeEventListener("test",eu,eu)}catch(e){el=!1}var ec=!!el&&{passive:!1},ed=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},eh=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ef(e,n)){var i=ep(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ef=function(e,t){return"v"===e?ed(t,"overflowY"):ed(t,"overflowX")},ep=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},em=function(e,t,r,n,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*n,l=r.target,u=t.contains(l),c=!1,d=a>0,h=0,f=0;do{var p=ep(e,l),m=p[0],g=p[1]-p[2]-s*m;(m||g)&&ef(e,l)&&(h+=g,f+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&a>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-a>f)&&(c=!0),c},eg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ev=function(e){return[e.deltaX,e.deltaY]},ey=function(e){return e&&"current"in e?e.current:e},eb=0,ex=[];let ew=(n=function(e){var t=o.useRef([]),r=o.useRef([0,0]),n=o.useRef(),i=o.useState(eb++)[0],s=o.useState(Z)[0],a=o.useRef(e);o.useEffect(function(){a.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(ey),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=eg(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=eh(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=eh(d,c)),!h)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var f=n.current||i;return em(f,t,e,"h"===f?l:u,!0)},[]),u=o.useCallback(function(e){if(ex.length&&ex[ex.length-1]===s){var r="deltaY"in e?ev(e):eg(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(a.current.shards||[]).map(ey).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=o.useCallback(function(e){r.current=eg(e),n.current=void 0},[]),h=o.useCallback(function(t){c(t.type,ev(t),t.target,l(t,e.lockRef.current))},[]),f=o.useCallback(function(t){c(t.type,eg(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return ex.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",u,ec),document.addEventListener("touchmove",u,ec),document.addEventListener("touchstart",d,ec),function(){ex=ex.filter(function(e){return e!==s}),document.removeEventListener("wheel",u,ec),document.removeEventListener("touchmove",u,ec),document.removeEventListener("touchstart",d,ec)}},[]);var p=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(s,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?o.createElement(ea,{gapMode:e.gapMode}):null)},$.useMedium(n),K);var eP=o.forwardRef(function(e,t){return o.createElement(Y,I({},e,{ref:t,sideCar:ew}))});eP.classNames=Y.classNames;var eE="Popover",[eS,eC]=(0,l.A)(eE,[C.Bk]),eT=(0,C.Bk)(),[eA,eR]=eS(eE),ek=e=>{let{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:a=!1}=e,l=eT(t),u=o.useRef(null),[c,d]=o.useState(!1),[h=!1,f]=(0,k.i)({prop:n,defaultProp:i,onChange:s});return(0,p.jsx)(C.bL,{...l,children:(0,p.jsx)(eA,{scope:t,contentId:(0,S.B)(),triggerRef:u,open:h,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:c,onCustomAnchorAdd:o.useCallback(()=>d(!0),[]),onCustomAnchorRemove:o.useCallback(()=>d(!1),[]),modal:a,children:r})})};ek.displayName=eE;var eM="PopoverAnchor",ej=o.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=eR(eM,r),s=eT(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=i;return o.useEffect(()=>(a(),()=>l()),[a,l]),(0,p.jsx)(C.Mz,{...s,...n,ref:t})});ej.displayName=eM;var eL="PopoverTrigger",eD=o.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=eR(eL,r),o=eT(r),l=(0,a.s)(t,i.triggerRef),u=(0,p.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":eG(i.open),...n,ref:l,onClick:(0,s.m)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,p.jsx)(C.Mz,{asChild:!0,...o,children:u})});eD.displayName=eL;var eO="PopoverPortal",[eN,eV]=eS(eO,{forceMount:void 0}),eI=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=eR(eO,t);return(0,p.jsx)(eN,{scope:t,forceMount:r,children:(0,p.jsx)(A.C,{present:r||o.open,children:(0,p.jsx)(T.Z,{asChild:!0,container:i,children:n})})})};eI.displayName=eO;var eF="PopoverContent",eB=o.forwardRef((e,t)=>{let r=eV(eF,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=eR(eF,e.__scopePopover);return(0,p.jsx)(A.C,{present:n||o.open,children:o.modal?(0,p.jsx)(e_,{...i,ref:t}):(0,p.jsx)(ez,{...i,ref:t})})});eB.displayName=eF;var e_=o.forwardRef((e,t)=>{let r=eR(eF,e.__scopePopover),n=o.useRef(null),i=(0,a.s)(t,n),l=o.useRef(!1);return o.useEffect(()=>{let e=n.current;if(e)return V(e)},[]),(0,p.jsx)(eP,{as:R.DX,allowPinchZoom:!0,children:(0,p.jsx)(eU,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,s.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;l.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,s.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ez=o.forwardRef((e,t)=>{let r=eR(eF,e.__scopePopover),n=o.useRef(!1),i=o.useRef(!1);return(0,p.jsx)(eU,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,s;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(n.current||null===(s=r.triggerRef.current)||void 0===s||s.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{var o,s;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let a=t.target;(null===(s=r.triggerRef.current)||void 0===s?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),eU=o.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:m,...g}=e,v=eR(eF,r),b=eT(r);return o.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:d()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:d()),c++,()=>{1===c&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),c--}},[]),(0,p.jsx)(y,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s,children:(0,p.jsx)(u.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:m,onEscapeKeyDown:l,onPointerDownOutside:h,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:(0,p.jsx)(C.UC,{"data-state":eG(v.open),role:"dialog",id:v.contentId,...b,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),eW="PopoverClose";function eG(e){return e?"open":"closed"}o.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=eR(eW,r);return(0,p.jsx)(h.sG.button,{type:"button",...n,ref:t,onClick:(0,s.m)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=eW,o.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=eT(r);return(0,p.jsx)(C.i3,{...i,...n,ref:t})}).displayName="PopoverArrow";var e$=ek,eH=ej,eY=eD,eK=eI,eX=eB},7443:(e,t,r)=>{r.d(t,{Mz:()=>eK,i3:()=>eq,UC:()=>eX,bL:()=>eY,Bk:()=>ej});var n=r(5569);let i=["top","right","bottom","left"],o=Math.min,s=Math.max,a=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function h(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(f(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>d[e])}function b(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function x(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function w(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function P(e,t,r){let n,{reference:i,floating:o}=e,s=v(t),a=m(v(t)),l=g(a),u=f(t),c="y"===s,d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(u){case"top":n={x:d,y:i.y-o.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:h};break;case"left":n={x:i.x-o.width,y:h};break;default:n={x:i.x,y:i.y}}switch(p(t)){case"start":n[a]-=y*(r&&c?-1:1);break;case"end":n[a]+=y*(r&&c?-1:1)}return n}let E=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=P(u,n,l),h=n,f={},p=0;for(let r=0;r<a.length;r++){let{name:o,fn:m}=a[r],{x:g,y:v,data:y,reset:b}=await m({x:c,y:d,initialPlacement:n,placement:h,strategy:i,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,f={...f,[o]:{...f[o],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=P(u,h,l)),r=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function S(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=x(p),g=a[f?"floating"===d?"reference":"floating":d],v=w(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(g)))||r?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),P=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},E=w(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-E.top+m.top)/P.y,bottom:(E.bottom-v.bottom+m.bottom)/P.y,left:(v.left-E.left+m.left)/P.x,right:(E.right-v.right+m.right)/P.x}}function C(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return i.some(t=>e[t]>=0)}async function A(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),s=f(r),a=p(r),l="y"===v(r),u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,d=h(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof y&&(g="end"===a?-1*y:y),l?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function R(){return"undefined"!=typeof window}function k(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return!!R()&&(e instanceof Node||e instanceof M(e).Node)}function D(e){return!!R()&&(e instanceof Element||e instanceof M(e).Element)}function O(e){return!!R()&&(e instanceof HTMLElement||e instanceof M(e).HTMLElement)}function N(e){return!!R()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function V(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function I(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function F(e){let t=B(),r=D(e)?z(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function B(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function _(e){return["html","body","#document"].includes(k(e))}function z(e){return M(e).getComputedStyle(e)}function U(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function W(e){if("html"===k(e))return e;let t=e.assignedSlot||e.parentNode||N(e)&&e.host||j(e);return N(t)?t.host:t}function G(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=W(t);return _(r)?t.ownerDocument?t.ownerDocument.body:t.body:O(r)&&V(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),s=M(i);if(o){let e=$(s);return t.concat(s,s.visualViewport||[],V(i)?i:[],e&&r?G(e):[])}return t.concat(i,G(i,[],r))}function $(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function H(e){let t=z(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=O(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=a(r)!==o||a(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}}function Y(e){return D(e)?e:e.contextElement}function K(e){let t=Y(e);if(!O(t))return u(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=H(t),s=(o?a(r.width):r.width)/n,l=(o?a(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let X=u(0);function q(e){let t=M(e);return B()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:X}function Z(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),s=Y(e),a=u(1);t&&(n?D(n)&&(a=K(n)):a=K(e));let l=(void 0===(i=r)&&(i=!1),n&&(!i||n===M(s))&&i)?q(s):u(0),c=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,h=o.width/a.x,f=o.height/a.y;if(s){let e=M(s),t=n&&D(n)?M(n):n,r=e,i=$(r);for(;i&&n&&t!==r;){let e=K(i),t=i.getBoundingClientRect(),n=z(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,h*=e.x,f*=e.y,c+=o,d+=s,i=$(r=M(i))}}return w({width:h,height:f,x:c,y:d})}function Q(e,t){let r=U(e).scrollLeft;return t?t.left+r:Z(j(e)).left+r}function J(e,t,r){void 0===r&&(r=!1);let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Q(e,n)),y:n.top+t.scrollTop}}function ee(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=M(e),n=j(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=B();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}(e,r);else if("document"===t)n=function(e){let t=j(e),r=U(e),n=e.ownerDocument.body,i=s(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=s(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-r.scrollLeft+Q(e),l=-r.scrollTop;return"rtl"===z(n).direction&&(a+=s(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:l}}(j(e));else if(D(t))n=function(e,t){let r=Z(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=O(e)?K(e):u(1),s=e.clientWidth*o.x;return{width:s,height:e.clientHeight*o.y,x:i*o.x,y:n*o.y}}(t,r);else{let r=q(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return w(n)}function et(e){return"static"===z(e).position}function er(e,t){if(!O(e)||"fixed"===z(e).position)return null;if(t)return t(e);let r=e.offsetParent;return j(e)===r&&(r=r.ownerDocument.body),r}function en(e,t){let r=M(e);if(I(e))return r;if(!O(e)){let t=W(e);for(;t&&!_(t);){if(D(t)&&!et(t))return t;t=W(t)}return r}let n=er(e,t);for(;n&&["table","td","th"].includes(k(n))&&et(n);)n=er(n,t);return n&&_(n)&&et(n)&&!F(n)?r:n||function(e){let t=W(e);for(;O(t)&&!_(t);){if(F(t))return t;if(I(t))break;t=W(t)}return null}(e)||r}let ei=async function(e){let t=this.getOffsetParent||en,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=O(t),i=j(t),o="fixed"===r,s=Z(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=u(0);if(n||!n&&!o){if(("body"!==k(t)||V(i))&&(a=U(t)),n){let e=Z(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Q(i))}let c=!i||n||o?u(0):J(i,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},eo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,s=j(n),a=!!t&&I(t.floating);if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),h=O(n);if((h||!h&&!o)&&(("body"!==k(n)||V(s))&&(l=U(n)),O(n))){let e=Z(n);c=K(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let f=!s||h||o?u(0):J(s,l,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:r.y*c.y-l.scrollTop*c.y+d.y+f.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,a=[..."clippingAncestors"===r?I(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=G(e,[],!1).filter(e=>D(e)&&"body"!==k(e)),i=null,o="fixed"===z(e).position,s=o?W(e):e;for(;D(s)&&!_(s);){let t=z(s),r=F(s);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||V(s)&&!r&&function e(t,r){let n=W(t);return!(n===r||!D(n)||_(n))&&("fixed"===z(n).position||e(n,r))}(e,s))?n=n.filter(e=>e!==s):i=t,s=W(s)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=a[0],u=a.reduce((e,r)=>{let n=ee(t,r,i);return e.top=s(n.top,e.top),e.right=o(n.right,e.right),e.bottom=o(n.bottom,e.bottom),e.left=s(n.left,e.left),e},ee(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:en,getElementRects:ei,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=H(e);return{width:t,height:r}},getScale:K,isElement:D,isRTL:function(e){return"rtl"===z(e).direction}},es=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:a,platform:l,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=h(e,t)||{};if(null==d)return{};let y=x(f),b={x:r,y:n},w=m(v(i)),P=g(w),E=await l.getDimensions(d),S="y"===w,C=S?"clientHeight":"clientWidth",T=a.reference[P]+a.reference[w]-b[w]-a.floating[P],A=b[w]-a.reference[w],R=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),k=R?R[C]:0;k&&await (null==l.isElement?void 0:l.isElement(R))||(k=u.floating[C]||a.floating[P]);let M=k/2-E[P]/2-1,j=o(y[S?"top":"left"],M),L=o(y[S?"bottom":"right"],M),D=k-E[P]-L,O=k/2-E[P]/2+(T/2-A/2),N=s(j,o(O,D)),V=!c.arrow&&null!=p(i)&&O!==N&&a.reference[P]/2-(O<j?j:L)-E[P]/2<0,I=V?O<j?O-j:O-D:0;return{[w]:b[w]+I,data:{[w]:N,centerOffset:O-N-I,...V&&{alignmentOffset:I}},reset:V}}}),ea=(e,t,r)=>{let n=new Map,i={platform:eo,...r},o={...i.platform,_c:n};return E(e,t,{...i,platform:o})};var el=r(9748),eu="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function ec(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!ec(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!ec(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function ed(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eh(e,t){let r=ed(e);return Math.round(t*r)/r}function ef(e){let t=n.useRef(e);return eu(()=>{t.current=e}),t}let ep=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?es({element:r.current,padding:n}).fn(t):{}:r?es({element:r,padding:n}).fn(t):{}}}),em=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:s,middlewareData:a}=t,l=await A(t,e);return s===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}}(e),options:[e,t]}),eg=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=h(e,t),d={x:r,y:n},p=await S(t,c),g=v(f(i)),y=m(g),b=d[y],x=d[g];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",r=b+p[e],n=b-p[t];b=s(r,o(b,n))}if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",r=x+p[e],n=x-p[t];x=s(r,o(x,n))}let w=u.fn({...t,[y]:b,[g]:x});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[y]:a,[g]:l}}}}}}(e),options:[e,t]}),ev=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=h(e,t),c={x:r,y:n},d=v(i),p=m(d),g=c[p],y=c[d],b=h(a,t),x="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){let e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+x.mainAxis,r=o.reference[p]+o.reference[e]-x.mainAxis;g<t?g=t:g>r&&(g=r)}if(u){var w,P;let e="y"===p?"width":"height",t=["top","left"].includes(f(i)),r=o.reference[d]-o.floating[e]+(t&&(null==(w=s.offset)?void 0:w[d])||0)+(t?0:x.crossAxis),n=o.reference[d]+o.reference[e]+(t?0:(null==(P=s.offset)?void 0:P[d])||0)-(t?x.crossAxis:0);y<r?y=r:y>n&&(y=n)}return{[p]:g,[d]:y}}}}(e),options:[e,t]}),ey=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o,s;let{placement:a,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:x}=t,{mainAxis:w=!0,crossAxis:P=!0,fallbackPlacements:E,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:A=!0,...R}=h(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let k=f(a),M=v(c),j=f(c)===c,L=await (null==d.isRTL?void 0:d.isRTL(x.floating)),D=E||(j||!A?[b(c)]:function(e){let t=b(e);return[y(e),t,y(t)]}(c)),O="none"!==T;!E&&O&&D.push(...function(e,t,r,n){let i=p(e),o=function(e,t,r){let n=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(r)return t?i:n;return t?n:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(y)))),o}(c,A,T,L));let N=[c,...D],V=await S(t,R),I=[],F=(null==(n=l.flip)?void 0:n.overflows)||[];if(w&&I.push(V[k]),P){let e=function(e,t,r){void 0===r&&(r=!1);let n=p(e),i=m(v(e)),o=g(i),s="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=b(s)),[s,b(s)]}(a,u,L);I.push(V[e[0]],V[e[1]])}if(F=[...F,{placement:a,overflows:I}],!I.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let r=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(C){case"bestFit":{let e=null==(s=F.filter(e=>{if(O){let t=v(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(r=e);break}case"initialPlacement":r=c}if(a!==r)return{reset:{placement:r}}}return{}}}}(e),options:[e,t]}),eb=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let i,a;let{placement:l,rects:u,platform:c,elements:d}=t,{apply:m=()=>{},...g}=h(e,t),y=await S(t,g),b=f(l),x=p(l),w="y"===v(l),{width:P,height:E}=u.floating;"top"===b||"bottom"===b?(i=b,a=x===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(a=b,i="end"===x?"top":"bottom");let C=E-y.top-y.bottom,T=P-y.left-y.right,A=o(E-y[i],C),R=o(P-y[a],T),k=!t.middlewareData.shift,M=A,j=R;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(j=T),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(M=C),k&&!x){let e=s(y.left,0),t=s(y.right,0),r=s(y.top,0),n=s(y.bottom,0);w?j=P-2*(0!==e||0!==t?e+t:s(y.left,y.right)):M=E-2*(0!==r||0!==n?r+n:s(y.top,y.bottom))}await m({...t,availableWidth:j,availableHeight:M});let L=await c.getDimensions(d.floating);return P!==L.width||E!==L.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),ex=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=h(e,t);switch(n){case"referenceHidden":{let e=C(await S(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:T(e)}}}case"escaped":{let e=C(await S(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:T(e)}}}default:return{}}}}}(e),options:[e,t]}),ew=(e,t)=>({...ep(e),options:[e,t]});var eP=r(5245),eE=r(4789),eS=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,eE.jsx)(eP.sG.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eE.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eS.displayName="Arrow";var eC=r(2377),eT=r(3277),eA=r(6713),eR=r(4705),ek="Popper",[eM,ej]=(0,eT.A)(ek),[eL,eD]=eM(ek),eO=e=>{let{__scopePopper:t,children:r}=e,[i,o]=n.useState(null);return(0,eE.jsx)(eL,{scope:t,anchor:i,onAnchorChange:o,children:r})};eO.displayName=ek;var eN="PopperAnchor",eV=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...o}=e,s=eD(eN,r),a=n.useRef(null),l=(0,eC.s)(t,a);return n.useEffect(()=>{s.onAnchorChange((null==i?void 0:i.current)||a.current)}),i?null:(0,eE.jsx)(eP.sG.div,{...o,ref:l})});eV.displayName=eN;var eI="PopperContent",[eF,eB]=eM(eI),e_=n.forwardRef((e,t)=>{var r,i,a,u,c,d,h,f;let{__scopePopper:p,side:m="bottom",sideOffset:g=0,align:v="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:x=!0,collisionBoundary:w=[],collisionPadding:P=0,sticky:E="partial",hideWhenDetached:S=!1,updatePositionStrategy:C="optimized",onPlaced:T,...A}=e,R=eD(eI,p),[k,M]=n.useState(null),L=(0,eC.s)(t,e=>M(e)),[D,O]=n.useState(null),N=function(e){let[t,r]=n.useState(void 0);return(0,eR.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(D),V=null!==(h=null==N?void 0:N.width)&&void 0!==h?h:0,I=null!==(f=null==N?void 0:N.height)&&void 0!==f?f:0,F="number"==typeof P?P:{top:0,right:0,bottom:0,left:0,...P},B=Array.isArray(w)?w:[w],_=B.length>0,z={padding:F,boundary:B.filter(eG),altBoundary:_},{refs:U,floatingStyles:W,placement:$,isPositioned:H,middlewareData:K}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,h]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=n.useState(i);ec(f,i)||p(i);let[m,g]=n.useState(null),[v,y]=n.useState(null),b=n.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),x=n.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),w=s||m,P=a||v,E=n.useRef(null),S=n.useRef(null),C=n.useRef(d),T=null!=u,A=ef(u),R=ef(o),k=ef(c),M=n.useCallback(()=>{if(!E.current||!S.current)return;let e={placement:t,strategy:r,middleware:f};R.current&&(e.platform=R.current),ea(E.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};j.current&&!ec(C.current,t)&&(C.current=t,el.flushSync(()=>{h(t)}))})},[f,t,r,R,k]);eu(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[c]);let j=n.useRef(!1);eu(()=>(j.current=!0,()=>{j.current=!1}),[]),eu(()=>{if(w&&(E.current=w),P&&(S.current=P),w&&P){if(A.current)return A.current(w,P,M);M()}},[w,P,M,A,T]);let L=n.useMemo(()=>({reference:E,floating:S,setReference:b,setFloating:x}),[b,x]),D=n.useMemo(()=>({reference:w,floating:P}),[w,P]),O=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!D.floating)return e;let t=eh(D.floating,d.x),n=eh(D.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...ed(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,D.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:M,refs:L,elements:D,floatingStyles:O}),[d,M,L,D,O])}({strategy:"fixed",placement:m+("center"!==v?"-"+v:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=n,f=Y(e),p=a||u?[...f?G(f):[],...G(t)]:[];p.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let m=f&&d?function(e,t){let r,n=null,i=j(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),a();let{left:h,top:f,width:p,height:m}=e.getBoundingClientRect();if(c||t(),!p||!m)return;let g=l(f),v=l(i.clientWidth-(h+p)),y={rootMargin:-g+"px "+-v+"px "+-l(i.clientHeight-(f+m))+"px "+-l(h)+"px",threshold:s(0,o(1,d))||1},b=!0;function x(e){let t=e[0].intersectionRatio;if(t!==d){if(!b)return u();t?u(!1,t):r=setTimeout(()=>{u(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(x,y)}n.observe(e)}(!0),a}(f,r):null,g=-1,v=null;c&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),f&&!h&&v.observe(f),v.observe(t));let y=h?Z(e):null;return h&&function t(){let n=Z(e);y&&(n.x!==y.x||n.y!==y.y||n.width!==y.width||n.height!==y.height)&&r(),y=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,h&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===C})},elements:{reference:R.anchor},middleware:[em({mainAxis:g+I,alignmentAxis:y}),x&&eg({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?ev():void 0,...z}),x&&ey({...z}),eb({...z,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:i}=e,{width:o,height:s}=r.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(n,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(s,"px"))}}),D&&ew({element:D,padding:b}),e$({arrowWidth:V,arrowHeight:I}),S&&ex({strategy:"referenceHidden",...z})]}),[X,q]=eH($),Q=(0,eA.c)(T);(0,eR.N)(()=>{H&&(null==Q||Q())},[H,Q]);let J=null===(r=K.arrow)||void 0===r?void 0:r.x,ee=null===(i=K.arrow)||void 0===i?void 0:i.y,et=(null===(a=K.arrow)||void 0===a?void 0:a.centerOffset)!==0,[er,en]=n.useState();return(0,eR.N)(()=>{k&&en(window.getComputedStyle(k).zIndex)},[k]),(0,eE.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:H?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(u=K.transformOrigin)||void 0===u?void 0:u.x,null===(c=K.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(d=K.hide)||void 0===d?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eE.jsx)(eF,{scope:p,placedSide:X,onArrowChange:O,arrowX:J,arrowY:ee,shouldHideArrow:et,children:(0,eE.jsx)(eP.sG.div,{"data-side":X,"data-align":q,...A,ref:L,style:{...A.style,animation:H?void 0:"none"}})})})});e_.displayName=eI;var ez="PopperArrow",eU={top:"bottom",right:"left",bottom:"top",left:"right"},eW=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=eB(ez,r),o=eU[i.placedSide];return(0,eE.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eE.jsx)(eS,{...n,ref:t,style:{...n.style,display:"block"}})})});function eG(e){return null!==e}eW.displayName=ez;var e$=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,s;let{placement:a,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[f,p]=eH(a),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!==(o=null===(n=u.arrow)||void 0===n?void 0:n.x)&&void 0!==o?o:0)+d/2,v=(null!==(s=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==s?s:0)+h/2,y="",b="";return"bottom"===f?(y=c?m:"".concat(g,"px"),b="".concat(-h,"px")):"top"===f?(y=c?m:"".concat(g,"px"),b="".concat(l.floating.height+h,"px")):"right"===f?(y="".concat(-h,"px"),b=c?m:"".concat(v,"px")):"left"===f&&(y="".concat(l.floating.width+h,"px"),b=c?m:"".concat(v,"px")),{data:{x:y,y:b}}}});function eH(e){let[t,r="center"]=e.split("-");return[t,r]}var eY=eO,eK=eV,eX=e_,eq=eW},8344:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(5569),i=r(9748),o=r(5245),s=r(4705),a=r(4789),l=n.forwardRef((e,t)=>{var r,l;let{container:u,...c}=e,[d,h]=n.useState(!1);(0,s.N)(()=>h(!0),[]);let f=u||d&&(null===(l=globalThis)||void 0===l?void 0:null===(r=l.document)||void 0===r?void 0:r.body);return f?i.createPortal((0,a.jsx)(o.sG.div,{...c,ref:t}),f):null});l.displayName="Portal"},4371:(e,t,r)=>{r.d(t,{C:()=>a});var n=r(5569),i=r(9748),o=r(2377),s=r(4705),a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[o,a]=n.useState(),u=n.useRef({}),c=n.useRef(e),d=n.useRef("none"),[h,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=l(u.current);d.current="mounted"===h?e:"none"},[h]),(0,s.N)(()=>{let t=u.current,r=c.current;if(r!==e){let n=d.current,i=l(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,s.N)(()=>{if(o){let e=e=>{let t=l(u.current).includes(e.animationName);e.target===o&&t&&i.flushSync(()=>f("ANIMATION_END"))},t=e=>{e.target===o&&(d.current=l(u.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:n.useCallback(e=>{e&&(u.current=getComputedStyle(e)),a(e)},[])}}(t),u="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),c=(0,o.s)(a.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof r||a.isPresent?n.cloneElement(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},5245:(e,t,r)=>{r.d(t,{hO:()=>l,sG:()=>a});var n=r(5569),i=r(9748),o=r(1719),s=r(4789),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...i}=e,a=n?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},1719:(e,t,r)=>{r.d(t,{DX:()=>s,xV:()=>l});var n=r(5569),i=r(2377),o=r(4789),s=n.forwardRef((e,t)=>{let{children:r,...i}=e,s=n.Children.toArray(r),l=s.find(u);if(l){let e=l.props.children,r=s.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,o.jsx)(a,{...i,ref:t,children:r})});s.displayName="Slot";var a=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r);return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:t?(0,i.t)(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null});a.displayName="SlotClone";var l=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function u(e){return n.isValidElement(e)&&e.type===l}},6866:(e,t,r)=>{r.d(t,{q7:()=>K,bL:()=>Y});var n=r(5569),i=r(3277),o=r(5245),s=r(4806),a=r(2377),l=r(1719),u=r(4789),c=r(7637),d=r(6713),h=r(6981),f=n.createContext(void 0);function p(e){let t=n.useContext(f);return e||t||"ltr"}var m="rovingFocusGroup.onEntryFocus",g={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[y,b,x]=function(e){let t=e+"CollectionProvider",[r,o]=(0,i.A)(t),[s,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,i=n.useRef(null),o=n.useRef(new Map).current;return(0,u.jsx)(s,{scope:t,itemMap:o,collectionRef:i,children:r})};d.displayName=t;let h=e+"CollectionSlot",f=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=c(h,r),o=(0,a.s)(t,i.collectionRef);return(0,u.jsx)(l.DX,{ref:o,children:n})});f.displayName=h;let p=e+"CollectionItemSlot",m="data-radix-collection-item",g=n.forwardRef((e,t)=>{let{scope:r,children:i,...o}=e,s=n.useRef(null),d=(0,a.s)(t,s),h=c(p,r);return n.useEffect(()=>(h.itemMap.set(s,{ref:s,...o}),()=>void h.itemMap.delete(s))),(0,u.jsx)(l.DX,{[m]:"",ref:d,children:i})});return g.displayName=p,[{Provider:d,Slot:f,ItemSlot:g},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},o]}(v),[w,P]=(0,i.A)(v,[x]),[E,S]=w(v),C=n.forwardRef((e,t)=>(0,u.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(T,{...e,ref:t})})}));C.displayName=v;var T=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:l=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:y,onEntryFocus:x,preventScrollOnEntryFocus:w=!1,...P}=e,S=n.useRef(null),C=(0,a.s)(t,S),T=p(c),[A=null,R]=(0,h.i)({prop:f,defaultProp:v,onChange:y}),[k,j]=n.useState(!1),L=(0,d.c)(x),D=b(r),O=n.useRef(!1),[N,V]=n.useState(0);return n.useEffect(()=>{let e=S.current;if(e)return e.addEventListener(m,L),()=>e.removeEventListener(m,L)},[L]),(0,u.jsx)(E,{scope:r,orientation:i,dir:T,loop:l,currentTabStopId:A,onItemFocus:n.useCallback(e=>R(e),[R]),onItemShiftTab:n.useCallback(()=>j(!0),[]),onFocusableItemAdd:n.useCallback(()=>V(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>V(e=>e-1),[]),children:(0,u.jsx)(o.sG.div,{tabIndex:k||0===N?-1:0,"data-orientation":i,...P,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,s.m)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,s.m)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(m,g);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),w)}}O.current=!1}),onBlur:(0,s.m)(e.onBlur,()=>j(!1))})})}),A="RovingFocusGroupItem",R=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:l,...d}=e,h=(0,c.B)(),f=l||h,p=S(A,r),m=p.currentTabStopId===f,g=b(r),{onFocusableItemAdd:v,onFocusableItemRemove:x}=p;return n.useEffect(()=>{if(i)return v(),()=>x()},[i,v,x]),(0,u.jsx)(y.ItemSlot,{scope:r,id:f,focusable:i,active:a,children:(0,u.jsx)(o.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:(0,s.m)(e.onMouseDown,e=>{i?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,s.m)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,s.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return k[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=p.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>M(r))}})})})});R.displayName=A;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var j=n.forwardRef((e,t)=>{let{pressed:r,defaultPressed:n=!1,onPressedChange:i,...a}=e,[l=!1,c]=(0,h.i)({prop:r,onChange:i,defaultProp:n});return(0,u.jsx)(o.sG.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:(0,s.m)(e.onClick,()=>{e.disabled||c(!l)})})});j.displayName="Toggle";var L="ToggleGroup",[D,O]=(0,i.A)(L,[P]),N=P(),V=n.forwardRef((e,t)=>{let{type:r,...n}=e;if("single"===r)return(0,u.jsx)(B,{...n,ref:t});if("multiple"===r)return(0,u.jsx)(_,{...n,ref:t});throw Error("Missing prop `type` expected on `".concat(L,"`"))});V.displayName=L;var[I,F]=D(L),B=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},...s}=e,[a,l]=(0,h.i)({prop:r,defaultProp:i,onChange:o});return(0,u.jsx)(I,{scope:e.__scopeToggleGroup,type:"single",value:a?[a]:[],onItemActivate:l,onItemDeactivate:n.useCallback(()=>l(""),[l]),children:(0,u.jsx)(W,{...s,ref:t})})}),_=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},...s}=e,[a=[],l]=(0,h.i)({prop:r,defaultProp:i,onChange:o}),c=n.useCallback(e=>l(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[l]),d=n.useCallback(e=>l(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[l]);return(0,u.jsx)(I,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:c,onItemDeactivate:d,children:(0,u.jsx)(W,{...s,ref:t})})});V.displayName=L;var[z,U]=D(L),W=n.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:i=!0,orientation:s,dir:a,loop:l=!0,...c}=e,d=N(r),h=p(a),f={role:"group",dir:h,...c};return(0,u.jsx)(z,{scope:r,rovingFocus:i,disabled:n,children:i?(0,u.jsx)(C,{asChild:!0,...d,orientation:s,dir:h,loop:l,children:(0,u.jsx)(o.sG.div,{...f,ref:t})}):(0,u.jsx)(o.sG.div,{...f,ref:t})})}),G="ToggleGroupItem",$=n.forwardRef((e,t)=>{let r=F(G,e.__scopeToggleGroup),i=U(G,e.__scopeToggleGroup),o=N(e.__scopeToggleGroup),s=r.value.includes(e.value),a=i.disabled||e.disabled,l={...e,pressed:s,disabled:a},c=n.useRef(null);return i.rovingFocus?(0,u.jsx)(R,{asChild:!0,...o,focusable:!a,active:s,ref:c,children:(0,u.jsx)(H,{...l,ref:t})}):(0,u.jsx)(H,{...l,ref:t})});$.displayName=G;var H=n.forwardRef((e,t)=>{let{__scopeToggleGroup:r,value:n,...i}=e,o=F(G,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a="single"===o.type?s:void 0;return(0,u.jsx)(j,{...a,...i,ref:t,onPressedChange:e=>{e?o.onItemActivate(n):o.onItemDeactivate(n)}})}),Y=V,K=$},2762:(e,t,r)=>{r.d(t,{UC:()=>$,ZL:()=>G,bL:()=>W,PR:()=>U,Bc:()=>S,k$:()=>M});var n=r(5569),i=r(4806),o=r(2377),s=r(3277),a=r(8039),l=r(7637),u=r(7443),c=r(8344),d=r(4371),h=r(5245),f=r(1719),p=r(6981),m=r(4789),g=n.forwardRef((e,t)=>(0,m.jsx)(h.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));g.displayName="VisuallyHidden";var[v,y]=(0,s.A)("Tooltip",[u.Bk]),b=(0,u.Bk)(),x="TooltipProvider",w="tooltip.open",[P,E]=v(x),S=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:s}=e,[a,l]=n.useState(!0),u=n.useRef(!1),c=n.useRef(0);return n.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(P,{scope:t,isOpenDelayed:a,delayDuration:r,onOpen:n.useCallback(()=>{window.clearTimeout(c.current),l(!1)},[]),onClose:n.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l(!0),i)},[i]),isPointerInTransitRef:u,onPointerInTransitChange:n.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:s})};S.displayName=x;var C="Tooltip",[T,A]=v(C),R=e=>{let{__scopeTooltip:t,children:r,open:i,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=E(C,e.__scopeTooltip),h=b(t),[f,g]=n.useState(null),v=(0,l.B)(),y=n.useRef(0),x=null!=a?a:d.disableHoverableContent,P=null!=c?c:d.delayDuration,S=n.useRef(!1),[A=!1,R]=(0,p.i)({prop:i,defaultProp:o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(w))):d.onClose(),null==s||s(e)}}),k=n.useMemo(()=>A?S.current?"delayed-open":"instant-open":"closed",[A]),M=n.useCallback(()=>{window.clearTimeout(y.current),S.current=!1,R(!0)},[R]),j=n.useCallback(()=>{window.clearTimeout(y.current),R(!1)},[R]),L=n.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{S.current=!0,R(!0)},P)},[P,R]);return n.useEffect(()=>()=>window.clearTimeout(y.current),[]),(0,m.jsx)(u.bL,{...h,children:(0,m.jsx)(T,{scope:t,contentId:v,open:A,stateAttribute:k,trigger:f,onTriggerChange:g,onTriggerEnter:n.useCallback(()=>{d.isOpenDelayed?L():M()},[d.isOpenDelayed,L,M]),onTriggerLeave:n.useCallback(()=>{x?j():window.clearTimeout(y.current)},[j,x]),onOpen:M,onClose:j,disableHoverableContent:x,children:r})})};R.displayName=C;var k="TooltipTrigger",M=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...s}=e,a=A(k,r),l=E(k,r),c=b(r),d=n.useRef(null),f=(0,o.s)(t,d,a.onTriggerChange),p=n.useRef(!1),g=n.useRef(!1),v=n.useCallback(()=>p.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,m.jsx)(u.Mz,{asChild:!0,...c,children:(0,m.jsx)(h.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:f,onPointerMove:(0,i.m)(e.onPointerMove,e=>{"touch"===e.pointerType||g.current||l.isPointerInTransitRef.current||(a.onTriggerEnter(),g.current=!0)}),onPointerLeave:(0,i.m)(e.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:(0,i.m)(e.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,i.m)(e.onFocus,()=>{p.current||a.onOpen()}),onBlur:(0,i.m)(e.onBlur,a.onClose),onClick:(0,i.m)(e.onClick,a.onClose)})})});M.displayName=k;var j="TooltipPortal",[L,D]=v(j,{forceMount:void 0}),O=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=A(j,t);return(0,m.jsx)(L,{scope:t,forceMount:r,children:(0,m.jsx)(d.C,{present:r||o.open,children:(0,m.jsx)(c.Z,{asChild:!0,container:i,children:n})})})};O.displayName=j;var N="TooltipContent",V=n.forwardRef((e,t)=>{let r=D(N,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,s=A(N,e.__scopeTooltip);return(0,m.jsx)(d.C,{present:n||s.open,children:s.disableHoverableContent?(0,m.jsx)(_,{side:i,...o,ref:t}):(0,m.jsx)(I,{side:i,...o,ref:t})})}),I=n.forwardRef((e,t)=>{let r=A(N,e.__scopeTooltip),i=E(N,e.__scopeTooltip),s=n.useRef(null),a=(0,o.s)(t,s),[l,u]=n.useState(null),{trigger:c,onClose:d}=r,h=s.current,{onPointerInTransitChange:f}=i,p=n.useCallback(()=>{u(null),f(!1)},[f]),g=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,i),...function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect())])),f(!0)},[f]);return n.useEffect(()=>()=>p(),[p]),n.useEffect(()=>{if(c&&h){let e=e=>g(e,h),t=e=>g(e,c);return c.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[c,h,g,p]),n.useEffect(()=>{if(l){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==c?void 0:c.contains(t))||(null==h?void 0:h.contains(t)),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let s=t[e].x,a=t[e].y,l=t[o].x,u=t[o].y;a>n!=u>n&&r<(l-s)*(n-a)/(u-a)+s&&(i=!i)}return i}(r,l);n?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,h,l,d,p]),(0,m.jsx)(_,{...e,ref:a})}),[F,B]=v(C,{isInside:!1}),_=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=e,d=A(N,r),h=b(r),{onClose:p}=d;return n.useEffect(()=>(document.addEventListener(w,p),()=>document.removeEventListener(w,p)),[p]),n.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,p]),(0,m.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,m.jsxs)(u.UC,{"data-state":d.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,m.jsx)(f.xV,{children:i}),(0,m.jsx)(F,{scope:r,isInside:!0,children:(0,m.jsx)(g,{id:d.contentId,role:"tooltip",children:o||i})})]})})});V.displayName=N;var z="TooltipArrow",U=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,i=b(r);return B(z,r).isInside?null:(0,m.jsx)(u.i3,{...i,...n,ref:t})});U.displayName=z;var W=R,G=O,$=V},6713:(e,t,r)=>{r.d(t,{c:()=>i});var n=r(5569);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},6981:(e,t,r)=>{r.d(t,{i:()=>o});var n=r(5569),i=r(6713);function o({prop:e,defaultProp:t,onChange:r=()=>{}}){let[o,s]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[o]=r,s=n.useRef(o),a=(0,i.c)(t);return n.useEffect(()=>{s.current!==o&&(a(o),s.current=o)},[o,s,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,l=a?e:o,u=(0,i.c)(r);return[l,n.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else s(t)},[a,e,s,u])]}},4705:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(5569),i=globalThis?.document?n.useLayoutEffect:()=>{}},1565:(e,t,r)=>{r.d(t,{$:()=>n});function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(n&&(n+=" "),n+=t);return n}},126:(e,t,r)=>{r.d(t,{N:()=>v});var n=r(4789),i=r(5569),o=r(4163),s=r(4619),a=r(4970);class l extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u(e){let{children:t,isPresent:r}=e,o=(0,i.useId)(),s=(0,i.useRef)(null),u=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,i.useContext)(a.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:i}=u.current;if(r||!s.current||!e||!t)return;s.current.dataset.motionPopId=o;let a=document.createElement("style");return c&&(a.nonce=c),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n [data-motion-pop-id="'.concat(o,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n top: ").concat(n,"px !important;\n left: ").concat(i,"px !important;\n }\n ")),()=>{document.head.removeChild(a)}},[r]),(0,n.jsx)(l,{isPresent:r,childRef:s,sizeRef:u,children:i.cloneElement(t,{ref:s})})}let c=e=>{let{children:t,initial:r,isPresent:a,onExitComplete:l,custom:c,presenceAffectsLayout:h,mode:f}=e,p=(0,s.M)(d),m=(0,i.useId)(),g=(0,i.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;l&&l()},[p,l]),v=(0,i.useMemo)(()=>({id:m,initial:r,isPresent:a,custom:c,onExitComplete:g,register:e=>(p.set(e,!1),()=>p.delete(e))}),h?[Math.random(),g]:[a,g]);return(0,i.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[a]),i.useEffect(()=>{a||p.size||!l||l()},[a]),"popLayout"===f&&(t=(0,n.jsx)(u,{isPresent:a,children:t})),(0,n.jsx)(o.t.Provider,{value:v,children:t})};function d(){return new Map}var h=r(7927),f=r(2408);let p=e=>e.key||"";function m(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}var g=r(9572);let v=e=>{let{children:t,exitBeforeEnter:r,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync"}=e;(0,f.V)(!r,"Replace exitBeforeEnter with mode='wait'");let v=(0,i.useMemo)(()=>m(t),[t]),y=v.map(p),b=(0,i.useRef)(!0),x=(0,i.useRef)(v),w=(0,s.M)(()=>new Map),[P,E]=(0,i.useState)(v),[S,C]=(0,i.useState)(v);(0,g.E)(()=>{b.current=!1,x.current=v;for(let e=0;e<S.length;e++){let t=p(S[e]);y.includes(t)?w.delete(t):!0!==w.get(t)&&w.set(t,!1)}},[S,y.length,y.join("-")]);let T=[];if(v!==P){let e=[...v];for(let t=0;t<S.length;t++){let r=S[t],n=p(r);y.includes(n)||(e.splice(t,0,r),T.push(r))}"wait"===d&&T.length&&(e=T),C(m(e)),E(v);return}let{forceRender:A}=(0,i.useContext)(h.L);return(0,n.jsx)(n.Fragment,{children:S.map(e=>{let t=p(e),r=v===S||y.includes(t);return(0,n.jsx)(c,{isPresent:r,initial:(!b.current||!!a)&&void 0,custom:r?void 0:o,presenceAffectsLayout:u,mode:d,onExitComplete:r?void 0:()=>{if(!w.has(t))return;w.set(t,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(null==A||A(),C(x.current),l&&l())},children:e},t)})})}},9788:(e,t,r)=>{r.d(t,{o:()=>h});var n=r(4789),i=r(5569),o=r(7927);let s=(0,i.createContext)(null);var a=r(9572),l=r(4243);let u=e=>!e.isLayoutDirty&&e.willUpdate(!1),c=e=>!0===e,d=e=>c(!0===e)||"id"===e,h=e=>{let{children:t,id:r,inherit:h=!0}=e,f=(0,i.useContext)(o.L),p=(0,i.useContext)(s),[m,g]=function(){let e=function(){let e=(0,i.useRef)(!1);return(0,a.E)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),[t,r]=(0,i.useState)(0),n=(0,i.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,i.useCallback)(()=>l.Gt.postRender(n),[n]),t]}(),v=(0,i.useRef)(null),y=f.id||p;null===v.current&&(d(h)&&y&&(r=r?y+"-"+r:y),v.current={id:r,group:c(h)&&f.group||function(){let e=new Set,t=new WeakMap,r=()=>e.forEach(u);return{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",r))},remove:n=>{e.delete(n);let i=t.get(n);i&&(i(),t.delete(n)),r()},dirty:r}}()});let b=(0,i.useMemo)(()=>({...v.current,forceRender:m}),[g]);return(0,n.jsx)(o.L.Provider,{value:b,children:t})}},7927:(e,t,r)=>{r.d(t,{L:()=>n});let n=(0,r(5569).createContext)({})},4970:(e,t,r)=>{r.d(t,{Q:()=>n});let n=(0,r(5569).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},4163:(e,t,r)=>{r.d(t,{t:()=>n});let n=(0,r(5569).createContext)(null)},1033:(e,t,r)=>{r.d(t,{I:()=>o});var n=r(4242);let i=["read","resolveKeyframes","update","preRender","render","postRender"];function o(e,t){let r=!1,o=!0,s={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,l=i.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,i=!1,s=!1)=>{let a=s&&n?t:r;return i&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,n){i=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(a),n=!1,i&&(i=!1,l.process(e))}};return l}(a),e),{}),{read:u,resolveKeyframes:c,update:d,preRender:h,render:f,postRender:p}=l,m=()=>{let i=n.W.useManualTiming?s.timestamp:performance.now();r=!1,s.delta=o?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,u.process(s),c.process(s),d.process(s),h.process(s),f.process(s),p.process(s),s.isProcessing=!1,r&&t&&(o=!1,e(m))},g=()=>{r=!0,o=!0,s.isProcessing||e(m)};return{schedule:i.reduce((e,t)=>{let n=l[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<i.length;t++)l[i[t]].cancel(e)},state:s,steps:l}}},4243:(e,t,r)=>{r.d(t,{Gt:()=>i,PP:()=>a,WG:()=>o,uv:()=>s});var n=r(2981);let{schedule:i,cancel:o,state:s,steps:a}=(0,r(1033).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},5192:(e,t,r)=>{let n;function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}r.d(t,{P:()=>ot});let o=e=>Array.isArray(e);function s(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function a(e){return"string"==typeof e||Array.isArray(e)}function l(e,t,r,n){if("function"==typeof t||("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t)){let[i,o]=function(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}(n);t=t(void 0!==r?r:e.custom,i,o)}return t}function u(e,t,r){let n=e.getProps();return l(n,t,void 0!==r?r:n.custom,e)}let c=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...c],h=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],f=new Set(h),p=e=>1e3*e,m=e=>e/1e3,g={type:"spring",stiffness:500,damping:25,restSpeed:10},v=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),y={type:"keyframes",duration:.8},b={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},x=(e,{keyframes:t})=>t.length>2?y:f.has(e)?e.startsWith("scale")?v(t[1]):g:b;function w(e,t){return e?e[t]||e.default||e:void 0}var P,E,S=r(4242);let C={current:!1},T=e=>null!==e;function A(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(T),o=t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}var R=r(4243),k=r(2981);let M=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function j(e,t,r,n){if(e===t&&r===n)return k.l;let i=t=>(function(e,t,r,n,i){let o,s;let a=0;do(o=M(s=t+(r-t)/2,n,i)-e)>0?r=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,r);return e=>0===e||1===e?e:M(i(e),t,n)}let L=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,D=e=>t=>1-e(1-t),O=j(.33,1.53,.69,.99),N=D(O),V=L(N),I=e=>(e*=2)<1?.5*N(e):.5*(2-Math.pow(2,-10*(e-1))),F=e=>1-Math.sin(Math.acos(e)),B=D(F),_=L(F),z=e=>/^0[^.\s]+$/u.test(e);var U=r(2408);let W=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),G=e=>t=>"string"==typeof t&&t.startsWith(e),$=G("--"),H=G("var(--"),Y=e=>!!H(e)&&K.test(e.split("/*")[0].trim()),K=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,X=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,q=(e,t,r)=>r>t?t:r<e?e:r,Z={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Q={...Z,transform:e=>q(0,1,e)},J={...Z,default:1},ee=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),et=ee("deg"),er=ee("%"),en=ee("px"),ei=ee("vh"),eo=ee("vw"),es={...er,parse:e=>er.parse(e)/100,transform:e=>er.transform(100*e)},ea=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),el=e=>e===Z||e===en,eu=(e,t)=>parseFloat(e.split(", ")[t]),ec=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/u);if(i)return eu(i[1],t);{let t=n.match(/^matrix\((.+)\)$/u);return t?eu(t[1],e):0}},ed=new Set(["x","y","z"]),eh=h.filter(e=>!ed.has(e)),ef={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ec(4,13),y:ec(5,14)};ef.translateX=ef.x,ef.translateY=ef.y;let ep=e=>t=>t.test(e),em=[Z,en,er,et,eo,ei,{test:e=>"auto"===e,parse:e=>e}],eg=e=>em.find(ep(e)),ev=new Set,ey=!1,eb=!1;function ex(){if(eb){let e=Array.from(ev).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return eh.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eb=!1,ey=!1,ev.forEach(e=>e.complete()),ev.clear()}function ew(){ev.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eb=!0)})}class eP{constructor(e,t,r,n,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ev.add(this),ey||(ey=!0,R.Gt.read(ew),R.Gt.resolveKeyframes(ex))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let i=0;i<e.length;i++)if(null===e[i]){if(0===i){let i=null==n?void 0:n.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,o);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=o),n&&void 0===i&&n.set(e[0])}else e[i]=e[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ev.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ev.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eE=e=>Math.round(1e5*e)/1e5,eS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eT=(e,t)=>r=>!!("string"==typeof r&&eC.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),eA=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[i,o,s,a]=n.match(eS);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},eR=e=>q(0,255,e),ek={...Z,transform:e=>Math.round(eR(e))},eM={test:eT("rgb","red"),parse:eA("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ek.transform(e)+", "+ek.transform(t)+", "+ek.transform(r)+", "+eE(Q.transform(n))+")"},ej={test:eT("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:eM.transform},eL={test:eT("hsl","hue"),parse:eA("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+er.transform(eE(t))+", "+er.transform(eE(r))+", "+eE(Q.transform(n))+")"},eD={test:e=>eM.test(e)||ej.test(e)||eL.test(e),parse:e=>eM.test(e)?eM.parse(e):eL.test(e)?eL.parse(e):ej.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eM.transform(e):eL.transform(e)},eO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eN="number",eV="color",eI=/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 eF(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,s=t.replace(eI,e=>(eD.test(e)?(n.color.push(o),i.push(eV),r.push(eD.parse(e))):e.startsWith("var(")?(n.var.push(o),i.push("var"),r.push(e)):(n.number.push(o),i.push(eN),r.push(parseFloat(e))),++o,"${}")).split("${}");return{values:r,split:s,indexes:n,types:i}}function eB(e){return eF(e).values}function e_(e){let{split:t,types:r}=eF(e),n=t.length;return e=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],void 0!==e[o]){let t=r[o];t===eN?i+=eE(e[o]):t===eV?i+=eD.transform(e[o]):i+=e[o]}return i}}let ez=e=>"number"==typeof e?0:e,eU={test:function(e){var t,r;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(eS))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(eO))||void 0===r?void 0:r.length)||0)>0},parse:eB,createTransformer:e_,getAnimatableNone:function(e){let t=eB(e);return e_(e)(t.map(ez))}},eW=new Set(["brightness","contrast","saturate","opacity"]);function eG(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(eS)||[];if(!n)return e;let i=r.replace(n,""),o=eW.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let e$=/\b([a-z-]*)\(.*?\)/gu,eH={...eU,getAnimatableNone:e=>{let t=e.match(e$);return t?t.map(eG).join(" "):e}},eY={...Z,transform:Math.round},eK={borderWidth:en,borderTopWidth:en,borderRightWidth:en,borderBottomWidth:en,borderLeftWidth:en,borderRadius:en,radius:en,borderTopLeftRadius:en,borderTopRightRadius:en,borderBottomRightRadius:en,borderBottomLeftRadius:en,width:en,maxWidth:en,height:en,maxHeight:en,top:en,right:en,bottom:en,left:en,padding:en,paddingTop:en,paddingRight:en,paddingBottom:en,paddingLeft:en,margin:en,marginTop:en,marginRight:en,marginBottom:en,marginLeft:en,backgroundPositionX:en,backgroundPositionY:en,rotate:et,rotateX:et,rotateY:et,rotateZ:et,scale:J,scaleX:J,scaleY:J,scaleZ:J,skew:et,skewX:et,skewY:et,distance:en,translateX:en,translateY:en,translateZ:en,x:en,y:en,z:en,perspective:en,transformPerspective:en,opacity:Q,originX:es,originY:es,originZ:en,zIndex:eY,size:en,fillOpacity:Q,strokeOpacity:Q,numOctaves:eY},eX={...eK,color:eD,backgroundColor:eD,outlineColor:eD,fill:eD,stroke:eD,borderColor:eD,borderTopColor:eD,borderRightColor:eD,borderBottomColor:eD,borderLeftColor:eD,filter:eH,WebkitFilter:eH},eq=e=>eX[e];function eZ(e,t){let r=eq(e);return r!==eH&&(r=eU),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let eQ=new Set(["auto","none","0"]);class eJ extends eP{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&Y(n=n.trim())){let i=function e(t,r,n=1){(0,U.V)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=X.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${null!=r?r:n}`,i]}(t);if(!i)return;let s=window.getComputedStyle(r).getPropertyValue(i);if(s){let e=s.trim();return W(e)?parseFloat(e):e}return Y(o)?e(o,r,n+1):o}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ea.has(r)||2!==e.length)return;let[n,i]=e,o=eg(n),s=eg(i);if(o!==s){if(el(o)&&el(s))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var n;("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||z(n))&&r.push(t)}r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!eQ.has(t)&&eF(t).values.length&&(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=eZ(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ef[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);let o=n.length-1,s=n[o];n[o]=ef[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}function e0(e){return"function"==typeof e}function e1(){n=void 0}let e5={now:()=>(void 0===n&&e5.set(R.uv.isProcessing||S.W.useManualTiming?R.uv.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(e1)}},e2=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eU.test(e)||"0"===e)&&!e.startsWith("url("));class e4{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=e5.now(),this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ew(),ex()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=e5.now(),this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=e2(i,t),a=e2(o,t);return(0,U.$)(s===a,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||e0(r))&&n)}(e,r,n,i)){if(C.current||!o){null==a||a(A(e,this.options,t)),null==s||s(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function e3(e,t,r){var n,i;let o=Math.max(t-5,0);return n=r-e(o),(i=t-o)?1e3/i*n:0}function e9(e,t){return e*Math.sqrt(1-t*t)}let e7=["duration","bounce"],e6=["stiffness","damping","mass"];function e8(e,t){return t.some(t=>void 0!==e[t])}function te({keyframes:e,restDelta:t,restSpeed:r,...n}){let i;let o=e[0],s=e[e.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!e8(e,e6)&&e8(e,e7)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;(0,U.$)(e<=p(10),"Spring duration must be 10 seconds or less");let s=1-t;s=q(.05,1,s),e=q(.01,10,m(e)),s<1?(i=t=>{let n=t*s,i=n*e;return .001-(n-r)/e9(t,s)*Math.exp(-i)},o=t=>{let n=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-n),l=e9(Math.pow(t,2),s);return(n*r+r-o)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let a=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,5/e);if(e=p(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*n;return{stiffness:t,damping:2*s*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-m(n.velocity||0)}),g=h||0,v=u/(2*Math.sqrt(l*c)),y=s-o,b=m(Math.sqrt(l/c)),x=5>Math.abs(y);if(r||(r=x?.01:2),t||(t=x?.005:.5),v<1){let e=e9(b,v);i=t=>s-Math.exp(-v*b*t)*((g+v*b*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===v)i=e=>s-Math.exp(-b*e)*(y+(g+b*y)*e);else{let e=b*Math.sqrt(v*v-1);i=t=>{let r=Math.exp(-v*b*t),n=Math.min(e*t,300);return s-r*((g+v*b*y)*Math.sinh(n)+e*y*Math.cosh(n))/e}}return{calculatedDuration:f&&d||null,next:e=>{let n=i(e);if(f)a.done=e>=d;else{let o=0;v<1&&(o=0===e?p(g):e3(i,e,n));let l=Math.abs(o)<=r,u=Math.abs(s-n)<=t;a.done=l&&u}return a.value=a.done?s:n,a}}}function tt({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},m=e=>void 0!==a&&e<a||void 0!==l&&e>l,g=e=>void 0===a?l:void 0===l?a:Math.abs(a-e)<Math.abs(l-e)?a:l,v=r*t,y=f+v,b=void 0===s?y:s(y);b!==y&&(v=b-f);let x=e=>-v*Math.exp(-e/n),w=e=>b+x(e),P=e=>{let t=x(e),r=w(e);p.done=Math.abs(t)<=u,p.value=p.done?b:r},E=e=>{m(p.value)&&(d=e,h=te({keyframes:[p.value,g(p.value)],velocity:e3(w,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,P(e),E(e)),void 0!==d&&e>=d)?h.next(e-d):(t||P(e),p)}}}let tr=j(.42,0,1,1),tn=j(0,0,.58,1),ti=j(.42,0,.58,1),to=e=>Array.isArray(e)&&"number"!=typeof e[0],ts=e=>Array.isArray(e)&&"number"==typeof e[0],ta={linear:k.l,easeIn:tr,easeInOut:ti,easeOut:tn,circIn:F,circInOut:_,circOut:B,backIn:N,backInOut:V,backOut:O,anticipate:I},tl=e=>{if(ts(e)){(0,U.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return j(t,r,n,i)}return"string"==typeof e?((0,U.V)(void 0!==ta[e],`Invalid easing type '${e}'`),ta[e]):e},tu=(e,t)=>r=>t(e(r)),tc=(...e)=>e.reduce(tu),td=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},th=(e,t,r)=>e+(t-e)*r;function tf(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tp(e,t){return r=>r>0?t:e}let tm=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},tg=[ej,eM,eL],tv=e=>tg.find(t=>t.test(e));function ty(e){let t=tv(e);if((0,U.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===eL&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;i=tf(a,n,e+1/3),o=tf(a,n,e),s=tf(a,n,e-1/3)}else i=o=s=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:n}}(r)),r}let tb=(e,t)=>{let r=ty(e),n=ty(t);if(!r||!n)return tp(e,t);let i={...r};return e=>(i.red=tm(r.red,n.red,e),i.green=tm(r.green,n.green,e),i.blue=tm(r.blue,n.blue,e),i.alpha=th(r.alpha,n.alpha,e),eM.transform(i))},tx=new Set(["none","hidden"]);function tw(e,t){return r=>th(e,t,r)}function tP(e){return"number"==typeof e?tw:"string"==typeof e?Y(e)?tp:eD.test(e)?tb:tC:Array.isArray(e)?tE:"object"==typeof e?eD.test(e)?tb:tS:tp}function tE(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>tP(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function tS(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=tP(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let tC=(e,t)=>{let r=eU.createTransformer(t),n=eF(e),i=eF(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?tx.has(e)&&!i.values.length||tx.has(t)&&!n.values.length?function(e,t){return tx.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):tc(tE(function(e,t){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let s=t.types[o],a=e.indexes[s][i[s]],l=null!==(r=e.values[a])&&void 0!==r?r:0;n[o]=l,i[s]++}return n}(n,i),i.values),r):((0,U.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tp(e,t))};function tT(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?th(e,t,r):tP(e)(e,t)}function tA({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=to(n)?n.map(tl):tl(n),o={done:!1,value:t[0]},s=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if((0,U.V)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||tT,o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);t&&(o=tc(Array.isArray(t)?t[r]||k.l:t,o)),n.push(o)}return n}(t,n,i),a=s.length,l=t=>{let r=0;if(a>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=td(e[r],e[r+1],t);return s[r](n)};return r?t=>l(q(e[0],e[o-1],t)):l}((r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=td(0,t,n);e.push(th(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||ti).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}let tR=e=>{let t=({timestamp:t})=>e(t);return{start:()=>R.Gt.update(t,!0),stop:()=>(0,R.WG)(t),now:()=>R.uv.isProcessing?R.uv.timestamp:e5.now()}},tk={decay:tt,inertia:tt,tween:tA,keyframes:tA,spring:te},tM=e=>e/100;class tj extends e4{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{let{onStop:e}=this.options;e&&e(),this.resolver.cancel(),this.isStopped=!0,"idle"!==this.state&&this.teardown()};let{name:t,motionValue:r,element:n,keyframes:i}=this.options,o=(null==n?void 0:n.KeyframeResolver)||eP;this.resolver=new o(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,r;let{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=e0(n)?n:tk[n]||tA;l!==tA&&"number"!=typeof e[0]&&(t=tc(tM,tT(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===s&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return i.next(0);let{delay:d,repeat:h,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,b=i;if(h){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,h+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/c)):"mirror"===f&&(b=o)),y=q(0,1,r)*c}let x=v?{done:!1,value:a[0]}:b.next(y);s&&(x.value=s(x.value));let{done:w}=x;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==n&&(x.value=A(a,this.options,n)),m&&m(x.value),P&&this.finish(),x}get duration(){let{resolved:e}=this;return e?m(e.calculatedDuration):0}get time(){return m(this.currentTime)}set time(e){e=p(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=m(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=tR,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let tL=new Set(["opacity","clipPath","filter","transform"]),tD=(e,t)=>{let r="",n=Math.max(Math.round(t/10),2);for(let t=0;t<n;t++)r+=e(td(0,n-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function tO(e){let t;return()=>(void 0===t&&(t=e()),t)}let tN={linearEasing:void 0},tV=function(e,t){let r=tO(e);return()=>{var e;return null!==(e=tN[t])&&void 0!==e?e:r()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tI=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,tF={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tI([0,.65,.55,1]),circOut:tI([.55,0,1,.45]),backIn:tI([.31,.01,.66,-.59]),backOut:tI([.33,1.53,.69,.99])};function tB(e,t){e.timeline=t,e.onfinish=null}let t_=tO(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tz={anticipate:I,backInOut:V,circInOut:_};class tU extends e4{constructor(e){super(e);let{name:t,motionValue:r,element:n,keyframes:i}=this.options;this.resolver=new eJ(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}initPlayback(e,t){var r,n;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(null===(r=l.owner)||void 0===r?void 0:r.current))return!1;if("string"==typeof s&&tV()&&s in tz&&(s=tz[s]),e0((n=this.options).type)||"spring"===n.type||!function e(t){return!!("function"==typeof t&&tV()||!t||"string"==typeof t&&(t in tF||tV())||ts(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:r,motionValue:n,element:l,...u}=this.options,c=function(e,t){let r=new tj({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},i=[],o=0;for(;!n.done&&o<2e4;)i.push((n=r.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),i=c.duration,o=c.times,s=c.ease,a="keyframes"}let d=function(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=function e(t,r){if(t)return"function"==typeof t&&tV()?tD(t,r):ts(t)?tI(t):Array.isArray(t)?t.map(t=>e(t,r)||tF.easeOut):tF[t]}(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:s});return d.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(tB(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:r}=this.options;l.set(A(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:o,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return m(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return m(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=p(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return k.l;let{animation:r}=t;tB(r,e)}else this.pendingTimeline=e;return k.l}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:n,type:i,ease:o,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,c=new tj({...u,keyframes:r,duration:n,type:i,ease:o,times:s,isGenerator:!0}),d=p(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:o,type:s}=e;return t_()&&r&&tL.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&"mirror"!==i&&0!==o&&"inertia"!==s}}let tW=tO(()=>void 0!==window.ScrollTimeline);class tG{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e,t){let r=this.animations.map(r=>tW()&&r.attachTimeline?r.attachTimeline(e):t(r));return()=>{r.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let t$=(e,t,r,n={},i,o)=>s=>{let a=w(n,e)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=p(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...x(e,c)}),c.duration&&(c.duration=p(c.duration)),c.repeatDelay&&(c.repeatDelay=p(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(d=!0)),(C.current||S.W.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){let e=A(c.keyframes,a);if(void 0!==e)return R.Gt.update(()=>{c.onUpdate(e),c.onComplete()}),new tG([])}return!o&&tU.supports(c)?new tU(c):new tj(c)},tH=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),tY=e=>o(e)?e[e.length-1]||0:e;function tK(e,t){-1===e.indexOf(t)&&e.push(t)}function tX(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class tq{constructor(){this.subscriptions=[]}add(e){return tK(this.subscriptions,e),()=>tX(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let tZ=e=>!isNaN(parseFloat(e)),tQ={current:void 0};class tJ{constructor(e,t={}){this.version="12.0.0-alpha.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=e5.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=e5.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=tZ(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new tq);let r=this.events[e].add(t);return"change"===e?()=>{r(),R.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return tQ.current&&tQ.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=e5.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?1e3/r*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t0(e,t){return new tJ(e,t)}let t1=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),t5="data-"+t1("framerAppearId"),t2=e=>!!(e&&e.getVelocity);function t4(e,t){let r=e.getValue("willChange");if(t2(r)&&r.add)return r.add(t)}function t3(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;n&&(s=n);let c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in l){let n=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),i=l[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(d,t))continue;let a={delay:r,...w(s||{},t)},u=!1;if(window.MotionHandoffAnimation){let r=e.props[t5];if(r){let e=window.MotionHandoffAnimation(r,t,R.Gt);null!==e&&(a.startTime=e,u=!0)}}t4(e,t),n.start(t$(t,n,i,e.shouldReduceMotion&&f.has(t)?{type:!1}:a,e,u));let h=n.animation;h&&c.push(h)}return a&&Promise.all(c).then(()=>{R.Gt.update(()=>{a&&function(e,t){let{transitionEnd:r={},transition:n={},...i}=u(e,t)||{};for(let t in i={...i,...r}){let r=tY(i[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,t0(r))}}(e,a)})}),c}function t9(e,t,r={}){var n;let i=u(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>Promise.all(t3(e,i,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>a-e*n;return Array.from(e.variantChildren).sort(t7).forEach((e,n)=>{e.notify("AnimationStart",t),s.push(t9(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+n,s,a,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(r.delay)]);{let[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then(()=>t())}}function t7(e,t){return e.sortNodePosition(t)}let t6=d.length,t8=[...c].reverse(),re=c.length;function rt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rr(){return{animate:rt(!0),whileInView:rt(),whileHover:rt(),whileTap:rt(),whileDrag:rt(),whileFocus:rt(),exit:rt()}}class rn{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ri extends rn{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>t9(e,t,r)));else if("string"==typeof t)n=t9(e,t,r);else{let i="function"==typeof t?u(e,t,r.custom):t;n=Promise.all(t3(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=rr(),n=!0,l=t=>(r,n)=>{var i;let o=u(e,n,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:e,transitionEnd:t,...n}=o;r={...r,...n,...t}}return r};function c(u){let{props:c}=e,h=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<t6;e++){let n=d[e],i=t.props[n];(a(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},f=[],p=new Set,m={},g=1/0;for(let t=0;t<re;t++){var v;let d=t8[t],y=r[d],b=void 0!==c[d]?c[d]:h[d],x=a(b),w=d===u?y.isActive:null;!1===w&&(g=t);let P=b===h[d]&&b!==c[d]&&x;if(P&&n&&e.manuallyAnimateOnMount&&(P=!1),y.protectedKeys={...m},!y.isActive&&null===w||!b&&!y.prevProp||i(b)||"boolean"==typeof b)continue;let E=(v=y.prevProp,"string"==typeof b?b!==v:!!Array.isArray(b)&&!s(b,v)),S=E||d===u&&y.isActive&&!P&&x||t>g&&x,C=!1,T=Array.isArray(b)?b:[b],A=T.reduce(l(d),{});!1===w&&(A={});let{prevResolvedValues:R={}}=y,k={...R,...A},M=t=>{S=!0,p.has(t)&&(C=!0,p.delete(t)),y.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in k){let t=A[e],r=R[e];if(!m.hasOwnProperty(e))(o(t)&&o(r)?s(t,r):t===r)?void 0!==t&&p.has(e)?M(e):y.protectedKeys[e]=!0:null!=t?M(e):p.add(e)}y.prevProp=b,y.prevResolvedValues=A,y.isActive&&(m={...m,...A}),n&&e.blockInitialAnimation&&(S=!1);let j=!(P&&E)||C;S&&j&&f.push(...T.map(e=>({animation:e,options:{type:d}})))}if(p.size){let t={};p.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=null!=n?n:null}),f.push({animation:t})}let y=!!f.length;return n&&(!1===c.initial||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?t(f):Promise.resolve()}return{animateChanges:c,setActive:function(t,n){var i;if(r[t].isActive===n)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let o=c(t);for(let e in r)r[e].protectedKeys={};return o},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=rr(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}let ro=0;class rs extends rn{constructor(){super(...arguments),this.id=ro++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let ra=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rl(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let ru=e=>t=>ra(t)&&e(t,rl(t));function rc(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function rd(e,t,r,n){return rc(e,t,ru(r),n)}let rh=(e,t)=>Math.abs(e-t);class rf{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=rg(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return Math.sqrt(rh(e.x,t.x)**2+rh(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=R.uv;this.history.push({...n,timestamp:i});let{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rp(t,this.transformPagePoint),R.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=rg("pointercancel"===e.type?this.lastMoveEventInfo:rp(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!ra(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let o=rp(rl(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=R.uv;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,rg(o,this.history)),this.removeListeners=tc(rd(this.contextWindow,"pointermove",this.handlePointerMove),rd(this.contextWindow,"pointerup",this.handlePointerUp),rd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,R.WG)(this.updatePoint)}}function rp(e,t){return t?{point:t(e.point)}:e}function rm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rg({point:e},t){return{point:e,delta:rm(e,rv(t)),offset:rm(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=rv(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>p(.1)));)r--;if(!n)return{x:0,y:0};let o=m(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function rv(e){return e[e.length-1]}function ry(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rb=ry("dragHorizontal"),rx=ry("dragVertical");function rw(e){let t=!1;if("y"===e)t=rx();else if("x"===e)t=rb();else{let e=rb(),r=rx();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function rP(){let e=rw(!0);return!e||(e(),!1)}function rE(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rS(e){return e.max-e.min}function rC(e,t,r,n=.5){e.origin=n,e.originPoint=th(t.min,t.max,e.origin),e.scale=rS(r)/rS(t),e.translate=th(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rT(e,t,r,n){rC(e.x,t.x,r.x,n?n.originX:void 0),rC(e.y,t.y,r.y,n?n.originY:void 0)}function rA(e,t,r){e.min=r.min+t.min,e.max=e.min+rS(t)}function rR(e,t,r){e.min=t.min-r.min,e.max=e.min+rS(t)}function rk(e,t,r){rR(e.x,t.x,r.x),rR(e.y,t.y,r.y)}function rM(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function rj(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function rL(e,t,r){return{min:rD(e,t),max:rD(e,r)}}function rD(e,t){return"number"==typeof e?e:e[t]||0}let rO=()=>({translate:0,scale:1,origin:0,originPoint:0}),rN=()=>({x:rO(),y:rO()}),rV=()=>({min:0,max:0}),rI=()=>({x:rV(),y:rV()});function rF(e){return[e("x"),e("y")]}function rB({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function r_(e){return void 0===e||1===e}function rz({scale:e,scaleX:t,scaleY:r}){return!r_(e)||!r_(t)||!r_(r)}function rU(e){return rz(e)||rW(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rW(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function rG(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function r$(e,t=0,r=1,n,i){e.min=rG(e.min,t,r,n,i),e.max=rG(e.max,t,r,n,i)}function rH(e,{x:t,y:r}){r$(e.x,t.translate,t.scale,t.originPoint),r$(e.y,r.translate,r.scale,r.originPoint)}function rY(e,t){e.min=e.min+t,e.max=e.max+t}function rK(e,t,r,n,i=.5){let o=th(e.min,e.max,i);r$(e,t,r,o,n)}function rX(e,t){rK(e.x,t.x,t.scaleX,t.scale,t.originX),rK(e.y,t.y,t.scaleY,t.scale,t.originY)}function rq(e,t){return rB(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let rZ=({current:e})=>e?e.ownerDocument.defaultView:null,rQ=new WeakMap;class rJ{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rI(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new rf(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rl(e,"page").point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rw(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rF(e=>{let t=this.getAxisMotionValue(e).get()||0;if(er.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=rS(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&R.Gt.postRender(()=>i(e,t)),t4(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:s}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>rF(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:rZ(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&R.Gt.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!r0(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?th(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?th(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&rE(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:rM(e.x,r,i),y:rM(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rL(e,"left","right"),y:rL(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rF(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rE(t))return!1;let n=t.current;(0,U.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=rq(e,r),{scroll:i}=t;return i&&(rY(n.x,i.offset.x),rY(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),s={x:rj((e=i.layout.layoutBox).x,o.x),y:rj(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=rB(e))}return s}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(rF(s=>{if(!r0(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return t4(this.visualElement,e),r.start(t$(e,r,0,t,this.visualElement,!1))}stopAnimation(){rF(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rF(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){rF(t=>{let{drag:r}=this.getProps();if(!r0(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-th(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!rE(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rF(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=rS(e),i=rS(t);return i>n?r=td(t.min,t.max-n,e.min):n>i&&(r=td(e.min,e.max-i,t.min)),q(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rF(t=>{if(!r0(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(th(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;rQ.set(this.visualElement,this);let e=rd(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();rE(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),R.Gt.read(t);let i=rc(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rF(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function r0(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class r1 extends rn{constructor(e){super(e),this.removeGroupControls=k.l,this.removeListeners=k.l,this.controls=new rJ(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||k.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let r5=e=>(t,r)=>{e&&R.Gt.postRender(()=>e(t,r))};class r2 extends rn{constructor(){super(...arguments),this.removePointerDownListener=k.l}onPointerDown(e){this.session=new rf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rZ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:r5(e),onStart:r5(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&R.Gt.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=rd(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var r4=r(4789),r3=r(5569),r9=r(4163),r7=r(7927);let r6=(0,r3.createContext)({}),r8={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ne(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nt={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!en.test(e))return e;e=parseFloat(e)}let r=ne(e,t.target.x),n=ne(e,t.target.y);return`${r}% ${n}%`}},nr={},{schedule:nn,cancel:ni}=(0,r(1033).I)(queueMicrotask,!1);class no extends r3.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(nr,na),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),r8.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||R.Gt.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ns(e){let[t,r]=function(){let e=(0,r3.useContext)(r9.t);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,r3.useId)();(0,r3.useEffect)(()=>n(i),[]);let o=(0,r3.useCallback)(()=>r&&r(i),[i,r]);return!t&&r?[!1,o]:[!0]}(),n=(0,r3.useContext)(r7.L);return(0,r4.jsx)(no,{...e,layoutGroup:n,switchLayoutGroup:(0,r3.useContext)(r6),isPresent:t,safeToRemove:r})}let na={borderRadius:{...nt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomLeftRadius:nt,borderBottomRightRadius:nt,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=eU.parse(e);if(n.length>5)return e;let i=eU.createTransformer(e),o="number"!=typeof n[0]?1:0,s=r.x.scale*t.x,a=r.y.scale*t.y;n[0+o]/=s,n[1+o]/=a;let l=th(s,a,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}},nl=["TopLeft","TopRight","BottomLeft","BottomRight"],nu=nl.length,nc=e=>"string"==typeof e?parseFloat(e):e,nd=e=>"number"==typeof e||en.test(e);function nh(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nf=nm(0,.5,B),np=nm(.5,.95,k.l);function nm(e,t,r){return n=>n<e?0:n>t?1:r(td(e,t,n))}function ng(e,t){e.min=t.min,e.max=t.max}function nv(e,t){ng(e.x,t.x),ng(e.y,t.y)}function ny(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nb(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function nx(e,t,[r,n,i],o,s){!function(e,t=0,r=1,n=.5,i,o=e,s=e){if(er.test(t)&&(t=parseFloat(t),t=th(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=th(o.min,o.max,n);e===o&&(a-=t),e.min=nb(e.min,t,r,a,i),e.max=nb(e.max,t,r,a,i)}(e,t[r],t[n],t[i],t.scale,o,s)}let nw=["x","scaleX","originX"],nP=["y","scaleY","originY"];function nE(e,t,r,n){nx(e.x,t,nw,r?r.x:void 0,n?n.x:void 0),nx(e.y,t,nP,r?r.y:void 0,n?n.y:void 0)}function nS(e){return 0===e.translate&&1===e.scale}function nC(e){return nS(e.x)&&nS(e.y)}function nT(e,t){return e.min===t.min&&e.max===t.max}function nA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nR(e,t){return nA(e.x,t.x)&&nA(e.y,t.y)}function nk(e){return rS(e.x)/rS(e.y)}function nM(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nj{constructor(){this.members=[]}add(e){tK(this.members,e),e.scheduleRender()}remove(e){if(tX(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nL=(e,t)=>e.depth-t.depth;class nD{constructor(){this.children=[],this.isDirty=!1}add(e){tK(this.children,e),this.isDirty=!0}remove(e){tX(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nL),this.isDirty=!1,this.children.forEach(e)}}function nO(e){let t=t2(e)?e.get():e;return tH(t)?t.toValue():t}let nN={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},nV="undefined"!=typeof window&&void 0!==window.MotionDebug,nI=["","X","Y","Z"],nF={visibility:"hidden"},nB=0;function n_(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function nz({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=nB++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,nV&&(nN.totalNodes=nN.resolvedTargetDeltas=nN.recalculatedProjection=0),this.nodes.forEach(nG),this.nodes.forEach(nZ),this.nodes.forEach(nQ),this.nodes.forEach(n$),nV&&window.MotionDebug.record(nN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nD)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tq),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=e5.now(),n=({timestamp:t})=>{let i=t-r;i>=250&&((0,R.WG)(n),e(i-250))};return R.Gt.read(n,!0),()=>(0,R.WG)(n)}(n,250),r8.hasAnimatedSinceResize&&(r8.hasAnimatedSinceResize=!1,this.nodes.forEach(nq))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||n4,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!nR(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...w(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||nq(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,R.WG)(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(nJ),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=r.props[t5];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",R.Gt,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nY);return}this.isUpdating||this.nodes.forEach(nK),this.isUpdating=!1,this.nodes.forEach(nX),this.nodes.forEach(nU),this.nodes.forEach(nW),this.clearAllSnapshots();let e=e5.now();R.uv.delta=q(0,1e3/60,e-R.uv.timestamp),R.uv.timestamp=e,R.uv.isProcessing=!0,R.PP.update.process(R.uv),R.PP.preRender.process(R.uv),R.PP.render.process(R.uv),R.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nH),this.sharedNodes.forEach(n0)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rI(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nC(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||rU(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),n7((t=n).x),n7(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return rI();let r=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(n8))){let{scroll:e}=this.root;e&&(rY(r.x,e.offset.x),rY(r.y,e.offset.y))}return r}removeElementScroll(e){var t;let r=rI();if(nv(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){let n=this.path[t],{scroll:i,options:o}=n;n!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&nv(r,e),rY(r.x,i.offset.x),rY(r.y,i.offset.y))}return r}applyTransform(e,t=!1){let r=rI();nv(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&rX(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),rU(n.latestValues)&&rX(r,n.latestValues)}return rU(this.latestValues)&&rX(r,this.latestValues),r}removeTransform(e){let t=rI();nv(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!rU(r.latestValues))continue;rz(r.latestValues)&&r.updateSnapshot();let n=rI();nv(n,r.measurePageBox()),nE(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return rU(this.latestValues)&&nE(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==R.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=R.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rI(),this.relativeTargetOrigin=rI(),rk(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nv(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rI(),this.targetWithTransforms=rI()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,rA(r.x,n.x,i.x),rA(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nv(this.target,this.layout.layoutBox),rH(this.target,this.targetDelta)):nv(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rI(),this.relativeTargetOrigin=rI(),rk(this.relativeTargetOrigin,this.target,e.target),nv(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nV&&nN.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rz(this.parent.latestValues)||rW(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===R.uv.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;nv(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,n=!1){let i,o;let s=r.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=r[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rX(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,rH(e,o)),n&&rU(i.latestValues)&&rX(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=rI());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ny(this.prevProjectionDelta.x,this.projectionDelta.x),ny(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rT(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&nM(this.projectionDelta.x,this.prevProjectionDelta.x)&&nM(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nV&&nN.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=rN(),this.projectionDelta=rN(),this.projectionDeltaWithTransform=rN()}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},s=rN();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=rI(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(n2));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(n1(s.x,e.x,n),n1(s.y,e.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p;rk(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,n5(f.x,p.x,a.x,n),n5(f.y,p.y,a.y,n),r&&(u=this.relativeTarget,h=r,nT(u.x,h.x)&&nT(u.y,h.y))&&(this.isProjectionDirty=!1),r||(r=rI()),nv(r,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=th(0,void 0!==r.opacity?r.opacity:1,nf(n)),e.opacityExit=th(void 0!==t.opacity?t.opacity:1,0,np(n))):o&&(e.opacity=th(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<nu;i++){let o=`border${nl[i]}Radius`,s=nh(t,o),a=nh(r,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||nd(s)===nd(a)?(e[o]=Math.max(th(nc(s),nc(a),n),0),(er.test(a)||er.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||r.rotate)&&(e.rotate=th(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,R.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.Gt.update(()=>{r8.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=t2(0)?0:t0(0);return n.start(t$("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&n6(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||rI();let t=rS(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rS(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}nv(t,r),rX(t,i),rT(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nj),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&n_("z",e,n,this.animationValues);for(let t=0;t<nI.length;t++)n_(`rotate${nI[t]}`,e,n,this.animationValues),n_(`skew${nI[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nF;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=nO(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nO(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!rU(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=function(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=(null==r?void 0:r.z)||0;if((i||o||s)&&(n=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:s,skewY:a}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),o&&(n+=`rotateY(${o}deg) `),s&&(n+=`skewX(${s}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(n.transform=i(s,n.transform));let{x:a,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:n.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,nr){if(void 0===s[e])continue;let{correct:t,applyTo:r}=nr[e],i="none"===n.transform?s[e]:t(s[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?nO(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(nY),this.root.sharedNodes.clear()}}}function nU(e){e.updateLayout()}function nW(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?rF(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=rS(n);n.min=t[e].min,n.max=n.min+i}):n6(i,r.layoutBox,t)&&rF(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],s=rS(t[n]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+s)});let s=rN();rT(s,t,r.layoutBox);let a=rN();o?rT(a,e.applyTransform(n,!0),r.measuredBox):rT(a,t,r.layoutBox);let l=!nC(s),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let s=rI();rk(s,r.layoutBox,i.layoutBox);let a=rI();rk(a,t,o.layoutBox),nR(s,a)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nG(e){nV&&nN.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function n$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nH(e){e.clearSnapshot()}function nY(e){e.clearMeasurements()}function nK(e){e.isLayoutDirty=!1}function nX(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nZ(e){e.resolveTargetDelta()}function nQ(e){e.calcProjection()}function nJ(e){e.resetSkewAndRotation()}function n0(e){e.removeLeadSnapshot()}function n1(e,t,r){e.translate=th(t.translate,0,r),e.scale=th(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function n5(e,t,r,n){e.min=th(t.min,r.min,n),e.max=th(t.max,r.max,n)}function n2(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let n4={duration:.45,ease:[.4,0,.1,1]},n3=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),n9=n3("applewebkit/")&&!n3("chrome/")?Math.round:k.l;function n7(e){e.min=n9(e.min),e.max=n9(e.max)}function n6(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nk(t)-nk(r)))}function n8(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let ie=nz({attachResizeListener:(e,t)=>rc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),it={current:void 0},ir=nz({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!it.current){let e=new ie({});e.mount(window),e.setOptions({layoutScroll:!0}),it.current=e}return it.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ii(e,t){let r=t?"onHoverStart":"onHoverEnd";return rd(e.current,t?"pointerenter":"pointerleave",(n,i)=>{if("touch"===n.pointerType||rP())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);let s=o[r];s&&R.Gt.postRender(()=>s(n,i))},{passive:!e.getProps()[r]})}class io extends rn{mount(){this.unmount=tc(ii(this.node,!0),ii(this.node,!1))}unmount(){}}class is extends rn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tc(rc(this.node.current,"focus",()=>this.onFocus()),rc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let ia=(e,t)=>!!t&&(e===t||ia(e,t.parentElement));function il(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,rl(r))}class iu extends rn{constructor(){super(...arguments),this.removeStartListeners=k.l,this.removeEndListeners=k.l,this.removeAccessibleListeners=k.l,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=rd(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps(),o=i||ia(this.node.current,e.target)?r:n;o&&R.Gt.update(()=>o(e,t))},{passive:!(r.onTap||r.onPointerUp)}),i=rd(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=tc(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=rc(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=rc(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&il("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&R.Gt.postRender(()=>r(e,t))})}),il("down",(e,t)=>{this.startPress(e,t)}))}),t=rc(this.node.current,"blur",()=>{this.isPressing&&il("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=tc(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&R.Gt.postRender(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!rP()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&R.Gt.postRender(()=>r(e,t))}mount(){let e=this.node.getProps(),t=rd(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=rc(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tc(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let ic=new WeakMap,id=new WeakMap,ih=e=>{let t=ic.get(e.target);t&&t(e)},ip=e=>{e.forEach(ih)},im={some:0,all:1};class ig extends rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:im[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;id.has(r)||id.set(r,{});let n=id.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(ip,{root:e,...t})),n[i]}(t);return ic.set(e,r),n.observe(e),()=>{ic.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}var iv=r(4970);let iy=(0,r3.createContext)({});var ib=r(9572);let ix=(0,r3.createContext)({strict:!1});function iw(e){return i(e.animate)||d.some(t=>a(e[t]))}function iP(e){return!!(iw(e)||e.variants)}function iE(e){return Array.isArray(e)?e.join(" "):e}let iS={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"]},iC={};for(let e in iS)iC[e]={isEnabled:t=>iS[e].some(e=>!!t[e])};var iT=r(8806);let iA=Symbol.for("motionComponentSymbol"),iR=["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 ik(e){if("string"!=typeof e||e.includes("-"));else if(iR.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}function iM(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let ij=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function iL(e,t,r,n){for(let r in iM(e,t,void 0,n),t.attrs)e.setAttribute(ij.has(r)?r:t1(r),t.attrs[r])}function iD(e,{layout:t,layoutId:r}){return f.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!nr[e]||"opacity"===e)}function iO(e,t,r){var n;let{style:i}=e,o={};for(let s in i)(t2(i[s])||t.style&&t2(t.style[s])||iD(s,e)||(null===(n=null==r?void 0:r.getValue(s))||void 0===n?void 0:n.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function iN(e,t,r){let n=iO(e,t,r);for(let r in e)(t2(e[r])||t2(t[r]))&&(n[-1!==h.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}var iV=r(4619);let iI=e=>(t,r)=>{let n=(0,r3.useContext)(iy),o=(0,r3.useContext)(r9.t),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,s){let a={latestValues:function(e,t,r,n){let o={},s=n(e,{});for(let e in s)o[e]=nO(s[e]);let{initial:a,animate:u}=e,c=iw(e),d=iP(e);t&&d&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===u&&(u=t.animate));let h=!!r&&!1===r.initial,f=(h=h||!1===a)?u:a;if(f&&"boolean"!=typeof f&&!i(f)){let t=Array.isArray(f)?f:[f];for(let r=0;r<t.length;r++){let n=l(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let t in e)o[t]=e[t]}}}return o}(n,o,s,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,o);return r?s():(0,iV.M)(s)},iF=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),iB=()=>({...iF(),attrs:{}}),i_=(e,t)=>t&&"number"==typeof e?t.transform(e):e,iz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iU=h.length;function iW(e,t,r){let{style:n,vars:i,transformOrigin:o}=e,s=!1,a=!1;for(let e in t){let r=t[e];if(f.has(e)){s=!0;continue}if($(e)){i[e]=r;continue}{let t=i_(r,eK[e]);e.startsWith("origin")?(a=!0,o[e]=t):n[e]=t}}if(!t.transform&&(s||r?n.transform=function(e,t,r){let n="",i=!0;for(let o=0;o<iU;o++){let s=h[o],a=e[s];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a))||r){let e=i_(a,eK[s]);if(!l){i=!1;let t=iz[s]||s;n+=`${t}(${e}) `}r&&(t[s]=e)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:r=0}=o;n.transformOrigin=`${e} ${t} ${r}`}}function iG(e,t,r){return"string"==typeof e?e:en.transform(t+r*e)}let i$={offset:"stroke-dashoffset",array:"stroke-dasharray"},iH={offset:"strokeDashoffset",array:"strokeDasharray"};function iY(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(iW(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:f,dimensions:p}=e;h.transform&&(p&&(f.transform=h.transform),delete h.transform),p&&(void 0!==i||void 0!==o||f.transform)&&(f.transformOrigin=function(e,t,r){let n=iG(t,e.x,e.width),i=iG(r,e.y,e.height);return`${n} ${i}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(h.x=t),void 0!==r&&(h.y=r),void 0!==n&&(h.scale=n),void 0!==s&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?i$:iH;e[o.offset]=en.transform(-n);let s=en.transform(t),a=en.transform(r);e[o.array]=`${s} ${a}`}(h,s,a,l,!1)}let iK=e=>"string"==typeof e&&"svg"===e.toLowerCase(),iX={useVisualState:iI({scrapeMotionValuesFromProps:iN,createRenderState:iB,onMount:(e,t,{renderState:r,latestValues:n})=>{R.Gt.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),R.Gt.render(()=>{iY(r,n,iK(t.tagName),e.transformTemplate),iL(t,r)})}})},iq={useVisualState:iI({scrapeMotionValuesFromProps:iO,createRenderState:iF})};function iZ(e,t,r){for(let n in t)t2(t[n])||iD(n,r)||(e[n]=t[n])}let iQ=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 iJ(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iQ.has(e)}let i0=e=>!iJ(e);try{!function(e){e&&(i0=t=>t.startsWith("on")?!iJ(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}let i1={current:null},i5={current:!1},i2=new WeakMap,i4=[...em,eD,eU],i3=e=>i4.find(ep(e)),i9=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class i7{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eP,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 e=e5.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,R.Gt.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=iw(t),this.isVariantNode=iP(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==a[e]&&t2(t)&&t.set(a[e],!1)}}mount(e){this.current=e,i2.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),i5.current||function(){if(i5.current=!0,iT.B){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i1.current=e.matches;e.addListener(t),t()}else i1.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i1.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in i2.delete(this.current),this.projection&&this.projection.unmount(),(0,R.WG)(this.notifyUpdate),(0,R.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=f.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&R.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in iC){let t=iC[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rI()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<i9.length;t++){let r=i9[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],o=r[n];if(t2(i))e.addValue(n,i);else if(t2(o))e.addValue(n,t0(i,{owner:e}));else if(o!==i){if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,t0(void 0!==t?t:i,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=t0(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(W(n)||z(n))?n=parseFloat(n):!i3(n)&&eU.test(t)&&(n=eZ(e,t)),this.setBaseTarget(e,t2(n)?n.get():n)),t2(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=l(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||t2(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new tq),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class i6 extends i7{constructor(){super(...arguments),this.KeyframeResolver=eJ}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}}class i8 extends i6{constructor(){super(...arguments),this.type="html",this.renderInstance=iM}readValueFromInstance(e,t){if(f.has(t)){let e=eq(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=($(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rq(e,t)}build(e,t,r){iW(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return iO(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;t2(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class oe extends i6{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rI}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(f.has(t)){let e=eq(t);return e&&e.default||0}return t=ij.has(t)?t:t1(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return iN(e,t,r)}build(e,t,r){iY(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){iL(e,t,r,n)}mount(e){this.isSVGTag=iK(e.tagName),super.mount(e)}}let ot=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(r,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}((P={animation:{Feature:ri},exit:{Feature:rs},inView:{Feature:ig},tap:{Feature:iu},focus:{Feature:is},hover:{Feature:io},pan:{Feature:r2},drag:{Feature:r1,ProjectionNode:ir,MeasureLayout:ns},layout:{ProjectionNode:ir,MeasureLayout:ns}},E=(e,t)=>ik(e)?new oe(t):new i8(t,{allowProjection:e!==r3.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){let{preloadedFeatures:t,createVisualElement:r,useRender:n,useVisualState:i,Component:o}=e;t&&function(e){for(let t in e)iC[t]={...iC[t],...e[t]}}(t);let s=(0,r3.forwardRef)(function(e,t){var s;let l;let u={...(0,r3.useContext)(iv.Q),...e,layoutId:function(e){let{layoutId:t}=e,r=(0,r3.useContext)(r7.L).id;return r&&void 0!==t?r+"-"+t:t}(e)},{isStatic:c}=u,d=function(e){let{initial:t,animate:r}=function(e,t){if(iw(e)){let{initial:t,animate:r}=e;return{initial:!1===t||a(t)?t:void 0,animate:a(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,r3.useContext)(iy));return(0,r3.useMemo)(()=>({initial:t,animate:r}),[iE(t),iE(r)])}(e),h=i(e,c);if(!c&&iT.B){(0,r3.useContext)(ix).strict;let e=function(e){let{drag:t,layout:r}=iC;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);l=e.MeasureLayout,d.visualElement=function(e,t,r,n,i){var o,s;let{visualElement:a}=(0,r3.useContext)(iy),l=(0,r3.useContext)(ix),u=(0,r3.useContext)(r9.t),c=(0,r3.useContext)(iv.Q).reducedMotion,d=(0,r3.useRef)(void 0);n=n||l.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:a,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let h=d.current,f=(0,r3.useContext)(r6);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(e,t,r,n){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&rE(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,r,i,f);let p=(0,r3.useRef)(!1);(0,r3.useInsertionEffect)(()=>{h&&p.current&&h.update(r,u)});let m=r[t5],g=(0,r3.useRef)(!!m&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,m))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,m)));return(0,ib.E)(()=>{h&&(p.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),nn.render(h.render),g.current&&h.animationState&&h.animationState.animateChanges())}),(0,r3.useEffect)(()=>{h&&(!g.current&&h.animationState&&h.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,m)}),g.current=!1))}),h}(o,h,u,r,e.ProjectionNode)}return(0,r4.jsxs)(iy.Provider,{value:d,children:[l&&d.visualElement?(0,r4.jsx)(l,{visualElement:d.visualElement,...u}):null,n(o,e,(s=d.visualElement,(0,r3.useCallback)(e=>{e&&h.mount&&h.mount(e),s&&(e?s.mount(e):s.unmount()),t&&("function"==typeof t?t(e):rE(t)&&(t.current=e))},[s])),h,c,d.visualElement)]})});return s[iA]=o,s}({...ik(e)?iX:iq,preloadedFeatures:P,useRender:function(e=!1){return(t,r,n,{latestValues:i},o)=>{let s=(ik(t)?function(e,t,r,n){let i=(0,r3.useMemo)(()=>{let r=iB();return iY(r,t,iK(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};iZ(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r={},n=function(e,t){let r=e.style||{},n={};return iZ(n,r,e),Object.assign(n,function({transformTemplate:e},t){return(0,r3.useMemo)(()=>{let r=iF();return iW(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r})(r,i,o,t),a=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(i0(i)||!0===r&&iJ(i)||!t&&!iJ(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),l=t!==r3.Fragment?{...a,...s,ref:n}:{},{children:u}=r,c=(0,r3.useMemo)(()=>t2(u)?u.get():u,[u]);return(0,r3.createElement)(t,{...l,children:c})}}(t),createVisualElement:E,Component:e})}))},4242:(e,t,r)=>{r.d(t,{W:()=>n});let n={skipAnimations:!1,useManualTiming:!1}},2408:(e,t,r)=>{r.d(t,{$:()=>i,V:()=>o});var n=r(2981);let i=n.l,o=n.l},8806:(e,t,r)=>{r.d(t,{B:()=>n});let n="undefined"!=typeof window},2981:(e,t,r)=>{r.d(t,{l:()=>n});let n=e=>e},4619:(e,t,r)=>{r.d(t,{M:()=>i});var n=r(5569);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},9572:(e,t,r)=>{r.d(t,{E:()=>i});var n=r(5569);let i=r(8806).B?n.useLayoutEffect:n.useEffect},1613:(e,t,r)=>{r.d(t,{l$:()=>P,oR:()=>v});var n=r(5569),i=r(9748),o=e=>{switch(e){case"success":return l;case"info":return c;case"warning":return u;case"error":return d;default:return null}},s=Array(12).fill(0),a=e=>{let{visible:t,className:r}=e;return n.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":t},n.createElement("div",{className:"sonner-spinner"},s.map((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},l=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.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"})),u=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},n.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"})),c=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.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"})),d=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.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"})),h=n.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"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),f=()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e},p=1,m=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:p++,o=this.toasts.find(e=>e.id===i),s=void 0===e.dismissible||e.dismissible;return o?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:r}),{...t,...e,id:i,dismissible:s,title:r}):t):this.addToast({title:r,...n,dismissible:s,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r;if(!t)return;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let i=e instanceof Promise?e:e(),o=void 0!==r,s,a=i.then(async e=>{if(s=["resolve",e],n.isValidElement(e))o=!1,this.create({id:r,type:"default",message:e});else if(g(e)&&!e.ok){o=!1;let n="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,i="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description;this.create({id:r,type:"error",message:n,description:i})}else if(void 0!==t.success){o=!1;let n="function"==typeof t.success?await t.success(e):t.success,i="function"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:"success",message:n,description:i})}}).catch(async e=>{if(s=["reject",e],void 0!==t.error){o=!1;let n="function"==typeof t.error?await t.error(e):t.error,i="function"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:"error",message:n,description:i})}}).finally(()=>{var e;o&&(this.dismiss(r),r=void 0),null==(e=t.finally)||e.call(t)}),l=()=>new Promise((e,t)=>a.then(()=>"reject"===s[0]?t(s[1]):e(s[1])).catch(t));return"string"!=typeof r&&"number"!=typeof r?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||p++;return this.create({jsx:e(r),id:r,...t}),r},this.subscribers=[],this.toasts=[]}},g=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,v=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||p++;return m.addToast({title:e,...t,id:r}),r},{success:m.success,info:m.info,warning:m.warning,error:m.error,custom:m.custom,message:m.message,promise:m.promise,dismiss:m.dismiss,loading:m.loading},{getHistory:()=>m.toasts});function y(e){return void 0!==e.label}function b(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}!function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"undefined"==typeof document)return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px));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:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--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-rich-colors=true][data-sonner-toast][data-type=success],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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%)}\n');var x=e=>{var t,r,i,s,l,u,c,d,p,m,g;let{invert:v,toast:b,unstyled:x,interacting:w,setHeights:P,visibleToasts:E,heights:S,index:C,toasts:T,expanded:A,removeToast:R,defaultRichColors:k,closeButton:M,style:j,cancelButtonStyle:L,actionButtonStyle:D,className:O="",descriptionClassName:N="",duration:V,position:I,gap:F,loadingIcon:B,expandByDefault:_,classNames:z,icons:U,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:G,cn:$}=e,[H,Y]=n.useState(!1),[K,X]=n.useState(!1),[q,Z]=n.useState(!1),[Q,J]=n.useState(!1),[ee,et]=n.useState(!1),[er,en]=n.useState(0),[ei,eo]=n.useState(0),es=n.useRef(b.duration||V||4e3),ea=n.useRef(null),el=n.useRef(null),eu=0===C,ec=C+1<=E,ed=b.type,eh=!1!==b.dismissible,ef=b.className||"",ep=b.descriptionClassName||"",em=n.useMemo(()=>S.findIndex(e=>e.toastId===b.id)||0,[S,b.id]),eg=n.useMemo(()=>{var e;return null!=(e=b.closeButton)?e:M},[b.closeButton,M]),ev=(n.useMemo(()=>b.duration||V||4e3,[b.duration,V]),n.useRef(0)),ey=n.useRef(0),eb=n.useRef(0),ex=n.useRef(null),[ew,eP]=I.split("-"),eE=n.useMemo(()=>S.reduce((e,t,r)=>r>=em?e:e+t.height,0),[S,em]),eS=f(),eC=b.invert||v,eT="loading"===ed;ey.current=n.useMemo(()=>em*F+eE,[em,eE]),n.useEffect(()=>{Y(!0)},[]),n.useEffect(()=>{let e=el.current;if(e){let t=e.getBoundingClientRect().height;return eo(t),P(e=>[{toastId:b.id,height:t,position:b.position},...e]),()=>P(e=>e.filter(e=>e.toastId!==b.id))}},[P,b.id]),n.useLayoutEffect(()=>{if(!H)return;let e=el.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,eo(r),P(e=>e.find(e=>e.toastId===b.id)?e.map(e=>e.toastId===b.id?{...e,height:r}:e):[{toastId:b.id,height:r,position:b.position},...e])},[H,b.title,b.description,P,b.id]);let eA=n.useCallback(()=>{X(!0),en(ey.current),P(e=>e.filter(e=>e.toastId!==b.id)),setTimeout(()=>{R(b)},200)},[b,R,P,ey]);return n.useEffect(()=>{let e;if((!b.promise||"loading"!==ed)&&b.duration!==1/0&&"loading"!==b.type)return A||w||G&&eS?(()=>{if(eb.current<ev.current){let e=new Date().getTime()-ev.current;es.current=es.current-e}eb.current=new Date().getTime()})():es.current!==1/0&&(ev.current=new Date().getTime(),e=setTimeout(()=>{var e;null==(e=b.onAutoClose)||e.call(b,b),eA()},es.current)),()=>clearTimeout(e)},[A,w,b,ed,G,eS,eA]),n.useEffect(()=>{b.delete&&eA()},[eA,b.delete]),n.createElement("li",{tabIndex:0,ref:el,className:$(O,ef,null==z?void 0:z.toast,null==(t=null==b?void 0:b.classNames)?void 0:t.toast,null==z?void 0:z.default,null==z?void 0:z[ed],null==(r=null==b?void 0:b.classNames)?void 0:r[ed]),"data-sonner-toast":"","data-rich-colors":null!=(i=b.richColors)?i:k,"data-styled":!(b.jsx||b.unstyled||x),"data-mounted":H,"data-promise":!!b.promise,"data-swiped":ee,"data-removed":K,"data-visible":ec,"data-y-position":ew,"data-x-position":eP,"data-index":C,"data-front":eu,"data-swiping":q,"data-dismissible":eh,"data-type":ed,"data-invert":eC,"data-swipe-out":Q,"data-expanded":!!(A||_&&H),style:{"--index":C,"--toasts-before":C,"--z-index":T.length-C,"--offset":"".concat(K?er:ey.current,"px"),"--initial-height":_?"auto":"".concat(ei,"px"),...j,...b.style},onPointerDown:e=>{eT||!eh||(ea.current=new Date,en(ey.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Z(!0),ex.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n;if(Q||!eh)return;ex.current=null;let i=Number((null==(e=el.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),o=Math.abs(i)/(new Date().getTime()-(null==(t=ea.current)?void 0:t.getTime()));if(Math.abs(i)>=20||o>.11){en(ey.current),null==(r=b.onDismiss)||r.call(b,b),eA(),J(!0),et(!1);return}null==(n=el.current)||n.style.setProperty("--swipe-amount","0px"),Z(!1)},onPointerMove:e=>{var t,r;if(!ex.current||!eh)return;let n=e.clientY-ex.current.y,i=(null==(t=window.getSelection())?void 0:t.toString().length)>0,o="top"===ew?Math.min(0,n):Math.max(0,n);Math.abs(o)>0&&et(!0),i||null==(r=el.current)||r.style.setProperty("--swipe-amount","".concat(o,"px"))}},eg&&!b.jsx?n.createElement("button",{"aria-label":W,"data-disabled":eT,"data-close-button":!0,onClick:eT||!eh?()=>{}:()=>{var e;eA(),null==(e=b.onDismiss)||e.call(b,b)},className:$(null==z?void 0:z.closeButton,null==(s=null==b?void 0:b.classNames)?void 0:s.closeButton)},null!=(l=null==U?void 0:U.close)?l:h):null,b.jsx||n.isValidElement(b.title)?b.jsx?b.jsx:"function"==typeof b.title?b.title():b.title:n.createElement(n.Fragment,null,ed||b.icon||b.promise?n.createElement("div",{"data-icon":"",className:$(null==z?void 0:z.icon,null==(u=null==b?void 0:b.classNames)?void 0:u.icon)},b.promise||"loading"===b.type&&!b.icon?b.icon||function(){var e,t,r;return null!=U&&U.loading?n.createElement("div",{className:$(null==z?void 0:z.loader,null==(e=null==b?void 0:b.classNames)?void 0:e.loader,"sonner-loader"),"data-visible":"loading"===ed},U.loading):B?n.createElement("div",{className:$(null==z?void 0:z.loader,null==(t=null==b?void 0:b.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===ed},B):n.createElement(a,{className:$(null==z?void 0:z.loader,null==(r=null==b?void 0:b.classNames)?void 0:r.loader),visible:"loading"===ed})}():null,"loading"!==b.type?b.icon||(null==U?void 0:U[ed])||o(ed):null):null,n.createElement("div",{"data-content":"",className:$(null==z?void 0:z.content,null==(c=null==b?void 0:b.classNames)?void 0:c.content)},n.createElement("div",{"data-title":"",className:$(null==z?void 0:z.title,null==(d=null==b?void 0:b.classNames)?void 0:d.title)},"function"==typeof b.title?b.title():b.title),b.description?n.createElement("div",{"data-description":"",className:$(N,ep,null==z?void 0:z.description,null==(p=null==b?void 0:b.classNames)?void 0:p.description)},"function"==typeof b.description?b.description():b.description):null),n.isValidElement(b.cancel)?b.cancel:b.cancel&&y(b.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:b.cancelButtonStyle||L,onClick:e=>{var t,r;y(b.cancel)&&eh&&(null==(r=(t=b.cancel).onClick)||r.call(t,e),eA())},className:$(null==z?void 0:z.cancelButton,null==(m=null==b?void 0:b.classNames)?void 0:m.cancelButton)},b.cancel.label):null,n.isValidElement(b.action)?b.action:b.action&&y(b.action)?n.createElement("button",{"data-button":!0,"data-action":!0,style:b.actionButtonStyle||D,onClick:e=>{var t,r;y(b.action)&&(null==(r=(t=b.action).onClick)||r.call(t,e),e.defaultPrevented||eA())},className:$(null==z?void 0:z.actionButton,null==(g=null==b?void 0:b.classNames)?void 0:g.actionButton)},b.action.label):null))};function w(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var P=(0,n.forwardRef)(function(e,t){let{invert:r,position:o="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:u,offset:c,theme:d="light",richColors:h,duration:f,style:p,visibleToasts:g=3,toastOptions:v,dir:y=w(),gap:P=14,loadingIcon:E,icons:S,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:T,cn:A=b}=e,[R,k]=n.useState([]),M=n.useMemo(()=>Array.from(new Set([o].concat(R.filter(e=>e.position).map(e=>e.position)))),[R,o]),[j,L]=n.useState([]),[D,O]=n.useState(!1),[N,V]=n.useState(!1),[I,F]=n.useState("system"!==d?d:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=n.useRef(null),_=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=n.useRef(null),U=n.useRef(!1),W=n.useCallback(e=>{k(t=>{var r;return null!=(r=t.find(t=>t.id===e.id))&&r.delete||m.dismiss(e.id),t.filter(t=>{let{id:r}=t;return r!==e.id})})},[]);return n.useEffect(()=>m.subscribe(e=>{if(e.dismiss){k(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{i.flushSync(()=>{k(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[]),n.useEffect(()=>{if("system"!==d){F(d);return}if("system"===d&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;F(t?"dark":"light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{F(t?"dark":"light")}catch(e){console.error(e)}})}},[d]),n.useEffect(()=>{R.length<=1&&O(!1)},[R]),n.useEffect(()=>{let e=e=>{var t,r;s.every(t=>e[t]||e.code===t)&&(O(!0),null==(t=B.current)||t.focus()),"Escape"===e.code&&(document.activeElement===B.current||null!=(r=B.current)&&r.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),n.useEffect(()=>{if(B.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,U.current=!1)}},[B.current]),n.createElement("section",{"aria-label":"".concat(C," ").concat(_),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},M.map((e,t)=>{var i;let[o,s]=e.split("-");return R.length?n.createElement("ol",{key:e,dir:"auto"===y?w():y,tabIndex:-1,ref:B,className:u,"data-sonner-toaster":!0,"data-theme":I,"data-y-position":o,"data-lifted":D&&R.length>1&&!a,"data-x-position":s,style:{"--front-toast-height":"".concat((null==(i=j[0])?void 0:i.height)||0,"px"),"--offset":"number"==typeof c?"".concat(c,"px"):c||"32px","--width":"".concat(356,"px"),"--gap":"".concat(P,"px"),...p},onBlur:e=>{U.current&&!e.currentTarget.contains(e.relatedTarget)&&(U.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||U.current||(U.current=!0,z.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{N||O(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||V(!0)},onPointerUp:()=>V(!1)},R.filter(r=>!r.position&&0===t||r.position===e).map((t,i)=>{var o,s;return n.createElement(x,{key:t.id,icons:S,index:i,toast:t,defaultRichColors:h,duration:null!=(o=null==v?void 0:v.duration)?o:f,className:null==v?void 0:v.className,descriptionClassName:null==v?void 0:v.descriptionClassName,invert:r,visibleToasts:g,closeButton:null!=(s=null==v?void 0:v.closeButton)?s:l,interacting:N,position:e,style:null==v?void 0:v.style,unstyled:null==v?void 0:v.unstyled,classNames:null==v?void 0:v.classNames,cancelButtonStyle:null==v?void 0:v.cancelButtonStyle,actionButtonStyle:null==v?void 0:v.actionButtonStyle,removeToast:W,toasts:R.filter(e=>e.position==t.position),heights:j.filter(e=>e.position==t.position),setHeights:L,expandByDefault:a,gap:P,loadingIcon:E,expanded:D,pauseWhenPageIsHidden:T,cn:A})})):null}))})},1945:(e,t,r)=>{r.d(t,{QP:()=>N});let n=/^\[(.+)\]$/;function i(e,t){let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}let o=/\s+/;function s(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=function e(t){let r;if("string"==typeof t)return t;let n="";for(let i=0;i<t.length;i++)t[i]&&(r=e(t[i]))&&(n&&(n+=" "),n+=r);return n}(e))&&(n&&(n+=" "),n+=t);return n}function a(e){let t=t=>t[e]||[];return t.isThemeGetter=!0,t}let l=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,c=new Set(["px","full","screen"]),d=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,f=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,p=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function m(e){return v(e)||c.has(e)||u.test(e)}function g(e){return M(e,"length",j)}function v(e){return!!e&&!Number.isNaN(Number(e))}function y(e){return M(e,"number",v)}function b(e){return!!e&&Number.isInteger(Number(e))}function x(e){return e.endsWith("%")&&v(e.slice(0,-1))}function w(e){return l.test(e)}function P(e){return d.test(e)}let E=new Set(["length","size","percentage"]);function S(e){return M(e,E,L)}function C(e){return M(e,"position",L)}let T=new Set(["image","url"]);function A(e){return M(e,T,O)}function R(e){return M(e,"",D)}function k(){return!0}function M(e,t,r){let n=l.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))}function j(e){return h.test(e)}function L(){return!1}function D(e){return f.test(e)}function O(e){return p.test(e)}Symbol.toStringTag;let N=function(e,...t){let r,a,l;let u=function(o){var s;return a=(r={cache:function(e){if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map;function i(i,o){r.set(i,o),++t>e&&(t=0,n=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):i(e,t)}}}((s=t.reduce((e,t)=>t(e),e())).cacheSize),splitModifiers:function(e){let t=e.separator,r=1===t.length,n=t[0],i=t.length;return function(e){let o;let s=[],a=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===a){if(c===n&&(r||e.slice(u,u+i)===t)){s.push(e.slice(l,u)),l=u+i;continue}if("/"===c){o=u;continue}}"["===c?a++:"]"===c&&a--}let u=0===s.length?e:e.substring(l),c=u.startsWith("!"),d=c?u.substring(1):u;return{modifiers:s,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}(s),...function(e){let t=function(e){var t;let{theme:r,prefix:n}=e,o={nextPart:new Map,validators:[]};return(t=Object.entries(e.classGroups),n?t.map(([e,t])=>[e,t.map(e=>"string"==typeof e?n+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[n+e,t])):e)]):t).forEach(([e,t])=>{(function e(t,r,n,o){t.forEach(t=>{if("string"==typeof t){(""===t?r:i(r,t)).classGroupId=n;return}if("function"==typeof t){if(t.isThemeGetter){e(t(o),r,n,o);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(([t,s])=>{e(s,i(r,t),n,o)})})})(t,o,e,r)}),o}(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),function e(t,r){if(0===t.length)return r.classGroupId;let n=t[0],i=r.nextPart.get(n),o=i?e(t.slice(1),i):void 0;if(o)return o;if(0===r.validators.length)return;let s=t.join("-");return r.validators.find(({validator:e})=>e(s))?.classGroupId}(r,t)||function(e){if(n.test(e)){let t=n.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){let n=r[e]||[];return t&&o[e]?[...n,...o[e]]:n}}}(s)}).cache.get,l=r.cache.set,u=c,c(o)};function c(e){let t=a(e);if(t)return t;let n=function(e,t){let{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,s=new Set;return e.trim().split(o).map(e=>{let{modifiers:t,hasImportantModifier:i,baseClassName:o,maybePostfixModifierPosition:s}=r(e),a=n(s?o.substring(0,s):o),l=!!s;if(!a){if(!s||!(a=n(o)))return{isTailwindClass:!1,originalClassName:e};l=!1}let u=(function(e){if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t})(t).join(":");return{isTailwindClass:!0,modifierId:i?u+"!":u,classGroupId:a,originalClassName:e,hasPostfixModifier:l}}).reverse().filter(e=>{if(!e.isTailwindClass)return!0;let{modifierId:t,classGroupId:r,hasPostfixModifier:n}=e,o=t+r;return!s.has(o)&&(s.add(o),i(r,n).forEach(e=>s.add(t+e)),!0)}).reverse().map(e=>e.originalClassName).join(" ")}(e,r);return l(e,n),n}return function(){return u(s.apply(null,arguments))}}(function(){let e=a("colors"),t=a("spacing"),r=a("blur"),n=a("brightness"),i=a("borderColor"),o=a("borderRadius"),s=a("borderSpacing"),l=a("borderWidth"),u=a("contrast"),c=a("grayscale"),d=a("hueRotate"),h=a("invert"),f=a("gap"),p=a("gradientColorStops"),E=a("gradientColorStopPositions"),T=a("inset"),M=a("margin"),j=a("opacity"),L=a("padding"),D=a("saturate"),O=a("scale"),N=a("sepia"),V=a("skew"),I=a("space"),F=a("translate"),B=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",w,t],U=()=>[w,t],W=()=>["",m,g],G=()=>["auto",v,w],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],K=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",w],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[v,y],Q=()=>[v,w];return{cacheSize:500,separator:":",theme:{colors:[k],spacing:[m,g],blur:["none","",P,w],brightness:Z(),borderColor:[e],borderRadius:["none","","full",P,w],borderSpacing:U(),borderWidth:W(),contrast:Z(),grayscale:X(),hueRotate:Q(),invert:X(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[x,g],inset:z(),margin:z(),opacity:Z(),padding:U(),saturate:Z(),scale:Z(),sepia:X(),skew:Q(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",w]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$(),w]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",b,w]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",w]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",b,w]}],"grid-cols":[{"grid-cols":[k]}],"col-start-end":[{col:["auto",{span:["full",b,w]},w]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[k]}],"row-start-end":[{row:["auto",{span:[b,w]},w]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",w]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",w]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",w,t]}],"min-w":[{"min-w":[w,t,"min","max","fit"]}],"max-w":[{"max-w":[w,t,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[w,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[w,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[w,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[w,t,"auto","min","max","fit"]}],"font-size":[{text:["base",P,g]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",y]}],"font-family":[{font:[k]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",w]}],"line-clamp":[{"line-clamp":["none",v,y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",m,w]}],"list-image":[{"list-image":["none",w]}],"list-style-type":[{list:["none","disc","decimal",w]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",m,g]}],"underline-offset":[{"underline-offset":["auto",m,w]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",w]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),C]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",S]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},A]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:H()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[m,w]}],"outline-w":[{outline:[m,g]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[m,g]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,R]}],"shadow-color":[{shadow:[k]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":Y()}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",P,w]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[D]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",w]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",w]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",w]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[b,w]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",w]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",w]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",w]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[m,g,y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]);
|