firebase-os 1.1.0 → 1.1.3

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.
@@ -1,4 +1,4 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=e=>a.call(e,`module.exports`)?e[`module.exports`]:c(t({},`__esModule`,{value:!0}),e);const d=require(`./theme.config-DJqqr_kx.cjs`),f=require(`./contactForm.config-Y2AYSH9s.cjs`),p=require(`./supportForm.config-NfLDtLTB.cjs`);let m=require(`react`);m=l(m,1);let h=require(`firebase/firestore`),g=require(`firebase/app`),_=require(`firebase/auth`),v=require(`firebase/storage`),y=require(`react/jsx-runtime`),b=require(`react-router-dom`),x=require(`react-dom`);var S=null,C=null,w=null,T=null;function E(e){S=(0,g.getApps)().length?(0,g.getApp)():(0,g.initializeApp)(e),C=(0,_.getAuth)(S),w=(0,h.getFirestore)(S),T=(0,v.getStorage)(S)}function D(e){try{return{BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_ADMIN_EMAILS:void 0,VITE_FIREBASE_API_KEY:void 0,VITE_FIREBASE_APP_ID:void 0,VITE_FIREBASE_AUTH_DOMAIN:void 0,VITE_FIREBASE_MESSAGING_SENDER_ID:void 0,VITE_FIREBASE_PROJECT_ID:void 0,VITE_FIREBASE_STORAGE_BUCKET:void 0}?.[e]||``}catch{return``}}var O=[`VITE_FIREBASE_API_KEY`,`VITE_FIREBASE_AUTH_DOMAIN`,`VITE_FIREBASE_PROJECT_ID`,`VITE_FIREBASE_STORAGE_BUCKET`,`VITE_FIREBASE_MESSAGING_SENDER_ID`,`VITE_FIREBASE_APP_ID`],k={VITE_FIREBASE_API_KEY:`apiKey`,VITE_FIREBASE_AUTH_DOMAIN:`authDomain`,VITE_FIREBASE_PROJECT_ID:`projectId`,VITE_FIREBASE_STORAGE_BUCKET:`storageBucket`,VITE_FIREBASE_MESSAGING_SENDER_ID:`messagingSenderId`,VITE_FIREBASE_APP_ID:`appId`};function A(){let e={};for(let t of O){let n=D(t);if(!n)return null;e[k[t]]=n}return e}function j(){try{let e=localStorage.getItem(`firebase_config`);if(e){let t=JSON.parse(e);if(t.apiKey)return t}}catch{}return null}var M=A();if(M&&!(0,g.getApps)().length)E(M);else{let e=j();e&&!(0,g.getApps)().length&&E(e)}function N(e,t){if(typeof t!=`object`||!t)return t;let n={...e};for(let r of Object.keys(t))t[r]instanceof Object&&r in e&&e[r]instanceof Object&&!Array.isArray(t[r])?n[r]=N(e[r],t[r]):n[r]=t[r];return n}var P=(0,m.createContext)(void 0);function F({children:e}){let[t,n]=(0,m.useState)(()=>localStorage.getItem(`theme-mode`)||d.t.defaultTheme),[r,i]=(0,m.useState)(`dark`),[a,o]=(0,m.useState)(()=>{try{let e=localStorage.getItem(`theme_config_cache`);if(e)return JSON.parse(e)}catch{}return d.t}),[s,c]=(0,m.useState)(()=>!!localStorage.getItem(`theme_config_cache`));return(0,m.useEffect)(()=>{if(!w){o(d.t),c(!0);return}let e=(0,h.onSnapshot)((0,h.doc)(w,`sys_configs`,`theme`),e=>{if(e.exists()){let t=e.data();delete t.fontStyles,delete t.fontCustomization;let r=N(d.t,t);o(r),localStorage.setItem(`theme_config_cache`,JSON.stringify(r));let i=localStorage.getItem(`last-seen-default-theme`);r.defaultTheme&&r.defaultTheme!==i&&(localStorage.setItem(`last-seen-default-theme`,r.defaultTheme),n(r.defaultTheme))}else o(d.t),localStorage.setItem(`theme_config_cache`,JSON.stringify(d.t));c(!0)});return()=>e()},[]),(0,m.useEffect)(()=>{let e=e=>{t===`system`&&i(e.matches?`light`:`dark`)},n=window.matchMedia(`(prefers-color-scheme: light)`);return t===`system`?(i(n.matches?`light`:`dark`),n.addEventListener(`change`,e)):i(t),()=>n.removeEventListener(`change`,e)},[t]),(0,m.useEffect)(()=>{let e=document.querySelector(`.firebase-os`)||document.documentElement,n=r===`dark`?a.colors.dark:a.colors.light;e.style.setProperty(`--bg-color`,n.background),n.backgroundSecondary&&e.style.setProperty(`--bg-secondary-color`,n.backgroundSecondary),e.style.setProperty(`--fg-color`,n.foreground),e.style.setProperty(`--accent-color`,n.accent),e.style.setProperty(`--panel-bg`,n.panelBg),e.style.setProperty(`--panel-border`,n.panelBorder);let i=e=>!e||e.length===0?`transparent`:e.length===1?e[0]:`linear-gradient(135deg, ${e.map((t,n)=>`${t} ${Math.round(n/(e.length-1)*100)}%`).join(`, `)})`;e.style.setProperty(`--button-bg`,i(n.buttonGradient)),e.style.setProperty(`--button-fg`,n.buttonText||`#ffffff`),e.style.setProperty(`--button-hover-bg`,i(n.buttonHoverGradient||n.buttonGradient)),e.style.setProperty(`--text-gradient`,i(n.textGradient)),e.style.setProperty(`--glow-color`,n.glowColor||`rgba(124, 58, 237, 0.3)`),e.style.setProperty(`--notification-icon-color`,n.notificationIconColor||n.accent),e.style.setProperty(`--btn-sec-bg`,n.secondaryButton?.bg||`rgba(255, 255, 255, 0.05)`),e.style.setProperty(`--btn-sec-border`,n.secondaryButton?.border||`transparent`),e.style.setProperty(`--btn-sec-text`,n.secondaryButton?.text||n.foreground),e.style.setProperty(`--selection-bg`,n.selectionBg||`color-mix(in srgb, var(--accent-color) 40%, transparent)`),e.style.setProperty(`--selection-text`,n.selectionText||`#ffffff`),e.setAttribute(`data-theme`,r),localStorage.setItem(`theme-mode`,t),a.cornerRounding===`custom`&&a.cornerRadii?(e.style.setProperty(`--btn-radius`,`${parseFloat(String(a.cornerRadii.buttonRadius))||0}rem`),e.style.setProperty(`--card-radius`,`${parseFloat(String(a.cornerRadii.cardRadius))||0}rem`),e.style.setProperty(`--input-radius`,`${parseFloat(String(a.cornerRadii.inputRadius))||0}rem`),e.style.setProperty(`--modal-radius`,`${parseFloat(String(a.cornerRadii.modalRadius))||0}rem`)):(e.style.setProperty(`--btn-radius`,`0.75rem`),e.style.setProperty(`--card-radius`,`1.5rem`),e.style.setProperty(`--input-radius`,`0.75rem`),e.style.setProperty(`--modal-radius`,`1.5rem`)),(t=>{let n={Inter:`"Inter", sans-serif`,Outfit:`"Outfit", sans-serif`,Roboto:`"Roboto", sans-serif`,"Space Grotesk":`"Space Grotesk", sans-serif`,"Plus Jakarta Sans":`"Plus Jakarta Sans", sans-serif`,"System UI":`system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`};e.style.setProperty(`--font-family`,n[t]||n.Inter);let r=document.getElementById(`dynamic-google-font`);t===`System UI`?r&&r.remove():(r||(r=document.createElement(`link`),r.id=`dynamic-google-font`,r.rel=`stylesheet`,document.head.appendChild(r)),r.href=`https://fonts.googleapis.com/css2?family=${t.replace(/ /g,`+`)}:wght@400;500;600;700;800;900&display=swap`),e.style.fontSize=`16px`,e.style.setProperty(`--weight-h1`,`800`),e.style.setProperty(`--weight-h2`,`700`),e.style.setProperty(`--weight-h3`,`700`),e.style.setProperty(`--leading-normal`,`1.5`)})(a.fontFamily||`Inter`);let o=document.querySelector(`link[rel*='icon']`);o||(o=document.createElement(`link`),o.rel=`icon`,document.head.appendChild(o)),a.faviconUrl&&(o.href=a.faviconUrl)},[r,t,a]),(0,y.jsx)(P.Provider,{value:{theme:r,setTheme:e=>n(e),toggleTheme:()=>{n(e=>e===`light`?`dark`:`light`)},isSystem:t===`system`,setIsSystem:e=>n(e?`system`:r),config:a,activeConfig:a},children:s?e:null})}var I=()=>{let e=(0,m.useContext)(P);if(!e)throw Error(`useTheme must be used within ThemeProvider`);return e},ee=(0,m.createContext)({});function L({config:e,children:t}){return(0,y.jsx)(ee.Provider,{value:e,children:t})}var R=()=>(0,m.useContext)(ee),te=(0,m.createContext)({user:null,userRole:null,loading:!0,signOut:async()=>{},registerUser:async()=>{},refreshUser:async()=>{},userInactive:!1,roleResolved:!1,activeOrg:null,activeWorkspace:null,checkOrg:async()=>{},workspaceAccess:{},userWorkspaces:[],switchWorkspace:async()=>{},createWorkspace:async()=>{},createOrg:async()=>{}});function z({children:e}){let t=R(),[n,r]=(0,m.useState)(null),[i,a]=(0,m.useState)(null),[o,s]=(0,m.useState)(!1),[c,l]=(0,m.useState)(!0),[u,d]=(0,m.useState)(!1),f=m.default.useRef(null),p=m.default.useRef(null);return(0,m.useEffect)(()=>{let e;if(!C){l(!1),d(!0);return}let n=(0,_.onAuthStateChanged)(C,async n=>{if(n?.uid===p.current&&u){r(n);return}if(p.current=n?.uid||null,n){console.log(`[AuthContext] 1. onAuthStateChanged fired for user:`,n.uid),r(n);try{let r=(0,h.doc)(w,`user_profiles`,n.uid);await(0,h.setDoc)(r,{uid:n.uid,email:n.email,displayName:n.displayName||``,lastLoginAt:new Date().toISOString()},{merge:!0}),console.log(`[AuthContext] 2. Successfully synced user data into user_profiles.`),e&&e(),e=(0,h.onSnapshot)(r,e=>{if(e.exists()){let i=e.data(),o=i.role||`user`,c=``;try{c={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_ADMIN_EMAILS:void 0,VITE_FIREBASE_API_KEY:void 0,VITE_FIREBASE_APP_ID:void 0,VITE_FIREBASE_AUTH_DOMAIN:void 0,VITE_FIREBASE_MESSAGING_SENDER_ID:void 0,VITE_FIREBASE_PROJECT_ID:void 0,VITE_FIREBASE_STORAGE_BUCKET:void 0}?.VITE_ADMIN_EMAILS||``}catch{}let l=t.adminEmails||(c?c.split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean):[]);l.length>0&&!i.role&&l.map(e=>e.toLowerCase()).some(e=>n.email?.toLowerCase()===e)&&(console.log(`[AuthContext] Auto-assigning admin role to ${n.email}...`),o=`admin`,(0,h.updateDoc)(r,{role:`admin`}).catch(e=>{console.error(`[AuthContext] Error auto-setting admin role:`,e)})),f.current===null&&(f.current=o),a(o),s(i.inactive===!0)}d(!0),l(!1)})}catch(e){console.error(`[AuthContext] ERROR in auth resolution:`,e),d(!0),l(!1)}}else console.log(`[AuthContext] No user currently signed in.`),r(null),a(null),s(!1),d(!0),l(!1),f.current=null,e&&e()});return()=>{n(),e&&e()}},[]),(0,y.jsx)(te.Provider,{value:{user:n,userRole:i,loading:c,signOut:async()=>{await(0,_.signOut)(C),r(null)},registerUser:async(e,t,n,r)=>{let{createUserWithEmailAndPassword:i}=await import(`firebase/auth`),{user:a}=await i(C,e,t),o=`${n} ${r}`.trim();await(0,_.updateProfile)(a,{displayName:o});try{await a.getIdToken(!0),await(0,h.setDoc)((0,h.doc)(w,`user_profiles`,a.uid),{uid:a.uid,email:a.email,displayName:o,createdAt:new Date().toISOString()},{merge:!0})}catch(e){console.warn(`Could not write public profile on registration.`,e)}await(0,_.sendEmailVerification)(a)},refreshUser:async()=>{C.currentUser&&(await C.currentUser.reload(),r(Object.assign(Object.create(Object.getPrototypeOf(C.currentUser)),C.currentUser)))},userInactive:o,roleResolved:u},children:e})}var B=()=>(0,m.useContext)(te),ne=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),re=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),V=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),ie=e=>{let t=V(e);return t.charAt(0).toUpperCase()+t.slice(1)},H={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},ae=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},oe=(0,m.createContext)({}),se=()=>(0,m.useContext)(oe),ce=(0,m.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=se()??{},h=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,m.createElement)(`svg`,{ref:c,...H,width:t??l??H.width,height:t??l??H.height,stroke:e??f,strokeWidth:h,className:ne(`lucide`,p,i),...!a&&!ae(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,m.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),U=(e,t)=>{let n=(0,m.forwardRef)(({className:n,...r},i)=>(0,m.createElement)(ce,{ref:i,iconNode:t,className:ne(`lucide-${re(ie(e))}`,`lucide-${e}`,n),...r}));return n.displayName=ie(e),n},le=U(`app-window`,[[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}],[`path`,{d:`M10 4v4`,key:`pp8u80`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`path`,{d:`M6 4v4`,key:`1svtjw`}]]),ue=U(`archive-restore`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]),de=U(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),fe=U(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),pe=U(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),me=U(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),he=U(`blocks`,[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]),ge=U(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),_e=U(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),ve=U(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),ye=U(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),be=U(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),xe=U(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Se=U(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Ce=U(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),we=U(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Te=U(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Ee=U(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),De=U(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Oe=U(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),ke=U(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),Ae=U(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),je=U(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Me=U(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),Ne=U(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Pe=U(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),Fe=U(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Ie=U(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Le=U(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Re=U(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),ze=U(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Be=U(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Ve=U(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),He=U(`kanban`,[[`path`,{d:`M5 3v14`,key:`9nsxs2`}],[`path`,{d:`M12 3v8`,key:`1h2ygw`}],[`path`,{d:`M19 3v18`,key:`1sk56x`}]]),Ue=U(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),We=U(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Ge=U(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),Ke=U(`layout-list`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]),qe=U(`layout-template`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]),Je=U(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),W=U(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Ye=U(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),eee=U(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),Xe=U(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),Ze=U(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),tee=U(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),Qe=U(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),$e=U(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),et=U(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),tt=U(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),nt=U(`rectangle-ellipsis`,[[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M17 12h.01`,key:`1m0b6t`}],[`path`,{d:`M7 12h.01`,key:`eqddd0`}]]),rt=U(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),nee=U(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),it=U(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),at=U(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),ot=U(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),ree=U(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),st=U(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),ct=U(`trash`,[[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),lt=U(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),ut=U(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),dt=U(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),iee=U(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),ft=U(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),aee=U(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),pt=(0,m.createContext)({});function mt(e){let t=(0,m.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ht=typeof window<`u`?m.useLayoutEffect:m.useEffect,gt=(0,m.createContext)(null);function _t(e,t){e.indexOf(t)===-1&&e.push(t)}function vt(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var yt=(e,t,n)=>n>t?t:n<e?e:n;function bt(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var xt=()=>{},St=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(xt=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(bt(t,n))},St=(e,t,n)=>{if(!e)throw Error(bt(t,n))});var Ct={},wt=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Tt(e){return typeof e==`object`&&!!e}var Et=e=>/^0[^.\s]+$/u.test(e);function Dt(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ot=e=>e,oee=(e,t)=>n=>t(e(n)),kt=(...e)=>e.reduce(oee),At=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},jt=class{constructor(){this.subscriptions=[]}add(e){return _t(this.subscriptions,e),()=>vt(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Mt=e=>e*1e3,Nt=e=>e/1e3;function Pt(e,t){return t?1e3/t*e:0}var Ft=new Set;function It(e,t,n){e||Ft.has(t)||(console.warn(bt(t,n)),Ft.add(t))}var Lt=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,see=1e-7,cee=12;function lee(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Lt(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>see&&++s<cee);return o}function Rt(e,t,n,r){if(e===t&&n===r)return Ot;let i=t=>lee(t,0,1,e,n);return e=>e===0||e===1?e:Lt(i(e),t,r)}var zt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bt=e=>t=>1-e(1-t),Vt=Rt(.33,1.53,.69,.99),Ht=Bt(Vt),Ut=zt(Ht),Wt=e=>e>=1?1:(e*=2)<1?.5*Ht(e):.5*(2-2**(-10*(e-1))),Gt=e=>1-Math.sin(Math.acos(e)),Kt=Bt(Gt),uee=zt(Gt),dee=Rt(.42,0,1,1),fee=Rt(0,0,.58,1),pee=Rt(.42,0,.58,1),mee=e=>Array.isArray(e)&&typeof e[0]!=`number`,hee=e=>Array.isArray(e)&&typeof e[0]==`number`,gee={linear:Ot,easeIn:dee,easeInOut:pee,easeOut:fee,circIn:Gt,circInOut:uee,circOut:Kt,backIn:Ht,backInOut:Ut,backOut:Vt,anticipate:Wt},_ee=e=>typeof e==`string`,vee=e=>{if(hee(e)){St(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Rt(t,n,r,i)}else if(_ee(e))return St(gee[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),gee[e];return e},qt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Jt={value:null,addProjectionMetrics:null};function yee(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Jt.value&&Jt.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var bee=40;function Yt(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=qt.reduce((e,n)=>(e[n]=yee(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Ct.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,bee),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:qt.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<qt.length;t++)o[qt[t]].cancel(e)},state:i,steps:o}}var{schedule:Xt,cancel:Zt,state:Qt,steps:$t}=Yt(typeof requestAnimationFrame<`u`?requestAnimationFrame:Ot,!0),en;function xee(){en=void 0}var tn={now:()=>(en===void 0&&tn.set(Qt.isProcessing||Ct.useManualTiming?Qt.timestamp:performance.now()),en),set:e=>{en=e,queueMicrotask(xee)}},nn={layout:0,mainThread:0,waapi:0},rn=e=>t=>typeof t==`string`&&t.startsWith(e),an=rn(`--`),See=rn(`var(--`),on=e=>See(e)?Cee.test(e.split(`/*`)[0].trim()):!1,Cee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function sn(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var cn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},ln={...cn,transform:e=>yt(0,1,e)},un={...cn,default:1},dn=e=>Math.round(e*1e5)/1e5,fn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wee(e){return e==null}var Tee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pn=(e,t)=>n=>!!(typeof n==`string`&&Tee.test(n)&&n.startsWith(e)||t&&!wee(n)&&Object.prototype.hasOwnProperty.call(n,t)),mn=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(fn);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Eee=e=>yt(0,255,e),hn={...cn,transform:e=>Math.round(Eee(e))},gn={test:pn(`rgb`,`red`),parse:mn(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+hn.transform(e)+`, `+hn.transform(t)+`, `+hn.transform(n)+`, `+dn(ln.transform(r))+`)`};function Dee(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var _n={test:pn(`#`),parse:Dee,transform:gn.transform},vn=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),yn=vn(`deg`),bn=vn(`%`),G=vn(`px`),Oee=vn(`vh`),kee=vn(`vw`),Aee={...bn,parse:e=>bn.parse(e)/100,transform:e=>bn.transform(e*100)},xn={test:pn(`hsl`,`hue`),parse:mn(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+bn.transform(dn(t))+`, `+bn.transform(dn(n))+`, `+dn(ln.transform(r))+`)`},Sn={test:e=>gn.test(e)||_n.test(e)||xn.test(e),parse:e=>gn.test(e)?gn.parse(e):xn.test(e)?xn.parse(e):_n.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?gn.transform(e):xn.transform(e),getAnimatableNone:e=>{let t=Sn.parse(e);return t.alpha=0,Sn.transform(t)}},jee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Mee(e){return isNaN(e)&&typeof e==`string`&&(e.match(fn)?.length||0)+(e.match(jee)?.length||0)>0}var Nee=`number`,Pee=`color`,Fee=`var`,Iee=`var(`,Lee="${}",Ree=/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 Cn(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Ree,e=>(Sn.test(e)?(r.color.push(a),i.push(Pee),n.push(Sn.parse(e))):e.startsWith(Iee)?(r.var.push(a),i.push(Fee),n.push(e)):(r.number.push(a),i.push(Nee),n.push(parseFloat(e))),++a,Lee)).split(Lee),indexes:r,types:i}}function zee(e){return Cn(e).values}function wn({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Nee?i+=dn(r[a]):e===Pee?i+=Sn.transform(r[a]):i+=r[a]}return i}}function Bee(e){return wn(Cn(e))}var Vee=e=>typeof e==`number`?0:Sn.test(e)?Sn.getAnimatableNone(e):e,Hee=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Vee(e);function Uee(e){let t=Cn(e);return wn(t)(t.values.map((e,n)=>Hee(e,t.split[n])))}var Tn={test:Mee,parse:zee,createTransformer:Bee,getAnimatableNone:Uee};function En(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Wee({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=En(s,r,e+1/3),a=En(s,r,e),o=En(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Dn(e,t){return n=>n>0?t:e}var On=(e,t,n)=>e+(t-e)*n,kn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Gee=[_n,gn,xn],Kee=e=>Gee.find(t=>t.test(e));function An(e){let t=Kee(e);if(xt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===xn&&(n=Wee(n)),n}var jn=(e,t)=>{let n=An(e),r=An(t);if(!n||!r)return Dn(e,t);let i={...n};return e=>(i.red=kn(n.red,r.red,e),i.green=kn(n.green,r.green,e),i.blue=kn(n.blue,r.blue,e),i.alpha=On(n.alpha,r.alpha,e),gn.transform(i))},Mn=new Set([`none`,`hidden`]);function qee(e,t){return Mn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Jee(e,t){return n=>On(e,t,n)}function Nn(e){return typeof e==`number`?Jee:typeof e==`string`?on(e)?Dn:Sn.test(e)?jn:Zee:Array.isArray(e)?Pn:typeof e==`object`?Sn.test(e)?jn:Yee:Dn}function Pn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Nn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Yee(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Nn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Xee(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Zee=(e,t)=>{let n=Tn.createTransformer(t),r=Cn(e),i=Cn(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Mn.has(e)&&!i.values.length||Mn.has(t)&&!r.values.length?qee(e,t):kt(Pn(Xee(r,i),i.values),n):(xt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Dn(e,t))};function Fn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?On(e,t,n):Nn(e)(e,t)}var Qee=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Xt.update(t,e),stop:()=>Zt(t),now:()=>Qt.isProcessing?Qt.timestamp:tn.now()}},In=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Ln=2e4;function Rn(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function $ee(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Rn(r),Ln);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Nt(i)}}var zn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Bn(e,t){return e*Math.sqrt(1-t*t)}var ete=12;function tte(e,t,n){let r=n;for(let n=1;n<ete;n++)r-=e(r)/t(r);return r}var Vn=.001;function nte({duration:e=zn.duration,bounce:t=zn.bounce,velocity:n=zn.velocity,mass:r=zn.mass}){let i,a;xt(e<=Mt(zn.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=yt(zn.minDamping,zn.maxDamping,o),e=yt(zn.minDuration,zn.maxDuration,Nt(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Bn(t,o),c=Math.exp(-i);return Vn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Bn(t**2,o);return(-i(t)+Vn>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Vn+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=tte(i,a,s);if(e=Mt(e),isNaN(c))return{stiffness:zn.stiffness,damping:zn.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var rte=[`duration`,`bounce`],ite=[`stiffness`,`damping`,`mass`];function Hn(e,t){return t.some(t=>e[t]!==void 0)}function ate(e){let t={velocity:zn.velocity,stiffness:zn.stiffness,damping:zn.damping,mass:zn.mass,isResolvedFromDuration:!1,...e};if(!Hn(e,ite)&&Hn(e,rte))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*yt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:zn.mass,stiffness:i,damping:a}}else{let n=nte({...e,velocity:0});t={...t,...n,mass:zn.mass},t.isResolvedFromDuration=!0}return t}function Un(e=zn.visualDuration,t=zn.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=ate({...n,velocity:-Nt(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Nt(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?zn.restSpeed.granular:zn.restSpeed.default,i||=v?zn.restDelta.granular:zn.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Bn(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Mt(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Mt(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Mt(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Rn(T),Ln),t=In(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Un.applyToOptions=e=>{let t=$ee(e,100,Un);return e.ease=t.ease,e.duration=Mt(t.duration),e.type=`keyframes`,e};var ote=5;function Wn(e,t,n){let r=Math.max(t-ote,0);return Pt(n-e(r),t-r)}function Gn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Un({keyframes:[f.value,m(f.value)],velocity:Wn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function ste(e,t,n){let r=[],i=n||Ct.mix||Fn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=kt(Array.isArray(t)?t[n]||Ot:t,a)),r.push(a)}return r}function cte(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(St(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=ste(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=At(e[r],e[r+1],n);return s[r](i)};return n?t=>l(yt(e[0],e[a-1],t)):l}function lte(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=At(0,t,r);e.push(On(n,1,i))}}function ute(e){let t=[0];return lte(t,e.length-1),t}function dte(e,t){return e.map(e=>e*t)}function fte(e,t){return e.map(()=>t||pee).splice(0,e.length-1)}function Kn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=mee(r)?r.map(vee):vee(r),a={done:!1,value:t[0]},o=cte(dte(n&&n.length===t.length?n:ute(t),e),t,{ease:Array.isArray(i)?i:fte(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var pte=e=>e!==null;function qn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(pte),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var mte={decay:Gn,inertia:Gn,tween:Kn,keyframes:Kn,spring:Un};function Jn(e){typeof e.type==`string`&&(e.type=mte[e.type])}var Yn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},hte=e=>e/100,Xn=class extends Yn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},nn.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Jn(e);let{type:t=Kn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Kn;process.env.NODE_ENV!==`production`&&s!==Kn&&St(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==Kn&&typeof o[0]!=`number`&&(this.mixKeyframes=kt(hte,Fn(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Rn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=yt(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Gn&&(b.value=qn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Nt(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Nt(e)}get time(){return Nt(this.currentTime)}set time(e){e=Mt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Wn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tn.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Nt(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Qee,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(tn.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,nn.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function gte(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Zn=e=>e*180/Math.PI,Qn=e=>$n(Zn(Math.atan2(e[1],e[0]))),_te={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qn,rotateZ:Qn,skewX:e=>Zn(Math.atan(e[1])),skewY:e=>Zn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$n=e=>(e%=360,e<0&&(e+=360),e),er=Qn,tr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),nr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),vte={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tr,scaleY:nr,scale:e=>(tr(e)+nr(e))/2,rotateX:e=>$n(Zn(Math.atan2(e[6],e[5]))),rotateY:e=>$n(Zn(Math.atan2(-e[2],e[0]))),rotateZ:er,rotate:er,skewX:e=>Zn(Math.atan(e[4])),skewY:e=>Zn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function rr(e){return+!!e.includes(`scale`)}function ir(e,t){if(!e||e===`none`)return rr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=vte,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_te,i=t}if(!i)return rr(t);let a=r[t],o=i[1].split(`,`).map(bte);return typeof a==`function`?a(o):o[a]}var yte=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return ir(n,t)};function bte(e){return parseFloat(e.trim())}var ar=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],or=new Set(ar),sr=e=>e===cn||e===G,xte=new Set([`x`,`y`,`z`]),Ste=ar.filter(e=>!xte.has(e));function Cte(e){let t=[];return Ste.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var cr={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ir(t,`x`),y:(e,{transform:t})=>ir(t,`y`)};cr.translateX=cr.x,cr.translateY=cr.y;var lr=new Set,ur=!1,dr=!1,fr=!1;function wte(){if(dr){let e=Array.from(lr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Cte(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}dr=!1,ur=!1,lr.forEach(e=>e.complete(fr)),lr.clear()}function Tte(){lr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(dr=!0)})}function Ete(){fr=!0,Tte(),wte(),fr=!1}var pr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(lr.add(this),ur||(ur=!0,Xt.read(Tte),Xt.resolveKeyframes(wte))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}gte(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),lr.delete(this)}cancel(){this.state===`scheduled`&&(lr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Dte=e=>e.startsWith(`--`);function Ote(e,t,n){Dte(t)?e.style.setProperty(t,n):e.style[t]=n}var kte={};function Ate(e,t){let n=Dt(e);return()=>kte[t]??n()}var jte=Ate(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Mte=Ate(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Nte={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:mr([0,.65,.55,1]),circOut:mr([.55,0,1,.45]),backIn:mr([.31,.01,.66,-.59]),backOut:mr([.33,1.53,.69,.99])};function Pte(e,t){if(e)return typeof e==`function`?Mte()?In(e,t):`ease-out`:hee(e)?mr(e):Array.isArray(e)?e.map(e=>Pte(e,t)||Nte.easeOut):Nte[e]}function Fte(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Pte(s,i);Array.isArray(d)&&(u.easing=d),Jt.value&&nn.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Jt.value&&p.finished.finally(()=>{nn.waapi--}),p}function Ite(e){return typeof e==`function`&&`applyToOptions`in e}function Lte({type:e,...t}){return Ite(e)&&Mte()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Rte=class extends Yn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,St(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=Lte(e);this.animation=Fte(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=qn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Ote(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Nt(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Nt(e)}get time(){return Nt(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Mt(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&jte()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Ot):r(this)}},zte={anticipate:Wt,backInOut:Ut,circInOut:uee};function Bte(e){return e in zte}function Vte(e){typeof e.ease==`string`&&Bte(e.ease)&&(e.ease=zte[e.ease])}var hr=10,Hte=class extends Rte{constructor(e){Vte(e),Jn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Xn({...a,autoplay:!1}),s=Math.max(hr,tn.now()-this.startTime),c=yt(0,hr,s-hr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Ote(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Ute=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Tn.test(e)||e===`0`)&&!e.startsWith(`url(`));function Wte(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Gte(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ute(i,t),s=Ute(a,t);return xt(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:Wte(e)||(n===`spring`||Ite(n))&&r}function gr(e){e.duration=0,e.type=`keyframes`}var Kte=new Set([`opacity`,`clipPath`,`filter`,`transform`]),qte=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Jte(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&qte.test(e[t]))return!0;return!1}var Yte=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Xte=Dt(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Zte(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Xte()&&n&&(Kte.has(n)||Yte.has(n)&&Jte(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Qte=40,$te=class extends Yn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||pr)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=tn.now();let u=!0;Gte(e,i,a,o)||(u=!1,(Ct.instantAnimations||!s)&&l?.(qn(e,n,t)),e[0]=e[e.length-1],gr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Qte?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Zte(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Hte({...d,element:p})}catch{m=new Xn(d)}else m=new Xn(d);m.finished.then(()=>{this.notifyFinished()}).catch(Ot),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ete()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function ene(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var tne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nne(e){let t=tne.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var rne=4;function ine(e,t,n=1){St(n<=rne,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=nne(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return wt(e)?parseFloat(e):e}return on(i)?ine(i,t,n+1):i}var ane={type:`spring`,stiffness:500,damping:25,restSpeed:10},one=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sne={type:`keyframes`,duration:.8},cne={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},lne=(e,{keyframes:t})=>t.length>2?sne:or.has(e)?e.startsWith(`scale`)?one(t[1]):ane:cne;function _r(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function vr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:_r(n,e)}var une=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function dne(e){for(let t in e)if(!une.has(t))return!0;return!1}var yr=(e,t,n,r={},i,a)=>o=>{let s=vr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Mt(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};dne(s)||Object.assign(u,lne(e,u)),u.duration&&=Mt(u.duration),u.repeatDelay&&=Mt(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(gr(u),u.delay===0&&(d=!0)),(Ct.instantAnimations||Ct.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,gr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=qn(u.keyframes,s);if(e!==void 0){Xt.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Xn(u):new $te(u)};function br(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function xr(e,t,n,r){if(typeof t==`function`){let[i,a]=br(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=br(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Sr(e,t,n){let r=e.getProps();return xr(r,t,n===void 0?r.custom:n,e)}var Cr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...ar]),wr=30,fne=e=>!isNaN(parseFloat(e)),Tr={current:void 0},pne=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tn.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fne(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&It(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new jt);let n=this.events[e].add(t);return e===`change`?()=>{n(),Xt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Tr.current&&Tr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>wr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,wr);return Pt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Er(e,t){return new pne(e,t)}var Dr=e=>Array.isArray(e);function mne(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Er(n))}function hne(e){return Dr(e)?e[e.length-1]||0:e}function gne(e,t){let{transitionEnd:n={},transition:r={},...i}=Sr(e,t)||{};i={...i,...n};for(let t in i)mne(e,t,hne(i[t]))}var Or=e=>!!(e&&e.getVelocity);function _ne(e){return!!(Or(e)&&e.add)}function kr(e,t){let n=e.getValue(`willChange`);if(_ne(n))return n.add(t);if(!n&&Ct.WillChange){let n=new Ct.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ar(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var jr=`data-`+Ar(`framerAppearId`);function Mr(e){return e.props[jr]}function vne({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Nr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?_r(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&vne(d,t))continue;let o={delay:n,...vr(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Xt.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Mr(e);if(n){let e=window.MotionHandoffAnimation(n,t,Xt);e!==null&&(o.startTime=e,f=!0)}}kr(e,t);let p=l??e.shouldReduceMotion;r.start(yr(t,r,i,p&&Cr.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>Xt.update(()=>{o&&gne(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Pr(e,t,n={}){let r=Sr(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Nr(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return yne(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function yne(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Pr(c,t,{...o,delay:n+(typeof r==`function`?0:r)+ene(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function bne(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Pr(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Pr(e,t,n);else{let i=typeof t==`function`?Sr(e,t,n.custom):t;r=Promise.all(Nr(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var xne={test:e=>e===`auto`,parse:e=>e},Fr=e=>t=>t.test(e),Ir=[cn,G,bn,yn,kee,Oee,xne],Lr=e=>Ir.find(Fr(e));function Sne(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Et(e)}var Cne=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function wne(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(fn)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Cne.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Tne=/\b([a-z-]*)\(.*?\)/gu,Rr={...Tn,getAnimatableNone:e=>{let t=e.match(Tne);return t?t.map(wne).join(` `):e}},zr={...Tn,getAnimatableNone:e=>{let t=Tn.parse(e);return Tn.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Br={...cn,transform:Math.round},Vr={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,fontSize:G,backgroundPositionX:G,backgroundPositionY:G,rotate:yn,rotateX:yn,rotateY:yn,rotateZ:yn,scale:un,scaleX:un,scaleY:un,scaleZ:un,skew:yn,skewX:yn,skewY:yn,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:ln,originX:Aee,originY:Aee,originZ:G,zIndex:Br,fillOpacity:ln,strokeOpacity:ln,numOctaves:Br},Ene={...Vr,color:Sn,backgroundColor:Sn,outlineColor:Sn,fill:Sn,stroke:Sn,borderColor:Sn,borderTopColor:Sn,borderRightColor:Sn,borderBottomColor:Sn,borderLeftColor:Sn,filter:Rr,WebkitFilter:Rr,mask:zr,WebkitMask:zr},Hr=e=>Ene[e],Dne=new Set([Rr,zr]);function Ur(e,t){let n=Hr(e);return Dne.has(n)||(n=Tn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var One=new Set([`auto`,`none`,`0`]);function kne(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!One.has(t)&&Cn(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Ur(n,i)}var Ane=class extends pr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),on(r))){let i=ine(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Cr.has(n)||e.length!==2)return;let[r,i]=e,a=Lr(r),o=Lr(i);if(sn(r)!==sn(i)&&cr[n]){this.needsMeasurement=!0;return}if(a!==o)if(sr(a)&&sr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else cr[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Sne(e[t]))&&n.push(t);n.length&&kne(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=cr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Wr(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Gr=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Kr(e){return Tt(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:qr,cancel:jne}=Yt(queueMicrotask,!1),Jr={x:!1,y:!1};function Yr(){return Jr.x||Jr.y}function Mne(e){return e===`x`||e===`y`?Jr[e]?null:(Jr[e]=!0,()=>{Jr[e]=!1}):Jr.x||Jr.y?null:(Jr.x=Jr.y=!0,()=>{Jr.x=Jr.y=!1})}function Xr(e,t){let n=Wr(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Nne(e){return!(e.pointerType===`touch`||Yr())}function Pne(e,t,n={}){let[r,i,a]=Xr(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Nne(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Zr=(e,t)=>t?e===t?!0:Zr(e,t.parentElement):!1,Qr=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Fne=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ine(e){return Fne.has(e.tagName)||e.isContentEditable===!0}var Lne=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Rne(e){return Lne.has(e.tagName)||e.isContentEditable===!0}var $r=new WeakSet;function ei(e){return t=>{t.key===`Enter`&&e(t)}}function ti(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var zne=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ei(()=>{if($r.has(n))return;ti(n,`down`);let e=ei(()=>{ti(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>ti(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ni(e){return Qr(e)&&!Yr()}var ri=new WeakSet;function Bne(e,t,n={}){let[r,i,a]=Xr(e,n),o=e=>{let r=e.currentTarget;if(!ni(e)||ri.has(e))return;$r.add(r),n.stopPropagation&&ri.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),$r.has(r)&&$r.delete(r),ni(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Zr(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Kr(e)&&(e.addEventListener(`focus`,e=>zne(e,i)),!Ine(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function ii(e){return Tt(e)&&`ownerSVGElement`in e}var ai=new WeakMap,oi,si=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ii(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Vne=si(`inline`,`width`,`offsetWidth`),Hne=si(`block`,`height`,`offsetHeight`);function Une({target:e,borderBoxSize:t}){ai.get(e)?.forEach(n=>{n(e,{get width(){return Vne(e,t)},get height(){return Hne(e,t)}})})}function Wne(e){e.forEach(Une)}function Gne(){typeof ResizeObserver>`u`||(oi=new ResizeObserver(Wne))}function Kne(e,t){oi||Gne();let n=Wr(e);return n.forEach(e=>{let n=ai.get(e);n||(n=new Set,ai.set(e,n)),n.add(t),oi?.observe(e)}),()=>{n.forEach(e=>{let n=ai.get(e);n?.delete(t),n?.size||oi?.unobserve(e)})}}var ci=new Set,li;function qne(){li=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ci.forEach(t=>t(e))},window.addEventListener(`resize`,li)}function Jne(e){return ci.add(e),li||qne(),()=>{ci.delete(e),!ci.size&&typeof li==`function`&&(window.removeEventListener(`resize`,li),li=void 0)}}function ui(e,t){return typeof e==`function`?Jne(e):Kne(e,t)}function Yne(e){return ii(e)&&e.tagName===`svg`}var Xne=[...Ir,Sn,Tn],Zne=e=>Xne.find(Fr(e)),di=()=>({translate:0,scale:1,origin:0,originPoint:0}),fi=()=>({x:di(),y:di()}),pi=()=>({min:0,max:0}),mi=()=>({x:pi(),y:pi()}),Qne=new WeakMap;function hi(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function gi(e){return typeof e==`string`||Array.isArray(e)}var _i=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],vi=[`initial`,..._i];function yi(e){return hi(e.animate)||vi.some(t=>gi(e[t]))}function bi(e){return!!(yi(e)||e.variants)}function $ne(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Or(i))e.addValue(r,i);else if(Or(a))e.addValue(r,Er(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Er(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var xi={current:null},Si={current:!1},ere=typeof window<`u`;function tre(){if(Si.current=!0,ere)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>xi.current=e.matches;e.addEventListener(`change`,t),t()}else xi.current=!1}var Ci=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],wi={};function Ti(e){wi=e}function nre(){return wi}var rre=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=pr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tn.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Xt.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=yi(t),this.isVariantNode=bi(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Or(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Qne.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)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Si.current||tre(),this.shouldReduceMotion=xi.current),process.env.NODE_ENV!==`production`&&It(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Zt(this.notifyUpdate),Zt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Kte.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Rte({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Mt(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=or.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Xt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in wi){let t=wi[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(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):mi()}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<Ci.length;t++){let n=Ci[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=$ne(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 n=this.values.get(e);t!==n&&(n&&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 n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Er(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(wt(n)||Et(n))?n=parseFloat(n):!Zne(n)&&Tn.test(t)&&(n=Ur(e,t)),this.setBaseTarget(e,Or(n)?n.get():n)),Or(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=xr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Or(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new jt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){qr.render(this.render)}},Ei=class extends rre{constructor(){super(...arguments),this.KeyframeResolver=Ane}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Or(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Di=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Oi({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ire({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function are(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ki(e){return e===void 0||e===1}function Ai({scale:e,scaleX:t,scaleY:n}){return!ki(e)||!ki(t)||!ki(n)}function ji(e){return Ai(e)||Mi(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Mi(e){return Ni(e.x)||Ni(e.y)}function Ni(e){return e&&e!==`0%`}function Pi(e,t,n){return n+t*(e-n)}function Fi(e,t,n,r,i){return i!==void 0&&(e=Pi(e,i,r)),Pi(e,n,r)+t}function Ii(e,t=0,n=1,r,i){e.min=Fi(e.min,t,n,r,i),e.max=Fi(e.max,t,n,r,i)}function ore(e,{x:t,y:n}){Ii(e.x,t.translate,t.scale,t.originPoint),Ii(e.y,n.translate,n.scale,n.originPoint)}var sre=.999999999999,cre=1.0000000000001;function lre(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Li(e.x,-a.scroll.offset.x),Li(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ore(e,o)),r&&ji(a.latestValues)&&Ri(e,a.latestValues,a.layout?.layoutBox))}t.x<cre&&t.x>sre&&(t.x=1),t.y<cre&&t.y>sre&&(t.y=1)}function Li(e,t){e.min+=t,e.max+=t}function ure(e,t,n,r,i=.5){Ii(e,t,n,On(e.min,e.max,i),r)}function dre(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ri(e,t,n){let r=n??e;ure(e.x,dre(t.x,r.x),t.scaleX,t.scale,t.originX),ure(e.y,dre(t.y,r.y),t.scaleY,t.scale,t.originY)}function fre(e,t){return Oi(are(e.getBoundingClientRect(),t))}function pre(e,t,n){let r=fre(e,n),{scroll:i}=t;return i&&(Li(r.x,i.offset.x),Li(r.y,i.offset.y)),r}var mre={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},hre=ar.length;function gre(e,t,n){let r=``,i=!0;for(let a=0;a<hre;a++){let o=ar[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Gr(s,Vr[o]);if(!c){i=!1;let t=mre[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function zi(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(or.has(e)){o=!0;continue}else if(an(e)){i[e]=n;continue}else{let t=Gr(n,Vr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=gre(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function _re(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function vre(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Bi={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(G.test(e))e=parseFloat(e);else return e;return`${vre(e,t.target.x)}% ${vre(e,t.target.y)}%`}},yre={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Tn.parse(e);if(i.length>5)return r;let a=Tn.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=On(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Vi={borderRadius:{...Bi,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Bi,borderTopRightRadius:Bi,borderBottomLeftRadius:Bi,borderBottomRightRadius:Bi,boxShadow:yre};function bre(e,{layout:t,layoutId:n}){return or.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Vi[e]||e===`opacity`)}function Hi(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Or(r[t])||i&&Or(i[t])||bre(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function xre(e){return window.getComputedStyle(e)}var Sre=class extends Ei{constructor(){super(...arguments),this.type=`html`,this.renderInstance=_re}readValueFromInstance(e,t){if(or.has(t))return this.projection?.isProjecting?rr(t):yte(e,t);{let n=xre(e),r=(an(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return fre(e,t)}build(e,t,n){zi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Hi(e,t,n)}},Cre={offset:`stroke-dashoffset`,array:`stroke-dasharray`},wre={offset:`strokeDashoffset`,array:`strokeDasharray`};function Tre(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Cre:wre;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Ere=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Dre(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(zi(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Ere)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Tre(d,i,a,o,!1)}var Ore=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`]),kre=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Are(e,t,n,r){_re(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Ore.has(n)?n:Ar(n),t.attrs[n])}function jre(e,t,n){let r=Hi(e,t,n);for(let n in e)if(Or(e[n])||Or(t[n])){let t=ar.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Mre=class extends Ei{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=mi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(or.has(t)){let e=Hr(t);return e&&e.default||0}return t=Ore.has(t)?t:Ar(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return jre(e,t,n)}build(e,t,n){Dre(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Are(e,t,n,r)}mount(e){this.isSVGTag=kre(e.tagName),super.mount(e)}},Nre=vi.length;function Pre(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Pre(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Nre;n++){let r=vi[n],i=e.props[r];(gi(i)||i===!1)&&(t[r]=i)}return t}function Fre(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Ire=[..._i].reverse(),Lre=_i.length;function Rre(e){return t=>Promise.all(t.map(({animation:t,options:n})=>bne(e,t,n)))}function zre(e){let t=Rre(e),n=Vre(),r=!0,i=!1,a=t=>(n,r)=>{let i=Sr(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Pre(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Lre;t++){let p=Ire[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=gi(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||hi(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Bre(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Dr(t)&&Dr(n)?!Fre(t,n):t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Sr(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ene(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Sr(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Vre(),i=!0}}}function Bre(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Fre(t,e):!1}function Ui(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vre(){return{animate:Ui(!0),whileInView:Ui(),whileHover:Ui(),whileTap:Ui(),whileDrag:Ui(),whileFocus:Ui(),exit:Ui()}}function Wi(e,t){e.min=t.min,e.max=t.max}function Gi(e,t){Wi(e.x,t.x),Wi(e.y,t.y)}function Hre(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ure=1e-4,Wre=1-Ure,Gre=1+Ure,Kre=.01,qre=0-Kre,Jre=0+Kre;function Ki(e){return e.max-e.min}function Yre(e,t,n){return Math.abs(e-t)<=n}function Xre(e,t,n,r=.5){e.origin=r,e.originPoint=On(t.min,t.max,e.origin),e.scale=Ki(n)/Ki(t),e.translate=On(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Wre&&e.scale<=Gre||isNaN(e.scale))&&(e.scale=1),(e.translate>=qre&&e.translate<=Jre||isNaN(e.translate))&&(e.translate=0)}function qi(e,t,n,r){Xre(e.x,t.x,n.x,r?r.originX:void 0),Xre(e.y,t.y,n.y,r?r.originY:void 0)}function Zre(e,t,n,r=0){e.min=(r?On(n.min,n.max,r):n.min)+t.min,e.max=e.min+Ki(t)}function Qre(e,t,n,r){Zre(e.x,t.x,n.x,r?.x),Zre(e.y,t.y,n.y,r?.y)}function $re(e,t,n,r=0){let i=r?On(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Ki(t)}function Ji(e,t,n,r){$re(e.x,t.x,n.x,r?.x),$re(e.y,t.y,n.y,r?.y)}function eie(e,t,n,r,i){return e-=t,e=Pi(e,1/n,r),i!==void 0&&(e=Pi(e,1/i,r)),e}function tie(e,t=0,n=1,r=.5,i,a=e,o=e){if(bn.test(t)&&(t=parseFloat(t),t=On(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=On(a.min,a.max,r);e===a&&(s-=t),e.min=eie(e.min,t,n,s,i),e.max=eie(e.max,t,n,s,i)}function nie(e,t,[n,r,i],a,o){tie(e,t[n],t[r],t[i],t.scale,a,o)}var rie=[`x`,`scaleX`,`originX`],iie=[`y`,`scaleY`,`originY`];function aie(e,t,n,r){nie(e.x,t,rie,n?n.x:void 0,r?r.x:void 0),nie(e.y,t,iie,n?n.y:void 0,r?r.y:void 0)}function oie(e){return e.translate===0&&e.scale===1}function sie(e){return oie(e.x)&&oie(e.y)}function cie(e,t){return e.min===t.min&&e.max===t.max}function lie(e,t){return cie(e.x,t.x)&&cie(e.y,t.y)}function uie(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function die(e,t){return uie(e.x,t.x)&&uie(e.y,t.y)}function fie(e){return Ki(e.x)/Ki(e.y)}function pie(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Yi(e){return[e(`x`),e(`y`)]}function mie(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var hie=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],gie=hie.length,_ie=e=>typeof e==`string`?parseFloat(e):e,vie=e=>typeof e==`number`||G.test(e);function yie(e,t,n,r,i,a){i?(e.opacity=On(0,n.opacity??1,xie(r)),e.opacityExit=On(t.opacity??1,0,Sie(r))):a&&(e.opacity=On(t.opacity??1,n.opacity??1,r));for(let i=0;i<gie;i++){let a=hie[i],o=bie(t,a),s=bie(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||vie(o)===vie(s)?(e[a]=Math.max(On(_ie(o),_ie(s),r),0),(bn.test(s)||bn.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=On(t.rotate||0,n.rotate||0,r))}function bie(e,t){return e[t]===void 0?e.borderRadius:e[t]}var xie=Cie(0,.5,Kt),Sie=Cie(.5,.95,Ot);function Cie(e,t,n){return r=>r<e?0:r>t?1:n(At(e,t,r))}function wie(e,t,n){let r=Or(e)?e:Er(e);return r.start(yr(``,r,t,n)),r.animation}function Xi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Tie=(e,t)=>e.depth-t.depth,Eie=class{constructor(){this.children=[],this.isDirty=!1}add(e){_t(this.children,e),this.isDirty=!0}remove(e){vt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Tie),this.isDirty=!1,this.children.forEach(e)}};function Die(e,t){let n=tn.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Zt(r),e(a-t))};return Xt.setup(r,!0),()=>Zt(r)}function Zi(e){return Or(e)?e.get():e}var Oie=class{constructor(){this.members=[]}add(e){_t(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(vt(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(vt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Qi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$i={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ea=[``,`X`,`Y`,`Z`],kie=1e3,Aie=0;function ta(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function jie(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Mr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Xt,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&jie(r)}function Mie({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Aie++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Jt.value&&($i.nodes=$i.calculatedTargetDeltas=$i.calculatedProjections=0),this.nodes.forEach(Fie),this.nodes.forEach(Wie),this.nodes.forEach(Gie),this.nodes.forEach(Iie),Jt.addProjectionMetrics&&Jt.addProjectionMetrics($i)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Eie)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new jt),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ii(t)&&!Yne(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Xt.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Die(i,250),Qi.hasAnimatedSinceResize&&(Qi.hasAnimatedSinceResize=!1,this.nodes.forEach(Uie)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Qie,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!die(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...vr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||Uie(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zt(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(Kie),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&&jie(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,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(zie),this.nodes.forEach(Rie);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bie);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Vie),this.nodes.forEach(Hie),this.nodes.forEach(Nie),this.nodes.forEach(Pie)):this.nodes.forEach(Bie),this.clearAllSnapshots();let e=tn.now();Qt.delta=yt(0,1e3/60,e-Qt.timestamp),Qt.timestamp=e,Qt.isProcessing=!0,$t.update.process(Qt),$t.preRender.process(Qt),$t.render.process(Qt),Qt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Lie),this.sharedNodes.forEach(qie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ki(this.snapshot.measuredBox.x)&&!Ki(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=mi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(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&&!sie(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ji(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),nae(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return mi();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(iae))){let{scroll:e}=this.root;e&&(Li(t.x,e.offset.x),Li(t.y,e.offset.y))}return t}removeElementScroll(e){let t=mi();if(Gi(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Gi(t,e),Li(t.x,i.offset.x),Li(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||mi();Gi(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&&(Li(r.x,-n.scroll.offset.x),Li(r.y,-n.scroll.offset.y)),ji(n.latestValues)&&Ri(r,n.latestValues,n.layout?.layoutBox)}return ji(this.latestValues)&&Ri(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=mi();Gi(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ji(n.latestValues))continue;let r;n.instance&&(Ai(n.latestValues)&&n.updateSnapshot(),r=mi(),Gi(r,n.measurePageBox())),aie(t,n.latestValues,n.snapshot?.layoutBox,r)}return ji(this.latestValues)&&aie(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0: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!==Qt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Qt.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=mi(),this.targetWithTransforms=mi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qre(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Gi(this.target,this.layout.layoutBox),ore(this.target,this.targetDelta)):Gi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Jt.value&&$i.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ai(this.parent.latestValues)||Mi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mi(),this.relativeTargetOrigin=mi(),Ji(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Gi(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Qt.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Gi(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;lre(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=mi());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hre(this.prevProjectionDelta.x,this.projectionDelta.x),Hre(this.prevProjectionDelta.y,this.projectionDelta.y)),qi(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!pie(this.projectionDelta.x,this.prevProjectionDelta.x)||!pie(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Jt.value&&$i.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fi(),this.projectionDelta=fi(),this.projectionDeltaWithTransform=fi()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=fi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=mi(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Zie));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Jie(a.x,e.x,n),Jie(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ji(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Xie(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&lie(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=mi(),Gi(d,this.relativeTarget)),s&&(this.animationValues=i,yie(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Zt(this.pendingAnimation),void 0),this.pendingAnimation=Xt.update(()=>{Qi.hasAnimatedSinceResize=!0,nn.layout++,this.motionValue||=Er(0),this.motionValue.jump(0,!1),this.currentAnimation=wie(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{nn.layout--},onComplete:()=>{nn.layout--,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(kie),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&rae(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||mi();let t=Ki(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Ki(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Gi(t,n),Ri(t,i),qi(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Oie),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ta(`z`,e,r,this.animationValues);for(let t=0;t<ea.length;t++)ta(`rotate${ea[t]}`,e,r,this.animationValues),ta(`skew${ea[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Zi(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Zi(t?.pointerEvents)||``),this.hasProjected&&!ji(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=mie(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Vi){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Vi[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Zi(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Rie),this.root.sharedNodes.clear()}}}function Nie(e){e.updateLayout()}function Pie(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Yi(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Ki(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Wi(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else rae(i,t.layoutBox,n)&&Yi(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Ki(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=fi();qi(o,n,t.layoutBox);let s=fi();a?qi(s,e.applyTransform(r,!0),t.measuredBox):qi(s,n,t.layoutBox);let c=!sie(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=mi();Ji(s,t.layoutBox,i.layoutBox,o);let c=mi();Ji(c,n,a.layoutBox,o),die(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Fie(e){Jt.value&&$i.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Iie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Lie(e){e.clearSnapshot()}function Rie(e){e.clearMeasurements()}function zie(e){e.isLayoutDirty=!0,e.updateLayout()}function Bie(e){e.isLayoutDirty=!1}function Vie(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Hie(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Uie(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Wie(e){e.resolveTargetDelta()}function Gie(e){e.calcProjection()}function Kie(e){e.resetSkewAndRotation()}function qie(e){e.removeLeadSnapshot()}function Jie(e,t,n){e.translate=On(t.translate,0,n),e.scale=On(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Yie(e,t,n,r){e.min=On(t.min,n.min,r),e.max=On(t.max,n.max,r)}function Xie(e,t,n,r){Yie(e.x,t.x,n.x,r),Yie(e.y,t.y,n.y,r)}function Zie(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Qie={duration:.45,ease:[.4,0,.1,1]},$ie=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),eae=$ie(`applewebkit/`)&&!$ie(`chrome/`)?Math.round:Ot;function tae(e){e.min=eae(e.min),e.max=eae(e.max)}function nae(e){tae(e.x),tae(e.y)}function rae(e,t,n){return e===`position`||e===`preserve-aspect`&&!Yre(fie(t),fie(n),.2)}function iae(e){return e!==e.root&&e.scroll?.wasRoot}var aae=Mie({attachResizeListener:(e,t)=>Xi(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),na={current:void 0},oae=Mie({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!na.current){let e=new aae({});e.mount(window),e.setOptions({layoutScroll:!0}),na.current=e}return na.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),ra=(0,m.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function sae(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function cae(...e){return t=>{let n=!1,r=e.map(e=>{let r=sae(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():sae(e[t],null)}}}}function lae(...e){return m.useCallback(cae(...e),e)}var uae=class extends m.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Kr(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Kr(e)&&e.offsetWidth||0,r=Kr(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}};function dae({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,m.useId)(),s=(0,m.useRef)(null),c=(0,m.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=(0,m.useContext)(ra),u=lae(s,e.props?.ref??e?.ref);return(0,m.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m}=c.current;if(t||a===!1||!s.current||!e||!u)return;let h=n===`left`?`left: ${f}`:`right: ${p}`,g=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let _=document.createElement(`style`);l&&(_.nonce=l);let v=i??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(`
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=e=>a.call(e,`module.exports`)?e[`module.exports`]:c(t({},`__esModule`,{value:!0}),e);const d=require(`./theme.config-DJqqr_kx.cjs`),f=require(`./contactForm.config-Y2AYSH9s.cjs`),p=require(`./supportForm.config-NfLDtLTB.cjs`);let m=require(`react`);m=l(m,1);let h=require(`firebase/firestore`),g=require(`firebase/app`),_=require(`firebase/auth`),v=require(`firebase/storage`),y=require(`react/jsx-runtime`),b=require(`react-router-dom`),x=require(`react-dom`);var S=null,C=null,w=null,T=null;function E(e){S=(0,g.getApps)().length?(0,g.getApp)():(0,g.initializeApp)(e),C=(0,_.getAuth)(S),w=(0,h.getFirestore)(S),T=(0,v.getStorage)(S)}function D(e){try{return{BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_ADMIN_EMAILS:void 0,VITE_FIREBASE_API_KEY:void 0,VITE_FIREBASE_APP_ID:void 0,VITE_FIREBASE_AUTH_DOMAIN:void 0,VITE_FIREBASE_MESSAGING_SENDER_ID:void 0,VITE_FIREBASE_PROJECT_ID:void 0,VITE_FIREBASE_STORAGE_BUCKET:void 0}?.[e]||``}catch{return``}}var O=[`VITE_FIREBASE_API_KEY`,`VITE_FIREBASE_AUTH_DOMAIN`,`VITE_FIREBASE_PROJECT_ID`,`VITE_FIREBASE_STORAGE_BUCKET`,`VITE_FIREBASE_MESSAGING_SENDER_ID`,`VITE_FIREBASE_APP_ID`],k={VITE_FIREBASE_API_KEY:`apiKey`,VITE_FIREBASE_AUTH_DOMAIN:`authDomain`,VITE_FIREBASE_PROJECT_ID:`projectId`,VITE_FIREBASE_STORAGE_BUCKET:`storageBucket`,VITE_FIREBASE_MESSAGING_SENDER_ID:`messagingSenderId`,VITE_FIREBASE_APP_ID:`appId`};function A(){let e={};for(let t of O){let n=D(t);if(!n)return null;e[k[t]]=n}return e}function j(){try{let e=localStorage.getItem(`firebase_config`);if(e){let t=JSON.parse(e);if(t.apiKey)return t}}catch{}return null}var M=A();if(M&&!(0,g.getApps)().length)E(M);else{let e=j();e&&!(0,g.getApps)().length&&E(e)}function N(e,t){if(typeof t!=`object`||!t)return t;let n={...e};for(let r of Object.keys(t))t[r]instanceof Object&&r in e&&e[r]instanceof Object&&!Array.isArray(t[r])?n[r]=N(e[r],t[r]):n[r]=t[r];return n}var P=(0,m.createContext)(void 0);function F({children:e,scopeSelector:t}){let[n,r]=(0,m.useState)(()=>localStorage.getItem(`theme-mode`)||d.t.defaultTheme),[i,a]=(0,m.useState)(`dark`),[o,s]=(0,m.useState)(()=>{try{let e=localStorage.getItem(`theme_config_cache`);if(e)return JSON.parse(e)}catch{}return d.t}),[c,l]=(0,m.useState)(()=>!!localStorage.getItem(`theme_config_cache`));return(0,m.useEffect)(()=>{if(!w){s(d.t),l(!0);return}let e=(0,h.onSnapshot)((0,h.doc)(w,`sys_configs`,`theme`),e=>{if(e.exists()){let t=e.data();delete t.fontStyles,delete t.fontCustomization;let n=N(d.t,t);s(n),localStorage.setItem(`theme_config_cache`,JSON.stringify(n));let i=localStorage.getItem(`last-seen-default-theme`);n.defaultTheme&&n.defaultTheme!==i&&(localStorage.setItem(`last-seen-default-theme`,n.defaultTheme),r(n.defaultTheme))}else s(d.t),localStorage.setItem(`theme_config_cache`,JSON.stringify(d.t));l(!0)});return()=>e()},[]),(0,m.useEffect)(()=>{let e=e=>{n===`system`&&a(e.matches?`light`:`dark`)},t=window.matchMedia(`(prefers-color-scheme: light)`);return n===`system`?(a(t.matches?`light`:`dark`),t.addEventListener(`change`,e)):a(n),()=>t.removeEventListener(`change`,e)},[n]),(0,m.useEffect)(()=>{let e=(t?document.querySelector(t):document.documentElement)||document.documentElement,r=i===`dark`?o.colors.dark:o.colors.light;e.style.setProperty(`--bg-color`,r.background),r.backgroundSecondary&&e.style.setProperty(`--bg-secondary-color`,r.backgroundSecondary),e.style.setProperty(`--fg-color`,r.foreground),e.style.setProperty(`--accent-color`,r.accent),e.style.setProperty(`--panel-bg`,r.panelBg),e.style.setProperty(`--panel-border`,r.panelBorder);let a=e=>!e||e.length===0?`transparent`:e.length===1?e[0]:`linear-gradient(135deg, ${e.map((t,n)=>`${t} ${Math.round(n/(e.length-1)*100)}%`).join(`, `)})`;e.style.setProperty(`--button-bg`,a(r.buttonGradient)),e.style.setProperty(`--button-fg`,r.buttonText||`#ffffff`),e.style.setProperty(`--button-hover-bg`,a(r.buttonHoverGradient||r.buttonGradient)),e.style.setProperty(`--text-gradient`,a(r.textGradient)),e.style.setProperty(`--glow-color`,r.glowColor||`rgba(124, 58, 237, 0.3)`),e.style.setProperty(`--notification-icon-color`,r.notificationIconColor||r.accent),e.style.setProperty(`--btn-sec-bg`,r.secondaryButton?.bg||`rgba(255, 255, 255, 0.05)`),e.style.setProperty(`--btn-sec-border`,r.secondaryButton?.border||`transparent`),e.style.setProperty(`--btn-sec-text`,r.secondaryButton?.text||r.foreground),e.style.setProperty(`--selection-bg`,r.selectionBg||`color-mix(in srgb, var(--accent-color) 40%, transparent)`),e.style.setProperty(`--selection-text`,r.selectionText||`#ffffff`),e.setAttribute(`data-theme`,i),localStorage.setItem(`theme-mode`,n),o.cornerRounding===`custom`&&o.cornerRadii?(e.style.setProperty(`--btn-radius`,`${parseFloat(String(o.cornerRadii.buttonRadius))||0}rem`),e.style.setProperty(`--card-radius`,`${parseFloat(String(o.cornerRadii.cardRadius))||0}rem`),e.style.setProperty(`--input-radius`,`${parseFloat(String(o.cornerRadii.inputRadius))||0}rem`),e.style.setProperty(`--modal-radius`,`${parseFloat(String(o.cornerRadii.modalRadius))||0}rem`)):(e.style.setProperty(`--btn-radius`,`0.75rem`),e.style.setProperty(`--card-radius`,`1.5rem`),e.style.setProperty(`--input-radius`,`0.75rem`),e.style.setProperty(`--modal-radius`,`1.5rem`)),(t=>{let n={Inter:`"Inter", sans-serif`,Outfit:`"Outfit", sans-serif`,Roboto:`"Roboto", sans-serif`,"Space Grotesk":`"Space Grotesk", sans-serif`,"Plus Jakarta Sans":`"Plus Jakarta Sans", sans-serif`,"System UI":`system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`};e.style.setProperty(`--font-family`,n[t]||n.Inter);let r=document.getElementById(`dynamic-google-font`);t===`System UI`?r&&r.remove():(r||(r=document.createElement(`link`),r.id=`dynamic-google-font`,r.rel=`stylesheet`,document.head.appendChild(r)),r.href=`https://fonts.googleapis.com/css2?family=${t.replace(/ /g,`+`)}:wght@400;500;600;700;800;900&display=swap`),e.style.fontSize=`16px`,e.style.setProperty(`--weight-h1`,`800`),e.style.setProperty(`--weight-h2`,`700`),e.style.setProperty(`--weight-h3`,`700`),e.style.setProperty(`--leading-normal`,`1.5`)})(o.fontFamily||`Inter`);let s=document.querySelector(`link[rel*='icon']`);s||(s=document.createElement(`link`),s.rel=`icon`,document.head.appendChild(s)),o.faviconUrl&&(s.href=o.faviconUrl)},[i,n,o]),(0,y.jsx)(P.Provider,{value:{theme:i,setTheme:e=>r(e),toggleTheme:()=>{r(e=>e===`light`?`dark`:`light`)},isSystem:n===`system`,setIsSystem:e=>r(e?`system`:i),config:o,activeConfig:o},children:c?e:null})}var I=()=>{let e=(0,m.useContext)(P);if(!e)throw Error(`useTheme must be used within ThemeProvider`);return e},ee=(0,m.createContext)({});function L({config:e,children:t}){return(0,y.jsx)(ee.Provider,{value:e,children:t})}var R=()=>(0,m.useContext)(ee),te=(0,m.createContext)({user:null,userRole:null,loading:!0,signOut:async()=>{},registerUser:async()=>{},refreshUser:async()=>{},userInactive:!1,roleResolved:!1,activeOrg:null,activeWorkspace:null,checkOrg:async()=>{},workspaceAccess:{},userWorkspaces:[],switchWorkspace:async()=>{},createWorkspace:async()=>{},createOrg:async()=>{}});function z({children:e}){let t=R(),[n,r]=(0,m.useState)(null),[i,a]=(0,m.useState)(null),[o,s]=(0,m.useState)(!1),[c,l]=(0,m.useState)(!0),[u,d]=(0,m.useState)(!1),f=m.default.useRef(null),p=m.default.useRef(null);return(0,m.useEffect)(()=>{let e;if(!C){l(!1),d(!0);return}let n=(0,_.onAuthStateChanged)(C,async n=>{if(n?.uid===p.current&&u){r(n);return}if(p.current=n?.uid||null,n){console.log(`[AuthContext] 1. onAuthStateChanged fired for user:`,n.uid),r(n);try{let r=(0,h.doc)(w,`user_profiles`,n.uid);await(0,h.setDoc)(r,{uid:n.uid,email:n.email,displayName:n.displayName||``,lastLoginAt:new Date().toISOString()},{merge:!0}),console.log(`[AuthContext] 2. Successfully synced user data into user_profiles.`),e&&e(),e=(0,h.onSnapshot)(r,e=>{if(e.exists()){let i=e.data(),o=i.role||`user`,c=``;try{c={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_ADMIN_EMAILS:void 0,VITE_FIREBASE_API_KEY:void 0,VITE_FIREBASE_APP_ID:void 0,VITE_FIREBASE_AUTH_DOMAIN:void 0,VITE_FIREBASE_MESSAGING_SENDER_ID:void 0,VITE_FIREBASE_PROJECT_ID:void 0,VITE_FIREBASE_STORAGE_BUCKET:void 0}?.VITE_ADMIN_EMAILS||``}catch{}let l=t.adminEmails||(c?c.split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean):[]);l.length>0&&!i.role&&l.map(e=>e.toLowerCase()).some(e=>n.email?.toLowerCase()===e)&&(console.log(`[AuthContext] Auto-assigning admin role to ${n.email}...`),o=`admin`,(0,h.updateDoc)(r,{role:`admin`}).catch(e=>{console.error(`[AuthContext] Error auto-setting admin role:`,e)})),f.current===null&&(f.current=o),a(o),s(i.inactive===!0)}d(!0),l(!1)})}catch(e){console.error(`[AuthContext] ERROR in auth resolution:`,e),d(!0),l(!1)}}else console.log(`[AuthContext] No user currently signed in.`),r(null),a(null),s(!1),d(!0),l(!1),f.current=null,e&&e()});return()=>{n(),e&&e()}},[]),(0,y.jsx)(te.Provider,{value:{user:n,userRole:i,loading:c,signOut:async()=>{await(0,_.signOut)(C),r(null)},registerUser:async(e,t,n,r)=>{let{createUserWithEmailAndPassword:i}=await import(`firebase/auth`),{user:a}=await i(C,e,t),o=`${n} ${r}`.trim();await(0,_.updateProfile)(a,{displayName:o});try{await a.getIdToken(!0),await(0,h.setDoc)((0,h.doc)(w,`user_profiles`,a.uid),{uid:a.uid,email:a.email,displayName:o,createdAt:new Date().toISOString()},{merge:!0})}catch(e){console.warn(`Could not write public profile on registration.`,e)}await(0,_.sendEmailVerification)(a)},refreshUser:async()=>{C.currentUser&&(await C.currentUser.reload(),r(Object.assign(Object.create(Object.getPrototypeOf(C.currentUser)),C.currentUser)))},userInactive:o,roleResolved:u},children:e})}var B=()=>(0,m.useContext)(te),ne=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),re=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),V=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),ie=e=>{let t=V(e);return t.charAt(0).toUpperCase()+t.slice(1)},H={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},ae=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},oe=(0,m.createContext)({}),se=()=>(0,m.useContext)(oe),ce=(0,m.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=se()??{},h=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,m.createElement)(`svg`,{ref:c,...H,width:t??l??H.width,height:t??l??H.height,stroke:e??f,strokeWidth:h,className:ne(`lucide`,p,i),...!a&&!ae(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,m.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),U=(e,t)=>{let n=(0,m.forwardRef)(({className:n,...r},i)=>(0,m.createElement)(ce,{ref:i,iconNode:t,className:ne(`lucide-${re(ie(e))}`,`lucide-${e}`,n),...r}));return n.displayName=ie(e),n},le=U(`app-window`,[[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}],[`path`,{d:`M10 4v4`,key:`pp8u80`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`path`,{d:`M6 4v4`,key:`1svtjw`}]]),ue=U(`archive-restore`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]),de=U(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),fe=U(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),pe=U(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),me=U(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),he=U(`blocks`,[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]),ge=U(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),_e=U(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),ve=U(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),ye=U(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),be=U(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),xe=U(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Se=U(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Ce=U(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),we=U(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Te=U(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Ee=U(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),De=U(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Oe=U(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),ke=U(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),Ae=U(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),je=U(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Me=U(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),Ne=U(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Pe=U(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),Fe=U(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Ie=U(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Le=U(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Re=U(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),ze=U(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Be=U(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Ve=U(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),He=U(`kanban`,[[`path`,{d:`M5 3v14`,key:`9nsxs2`}],[`path`,{d:`M12 3v8`,key:`1h2ygw`}],[`path`,{d:`M19 3v18`,key:`1sk56x`}]]),Ue=U(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),We=U(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Ge=U(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),Ke=U(`layout-list`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]),qe=U(`layout-template`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]),Je=U(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),W=U(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Ye=U(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),eee=U(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),Xe=U(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),Ze=U(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),tee=U(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),Qe=U(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),$e=U(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),et=U(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),tt=U(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),nt=U(`rectangle-ellipsis`,[[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M17 12h.01`,key:`1m0b6t`}],[`path`,{d:`M7 12h.01`,key:`eqddd0`}]]),rt=U(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),nee=U(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),it=U(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),at=U(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),ot=U(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),ree=U(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),st=U(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),ct=U(`trash`,[[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),lt=U(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),ut=U(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),dt=U(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),iee=U(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),ft=U(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),aee=U(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),pt=(0,m.createContext)({});function mt(e){let t=(0,m.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ht=typeof window<`u`?m.useLayoutEffect:m.useEffect,gt=(0,m.createContext)(null);function _t(e,t){e.indexOf(t)===-1&&e.push(t)}function vt(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var yt=(e,t,n)=>n>t?t:n<e?e:n;function bt(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var xt=()=>{},St=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(xt=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(bt(t,n))},St=(e,t,n)=>{if(!e)throw Error(bt(t,n))});var Ct={},wt=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Tt(e){return typeof e==`object`&&!!e}var Et=e=>/^0[^.\s]+$/u.test(e);function Dt(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ot=e=>e,oee=(e,t)=>n=>t(e(n)),kt=(...e)=>e.reduce(oee),At=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},jt=class{constructor(){this.subscriptions=[]}add(e){return _t(this.subscriptions,e),()=>vt(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Mt=e=>e*1e3,Nt=e=>e/1e3;function Pt(e,t){return t?1e3/t*e:0}var Ft=new Set;function It(e,t,n){e||Ft.has(t)||(console.warn(bt(t,n)),Ft.add(t))}var Lt=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,see=1e-7,cee=12;function lee(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Lt(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>see&&++s<cee);return o}function Rt(e,t,n,r){if(e===t&&n===r)return Ot;let i=t=>lee(t,0,1,e,n);return e=>e===0||e===1?e:Lt(i(e),t,r)}var zt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bt=e=>t=>1-e(1-t),Vt=Rt(.33,1.53,.69,.99),Ht=Bt(Vt),Ut=zt(Ht),Wt=e=>e>=1?1:(e*=2)<1?.5*Ht(e):.5*(2-2**(-10*(e-1))),Gt=e=>1-Math.sin(Math.acos(e)),Kt=Bt(Gt),uee=zt(Gt),dee=Rt(.42,0,1,1),fee=Rt(0,0,.58,1),pee=Rt(.42,0,.58,1),mee=e=>Array.isArray(e)&&typeof e[0]!=`number`,hee=e=>Array.isArray(e)&&typeof e[0]==`number`,gee={linear:Ot,easeIn:dee,easeInOut:pee,easeOut:fee,circIn:Gt,circInOut:uee,circOut:Kt,backIn:Ht,backInOut:Ut,backOut:Vt,anticipate:Wt},_ee=e=>typeof e==`string`,vee=e=>{if(hee(e)){St(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Rt(t,n,r,i)}else if(_ee(e))return St(gee[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),gee[e];return e},qt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Jt={value:null,addProjectionMetrics:null};function yee(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Jt.value&&Jt.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var bee=40;function Yt(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=qt.reduce((e,n)=>(e[n]=yee(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Ct.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,bee),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:qt.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<qt.length;t++)o[qt[t]].cancel(e)},state:i,steps:o}}var{schedule:Xt,cancel:Zt,state:Qt,steps:$t}=Yt(typeof requestAnimationFrame<`u`?requestAnimationFrame:Ot,!0),en;function xee(){en=void 0}var tn={now:()=>(en===void 0&&tn.set(Qt.isProcessing||Ct.useManualTiming?Qt.timestamp:performance.now()),en),set:e=>{en=e,queueMicrotask(xee)}},nn={layout:0,mainThread:0,waapi:0},rn=e=>t=>typeof t==`string`&&t.startsWith(e),an=rn(`--`),See=rn(`var(--`),on=e=>See(e)?Cee.test(e.split(`/*`)[0].trim()):!1,Cee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function sn(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var cn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},ln={...cn,transform:e=>yt(0,1,e)},un={...cn,default:1},dn=e=>Math.round(e*1e5)/1e5,fn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wee(e){return e==null}var Tee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pn=(e,t)=>n=>!!(typeof n==`string`&&Tee.test(n)&&n.startsWith(e)||t&&!wee(n)&&Object.prototype.hasOwnProperty.call(n,t)),mn=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(fn);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Eee=e=>yt(0,255,e),hn={...cn,transform:e=>Math.round(Eee(e))},gn={test:pn(`rgb`,`red`),parse:mn(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+hn.transform(e)+`, `+hn.transform(t)+`, `+hn.transform(n)+`, `+dn(ln.transform(r))+`)`};function Dee(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var _n={test:pn(`#`),parse:Dee,transform:gn.transform},vn=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),yn=vn(`deg`),bn=vn(`%`),G=vn(`px`),Oee=vn(`vh`),kee=vn(`vw`),Aee={...bn,parse:e=>bn.parse(e)/100,transform:e=>bn.transform(e*100)},xn={test:pn(`hsl`,`hue`),parse:mn(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+bn.transform(dn(t))+`, `+bn.transform(dn(n))+`, `+dn(ln.transform(r))+`)`},Sn={test:e=>gn.test(e)||_n.test(e)||xn.test(e),parse:e=>gn.test(e)?gn.parse(e):xn.test(e)?xn.parse(e):_n.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?gn.transform(e):xn.transform(e),getAnimatableNone:e=>{let t=Sn.parse(e);return t.alpha=0,Sn.transform(t)}},jee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Mee(e){return isNaN(e)&&typeof e==`string`&&(e.match(fn)?.length||0)+(e.match(jee)?.length||0)>0}var Nee=`number`,Pee=`color`,Fee=`var`,Iee=`var(`,Lee="${}",Ree=/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 Cn(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Ree,e=>(Sn.test(e)?(r.color.push(a),i.push(Pee),n.push(Sn.parse(e))):e.startsWith(Iee)?(r.var.push(a),i.push(Fee),n.push(e)):(r.number.push(a),i.push(Nee),n.push(parseFloat(e))),++a,Lee)).split(Lee),indexes:r,types:i}}function zee(e){return Cn(e).values}function wn({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Nee?i+=dn(r[a]):e===Pee?i+=Sn.transform(r[a]):i+=r[a]}return i}}function Bee(e){return wn(Cn(e))}var Vee=e=>typeof e==`number`?0:Sn.test(e)?Sn.getAnimatableNone(e):e,Hee=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Vee(e);function Uee(e){let t=Cn(e);return wn(t)(t.values.map((e,n)=>Hee(e,t.split[n])))}var Tn={test:Mee,parse:zee,createTransformer:Bee,getAnimatableNone:Uee};function En(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Wee({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=En(s,r,e+1/3),a=En(s,r,e),o=En(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Dn(e,t){return n=>n>0?t:e}var On=(e,t,n)=>e+(t-e)*n,kn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Gee=[_n,gn,xn],Kee=e=>Gee.find(t=>t.test(e));function An(e){let t=Kee(e);if(xt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===xn&&(n=Wee(n)),n}var jn=(e,t)=>{let n=An(e),r=An(t);if(!n||!r)return Dn(e,t);let i={...n};return e=>(i.red=kn(n.red,r.red,e),i.green=kn(n.green,r.green,e),i.blue=kn(n.blue,r.blue,e),i.alpha=On(n.alpha,r.alpha,e),gn.transform(i))},Mn=new Set([`none`,`hidden`]);function qee(e,t){return Mn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Jee(e,t){return n=>On(e,t,n)}function Nn(e){return typeof e==`number`?Jee:typeof e==`string`?on(e)?Dn:Sn.test(e)?jn:Zee:Array.isArray(e)?Pn:typeof e==`object`?Sn.test(e)?jn:Yee:Dn}function Pn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Nn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Yee(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Nn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Xee(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Zee=(e,t)=>{let n=Tn.createTransformer(t),r=Cn(e),i=Cn(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Mn.has(e)&&!i.values.length||Mn.has(t)&&!r.values.length?qee(e,t):kt(Pn(Xee(r,i),i.values),n):(xt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Dn(e,t))};function Fn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?On(e,t,n):Nn(e)(e,t)}var Qee=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Xt.update(t,e),stop:()=>Zt(t),now:()=>Qt.isProcessing?Qt.timestamp:tn.now()}},In=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Ln=2e4;function Rn(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function $ee(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Rn(r),Ln);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Nt(i)}}var zn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Bn(e,t){return e*Math.sqrt(1-t*t)}var ete=12;function tte(e,t,n){let r=n;for(let n=1;n<ete;n++)r-=e(r)/t(r);return r}var Vn=.001;function nte({duration:e=zn.duration,bounce:t=zn.bounce,velocity:n=zn.velocity,mass:r=zn.mass}){let i,a;xt(e<=Mt(zn.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=yt(zn.minDamping,zn.maxDamping,o),e=yt(zn.minDuration,zn.maxDuration,Nt(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Bn(t,o),c=Math.exp(-i);return Vn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Bn(t**2,o);return(-i(t)+Vn>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Vn+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=tte(i,a,s);if(e=Mt(e),isNaN(c))return{stiffness:zn.stiffness,damping:zn.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var rte=[`duration`,`bounce`],ite=[`stiffness`,`damping`,`mass`];function Hn(e,t){return t.some(t=>e[t]!==void 0)}function ate(e){let t={velocity:zn.velocity,stiffness:zn.stiffness,damping:zn.damping,mass:zn.mass,isResolvedFromDuration:!1,...e};if(!Hn(e,ite)&&Hn(e,rte))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*yt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:zn.mass,stiffness:i,damping:a}}else{let n=nte({...e,velocity:0});t={...t,...n,mass:zn.mass},t.isResolvedFromDuration=!0}return t}function Un(e=zn.visualDuration,t=zn.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=ate({...n,velocity:-Nt(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Nt(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?zn.restSpeed.granular:zn.restSpeed.default,i||=v?zn.restDelta.granular:zn.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Bn(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Mt(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Mt(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Mt(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Rn(T),Ln),t=In(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Un.applyToOptions=e=>{let t=$ee(e,100,Un);return e.ease=t.ease,e.duration=Mt(t.duration),e.type=`keyframes`,e};var ote=5;function Wn(e,t,n){let r=Math.max(t-ote,0);return Pt(n-e(r),t-r)}function Gn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Un({keyframes:[f.value,m(f.value)],velocity:Wn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function ste(e,t,n){let r=[],i=n||Ct.mix||Fn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=kt(Array.isArray(t)?t[n]||Ot:t,a)),r.push(a)}return r}function cte(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(St(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=ste(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=At(e[r],e[r+1],n);return s[r](i)};return n?t=>l(yt(e[0],e[a-1],t)):l}function lte(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=At(0,t,r);e.push(On(n,1,i))}}function ute(e){let t=[0];return lte(t,e.length-1),t}function dte(e,t){return e.map(e=>e*t)}function fte(e,t){return e.map(()=>t||pee).splice(0,e.length-1)}function Kn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=mee(r)?r.map(vee):vee(r),a={done:!1,value:t[0]},o=cte(dte(n&&n.length===t.length?n:ute(t),e),t,{ease:Array.isArray(i)?i:fte(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var pte=e=>e!==null;function qn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(pte),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var mte={decay:Gn,inertia:Gn,tween:Kn,keyframes:Kn,spring:Un};function Jn(e){typeof e.type==`string`&&(e.type=mte[e.type])}var Yn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},hte=e=>e/100,Xn=class extends Yn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},nn.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Jn(e);let{type:t=Kn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Kn;process.env.NODE_ENV!==`production`&&s!==Kn&&St(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==Kn&&typeof o[0]!=`number`&&(this.mixKeyframes=kt(hte,Fn(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Rn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=yt(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Gn&&(b.value=qn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Nt(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Nt(e)}get time(){return Nt(this.currentTime)}set time(e){e=Mt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Wn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tn.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Nt(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Qee,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(tn.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,nn.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function gte(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Zn=e=>e*180/Math.PI,Qn=e=>$n(Zn(Math.atan2(e[1],e[0]))),_te={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qn,rotateZ:Qn,skewX:e=>Zn(Math.atan(e[1])),skewY:e=>Zn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$n=e=>(e%=360,e<0&&(e+=360),e),er=Qn,tr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),nr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),vte={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tr,scaleY:nr,scale:e=>(tr(e)+nr(e))/2,rotateX:e=>$n(Zn(Math.atan2(e[6],e[5]))),rotateY:e=>$n(Zn(Math.atan2(-e[2],e[0]))),rotateZ:er,rotate:er,skewX:e=>Zn(Math.atan(e[4])),skewY:e=>Zn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function rr(e){return+!!e.includes(`scale`)}function ir(e,t){if(!e||e===`none`)return rr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=vte,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_te,i=t}if(!i)return rr(t);let a=r[t],o=i[1].split(`,`).map(bte);return typeof a==`function`?a(o):o[a]}var yte=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return ir(n,t)};function bte(e){return parseFloat(e.trim())}var ar=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],or=new Set(ar),sr=e=>e===cn||e===G,xte=new Set([`x`,`y`,`z`]),Ste=ar.filter(e=>!xte.has(e));function Cte(e){let t=[];return Ste.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var cr={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ir(t,`x`),y:(e,{transform:t})=>ir(t,`y`)};cr.translateX=cr.x,cr.translateY=cr.y;var lr=new Set,ur=!1,dr=!1,fr=!1;function wte(){if(dr){let e=Array.from(lr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Cte(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}dr=!1,ur=!1,lr.forEach(e=>e.complete(fr)),lr.clear()}function Tte(){lr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(dr=!0)})}function Ete(){fr=!0,Tte(),wte(),fr=!1}var pr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(lr.add(this),ur||(ur=!0,Xt.read(Tte),Xt.resolveKeyframes(wte))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}gte(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),lr.delete(this)}cancel(){this.state===`scheduled`&&(lr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Dte=e=>e.startsWith(`--`);function Ote(e,t,n){Dte(t)?e.style.setProperty(t,n):e.style[t]=n}var kte={};function Ate(e,t){let n=Dt(e);return()=>kte[t]??n()}var jte=Ate(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Mte=Ate(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Nte={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:mr([0,.65,.55,1]),circOut:mr([.55,0,1,.45]),backIn:mr([.31,.01,.66,-.59]),backOut:mr([.33,1.53,.69,.99])};function Pte(e,t){if(e)return typeof e==`function`?Mte()?In(e,t):`ease-out`:hee(e)?mr(e):Array.isArray(e)?e.map(e=>Pte(e,t)||Nte.easeOut):Nte[e]}function Fte(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Pte(s,i);Array.isArray(d)&&(u.easing=d),Jt.value&&nn.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Jt.value&&p.finished.finally(()=>{nn.waapi--}),p}function Ite(e){return typeof e==`function`&&`applyToOptions`in e}function Lte({type:e,...t}){return Ite(e)&&Mte()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Rte=class extends Yn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,St(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=Lte(e);this.animation=Fte(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=qn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Ote(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Nt(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Nt(e)}get time(){return Nt(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Mt(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&jte()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Ot):r(this)}},zte={anticipate:Wt,backInOut:Ut,circInOut:uee};function Bte(e){return e in zte}function Vte(e){typeof e.ease==`string`&&Bte(e.ease)&&(e.ease=zte[e.ease])}var hr=10,Hte=class extends Rte{constructor(e){Vte(e),Jn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Xn({...a,autoplay:!1}),s=Math.max(hr,tn.now()-this.startTime),c=yt(0,hr,s-hr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Ote(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Ute=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Tn.test(e)||e===`0`)&&!e.startsWith(`url(`));function Wte(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Gte(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ute(i,t),s=Ute(a,t);return xt(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:Wte(e)||(n===`spring`||Ite(n))&&r}function gr(e){e.duration=0,e.type=`keyframes`}var Kte=new Set([`opacity`,`clipPath`,`filter`,`transform`]),qte=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Jte(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&qte.test(e[t]))return!0;return!1}var Yte=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Xte=Dt(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Zte(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Xte()&&n&&(Kte.has(n)||Yte.has(n)&&Jte(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Qte=40,$te=class extends Yn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||pr)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=tn.now();let u=!0;Gte(e,i,a,o)||(u=!1,(Ct.instantAnimations||!s)&&l?.(qn(e,n,t)),e[0]=e[e.length-1],gr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Qte?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Zte(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Hte({...d,element:p})}catch{m=new Xn(d)}else m=new Xn(d);m.finished.then(()=>{this.notifyFinished()}).catch(Ot),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ete()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function ene(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var tne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nne(e){let t=tne.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var rne=4;function ine(e,t,n=1){St(n<=rne,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=nne(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return wt(e)?parseFloat(e):e}return on(i)?ine(i,t,n+1):i}var ane={type:`spring`,stiffness:500,damping:25,restSpeed:10},one=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sne={type:`keyframes`,duration:.8},cne={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},lne=(e,{keyframes:t})=>t.length>2?sne:or.has(e)?e.startsWith(`scale`)?one(t[1]):ane:cne;function _r(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function vr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:_r(n,e)}var une=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function dne(e){for(let t in e)if(!une.has(t))return!0;return!1}var yr=(e,t,n,r={},i,a)=>o=>{let s=vr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Mt(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};dne(s)||Object.assign(u,lne(e,u)),u.duration&&=Mt(u.duration),u.repeatDelay&&=Mt(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(gr(u),u.delay===0&&(d=!0)),(Ct.instantAnimations||Ct.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,gr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=qn(u.keyframes,s);if(e!==void 0){Xt.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Xn(u):new $te(u)};function br(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function xr(e,t,n,r){if(typeof t==`function`){let[i,a]=br(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=br(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Sr(e,t,n){let r=e.getProps();return xr(r,t,n===void 0?r.custom:n,e)}var Cr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...ar]),wr=30,fne=e=>!isNaN(parseFloat(e)),Tr={current:void 0},pne=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tn.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fne(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&It(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new jt);let n=this.events[e].add(t);return e===`change`?()=>{n(),Xt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Tr.current&&Tr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>wr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,wr);return Pt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Er(e,t){return new pne(e,t)}var Dr=e=>Array.isArray(e);function mne(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Er(n))}function hne(e){return Dr(e)?e[e.length-1]||0:e}function gne(e,t){let{transitionEnd:n={},transition:r={},...i}=Sr(e,t)||{};i={...i,...n};for(let t in i)mne(e,t,hne(i[t]))}var Or=e=>!!(e&&e.getVelocity);function _ne(e){return!!(Or(e)&&e.add)}function kr(e,t){let n=e.getValue(`willChange`);if(_ne(n))return n.add(t);if(!n&&Ct.WillChange){let n=new Ct.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ar(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var jr=`data-`+Ar(`framerAppearId`);function Mr(e){return e.props[jr]}function vne({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Nr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?_r(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&vne(d,t))continue;let o={delay:n,...vr(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Xt.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Mr(e);if(n){let e=window.MotionHandoffAnimation(n,t,Xt);e!==null&&(o.startTime=e,f=!0)}}kr(e,t);let p=l??e.shouldReduceMotion;r.start(yr(t,r,i,p&&Cr.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>Xt.update(()=>{o&&gne(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Pr(e,t,n={}){let r=Sr(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Nr(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return yne(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function yne(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Pr(c,t,{...o,delay:n+(typeof r==`function`?0:r)+ene(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function bne(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Pr(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Pr(e,t,n);else{let i=typeof t==`function`?Sr(e,t,n.custom):t;r=Promise.all(Nr(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var xne={test:e=>e===`auto`,parse:e=>e},Fr=e=>t=>t.test(e),Ir=[cn,G,bn,yn,kee,Oee,xne],Lr=e=>Ir.find(Fr(e));function Sne(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Et(e)}var Cne=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function wne(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(fn)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Cne.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Tne=/\b([a-z-]*)\(.*?\)/gu,Rr={...Tn,getAnimatableNone:e=>{let t=e.match(Tne);return t?t.map(wne).join(` `):e}},zr={...Tn,getAnimatableNone:e=>{let t=Tn.parse(e);return Tn.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Br={...cn,transform:Math.round},Vr={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,fontSize:G,backgroundPositionX:G,backgroundPositionY:G,rotate:yn,rotateX:yn,rotateY:yn,rotateZ:yn,scale:un,scaleX:un,scaleY:un,scaleZ:un,skew:yn,skewX:yn,skewY:yn,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:ln,originX:Aee,originY:Aee,originZ:G,zIndex:Br,fillOpacity:ln,strokeOpacity:ln,numOctaves:Br},Ene={...Vr,color:Sn,backgroundColor:Sn,outlineColor:Sn,fill:Sn,stroke:Sn,borderColor:Sn,borderTopColor:Sn,borderRightColor:Sn,borderBottomColor:Sn,borderLeftColor:Sn,filter:Rr,WebkitFilter:Rr,mask:zr,WebkitMask:zr},Hr=e=>Ene[e],Dne=new Set([Rr,zr]);function Ur(e,t){let n=Hr(e);return Dne.has(n)||(n=Tn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var One=new Set([`auto`,`none`,`0`]);function kne(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!One.has(t)&&Cn(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Ur(n,i)}var Ane=class extends pr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),on(r))){let i=ine(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Cr.has(n)||e.length!==2)return;let[r,i]=e,a=Lr(r),o=Lr(i);if(sn(r)!==sn(i)&&cr[n]){this.needsMeasurement=!0;return}if(a!==o)if(sr(a)&&sr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else cr[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Sne(e[t]))&&n.push(t);n.length&&kne(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=cr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Wr(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Gr=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Kr(e){return Tt(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:qr,cancel:jne}=Yt(queueMicrotask,!1),Jr={x:!1,y:!1};function Yr(){return Jr.x||Jr.y}function Mne(e){return e===`x`||e===`y`?Jr[e]?null:(Jr[e]=!0,()=>{Jr[e]=!1}):Jr.x||Jr.y?null:(Jr.x=Jr.y=!0,()=>{Jr.x=Jr.y=!1})}function Xr(e,t){let n=Wr(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Nne(e){return!(e.pointerType===`touch`||Yr())}function Pne(e,t,n={}){let[r,i,a]=Xr(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Nne(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Zr=(e,t)=>t?e===t?!0:Zr(e,t.parentElement):!1,Qr=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Fne=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ine(e){return Fne.has(e.tagName)||e.isContentEditable===!0}var Lne=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Rne(e){return Lne.has(e.tagName)||e.isContentEditable===!0}var $r=new WeakSet;function ei(e){return t=>{t.key===`Enter`&&e(t)}}function ti(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var zne=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ei(()=>{if($r.has(n))return;ti(n,`down`);let e=ei(()=>{ti(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>ti(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ni(e){return Qr(e)&&!Yr()}var ri=new WeakSet;function Bne(e,t,n={}){let[r,i,a]=Xr(e,n),o=e=>{let r=e.currentTarget;if(!ni(e)||ri.has(e))return;$r.add(r),n.stopPropagation&&ri.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),$r.has(r)&&$r.delete(r),ni(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Zr(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Kr(e)&&(e.addEventListener(`focus`,e=>zne(e,i)),!Ine(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function ii(e){return Tt(e)&&`ownerSVGElement`in e}var ai=new WeakMap,oi,si=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ii(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Vne=si(`inline`,`width`,`offsetWidth`),Hne=si(`block`,`height`,`offsetHeight`);function Une({target:e,borderBoxSize:t}){ai.get(e)?.forEach(n=>{n(e,{get width(){return Vne(e,t)},get height(){return Hne(e,t)}})})}function Wne(e){e.forEach(Une)}function Gne(){typeof ResizeObserver>`u`||(oi=new ResizeObserver(Wne))}function Kne(e,t){oi||Gne();let n=Wr(e);return n.forEach(e=>{let n=ai.get(e);n||(n=new Set,ai.set(e,n)),n.add(t),oi?.observe(e)}),()=>{n.forEach(e=>{let n=ai.get(e);n?.delete(t),n?.size||oi?.unobserve(e)})}}var ci=new Set,li;function qne(){li=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ci.forEach(t=>t(e))},window.addEventListener(`resize`,li)}function Jne(e){return ci.add(e),li||qne(),()=>{ci.delete(e),!ci.size&&typeof li==`function`&&(window.removeEventListener(`resize`,li),li=void 0)}}function ui(e,t){return typeof e==`function`?Jne(e):Kne(e,t)}function Yne(e){return ii(e)&&e.tagName===`svg`}var Xne=[...Ir,Sn,Tn],Zne=e=>Xne.find(Fr(e)),di=()=>({translate:0,scale:1,origin:0,originPoint:0}),fi=()=>({x:di(),y:di()}),pi=()=>({min:0,max:0}),mi=()=>({x:pi(),y:pi()}),Qne=new WeakMap;function hi(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function gi(e){return typeof e==`string`||Array.isArray(e)}var _i=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],vi=[`initial`,..._i];function yi(e){return hi(e.animate)||vi.some(t=>gi(e[t]))}function bi(e){return!!(yi(e)||e.variants)}function $ne(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Or(i))e.addValue(r,i);else if(Or(a))e.addValue(r,Er(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Er(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var xi={current:null},Si={current:!1},ere=typeof window<`u`;function tre(){if(Si.current=!0,ere)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>xi.current=e.matches;e.addEventListener(`change`,t),t()}else xi.current=!1}var Ci=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],wi={};function Ti(e){wi=e}function nre(){return wi}var rre=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=pr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tn.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Xt.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=yi(t),this.isVariantNode=bi(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Or(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Qne.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)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Si.current||tre(),this.shouldReduceMotion=xi.current),process.env.NODE_ENV!==`production`&&It(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Zt(this.notifyUpdate),Zt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Kte.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Rte({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Mt(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=or.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Xt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in wi){let t=wi[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(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):mi()}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<Ci.length;t++){let n=Ci[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=$ne(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 n=this.values.get(e);t!==n&&(n&&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 n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Er(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(wt(n)||Et(n))?n=parseFloat(n):!Zne(n)&&Tn.test(t)&&(n=Ur(e,t)),this.setBaseTarget(e,Or(n)?n.get():n)),Or(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=xr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Or(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new jt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){qr.render(this.render)}},Ei=class extends rre{constructor(){super(...arguments),this.KeyframeResolver=Ane}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Or(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Di=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Oi({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ire({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function are(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ki(e){return e===void 0||e===1}function Ai({scale:e,scaleX:t,scaleY:n}){return!ki(e)||!ki(t)||!ki(n)}function ji(e){return Ai(e)||Mi(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Mi(e){return Ni(e.x)||Ni(e.y)}function Ni(e){return e&&e!==`0%`}function Pi(e,t,n){return n+t*(e-n)}function Fi(e,t,n,r,i){return i!==void 0&&(e=Pi(e,i,r)),Pi(e,n,r)+t}function Ii(e,t=0,n=1,r,i){e.min=Fi(e.min,t,n,r,i),e.max=Fi(e.max,t,n,r,i)}function ore(e,{x:t,y:n}){Ii(e.x,t.translate,t.scale,t.originPoint),Ii(e.y,n.translate,n.scale,n.originPoint)}var sre=.999999999999,cre=1.0000000000001;function lre(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Li(e.x,-a.scroll.offset.x),Li(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ore(e,o)),r&&ji(a.latestValues)&&Ri(e,a.latestValues,a.layout?.layoutBox))}t.x<cre&&t.x>sre&&(t.x=1),t.y<cre&&t.y>sre&&(t.y=1)}function Li(e,t){e.min+=t,e.max+=t}function ure(e,t,n,r,i=.5){Ii(e,t,n,On(e.min,e.max,i),r)}function dre(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ri(e,t,n){let r=n??e;ure(e.x,dre(t.x,r.x),t.scaleX,t.scale,t.originX),ure(e.y,dre(t.y,r.y),t.scaleY,t.scale,t.originY)}function fre(e,t){return Oi(are(e.getBoundingClientRect(),t))}function pre(e,t,n){let r=fre(e,n),{scroll:i}=t;return i&&(Li(r.x,i.offset.x),Li(r.y,i.offset.y)),r}var mre={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},hre=ar.length;function gre(e,t,n){let r=``,i=!0;for(let a=0;a<hre;a++){let o=ar[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Gr(s,Vr[o]);if(!c){i=!1;let t=mre[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function zi(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(or.has(e)){o=!0;continue}else if(an(e)){i[e]=n;continue}else{let t=Gr(n,Vr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=gre(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function _re(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function vre(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Bi={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(G.test(e))e=parseFloat(e);else return e;return`${vre(e,t.target.x)}% ${vre(e,t.target.y)}%`}},yre={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Tn.parse(e);if(i.length>5)return r;let a=Tn.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=On(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Vi={borderRadius:{...Bi,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Bi,borderTopRightRadius:Bi,borderBottomLeftRadius:Bi,borderBottomRightRadius:Bi,boxShadow:yre};function bre(e,{layout:t,layoutId:n}){return or.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Vi[e]||e===`opacity`)}function Hi(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Or(r[t])||i&&Or(i[t])||bre(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function xre(e){return window.getComputedStyle(e)}var Sre=class extends Ei{constructor(){super(...arguments),this.type=`html`,this.renderInstance=_re}readValueFromInstance(e,t){if(or.has(t))return this.projection?.isProjecting?rr(t):yte(e,t);{let n=xre(e),r=(an(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return fre(e,t)}build(e,t,n){zi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Hi(e,t,n)}},Cre={offset:`stroke-dashoffset`,array:`stroke-dasharray`},wre={offset:`strokeDashoffset`,array:`strokeDasharray`};function Tre(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Cre:wre;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Ere=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Dre(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(zi(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Ere)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Tre(d,i,a,o,!1)}var Ore=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`]),kre=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Are(e,t,n,r){_re(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Ore.has(n)?n:Ar(n),t.attrs[n])}function jre(e,t,n){let r=Hi(e,t,n);for(let n in e)if(Or(e[n])||Or(t[n])){let t=ar.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Mre=class extends Ei{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=mi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(or.has(t)){let e=Hr(t);return e&&e.default||0}return t=Ore.has(t)?t:Ar(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return jre(e,t,n)}build(e,t,n){Dre(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Are(e,t,n,r)}mount(e){this.isSVGTag=kre(e.tagName),super.mount(e)}},Nre=vi.length;function Pre(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Pre(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Nre;n++){let r=vi[n],i=e.props[r];(gi(i)||i===!1)&&(t[r]=i)}return t}function Fre(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Ire=[..._i].reverse(),Lre=_i.length;function Rre(e){return t=>Promise.all(t.map(({animation:t,options:n})=>bne(e,t,n)))}function zre(e){let t=Rre(e),n=Vre(),r=!0,i=!1,a=t=>(n,r)=>{let i=Sr(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Pre(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Lre;t++){let p=Ire[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=gi(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||hi(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Bre(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Dr(t)&&Dr(n)?!Fre(t,n):t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Sr(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ene(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Sr(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Vre(),i=!0}}}function Bre(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Fre(t,e):!1}function Ui(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vre(){return{animate:Ui(!0),whileInView:Ui(),whileHover:Ui(),whileTap:Ui(),whileDrag:Ui(),whileFocus:Ui(),exit:Ui()}}function Wi(e,t){e.min=t.min,e.max=t.max}function Gi(e,t){Wi(e.x,t.x),Wi(e.y,t.y)}function Hre(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ure=1e-4,Wre=1-Ure,Gre=1+Ure,Kre=.01,qre=0-Kre,Jre=0+Kre;function Ki(e){return e.max-e.min}function Yre(e,t,n){return Math.abs(e-t)<=n}function Xre(e,t,n,r=.5){e.origin=r,e.originPoint=On(t.min,t.max,e.origin),e.scale=Ki(n)/Ki(t),e.translate=On(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Wre&&e.scale<=Gre||isNaN(e.scale))&&(e.scale=1),(e.translate>=qre&&e.translate<=Jre||isNaN(e.translate))&&(e.translate=0)}function qi(e,t,n,r){Xre(e.x,t.x,n.x,r?r.originX:void 0),Xre(e.y,t.y,n.y,r?r.originY:void 0)}function Zre(e,t,n,r=0){e.min=(r?On(n.min,n.max,r):n.min)+t.min,e.max=e.min+Ki(t)}function Qre(e,t,n,r){Zre(e.x,t.x,n.x,r?.x),Zre(e.y,t.y,n.y,r?.y)}function $re(e,t,n,r=0){let i=r?On(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Ki(t)}function Ji(e,t,n,r){$re(e.x,t.x,n.x,r?.x),$re(e.y,t.y,n.y,r?.y)}function eie(e,t,n,r,i){return e-=t,e=Pi(e,1/n,r),i!==void 0&&(e=Pi(e,1/i,r)),e}function tie(e,t=0,n=1,r=.5,i,a=e,o=e){if(bn.test(t)&&(t=parseFloat(t),t=On(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=On(a.min,a.max,r);e===a&&(s-=t),e.min=eie(e.min,t,n,s,i),e.max=eie(e.max,t,n,s,i)}function nie(e,t,[n,r,i],a,o){tie(e,t[n],t[r],t[i],t.scale,a,o)}var rie=[`x`,`scaleX`,`originX`],iie=[`y`,`scaleY`,`originY`];function aie(e,t,n,r){nie(e.x,t,rie,n?n.x:void 0,r?r.x:void 0),nie(e.y,t,iie,n?n.y:void 0,r?r.y:void 0)}function oie(e){return e.translate===0&&e.scale===1}function sie(e){return oie(e.x)&&oie(e.y)}function cie(e,t){return e.min===t.min&&e.max===t.max}function lie(e,t){return cie(e.x,t.x)&&cie(e.y,t.y)}function uie(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function die(e,t){return uie(e.x,t.x)&&uie(e.y,t.y)}function fie(e){return Ki(e.x)/Ki(e.y)}function pie(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Yi(e){return[e(`x`),e(`y`)]}function mie(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var hie=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],gie=hie.length,_ie=e=>typeof e==`string`?parseFloat(e):e,vie=e=>typeof e==`number`||G.test(e);function yie(e,t,n,r,i,a){i?(e.opacity=On(0,n.opacity??1,xie(r)),e.opacityExit=On(t.opacity??1,0,Sie(r))):a&&(e.opacity=On(t.opacity??1,n.opacity??1,r));for(let i=0;i<gie;i++){let a=hie[i],o=bie(t,a),s=bie(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||vie(o)===vie(s)?(e[a]=Math.max(On(_ie(o),_ie(s),r),0),(bn.test(s)||bn.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=On(t.rotate||0,n.rotate||0,r))}function bie(e,t){return e[t]===void 0?e.borderRadius:e[t]}var xie=Cie(0,.5,Kt),Sie=Cie(.5,.95,Ot);function Cie(e,t,n){return r=>r<e?0:r>t?1:n(At(e,t,r))}function wie(e,t,n){let r=Or(e)?e:Er(e);return r.start(yr(``,r,t,n)),r.animation}function Xi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Tie=(e,t)=>e.depth-t.depth,Eie=class{constructor(){this.children=[],this.isDirty=!1}add(e){_t(this.children,e),this.isDirty=!0}remove(e){vt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Tie),this.isDirty=!1,this.children.forEach(e)}};function Die(e,t){let n=tn.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Zt(r),e(a-t))};return Xt.setup(r,!0),()=>Zt(r)}function Zi(e){return Or(e)?e.get():e}var Oie=class{constructor(){this.members=[]}add(e){_t(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(vt(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(vt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Qi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$i={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ea=[``,`X`,`Y`,`Z`],kie=1e3,Aie=0;function ta(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function jie(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Mr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Xt,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&jie(r)}function Mie({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Aie++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Jt.value&&($i.nodes=$i.calculatedTargetDeltas=$i.calculatedProjections=0),this.nodes.forEach(Fie),this.nodes.forEach(Wie),this.nodes.forEach(Gie),this.nodes.forEach(Iie),Jt.addProjectionMetrics&&Jt.addProjectionMetrics($i)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Eie)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new jt),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ii(t)&&!Yne(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Xt.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Die(i,250),Qi.hasAnimatedSinceResize&&(Qi.hasAnimatedSinceResize=!1,this.nodes.forEach(Uie)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Qie,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!die(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...vr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||Uie(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zt(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(Kie),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&&jie(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,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(zie),this.nodes.forEach(Rie);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bie);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Vie),this.nodes.forEach(Hie),this.nodes.forEach(Nie),this.nodes.forEach(Pie)):this.nodes.forEach(Bie),this.clearAllSnapshots();let e=tn.now();Qt.delta=yt(0,1e3/60,e-Qt.timestamp),Qt.timestamp=e,Qt.isProcessing=!0,$t.update.process(Qt),$t.preRender.process(Qt),$t.render.process(Qt),Qt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Lie),this.sharedNodes.forEach(qie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ki(this.snapshot.measuredBox.x)&&!Ki(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=mi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(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&&!sie(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ji(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),nae(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return mi();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(iae))){let{scroll:e}=this.root;e&&(Li(t.x,e.offset.x),Li(t.y,e.offset.y))}return t}removeElementScroll(e){let t=mi();if(Gi(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Gi(t,e),Li(t.x,i.offset.x),Li(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||mi();Gi(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&&(Li(r.x,-n.scroll.offset.x),Li(r.y,-n.scroll.offset.y)),ji(n.latestValues)&&Ri(r,n.latestValues,n.layout?.layoutBox)}return ji(this.latestValues)&&Ri(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=mi();Gi(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ji(n.latestValues))continue;let r;n.instance&&(Ai(n.latestValues)&&n.updateSnapshot(),r=mi(),Gi(r,n.measurePageBox())),aie(t,n.latestValues,n.snapshot?.layoutBox,r)}return ji(this.latestValues)&&aie(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0: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!==Qt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Qt.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=mi(),this.targetWithTransforms=mi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qre(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Gi(this.target,this.layout.layoutBox),ore(this.target,this.targetDelta)):Gi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Jt.value&&$i.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ai(this.parent.latestValues)||Mi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mi(),this.relativeTargetOrigin=mi(),Ji(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Gi(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Qt.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Gi(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;lre(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=mi());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hre(this.prevProjectionDelta.x,this.projectionDelta.x),Hre(this.prevProjectionDelta.y,this.projectionDelta.y)),qi(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!pie(this.projectionDelta.x,this.prevProjectionDelta.x)||!pie(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Jt.value&&$i.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fi(),this.projectionDelta=fi(),this.projectionDeltaWithTransform=fi()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=fi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=mi(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Zie));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Jie(a.x,e.x,n),Jie(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ji(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Xie(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&lie(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=mi(),Gi(d,this.relativeTarget)),s&&(this.animationValues=i,yie(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Zt(this.pendingAnimation),void 0),this.pendingAnimation=Xt.update(()=>{Qi.hasAnimatedSinceResize=!0,nn.layout++,this.motionValue||=Er(0),this.motionValue.jump(0,!1),this.currentAnimation=wie(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{nn.layout--},onComplete:()=>{nn.layout--,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(kie),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&rae(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||mi();let t=Ki(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Ki(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Gi(t,n),Ri(t,i),qi(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Oie),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ta(`z`,e,r,this.animationValues);for(let t=0;t<ea.length;t++)ta(`rotate${ea[t]}`,e,r,this.animationValues),ta(`skew${ea[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Zi(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Zi(t?.pointerEvents)||``),this.hasProjected&&!ji(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=mie(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Vi){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Vi[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Zi(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Rie),this.root.sharedNodes.clear()}}}function Nie(e){e.updateLayout()}function Pie(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Yi(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Ki(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Wi(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else rae(i,t.layoutBox,n)&&Yi(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Ki(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=fi();qi(o,n,t.layoutBox);let s=fi();a?qi(s,e.applyTransform(r,!0),t.measuredBox):qi(s,n,t.layoutBox);let c=!sie(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=mi();Ji(s,t.layoutBox,i.layoutBox,o);let c=mi();Ji(c,n,a.layoutBox,o),die(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Fie(e){Jt.value&&$i.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Iie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Lie(e){e.clearSnapshot()}function Rie(e){e.clearMeasurements()}function zie(e){e.isLayoutDirty=!0,e.updateLayout()}function Bie(e){e.isLayoutDirty=!1}function Vie(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Hie(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Uie(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Wie(e){e.resolveTargetDelta()}function Gie(e){e.calcProjection()}function Kie(e){e.resetSkewAndRotation()}function qie(e){e.removeLeadSnapshot()}function Jie(e,t,n){e.translate=On(t.translate,0,n),e.scale=On(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Yie(e,t,n,r){e.min=On(t.min,n.min,r),e.max=On(t.max,n.max,r)}function Xie(e,t,n,r){Yie(e.x,t.x,n.x,r),Yie(e.y,t.y,n.y,r)}function Zie(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Qie={duration:.45,ease:[.4,0,.1,1]},$ie=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),eae=$ie(`applewebkit/`)&&!$ie(`chrome/`)?Math.round:Ot;function tae(e){e.min=eae(e.min),e.max=eae(e.max)}function nae(e){tae(e.x),tae(e.y)}function rae(e,t,n){return e===`position`||e===`preserve-aspect`&&!Yre(fie(t),fie(n),.2)}function iae(e){return e!==e.root&&e.scroll?.wasRoot}var aae=Mie({attachResizeListener:(e,t)=>Xi(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),na={current:void 0},oae=Mie({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!na.current){let e=new aae({});e.mount(window),e.setOptions({layoutScroll:!0}),na.current=e}return na.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),ra=(0,m.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function sae(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function cae(...e){return t=>{let n=!1,r=e.map(e=>{let r=sae(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():sae(e[t],null)}}}}function lae(...e){return m.useCallback(cae(...e),e)}var uae=class extends m.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Kr(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Kr(e)&&e.offsetWidth||0,r=Kr(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}};function dae({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,m.useId)(),s=(0,m.useRef)(null),c=(0,m.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=(0,m.useContext)(ra),u=lae(s,e.props?.ref??e?.ref);return(0,m.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m}=c.current;if(t||a===!1||!s.current||!e||!u)return;let h=n===`left`?`left: ${f}`:`right: ${p}`,g=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let _=document.createElement(`style`);l&&(_.nonce=l);let v=i??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(`
2
2
  [data-motion-pop-id="${o}"] {
3
3
  position: absolute !important;
4
4
  width: ${e}px !important;
@@ -599,7 +599,7 @@ service firebase.storage {
599
599
  }
600
600
  }
601
601
  }
602
- `,yHn=[{key:`VITE_FIREBASE_API_KEY`,label:`API Key`},{key:`VITE_FIREBASE_AUTH_DOMAIN`,label:`Auth Domain`},{key:`VITE_FIREBASE_PROJECT_ID`,label:`Project ID`},{key:`VITE_FIREBASE_STORAGE_BUCKET`,label:`Storage Bucket`},{key:`VITE_FIREBASE_MESSAGING_SENDER_ID`,label:`Messaging Sender ID`},{key:`VITE_FIREBASE_APP_ID`,label:`App ID`}];function bHn(e){try{let t={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_ADMIN_EMAILS:void 0,VITE_FIREBASE_API_KEY:void 0,VITE_FIREBASE_APP_ID:void 0,VITE_FIREBASE_AUTH_DOMAIN:void 0,VITE_FIREBASE_MESSAGING_SENDER_ID:void 0,VITE_FIREBASE_PROJECT_ID:void 0,VITE_FIREBASE_STORAGE_BUCKET:void 0}?.[e];if(t&&typeof t==`string`&&t.trim()!==``)return t}catch{}try{let t=localStorage.getItem(`firebase_config`);if(t){let n=JSON.parse(t),r={VITE_FIREBASE_API_KEY:`apiKey`,VITE_FIREBASE_AUTH_DOMAIN:`authDomain`,VITE_FIREBASE_PROJECT_ID:`projectId`,VITE_FIREBASE_STORAGE_BUCKET:`storageBucket`,VITE_FIREBASE_MESSAGING_SENDER_ID:`messagingSenderId`,VITE_FIREBASE_APP_ID:`appId`,VITE_ADMIN_EMAILS:`adminEmails`}[e];if(r&&n[r])return n[r]}}catch{}return``}function xHn(){let e=[];for(let{key:t,label:n}of yHn){let r=bHn(t);(!r||r.trim()===``)&&e.push(n)}let t=bHn(`VITE_ADMIN_EMAILS`),n=!t||t.trim()===``;return{allSet:e.length===0,missing:e,missingAdminEmails:n}}function SHn(){return xHn().allSet}var CHn=_Hn,wHn=vHn,THn=`VITE_FIREBASE_API_KEY=AIzaSyDxJ...
602
+ `,yHn=[{key:`VITE_FIREBASE_API_KEY`,label:`API Key`},{key:`VITE_FIREBASE_AUTH_DOMAIN`,label:`Auth Domain`},{key:`VITE_FIREBASE_PROJECT_ID`,label:`Project ID`},{key:`VITE_FIREBASE_STORAGE_BUCKET`,label:`Storage Bucket`},{key:`VITE_FIREBASE_MESSAGING_SENDER_ID`,label:`Messaging Sender ID`},{key:`VITE_FIREBASE_APP_ID`,label:`App ID`}];function bHn(e){let t;try{switch(e){case`VITE_FIREBASE_API_KEY`:t=void 0;break;case`VITE_FIREBASE_AUTH_DOMAIN`:t=void 0;break;case`VITE_FIREBASE_PROJECT_ID`:t=void 0;break;case`VITE_FIREBASE_STORAGE_BUCKET`:t=void 0;break;case`VITE_FIREBASE_MESSAGING_SENDER_ID`:t=void 0;break;case`VITE_FIREBASE_APP_ID`:t=void 0;break;case`VITE_ADMIN_EMAILS`:t=void 0;break}if(t&&typeof t==`string`&&t.trim()!==``)return t}catch{}try{let t=localStorage.getItem(`firebase_config`);if(t){let n=JSON.parse(t),r={VITE_FIREBASE_API_KEY:`apiKey`,VITE_FIREBASE_AUTH_DOMAIN:`authDomain`,VITE_FIREBASE_PROJECT_ID:`projectId`,VITE_FIREBASE_STORAGE_BUCKET:`storageBucket`,VITE_FIREBASE_MESSAGING_SENDER_ID:`messagingSenderId`,VITE_FIREBASE_APP_ID:`appId`,VITE_ADMIN_EMAILS:`adminEmails`}[e];if(r&&n[r])return n[r]}}catch{}return``}function xHn(){let e=[];for(let{key:t,label:n}of yHn){let r=bHn(t);(!r||r.trim()===``)&&e.push(n)}let t=bHn(`VITE_ADMIN_EMAILS`),n=!t||t.trim()===``;return{allSet:e.length===0,missing:e,missingAdminEmails:n}}function SHn(){return xHn().allSet}var CHn=_Hn,wHn=vHn,THn=`VITE_FIREBASE_API_KEY=AIzaSyDxJ...
603
603
  VITE_FIREBASE_AUTH_DOMAIN=myproject.firebaseapp.com
604
604
  VITE_FIREBASE_PROJECT_ID=myproject
605
605
  VITE_FIREBASE_STORAGE_BUCKET=myproject.firebasestorage.app
@@ -615,11 +615,17 @@ VITE_ADMIN_EMAILS=your@email.com,other@email.com`;function EHn({code:e,label:t})
615
615
  storageBucket: "myproject.firebasestorage.app",
616
616
  messagingSenderId: "123456789012",
617
617
  appId: "1:123456789012:web:abcdef123456"
618
- };`})})]}),(0,y.jsxs)(Y9,{title:`Configure your .env file`,children:[(0,y.jsxs)(`p`,{children:[`Open the `,(0,y.jsx)(`code`,{className:`text-accent font-bold text-[13px]`,children:`.env`}),` file in your source code root. Map the keys from your Firebase Web SDK to the `,(0,y.jsx)(`code`,{className:`bg-foreground/5 rounded px-2 py-0.5 font-mono text-[11px]`,children:`VITE_ FIREBASE_`}),` variables.`]}),(0,y.jsxs)(`p`,{className:`text-[13px] bg-accent/10 border border-accent/20 p-3 rounded-xl mt-2 text-foreground/80`,children:[(0,y.jsx)(`strong`,{children:`Important:`}),` Provide your own emails in `,(0,y.jsx)(`code`,{className:`bg-background/80 rounded px-1.5 py-0.5 font-mono text-[11px]`,children:`VITE_ADMIN_EMAILS`}),` separated by commas. These users will automatically get full admin privileges upon their first registration. No quotes or spaces!`]}),(0,y.jsx)(DHn,{code:THn})]}),(0,y.jsx)(Y9,{title:`Enable Authentication`,children:(0,y.jsxs)(`p`,{children:[`1. In Firebase console Sidebar, go to `,(0,y.jsx)(`strong`,{children:`Product categories`}),` → `,(0,y.jsx)(`strong`,{children:`Security`}),` → `,(0,y.jsx)(`strong`,{children:`Authentication`}),`. Click `,(0,y.jsx)(`strong`,{children:`Get Started`}),`. `,(0,y.jsx)(`br`,{}),`2. Click the `,(0,y.jsx)(`strong`,{children:`Sign-in method`}),` tab. `,(0,y.jsx)(`br`,{}),`3. Enable `,(0,y.jsx)(`strong`,{children:`Email/Password`}),` (no need to enable email links). `,(0,y.jsx)(`br`,{}),`4. Enable `,(0,y.jsx)(`strong`,{children:`Google`}),`. `,(0,y.jsx)(`br`,{}),`5. Enable `,(0,y.jsx)(`strong`,{children:`Anonymous`}),`.`]})}),(0,y.jsxs)(Y9,{title:`Create Firestore Database`,children:[(0,y.jsxs)(`p`,{children:[`1. In the Sidebar, go to `,(0,y.jsx)(`strong`,{children:`Product categories`}),` → `,(0,y.jsx)(`strong`,{children:`Database and Storage`}),` → `,(0,y.jsx)(`strong`,{children:`Firestore`}),`. Click `,(0,y.jsx)(`strong`,{children:`Create database`}),`. `,(0,y.jsx)(`br`,{}),`2. Keep the default location and start in `,(0,y.jsx)(`strong`,{children:`Production mode`}),`. `,(0,y.jsx)(`br`,{}),`3. Go to the `,(0,y.jsx)(`strong`,{children:`Rules`}),` tab, paste the rules below, and click `,(0,y.jsx)(`strong`,{children:`Publish`}),`.`]}),(0,y.jsx)(EHn,{code:CHn,label:`Copy Firestore Rules`})]}),(0,y.jsxs)(Y9,{title:`Configure Storage (Optional but Recommended)`,children:[(0,y.jsxs)(`p`,{children:[`1. In the Sidebar, go to `,(0,y.jsx)(`strong`,{children:`Product categories`}),` → `,(0,y.jsx)(`strong`,{children:`Database and Storage`}),` → `,(0,y.jsx)(`strong`,{children:`Storage`}),`. Click `,(0,y.jsx)(`strong`,{children:`Get started`}),`. Start in production mode. `,(0,y.jsx)(`br`,{}),`2. Once created, copy the bucket URL (e.g. `,(0,y.jsx)(`code`,{className:`text-[12px] bg-foreground/5 rounded px-1.5 py-0.5`,children:`your-project.firebasestorage.app`}),`) and paste it into `,(0,y.jsx)(`code`,{className:`text-[12px] bg-foreground/5 rounded px-1.5 py-0.5`,children:`VITE_FIREBASE_STORAGE_BUCKET`}),` in your `,(0,y.jsx)(`code`,{className:`text-[13px] font-bold`,children:`.env`}),`. `,(0,y.jsx)(`br`,{}),`3. In Firebase Storage, go to the `,(0,y.jsx)(`strong`,{children:`Rules`}),` tab, paste tracking rules, and click `,(0,y.jsx)(`strong`,{children:`Publish`}),`.`]}),(0,y.jsx)(EHn,{code:wHn,label:`Copy Storage Rules`}),(0,y.jsx)(`p`,{className:`text-[12px] mt-4 opacity-60 font-medium border-l-2 border-foreground/20 pl-3`,children:`Note: Storage rules require the Blaze pay-as-you-go plan, but there are large free tiers so you won't be charged for development usage.`})]})]})]})})]})}function kHn(){let{user:e}=B(),t=(e?.displayName||e?.email?.split(`@`)[0]||`there`).split(` `)[0],n=t.charAt(0).toUpperCase()+t.slice(1);return(0,y.jsxs)(`main`,{className:`flex-1 w-full max-w-7xl mx-auto p-4 md:p-8 z-10 flex flex-col`,children:[(0,y.jsxs)(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-8`,children:[(0,y.jsxs)(`h1`,{className:`w-fit inline-block text-3xl md:text-4xl lg:text-5xl font-extrabold tracking-tight mb-3 text-gradient mt-1`,children:[`Welcome back, `,n,`.`]}),(0,y.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,y.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),`/dashboard`]})]}),(0,y.jsxs)(`div`,{className:`flex flex-col gap-4 flex-1 min-h-[500px]`,children:[(0,y.jsx)(`div`,{className:`flex justify-start`,children:(0,y.jsx)(p9,{})}),(0,y.jsxs)(`div`,{className:`w-full flex-1 glass-panel rounded-3xl p-8 md:p-12 flex items-center justify-center relative overflow-hidden border border-[var(--panel-border)] shadow-2xl bg-[var(--panel-bg)]`,children:[(0,y.jsx)(`div`,{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-64 h-64 bg-accent/10 blur-[100px] rounded-full pointer-events-none`}),(0,y.jsx)(K,{mode:`wait`,children:(0,y.jsxs)(q.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.3},className:`text-center z-10`,children:[(0,y.jsx)(`div`,{className:`w-16 h-16 rounded-3xl bg-accent/10 border border-accent/20 flex items-center justify-center text-accent mx-auto mb-6 shadow-inner`,children:(0,y.jsx)(Me,{className:`w-6 h-6`})}),(0,y.jsx)(`h2`,{className:`text-2xl font-extrabold text-foreground mb-2`,children:`No data added here yet`}),(0,y.jsx)(`p`,{className:`text-foreground/40 font-medium`,children:`Keep moving forward, your data will appear here.`})]})})]})]})]})}var X9=()=>(0,y.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center min-h-[60vh] z-10 animate-in fade-in duration-500`,children:[(0,y.jsx)(`div`,{className:`w-12 h-12 rounded-xl glass-panel border border-[var(--panel-border)] flex items-center justify-center mb-6 shadow-xl`,children:(0,y.jsx)(Me,{className:`w-6 h-6 text-accent animate-pulse`})}),(0,y.jsxs)(`div`,{className:`flex items-center gap-3 glass-panel px-5 py-2.5 rounded-full border border-[var(--panel-border)]`,children:[(0,y.jsx)(`div`,{className:`w-4 h-4 border-2 border-accent border-t-transparent rounded-full animate-spin`}),(0,y.jsx)(`span`,{className:`text-[13px] font-bold tracking-widest uppercase text-foreground/70`,children:`Connecting`})]})]});function Z9({children:e}){let{user:t,loading:n,userInactive:r,signOut:i,roleResolved:a}=B(),o=(0,b.useLocation)();return n||!a?(0,y.jsx)(X9,{}):t?r?(0,y.jsx)(`div`,{className:`flex-1 flex flex-col items-center justify-center relative z-10 min-h-[60vh] animate-in fade-in duration-500`,children:(0,y.jsxs)(`div`,{className:`glass-panel p-8 md:p-10 rounded-3xl border border-red-500/20 text-center shadow-xl max-w-sm w-full relative overflow-hidden`,children:[(0,y.jsx)(`div`,{className:`absolute inset-0 bg-red-500/5`}),(0,y.jsx)(`h2`,{className:`text-2xl font-black text-red-500 mb-3 relative z-10 tracking-tight`,children:`Access Denied`}),(0,y.jsx)(`p`,{className:`text-[14px] text-foreground/70 font-medium leading-relaxed relative z-10 mb-6`,children:`You don't have access to this app. Please contact the administrator.`}),(0,y.jsx)(`button`,{onClick:()=>i(),className:`w-full relative z-10 py-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground text-[14px] font-bold rounded-xl transition-colors`,children:`Sign Out`})]})}):t.emailVerified?(0,y.jsx)(y.Fragment,{children:e}):(0,y.jsx)(b.Navigate,{to:`/verify`}):(0,y.jsx)(b.Navigate,{to:`/login?from=${encodeURIComponent(o.pathname)}`})}function Q9({children:e}){let{user:t,loading:n,roleResolved:r}=B(),[i]=(0,b.useSearchParams)();return n||!r?(0,y.jsx)(X9,{}):t&&t.emailVerified?(0,y.jsx)(b.Navigate,{to:i.get(`from`)||`/dashboard`,replace:!0}):(0,y.jsx)(y.Fragment,{children:e})}function AHn({children:e}){let{user:t,loading:n,roleResolved:r}=B();return n||!r?(0,y.jsx)(X9,{}):t?t.emailVerified?(0,y.jsx)(b.Navigate,{to:`/dashboard`}):(0,y.jsx)(y.Fragment,{children:e}):(0,y.jsx)(b.Navigate,{to:`/`})}function $9({children:e}){let{user:t,userRole:n,loading:r,userInactive:i,signOut:a,roleResolved:o}=B(),s=(0,b.useLocation)();return r||!o?(0,y.jsx)(X9,{}):t?i?(0,y.jsx)(`div`,{className:`flex-1 flex flex-col items-center justify-center relative z-10 min-h-[60vh] animate-in fade-in duration-500`,children:(0,y.jsxs)(`div`,{className:`glass-panel p-8 md:p-10 rounded-3xl border border-red-500/20 text-center shadow-xl max-w-sm w-full relative overflow-hidden`,children:[(0,y.jsx)(`div`,{className:`absolute inset-0 bg-red-500/5`}),(0,y.jsx)(`h2`,{className:`text-2xl font-black text-red-500 mb-3 relative z-10 tracking-tight`,children:`Access Denied`}),(0,y.jsx)(`p`,{className:`text-[14px] text-foreground/70 font-medium leading-relaxed relative z-10 mb-6`,children:`You don't have access to this app. Please contact the administrator.`}),(0,y.jsx)(`button`,{onClick:()=>a(),className:`w-full relative z-10 py-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground text-[14px] font-bold rounded-xl transition-colors`,children:`Sign Out`})]})}):t.emailVerified?n===`admin`?(0,y.jsx)(y.Fragment,{children:e}):(0,y.jsx)(b.Navigate,{to:`/dashboard`}):(0,y.jsx)(b.Navigate,{to:`/verify`}):(0,y.jsx)(b.Navigate,{to:`/login?from=${encodeURIComponent(s.pathname)}`})}function jHn(){return(0,y.jsxs)(`div`,{className:`fixed top-0 left-0 w-full h-full pointer-events-none -z-0 overflow-hidden`,children:[(0,y.jsx)(q.div,{animate:{scale:[1,1.1,1],opacity:[.6,1,.6]},transition:{duration:12,repeat:1/0,ease:`easeInOut`},className:`absolute -top-[30%] md:-top-[400px] -right-[10%] md:-right-[200px] w-[500px] md:w-[800px] h-[500px] md:h-[800px] rounded-full bg-decorator-1 blur-[80px] md:blur-[120px]`}),(0,y.jsx)(q.div,{animate:{scale:[1,1.2,1],opacity:[.5,.9,.5]},transition:{duration:18,repeat:1/0,ease:`easeInOut`,delay:2},className:`absolute -bottom-[20%] md:-bottom-[300px] -left-[10%] md:-left-[100px] w-[400px] md:w-[600px] h-[400px] md:h-[600px] rounded-full bg-decorator-2 blur-[60px] md:blur-[100px]`})]})}function MHn(){return(0,y.jsx)(z,{children:(0,y.jsxs)(`div`,{className:`min-h-screen relative flex flex-col overflow-x-hidden`,children:[(0,y.jsx)(Xo,{}),(0,y.jsxs)(b.Routes,{children:[(0,y.jsx)(b.Route,{path:`/`,element:(0,y.jsx)(Q9,{children:(0,y.jsx)(Gse,{})})}),(0,y.jsx)(b.Route,{path:`/register`,element:(0,y.jsx)(Q9,{children:(0,y.jsx)(Kse,{})})}),(0,y.jsx)(b.Route,{path:`/login`,element:(0,y.jsx)(Q9,{children:(0,y.jsx)(qse,{})})}),(0,y.jsx)(b.Route,{path:`/reset-password`,element:(0,y.jsx)(Q9,{children:(0,y.jsx)(bBn,{})})}),(0,y.jsx)(b.Route,{path:`/verify`,element:(0,y.jsx)(AHn,{children:(0,y.jsx)(Jse,{})})}),(0,y.jsx)(b.Route,{path:`/templates`,element:(0,y.jsx)(OBn,{})}),(0,y.jsx)(b.Route,{path:`/templates/inline_form`,element:(0,y.jsx)(kBn,{})}),(0,y.jsx)(b.Route,{path:`/templates/popup_form`,element:(0,y.jsx)(ABn,{})}),(0,y.jsx)(b.Route,{path:`/templates/confirmation`,element:(0,y.jsx)(jBn,{})}),(0,y.jsx)(b.Route,{path:`/templates/board`,element:(0,y.jsx)(GBn,{})}),(0,y.jsx)(b.Route,{path:`/templates/table`,element:(0,y.jsx)(XVn,{})}),(0,y.jsx)(b.Route,{path:`/templates/calendar`,element:(0,y.jsx)(QVn,{})}),(0,y.jsx)(b.Route,{path:`/users`,element:(0,y.jsx)($9,{children:(0,y.jsx)(xBn,{})})}),(0,y.jsx)(b.Route,{path:`/users/:id`,element:(0,y.jsx)($9,{children:(0,y.jsx)(xBn,{})})}),(0,y.jsx)(b.Route,{path:`/submissions`,element:(0,y.jsx)($9,{children:(0,y.jsx)(TBn,{})})}),(0,y.jsx)(b.Route,{path:`/requests`,element:(0,y.jsx)($9,{children:(0,y.jsx)(EBn,{})})}),(0,y.jsx)(b.Route,{path:`/drive/*`,element:(0,y.jsx)(Z9,{children:(0,y.jsx)(DBn,{})})}),(0,y.jsx)(b.Route,{path:`/theme`,element:(0,y.jsx)($9,{children:(0,y.jsx)(rHn,{})})}),(0,y.jsx)(b.Route,{path:`/pages/*`,element:(0,y.jsx)($9,{children:(0,y.jsx)(uHn,{})})}),(0,y.jsx)(b.Route,{path:`/forms/*`,element:(0,y.jsx)($9,{children:(0,y.jsx)(dHn,{})})}),(0,y.jsx)(b.Route,{path:`/settings`,element:(0,y.jsx)($9,{children:(0,y.jsx)(wBn,{})})}),(0,y.jsx)(b.Route,{path:`/profile`,element:(0,y.jsx)(Z9,{children:(0,y.jsx)(yBn,{})})}),(0,y.jsx)(b.Route,{path:`/dashboard`,element:(0,y.jsx)(Z9,{children:(0,y.jsx)(kHn,{})})}),(0,y.jsx)(b.Route,{path:`/setup`,element:(0,y.jsx)(OHn,{})}),(0,y.jsx)(b.Route,{path:`*`,element:(0,y.jsx)(gHn,{})})]}),(0,y.jsx)(jHn,{})]})})}function NHn(){return(0,y.jsx)(b.BrowserRouter,{children:(0,y.jsx)(PHn,{})})}function PHn(){return SHn()?(0,y.jsx)(MHn,{}):(0,y.jsxs)(`div`,{className:`min-h-screen relative flex flex-col overflow-x-hidden`,children:[(0,y.jsx)(Xo,{standalone:!0}),(0,y.jsx)(OHn,{standalone:!0}),(0,y.jsx)(jHn,{})]})}function FHn(e){return e.firebaseConfig&&E(e.firebaseConfig),(0,y.jsx)(L,{config:{firebaseConfig:e.firebaseConfig,adminEmails:e.adminEmails,basename:e.basename,onAuthChange:e.onAuthChange},children:(0,y.jsx)(F,{children:(0,y.jsxs)(`div`,{className:`firebase-os`,style:{position:`fixed`,inset:0,width:`100vw`,height:`100vh`,zIndex:9999,overflowY:`auto`,overflowX:`hidden`,textAlign:`left`,margin:0,padding:0},children:[(0,y.jsx)(`style`,{children:`
619
- .firebase-os h1, .firebase-os h2, .firebase-os h3, .firebase-os h4, .firebase-os h5, .firebase-os h6 {
620
- font-family: var(--font-family, 'Inter', system-ui, sans-serif) !important;
618
+ };`})})]}),(0,y.jsxs)(Y9,{title:`Configure your .env file`,children:[(0,y.jsxs)(`p`,{children:[`Open the `,(0,y.jsx)(`code`,{className:`text-accent font-bold text-[13px]`,children:`.env`}),` file in your source code root. Map the keys from your Firebase Web SDK to the `,(0,y.jsx)(`code`,{className:`bg-foreground/5 rounded px-2 py-0.5 font-mono text-[11px]`,children:`VITE_ FIREBASE_`}),` variables.`]}),(0,y.jsxs)(`p`,{className:`text-[13px] bg-accent/10 border border-accent/20 p-3 rounded-xl mt-2 text-foreground/80`,children:[(0,y.jsx)(`strong`,{children:`Important:`}),` Provide your own emails in `,(0,y.jsx)(`code`,{className:`bg-background/80 rounded px-1.5 py-0.5 font-mono text-[11px]`,children:`VITE_ADMIN_EMAILS`}),` separated by commas. These users will automatically get full admin privileges upon their first registration. No quotes or spaces!`]}),(0,y.jsx)(DHn,{code:THn})]}),(0,y.jsx)(Y9,{title:`Enable Authentication`,children:(0,y.jsxs)(`p`,{children:[`1. In Firebase console Sidebar, go to `,(0,y.jsx)(`strong`,{children:`Product categories`}),` → `,(0,y.jsx)(`strong`,{children:`Security`}),` → `,(0,y.jsx)(`strong`,{children:`Authentication`}),`. Click `,(0,y.jsx)(`strong`,{children:`Get Started`}),`. `,(0,y.jsx)(`br`,{}),`2. Click the `,(0,y.jsx)(`strong`,{children:`Sign-in method`}),` tab. `,(0,y.jsx)(`br`,{}),`3. Enable `,(0,y.jsx)(`strong`,{children:`Email/Password`}),` (no need to enable email links). `,(0,y.jsx)(`br`,{}),`4. Enable `,(0,y.jsx)(`strong`,{children:`Google`}),`. `,(0,y.jsx)(`br`,{}),`5. Enable `,(0,y.jsx)(`strong`,{children:`Anonymous`}),`.`]})}),(0,y.jsxs)(Y9,{title:`Create Firestore Database`,children:[(0,y.jsxs)(`p`,{children:[`1. In the Sidebar, go to `,(0,y.jsx)(`strong`,{children:`Product categories`}),` → `,(0,y.jsx)(`strong`,{children:`Database and Storage`}),` → `,(0,y.jsx)(`strong`,{children:`Firestore`}),`. Click `,(0,y.jsx)(`strong`,{children:`Create database`}),`. `,(0,y.jsx)(`br`,{}),`2. Keep the default location and start in `,(0,y.jsx)(`strong`,{children:`Production mode`}),`. `,(0,y.jsx)(`br`,{}),`3. Go to the `,(0,y.jsx)(`strong`,{children:`Rules`}),` tab, paste the rules below, and click `,(0,y.jsx)(`strong`,{children:`Publish`}),`.`]}),(0,y.jsx)(EHn,{code:CHn,label:`Copy Firestore Rules`})]}),(0,y.jsxs)(Y9,{title:`Configure Storage (Optional but Recommended)`,children:[(0,y.jsxs)(`p`,{children:[`1. In the Sidebar, go to `,(0,y.jsx)(`strong`,{children:`Product categories`}),` → `,(0,y.jsx)(`strong`,{children:`Database and Storage`}),` → `,(0,y.jsx)(`strong`,{children:`Storage`}),`. Click `,(0,y.jsx)(`strong`,{children:`Get started`}),`. Start in production mode. `,(0,y.jsx)(`br`,{}),`2. Once created, copy the bucket URL (e.g. `,(0,y.jsx)(`code`,{className:`text-[12px] bg-foreground/5 rounded px-1.5 py-0.5`,children:`your-project.firebasestorage.app`}),`) and paste it into `,(0,y.jsx)(`code`,{className:`text-[12px] bg-foreground/5 rounded px-1.5 py-0.5`,children:`VITE_FIREBASE_STORAGE_BUCKET`}),` in your `,(0,y.jsx)(`code`,{className:`text-[13px] font-bold`,children:`.env`}),`. `,(0,y.jsx)(`br`,{}),`3. In Firebase Storage, go to the `,(0,y.jsx)(`strong`,{children:`Rules`}),` tab, paste tracking rules, and click `,(0,y.jsx)(`strong`,{children:`Publish`}),`.`]}),(0,y.jsx)(EHn,{code:wHn,label:`Copy Storage Rules`}),(0,y.jsx)(`p`,{className:`text-[12px] mt-4 opacity-60 font-medium border-l-2 border-foreground/20 pl-3`,children:`Note: Storage rules require the Blaze pay-as-you-go plan, but there are large free tiers so you won't be charged for development usage.`})]})]})]})})]})}function kHn(){let{user:e}=B(),t=(e?.displayName||e?.email?.split(`@`)[0]||`there`).split(` `)[0],n=t.charAt(0).toUpperCase()+t.slice(1);return(0,y.jsxs)(`main`,{className:`flex-1 w-full max-w-7xl mx-auto p-4 md:p-8 z-10 flex flex-col`,children:[(0,y.jsxs)(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:`mb-8`,children:[(0,y.jsxs)(`h1`,{className:`w-fit inline-block text-3xl md:text-4xl lg:text-5xl font-extrabold tracking-tight mb-3 text-gradient mt-1`,children:[`Welcome back, `,n,`.`]}),(0,y.jsxs)(`div`,{className:`flex items-center gap-2 text-foreground/40 font-bold uppercase tracking-[0.2em] text-[11px]`,children:[(0,y.jsx)(`span`,{className:`w-8 h-[1px] bg-foreground/10`}),`/dashboard`]})]}),(0,y.jsxs)(`div`,{className:`flex flex-col gap-4 flex-1 min-h-[500px]`,children:[(0,y.jsx)(`div`,{className:`flex justify-start`,children:(0,y.jsx)(p9,{})}),(0,y.jsxs)(`div`,{className:`w-full flex-1 glass-panel rounded-3xl p-8 md:p-12 flex items-center justify-center relative overflow-hidden border border-[var(--panel-border)] shadow-2xl bg-[var(--panel-bg)]`,children:[(0,y.jsx)(`div`,{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-64 h-64 bg-accent/10 blur-[100px] rounded-full pointer-events-none`}),(0,y.jsx)(K,{mode:`wait`,children:(0,y.jsxs)(q.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.3},className:`text-center z-10`,children:[(0,y.jsx)(`div`,{className:`w-16 h-16 rounded-3xl bg-accent/10 border border-accent/20 flex items-center justify-center text-accent mx-auto mb-6 shadow-inner`,children:(0,y.jsx)(Me,{className:`w-6 h-6`})}),(0,y.jsx)(`h2`,{className:`text-2xl font-extrabold text-foreground mb-2`,children:`No data added here yet`}),(0,y.jsx)(`p`,{className:`text-foreground/40 font-medium`,children:`Keep moving forward, your data will appear here.`})]})})]})]})]})}var X9=()=>(0,y.jsxs)(`div`,{className:`flex-1 flex flex-col items-center justify-center min-h-[60vh] z-10 animate-in fade-in duration-500`,children:[(0,y.jsx)(`div`,{className:`w-12 h-12 rounded-xl glass-panel border border-[var(--panel-border)] flex items-center justify-center mb-6 shadow-xl`,children:(0,y.jsx)(Me,{className:`w-6 h-6 text-accent animate-pulse`})}),(0,y.jsxs)(`div`,{className:`flex items-center gap-3 glass-panel px-5 py-2.5 rounded-full border border-[var(--panel-border)]`,children:[(0,y.jsx)(`div`,{className:`w-4 h-4 border-2 border-accent border-t-transparent rounded-full animate-spin`}),(0,y.jsx)(`span`,{className:`text-[13px] font-bold tracking-widest uppercase text-foreground/70`,children:`Connecting`})]})]});function Z9({children:e}){let{user:t,loading:n,userInactive:r,signOut:i,roleResolved:a}=B(),o=(0,b.useLocation)();return n||!a?(0,y.jsx)(X9,{}):t?r?(0,y.jsx)(`div`,{className:`flex-1 flex flex-col items-center justify-center relative z-10 min-h-[60vh] animate-in fade-in duration-500`,children:(0,y.jsxs)(`div`,{className:`glass-panel p-8 md:p-10 rounded-3xl border border-red-500/20 text-center shadow-xl max-w-sm w-full relative overflow-hidden`,children:[(0,y.jsx)(`div`,{className:`absolute inset-0 bg-red-500/5`}),(0,y.jsx)(`h2`,{className:`text-2xl font-black text-red-500 mb-3 relative z-10 tracking-tight`,children:`Access Denied`}),(0,y.jsx)(`p`,{className:`text-[14px] text-foreground/70 font-medium leading-relaxed relative z-10 mb-6`,children:`You don't have access to this app. Please contact the administrator.`}),(0,y.jsx)(`button`,{onClick:()=>i(),className:`w-full relative z-10 py-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground text-[14px] font-bold rounded-xl transition-colors`,children:`Sign Out`})]})}):t.emailVerified?(0,y.jsx)(y.Fragment,{children:e}):(0,y.jsx)(b.Navigate,{to:`/verify`}):(0,y.jsx)(b.Navigate,{to:`/login?from=${encodeURIComponent(o.pathname)}`})}function Q9({children:e}){let{user:t,loading:n,roleResolved:r}=B(),[i]=(0,b.useSearchParams)();return n||!r?(0,y.jsx)(X9,{}):t&&t.emailVerified?(0,y.jsx)(b.Navigate,{to:i.get(`from`)||`/dashboard`,replace:!0}):(0,y.jsx)(y.Fragment,{children:e})}function AHn({children:e}){let{user:t,loading:n,roleResolved:r}=B();return n||!r?(0,y.jsx)(X9,{}):t?t.emailVerified?(0,y.jsx)(b.Navigate,{to:`/dashboard`}):(0,y.jsx)(y.Fragment,{children:e}):(0,y.jsx)(b.Navigate,{to:`/`})}function $9({children:e}){let{user:t,userRole:n,loading:r,userInactive:i,signOut:a,roleResolved:o}=B(),s=(0,b.useLocation)();return r||!o?(0,y.jsx)(X9,{}):t?i?(0,y.jsx)(`div`,{className:`flex-1 flex flex-col items-center justify-center relative z-10 min-h-[60vh] animate-in fade-in duration-500`,children:(0,y.jsxs)(`div`,{className:`glass-panel p-8 md:p-10 rounded-3xl border border-red-500/20 text-center shadow-xl max-w-sm w-full relative overflow-hidden`,children:[(0,y.jsx)(`div`,{className:`absolute inset-0 bg-red-500/5`}),(0,y.jsx)(`h2`,{className:`text-2xl font-black text-red-500 mb-3 relative z-10 tracking-tight`,children:`Access Denied`}),(0,y.jsx)(`p`,{className:`text-[14px] text-foreground/70 font-medium leading-relaxed relative z-10 mb-6`,children:`You don't have access to this app. Please contact the administrator.`}),(0,y.jsx)(`button`,{onClick:()=>a(),className:`w-full relative z-10 py-2.5 bg-foreground/5 hover:bg-foreground/10 text-foreground text-[14px] font-bold rounded-xl transition-colors`,children:`Sign Out`})]})}):t.emailVerified?n===`admin`?(0,y.jsx)(y.Fragment,{children:e}):(0,y.jsx)(b.Navigate,{to:`/dashboard`}):(0,y.jsx)(b.Navigate,{to:`/verify`}):(0,y.jsx)(b.Navigate,{to:`/login?from=${encodeURIComponent(s.pathname)}`})}function jHn(){return(0,y.jsxs)(`div`,{className:`fixed top-0 left-0 w-full h-full pointer-events-none -z-0 overflow-hidden`,children:[(0,y.jsx)(q.div,{animate:{scale:[1,1.1,1],opacity:[.6,1,.6]},transition:{duration:12,repeat:1/0,ease:`easeInOut`},className:`absolute -top-[30%] md:-top-[400px] -right-[10%] md:-right-[200px] w-[500px] md:w-[800px] h-[500px] md:h-[800px] rounded-full bg-decorator-1 blur-[80px] md:blur-[120px]`}),(0,y.jsx)(q.div,{animate:{scale:[1,1.2,1],opacity:[.5,.9,.5]},transition:{duration:18,repeat:1/0,ease:`easeInOut`,delay:2},className:`absolute -bottom-[20%] md:-bottom-[300px] -left-[10%] md:-left-[100px] w-[400px] md:w-[600px] h-[400px] md:h-[600px] rounded-full bg-decorator-2 blur-[60px] md:blur-[100px]`})]})}function MHn(){return(0,y.jsx)(z,{children:(0,y.jsxs)(`div`,{className:`min-h-screen relative flex flex-col overflow-x-hidden`,children:[(0,y.jsx)(Xo,{}),(0,y.jsxs)(b.Routes,{children:[(0,y.jsx)(b.Route,{path:`/`,element:(0,y.jsx)(Q9,{children:(0,y.jsx)(Gse,{})})}),(0,y.jsx)(b.Route,{path:`/register`,element:(0,y.jsx)(Q9,{children:(0,y.jsx)(Kse,{})})}),(0,y.jsx)(b.Route,{path:`/login`,element:(0,y.jsx)(Q9,{children:(0,y.jsx)(qse,{})})}),(0,y.jsx)(b.Route,{path:`/reset-password`,element:(0,y.jsx)(Q9,{children:(0,y.jsx)(bBn,{})})}),(0,y.jsx)(b.Route,{path:`/verify`,element:(0,y.jsx)(AHn,{children:(0,y.jsx)(Jse,{})})}),(0,y.jsx)(b.Route,{path:`/templates`,element:(0,y.jsx)(OBn,{})}),(0,y.jsx)(b.Route,{path:`/templates/inline_form`,element:(0,y.jsx)(kBn,{})}),(0,y.jsx)(b.Route,{path:`/templates/popup_form`,element:(0,y.jsx)(ABn,{})}),(0,y.jsx)(b.Route,{path:`/templates/confirmation`,element:(0,y.jsx)(jBn,{})}),(0,y.jsx)(b.Route,{path:`/templates/board`,element:(0,y.jsx)(GBn,{})}),(0,y.jsx)(b.Route,{path:`/templates/table`,element:(0,y.jsx)(XVn,{})}),(0,y.jsx)(b.Route,{path:`/templates/calendar`,element:(0,y.jsx)(QVn,{})}),(0,y.jsx)(b.Route,{path:`/users`,element:(0,y.jsx)($9,{children:(0,y.jsx)(xBn,{})})}),(0,y.jsx)(b.Route,{path:`/users/:id`,element:(0,y.jsx)($9,{children:(0,y.jsx)(xBn,{})})}),(0,y.jsx)(b.Route,{path:`/submissions`,element:(0,y.jsx)($9,{children:(0,y.jsx)(TBn,{})})}),(0,y.jsx)(b.Route,{path:`/requests`,element:(0,y.jsx)($9,{children:(0,y.jsx)(EBn,{})})}),(0,y.jsx)(b.Route,{path:`/drive/*`,element:(0,y.jsx)(Z9,{children:(0,y.jsx)(DBn,{})})}),(0,y.jsx)(b.Route,{path:`/theme`,element:(0,y.jsx)($9,{children:(0,y.jsx)(rHn,{})})}),(0,y.jsx)(b.Route,{path:`/pages/*`,element:(0,y.jsx)($9,{children:(0,y.jsx)(uHn,{})})}),(0,y.jsx)(b.Route,{path:`/forms/*`,element:(0,y.jsx)($9,{children:(0,y.jsx)(dHn,{})})}),(0,y.jsx)(b.Route,{path:`/settings`,element:(0,y.jsx)($9,{children:(0,y.jsx)(wBn,{})})}),(0,y.jsx)(b.Route,{path:`/profile`,element:(0,y.jsx)(Z9,{children:(0,y.jsx)(yBn,{})})}),(0,y.jsx)(b.Route,{path:`/dashboard`,element:(0,y.jsx)(Z9,{children:(0,y.jsx)(kHn,{})})}),(0,y.jsx)(b.Route,{path:`/setup`,element:(0,y.jsx)(OHn,{})}),(0,y.jsx)(b.Route,{path:`*`,element:(0,y.jsx)(gHn,{})})]}),(0,y.jsx)(jHn,{})]})})}function NHn(){return(0,y.jsx)(b.BrowserRouter,{children:(0,y.jsx)(PHn,{})})}function PHn(){let e=R();return e.firebaseConfig&&e.firebaseConfig.apiKey&&e.firebaseConfig.apiKey.trim()!==``&&e.firebaseConfig.projectId&&e.firebaseConfig.projectId.trim()!==``||SHn()?(0,y.jsx)(MHn,{}):(0,y.jsxs)(`div`,{className:`min-h-screen relative flex flex-col overflow-x-hidden`,children:[(0,y.jsx)(Xo,{standalone:!0}),(0,y.jsx)(OHn,{standalone:!0}),(0,y.jsx)(jHn,{})]})}function FHn(e){return e.firebaseConfig&&E(e.firebaseConfig),(0,y.jsx)(L,{config:{firebaseConfig:e.firebaseConfig,adminEmails:e.adminEmails,basename:e.basename,onAuthChange:e.onAuthChange},children:(0,y.jsx)(F,{scopeSelector:`.firebase-os`,children:(0,y.jsxs)(`div`,{className:`firebase-os`,style:{position:`fixed`,inset:0,width:`100vw`,height:`100vh`,zIndex:9999,overflowY:`auto`,overflowX:`hidden`,textAlign:`left`,margin:0,padding:0},children:[(0,y.jsx)(`style`,{children:`
619
+ /* Defensive Typography Reset: Specificity 0,0,0 */
620
+ /* This ensures we provide base styles without overriding ANY utility classes */
621
+ :where(.firebase-os) :where(h1, h2, h3, h4, h5, h6, p, span, li, label, a, td, th) {
622
+ color: var(--fg-color);
623
+ font-family: var(--font-family, 'Inter', system-ui, sans-serif);
621
624
  }
622
- .firebase-os code, .firebase-os pre {
625
+ :where(.firebase-os) :where(h1, h2, h3, h4, h5, h6, p) {
626
+ margin: 0;
627
+ }
628
+ :where(.firebase-os) :where(code, pre) {
623
629
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
624
630
  background: transparent;
625
631
  border: none;