PageSourceSearch

https://envless.cloud/assets/site-layout-B6WjybIe.js

js envless.cloud collected 2026-10-08 19:57:27 UTC 34,214 bytes, 1 lines download raw bytes

1import{r as i,c as y,w as fe,D as he,O as pe}from"./chunk-BV7QT456.BQ71lt_D.js";import{j as n}from"./jsx-runtime.u17CrQMm.js";import{W as ee,a4 as xe,k as L,a5 as B,a6 as Y,a7 as ge,a8 as ve,a9 as Ee,aa as $,ab as be,ac as we,R as te,D as I}from"./jwt-generator.DZpDpWmD.js";import{E as Ne}from"./EnvlessLogo.Bj9Q5sqG.js";import{S,s as G,a as _e}from"./SiteLink.DZj8NgI4.js";import{o as Me}from"./EnvelopeSimple.es.CONefC-c.js";import{a as Se}from"./PaperPlaneTilt.es.Cj9lB7k-.js";import{o as Te}from"./Check.es.CGp0En6k.js";import{e as je}from"./Copy.es.dliWH5g9.js";import"./ExternalLinks.DYQ1kwe5.js";import{B as j,e as ne}from"./index.Bq7B3-hS.js";import{u as Ae}from"./useCopyFeedback.C3CUKZHR.js";import{p as Le}from"./prefersReducedMotion.D9SWaqt8.js";import{s as Ce,b as ye,a as Oe}from"./scrambleText.B6TfACAX.js";import{c as se,r as He}from"./resolvePageMeta.C0UOSZlq.js";import{S as O}from"./SlidingHighlight.DL8H39PY.js";import{G as Re,a as K,b as ke,c as Ie,M as N,N as re,d as De,e as Pe,D as A,f as ze,g as Fe,h as Ue,i as Be,j as Ye,k as $e,l as Ge}from"./interaction.CJtquuJa.js";import{B as Ke}from"./badge.DcPQDkYT.js";import{T as _,e as D,D as We,I as Ze,f as oe,c as ae,a as Ve,b as W,g as qe,S as Xe,d as Qe}from"./theme.DGKosm2U.js";import{e as Je,a as et,r as tt}from"./Sun.es.DE10k4QY.js";import{C as nt}from"./ContentIcon.B25hIPMq.js";import{N as Z}from"./widgets.L_NEDZTt.js";import{r as st}from"./ArrowRight.es.JKcZaiQP.js";import{D as rt}from"./DashboardCTA.B38_8cCe.js";import{a as P}from"./signed-in.BONbOMX_.js";import{p as ot}from"./IconBase.es.DBo9aoPr.js";import"./session-replay.D-oy3Zil.js";import"./index.CqF9FHED.js";import"./writeClipboard.CzREpoR6.js";import"./ArrowsClockwise.es.D-1KuJhL.js";import"./ClockCounterClockwise.es.D371ziKg.js";import"./Code.es.CmC-fk86.js";import"./Database.es.BYtG2DB6.js";import"./EyeSlash.es.CON-wYJW.js";import"./Lightning.es.Dru4ko2K.js";import"./LockKey.es.BTruJ5TD.js";import"./WebhooksLogo.es.B6ASKa6t.js";import"./Robot.es.OygDB6nE.js";import"./UsersThree.es.DMoiWJSx.js";import"./session.DC8WxWZ2.js";const at=`${ee.status}/api/v1/summary`,v={OPERATIONAL:"operational",MAINTENANCE:"maintenance",SCHEDULED:"scheduled",DEGRADED:"degraded",OUTAGE:"outage",UNKNOWN:"unknown"},it={FULL_OUTAGE:"full_outage"},b={EMERALD:"bg-success",SKY:"bg-info",AMBER:"bg-warning",ROSE:"bg-destructive",ZINC:"bg-muted-foreground",ZINC_DIM:"bg-muted-foreground"},M={[v.OPERATIONAL]:{kind:v.OPERATIONAL,label:"All systems normal",core:b.EMERALD,ping:b.EMERALD,animate:!0},[v.MAINTENANCE]:{kind:v.MAINTENANCE,label:"Maintenance in progress",core:b.SKY,ping:b.SKY,animate:!0},[v.SCHEDULED]:{kind:v.SCHEDULED,label:"Maintenance scheduled",core:b.SKY,ping:b.SKY,animate:!1},[v.DEGRADED]:{kind:v.DEGRADED,label:"Degraded performance",core:b.AMBER,ping:b.AMBER,animate:!0},[v.OUTAGE]:{kind:v.OUTAGE,label:"Service disruption",core:b.ROSE,ping:b.ROSE,animate:!0},[v.UNKNOWN]:{kind:v.UNKNOWN,label:"Status unavailable",core:b.ZINC_DIM,ping:b.ZINC_DIM,animate:!1}},T={EYEBROW:"Email support",COPY:"Copy email address",COPIED:"Copied",MANUAL:"Select the address and copy it manually"},V="--site-footer-height",ct=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),i.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"}))]]),ie=i.forwardRef((e,t)=>
1i.createElement(ot,{ref:t,...e,weights:ct}));ie.displayName="ListIcon";const lt={x:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",linkedin:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",youtube:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z",instagram:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z",facebook:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z",tiktok:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z",threads:"M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.781 3.631 2.695 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.964-.065-1.19.408-2.285 1.33-3.082.88-.76 2.119-1.207 3.583-1.291a13.853 13.853 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32L7.734 7.847c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388.108.046.216.094.321.142 1.49.7 2.58 1.761 3.154 3.07.797 1.82.871 4.79-1.548 7.158-1.85 1.81-4.094 2.628-7.277 2.65Z"},dt=({name:e,size:t=18})=>n.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:n.jsx("path",{d:lt[e]})}),ut=()=>n.jsx("div",{className:"flex flex-wrap items-center gap-1 sm:gap-4 mt-6",children:xe.map(e=>n.jsx("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,className:'relative inline-flex size-10 items-center justify-center rounded-full text-body hover:text-foreground transition-fx sm:size-auto before:absolute before:-inset-0.5 before:content-[""] sm:before:hidden',children:n.jsx(dt,{name:e.name})},e.name))}),ce=({id:e="navbar-logo",className:t="h-[28px] w-auto transition-all"})=>n.jsx(S,{href:"/","aria-label":"Envless home",className:'flex items-center shrink-0 cursor-pointer relative z-10 transition-opacity hover:opacity-80 before:absolute before:inset-x-0 before:-inset-y-2.5 before:content-[""] sm:before:hidden',children:n.jsx(Ne,{id:e,className:t})}),mt={idle:T.COPY,copied:T.COPIED,manual:T.MANUAL},ft=()=>{const{state:e,copy:t}=Ae(L),s=e==="copied",r=mt[e]??T.COPY;return n.jsxs(j,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0 rounded-full","aria-label":r,onClick:()=>{t()},children:[s?n.jsx(Te,{weight:"bold",className:"size-4 text-primary-text"}):n.jsx(je,{weight:"duotone",className:"size-4"}),n.jsx("span",{className:"sr-only","aria-live":"polite",children:e==="idle"?"":r})]})},ht="@",pt=e=>{const[t,s]=i.useState({source:e,text:e}),r=i.useRef(!0),o=i.useRef(0);i.useEffect(()=>()=>cancelAnimationFrame(o.current),[]);const a=i.useCallback(()=>
1{if(!r.current||!e||Le())return;r.current=!1,cancelAnimationFrame(o.current);const d=Array.from(e),l=Ce(d.length).map((p,f)=>d[f]===ht?0:p),u=ye(d.length),x=performance.now(),h=p=>{const f=p-x,E=Oe(d,l,f),g=E.done||f>=u;s({source:e,text:g?e:E.text}),g||(o.current=requestAnimationFrame(h))};o.current=requestAnimationFrame(h)},[e]),c=i.useCallback(()=>{r.current=!0},[]);return{display:t.source===e?t.text:e,start:a,reset:c}},xt=()=>{const{display:e,start:t,reset:s}=pt(L),r=o=>{o.currentTarget.contains(o.relatedTarget)||s()};return n.jsxs("div",{className:"footer-contact group/contact relative mt-6 flex w-full max-w-[380px] items-center gap-2 rounded-full bg-background p-1.5 pr-2 shadow-[0_8px_24px_-12px_var(--shade-strong)] transition-fx hover:shadow-[0_14px_32px_-14px_var(--shade-deep)]",onPointerEnter:t,onPointerLeave:s,onFocus:t,onBlur:r,children:[n.jsxs("a",{href:`mailto:${L}`,"aria-label":`Email support at ${L}`,className:"flex min-w-0 flex-1 items-center gap-3 rounded-full pr-2 outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",children:[n.jsxs("span",{className:"footer-contact__icon relative grid size-10 shrink-0 place-items-center overflow-hidden rounded-full bg-primary text-primary-foreground transition-fx",children:[n.jsx("span",{className:"footer-contact__envelope absolute inset-0 grid place-items-center",children:n.jsx(Me,{weight:"bold",size:17})}),n.jsx("span",{className:"footer-contact__plane absolute inset-0 grid place-items-center",children:n.jsx(Se,{weight:"bold",size:17})})]}),n.jsxs("span",{className:"flex min-w-0 flex-col leading-tight",children:[n.jsx("span",{className:"text-[12px] text-muted-foreground",children:T.EYEBROW}),n.jsx("span",{className:"truncate font-mono text-[14px] font-medium text-foreground transition-fx group-hover/contact:text-primary-text",children:e})]})]}),n.jsx("span",{"aria-hidden":"true",className:"h-6 w-px shrink-0 bg-foreground
1/10"}),n.jsx(ft,{})]})},gt=()=>n.jsxs("div",{className:"wide:max-w-md shrink-0",children:[n.jsx("div",{className:"mb-4",children:n.jsx(ce,{id:"footer-logo",className:"h-[26px] w-auto"})}),n.jsx("p",{className:"text-body text-[15px] leading-relaxed max-w-96",children:"End-to-end encrypted environment variable and secrets management for developers and teams."}),n.jsx(xt,{}),n.jsx(ut,{})]}),le=i.createContext(null),H=()=>se(y().pathname),z=({label:e,href:t,match:s,external:r,attributes:o={},onPointerEnter:a,onFocus:c,className:d="text-body hover:text-foreground text-base transition-fx"})=>{const l=t.match(/^\/?#(.+)$/)??t.match(/^\/?[^?#]*#(.+)$/),u=l?l[1]:null,x=i.useContext(le),h=H(),p=(s??t.split("#")[0]??"").replace(/\/$/,"")||"/",f=!r&&!u&&(p===h||p!=="/"&&h.startsWith(`${p}/`)),E=!!u&&u===x;return n.jsx(S,{href:t,className:`nav-link ${f?"nav-link-active ":""}${E?"active ":""}${d}`,"aria-current":f?"page":void 0,...r?{target:"_blank",rel:"noopener"}:{},onPointerEnter:a,onFocus:c,...o,children:e})},vt=({label:e,href:t,external:s})=>n.jsx(z,{label:e,href:t,external:s,className:'footer-link relative text-body hover:text-foreground text-[15px] w-fit -mx-3 -my-1 rounded-full px-3 py-1 transition-fx before:absolute before:inset-x-0 before:-inset-y-2 before:content-[""] sm:before:hidden'}),q=({title:e,links:t,wide:s=!1})=>{const r=H(),o=s?"grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-6 sm:gap-y-3":"flex flex-col gap-6 sm:gap-3";return n.jsxs("div",{children:[n.jsx("p",{className:"text-foreground text-xs font-semibold uppercase tracking-wider mb-5",children:e}),n.jsxs("div",{className:o,children:[n.jsx(O,{active:'[aria-current="page"]',activeKey:r,activeClass:"rounded-full bg-foreground
1/[0.07]",hover:'.footer-link:not([aria-current="page"])',hoverClass:"rounded-full bg-foreground/5"}),t.map(a=>n.jsx(vt,{label:a.label,href:a.href,external:a.external},a.href))]})]})},Et=()=>n.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap gap-x-10 gap-y-10 sm:gap-x-12",children:[n.jsx(q,{title:B.title,links:B.links,wide:!0}),n.jsx(q,{title:Y.title,links:Y.links})]}),bt=(e="top")=>`linear-gradient(${ke[e]}, var(--backdrop-glow) 0%, var(--backdrop-glow-soft) 35%, transparent 70%)`,wt=(e="top",t)=>t?{"--gradient-backdrop-glow":bt(e),backgroundPosition:`${Re[e]}, ${K[e]}`}:{backgroundPosition:K[e]},Nt=({direction:e="top",glow:t=!1,className:s="absolute inset-0"})=>n.jsx("span",{"aria-hidden":"true","data-glow":t?"":void 0,className:`gradient-backdrop ${s} overflow-hidden pointer-events-none opacity-50`,style:wt(e,t)}),_t=e=>{var s,r,o;const t=(s=e.ongoing_incidents)==null?void 0:s[0];if(t){const a=t.current_worst_impact===it.FULL_OUTAGE?M[v.OUTAGE]:M[v.DEGRADED];return{...a,label:t.name||a.label}}return(r=e.in_progress_maintenances)!=null&&r.length?M[v.MAINTENANCE]:(o=e.scheduled_maintenances)!=null&&o.length?M[v.SCHEDULED]:M[v.OPERATIONAL]},Mt=async()=>{const e=new AbortController,t=setTimeout(()=>e.abort(),Ie);try{const s=await fetch(at,{cache:"no-store",signal:e.signal});if(!s.ok)throw new Error(String(s.status));return _t(await s.json())}catch{return M[v.UNKNOWN]}finally{clearTimeout(t)}},St=()=>{const[e,t]=i.useState(null);return i.useEffect(()=>{let s=!0;return Mt().then(r=>{s&&t(r)}),()=>{s=!1}},[]),e},Tt=()=>{const e=St(),t=(e==null?void 0:e.core)??b.ZINC,s=`${(e==null?void 0:e.ping)??b.ZINC}${e!=null&&e.animate?" animate-ping":""}`;return n.jsx(Ke,{asChild:!0,variant:"muted",className:'group relative h-9 gap-2 overflow-visible rounded-full bg-background px-3.5 shadow-[0_8px_24px_-12px_var(--shade-strong)] hover:text-foreground before:absolute before:inset-x-0 before:-inset-y-3 before:content-[""] sm:before:hidden',children:n.jsxs("a",{href:ee.status,target:"_blank",rel:"noopener noreferrer",children:[n.jsxs("span",{className:"relative flex h-2.5 w-2.5 items-center justify-center",children:[e?n.jsxs("span",{className:"relative flex h-1.5 w-1.5 transition-opacity group-hover:opacity-0",children:[n.jsx("span",{className:`absolute inline-flex h-full w-full rounded-full opacity-60 ${s}`}),n.jsx("span",{className:`relative inline-flex h-1.5 w-1.5 rounded-full shadow-[0_0_8px_currentColor] ${t}`})]}):n.jsx("span",{className:"status-spinner group-hover:opacity-0","aria-hidden":"true"}),n.jsx("svg",{className:"absolute w-2.5 h-2.5 opacity-0 -translate-x-1 translate-y-1 scale-75 group-hover:opacity-90 group-hover:translate-x-0 group-hover:translate-y-0 group-hover:scale-100 transition-all",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("path",{d:"M7 17L17 7M9 7h8v8"})})]}),n.jsx("span",{children:(e==null?void 0:e.label)??"Status"})]})})},jt=({option:e,label:t,checked:s,focusable:r,onSelect:o})=>{const a=e===_.LIGHT?Je:e===_.DARK?et:tt;return n.jsx("button",{type:"button",role:"radio","aria-checked":s,"aria-label":t,tabIndex:r?0:-1,"data-theme-option":e,className:"relative z-10 grid size-7 place-items-center rounded-full text-muted-foreground transition-fx hover:text-foreground aria-checked:text-foreground focus-visible:outline-2 focus-visible:outline-primary",onClick:c=>o(e,c),children:n.jsx(a,{weight:"duotone",className:"size-4"})})},C=()=>{const e=document.documentElement.getAttribute(D);return Ze(e)?e:We},k=e=>{var r;const t=document.documentElement,s=oe(e);t.setAttribute(ae,s),t.setAttribute(D,e),t.style.colorScheme=s,(r=document.querySelector(`meta[name="${Ve}"]`))==null||r.setAttribute("content",W[s]??W[_.DARK]??"");try{localStorage.setItem(qe,e)}catch{}},At=()=>{const[e,t]=i.useState(null);return i.useEffect(()=>{var c;const s=()=>t(C()),r=new MutationObserver(s),o=(c=window.matchMedia)==null?void 0:c.call(window,Xe),a=()=>{C()===_.SYSTEM&&k(_.SYSTEM)};return s(),r.observe(document.documentElement,{attributes:!0,attributeFilter:[D]}),o==null||o.addEventListener("change",a),()=>{r.disconnect(),o==null||o.removeEventListener("change",a)}},[]),e},X=(e,t,s=0,r=0)=>{if(e===C())return;const o=t.getBoundingClientRect(),a=s||o.left+o.width/2,c=r||o.top+o.height/2;if(oe(e)===document.documentElement.getAttribute(ae))return k(e);Qe(()=>k(e),{x:a,y:c})},Lt=()=>{const e=At(),t=Object.values(Ee),s=e??_.SYSTEM,r=(a,c)=>X(a,c.currentTarget,c.clientX,c.clientY),o=a=>{const c=ve[a.key];if(!c)return;a.preventDefault();const d=Math.max(t.indexOf(e??C()),0),l=t[(d+c+t.length)%t.length]??_.SYSTEM,u=a.currentTarget.querySelector(`[data-theme-option="${l}"]`);
1u&&(u.focus(),X(l,u))};return n.jsxs("div",{role:"radiogroup","aria-label":"Theme",className:"theme-switch relative inline-flex rounded-full bg-background p-1 shadow-[0_8px_24px_-12px_var(--shade-strong)]",onKeyDown:o,children:[n.jsx(O,{active:'[aria-checked="true"]',activeKey:e,activeClass:"rounded-full bg-foreground/[0.08]"}),t.map(a=>n.jsx(jt,{option:a,label:ge[a]??a,checked:e===a,focusable:s===a,onSelect:r},a))]})},Ct=()=>n.jsxs("footer",{className:"w-full relative overflow-hidden bg-sidebar",children:[n.jsx(Nt,{direction:"left"}),n.jsxs("div",{className:"max-w-300 mx-auto px-5 sm:px-8 md:px-16 pt-20 pb-8 relative",children:[n.jsxs("div",{className:"flex flex-col wide:flex-row justify-between gap-12",children:[n.jsx("div",{children:n.jsx(gt,{})}),n.jsx("div",{children:n.jsx(Et,{})})]}),n.jsxs("div",{className:"mt-14 flex flex-col-reverse items-center justify-between gap-4 border-t border-foreground/[0.06] pt-6 sm:flex-row",children:[n.jsx("p",{className:"text-body text-sm",children:`Envless ${new Date().getFullYear()} © All Rights Reserved.`}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Tt,{}),n.jsx("span",{"aria-hidden":"true",className:"h-5 w-px bg-foreground
1/[0.08]"}),n.jsx(Lt,{})]})]})]})]}),F=i.createContext({current:null,left:0,jump:!1,containerRef:{current:null},panelRef:{current:null},open:()=>{},close:()=>{}}),yt=({label:e,href:t,className:s})=>{const r=H(),{current:o,open:a,close:c}=i.useContext(F),d=r===t||r.startsWith(`${t}/`);return n.jsxs(S,{href:t,className:`nav-link nav-features__trigger ${d?"nav-link-active ":""}${s}`,"aria-haspopup":"true","aria-expanded":o===t,"aria-current":d?"page":void 0,onPointerEnter:l=>a(t,l.currentTarget),onFocus:l=>a(t,l.currentTarget),onClick:c,children:[n.jsx("span",{className:"nav-features__label",children:e}),n.jsx("svg",{className:"nav-features__chevron",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("path",{d:"M6 9l6 6 6-6"})})]})},Ot=({menus:e})=>{const{current:t,left:s,jump:r,panelRef:o,close:a}=i.useContext(F);return n.jsx("div",{ref:o,className:"nav-panel",style:{left:`${s}px`},...t!==null?{"data-open":""}:{},...r?{"data-jump":""}:{},children:n.jsx("div",{className:"nav-panel__sections",children:e.map(c=>n.jsx("div",{className:"nav-panel__section",role:"menu",...t===c.href?{"data-active":""}:{},children:n.jsxs("div",{className:"nav-features__grid",children:[n.jsx(O,{hover:".nav-features__item",hoverClass:"rounded-[12px] bg-foreground
1/5"}),c.items.map(d=>n.jsxs(S,{href:d.href,className:"nav-features__item",role:"menuitem",onClick:a,children:[n.jsx("span",{className:"nav-features__icon",children:n.jsx(nt,{name:d.icon,size:18})}),n.jsxs("span",{className:"nav-features__text",children:[n.jsx("span",{className:"nav-features__name",children:d.name}),n.jsx("span",{className:"nav-features__description",children:d.description})]})]},d.href))]})},c.href))})})},Q=(e,t)=>{const r=(e.offsetParent??document.body).getBoundingClientRect(),o=t.getBoundingClientRect(),a=e.offsetWidth,c=o.left+o.width/2-a/2,d=Z.VIEWPORT_GUTTER_PX,l=window.innerWidth-a-Z.VIEWPORT_GUTTER_PX;return Math.min(Math.max(c,d),l)-r.left},Ht=(e,t,s,r)=>{i.useEffect(()=>{if(!e)return;const o=c=>{var d;c.target instanceof Node&&((d=t.current)!=null&&d.contains(c.target))||s()},a=c=>{c.key==="Escape"&&s()};return document.addEventListener("pointerdown",o),document.addEventListener("keydown",a),window.addEventListener("resize",r),()=>{document.removeEventListener("pointerdown",o),document.removeEventListener("keydown",a),window.removeEventListener("resize",r)}},[e,t,s,r])},Rt=e=>{const t=i.useRef(null),s=i.useRef(null),r=i.useRef(null),o=i.useRef(null),[a,c]=i.useState(null),[d,l]=i.useState(0),[u,x]=i.useState(!1),h=i.useCallback((E,g)=>{const m=s.current;r.current=g,!(!m||E===o.current)&&(x(o.current===null),o.current=E,c(E),l(Q(m,g)))},[]),p=i.useCallback(()=>{o.current!==null&&(o.current=null,c(null))},[]),f=i.useCallback(()=>{const E=s.current,g=r.current;E&&g&&l(Q(E,g))},[]);return i.useLayoutEffect(()=>{!u||!s.current||(s.current.offsetWidth,x(!1))},[u]),i.useEffect(()=>{p()},[e,p]),Ht(a!==null,t,p,f),i.useMemo(()=>({current:a,left:d,jump:u,containerRef:t,panelRef:s,open:h,close:p}),[a,d,u,h,p])},J=e=>e===te.features?we:null,de=({id:e,className:t="nav-tabs relative hidden md:flex items-center gap-0.5 transition-all",linkClass:s=be,withMenus:r=!1})=>{const o=H(),a=Rt(o),c=r?$.flatMap(l=>{const u=J(l.href);return u?[{href:l.href,items:u}]:[]}):[],d=l=>{l.relatedTarget instanceof Node&&l.currentTarget.contains(l.relatedTarget)||a.close()};return n.jsx(F.Provider,{value:a,children:n.jsxs("div",{ref:a.containerRef,id:e,className:t,onPointerLeave:a.close,onBlur:d,children:[n.jsx(O,{active:'[aria-current="page"]',activeKey:o,activeClass:"rounded-full bg-foreground
1/[0.07]",hover:'.nav-link:not([aria-current="page"])',hoverClass:"rounded-full bg-foreground/5"}),$.map(l=>r&&J(l.href)?n.jsx(yt,{label:l.label,href:l.href,className:s},l.href):n.jsx(z,{label:l.label,href:l.href,match:l.match,className:s,onPointerEnter:a.close,onFocus:a.close},l.href)),c.length>0&&n.jsx(Ot,{menus:c})]})})},ue=({variant:e="desktop"})=>{const t=e==="mobile"?'before:absolute before:inset-x-0 before:-inset-y-0.5 before:content-[""] sm:before:hidden':"max-md:hidden";return n.jsxs(n.Fragment,{children:[n.jsx(j,{asChild:!0,className:t,...P(),children:n.jsxs(S,{href:I,children:["Try now",n.jsx(st,{weight:"bold",className:"size-4"})]})}),n.jsx(rt,{className:t})]})},U=i.createContext({open:!1,toggle:()=>{},close:()=>{},dismiss:()=>{}}),kt=()=>{const{open:e,toggle:t}=i.useContext(U);return n.jsx(j,{id:N.TOGGLE,type:"button",variant:"secondary",size:"icon",className:'md:hidden before:absolute before:-inset-0.5 before:content-[""] sm:before:hidden',"aria-label":"Toggle menu","aria-expanded":e,onClick:t,children:e?n.jsx(ne,{weight:"bold",className:"size-4"}):n.jsx(ie,{weight:"duotone",className:"size-4"})})},It=()=>n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(j,{asChild:!0,variant:"ghost",className:"nav-link text-foreground px-3 max-md:hidden",...P(),children:n.jsx(S,{href:I,children:"Login"})}),n.jsx(ue,{}),n.jsx(kt,{})]}),Dt=()=>{const{open:e,dismiss:t}=i.useContext(U),s=r=>{r.target instanceof Element&&r.target.closest("a")&&t()};return n.jsxs("div",{id:N.MENU,className:`mobile-menu md:hidden fixed inset-x-0 top-0 bottom-0 z-40 bg-sidebar${e?" open":""}`,inert:!e,onClick:s,children:[n.jsx(j,{id:N.CLOSE,type:"button",variant:"secondary",size:"icon",className:'absolute top-4 right-4 before:absolute before:-inset-0.5 before:content-[""] sm:before:hidden',"aria-label":"Close menu",onClick:t,children:n.jsx(ne,{weight:"bold",className:"size-4"})}),n.jsxs("div",{className:"flex flex-col items-center justify-center-safe h-full gap-6 px-6 sm:px-8 py-16 overflow-y-auto",children:[n.jsx(de,{className:"flex flex-col items-center gap-2",linkClass:"mobile-nav-link text-foreground text-xl font-display font-normal px-5 py-2 rounded-full transition-fx hover:text-primary-text"}),n.jsx("div",{className:"h-px w-16 bg-hairline my-2"}),n.jsx(z,{href:I,label:"Login",attributes:P(),className:"text-body text-lg font-normal px-5 py-2 rounded-full transition-fx hover:text-foreground"}),n.jsx(ue,{variant:"mobile"})]})]})},R=["features","pricing","faqs"],Pt=()=>{const{scrollY:e,innerHeight:t}=window,s=t*De;let r=null;for(const o of R){const a=document.getElementById(o);if(!a)continue;const c=a.getBoundingClientRect(),d=c.top+e;e>=d-s&&e<d+c.height-s&&(r=o)}return t+e>=document.documentElement.scrollHeight-re&&(r=R[R.length-1]??null),r},zt=e=>{const[t,s]=i.useState(null);return i.useEffect(()=>{if(!e){s(null);return}const r=()=>s(Pt());return r(),window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[e]),t},Ft=(e,t)=>{const s=[];let r=e;for(;r!==t&&r.parentElement;){for(const o of Array.from(r.parentElement.children))o===r||o.inert||(o.inert=!0,s.push(o));r=r.parentElement}return()=>{for(const o of s)o.inert=!1}},Ut=()=>{const e=document.activeElement,t=document.getElementById(N.MENU);return!(e instanceof HTMLElement)||e===document.body?document.body:t!=null&&t.contains(e)?e:null},Bt=e=>{const[t,s]=i.useState(!1),r=i.useRef(null),o=i.useCallback(l=>{var x,h;const u=Ut();(x=r.current)==null||x.call(r),r.current=null,u&&l?(h=document.getElementById(N.TOGGLE))==null||h.focus():u&&u.blur(),s(!1)},[]),a=i.useCallback(()=>s(l=>!l),[]),c=i.useCallback(()=>o(!1),[o]),d=i.useCallback(()=>o(!0),[o]);return i.useEffect(()=>{r.current&&d()},[e,d]),i.useEffect(()=>{var p;if(!t)return;const l=document.getElementById(N.MENU),u=window.matchMedia(Pe),x=f=>{f.key==="Escape"&&!f.defaultPrevented&&d()},h=()=>{u.matches&&c()};return(p=document.getElementById(N.CLOSE))==null||p.focus(),r.current=l?Ft(l,document.body):null,document.body.style.overflow="hidden",document.addEventListener(A.KEYDOWN,x),u.addEventListener(A.CHANGE,h),()=>{var f;(f=r.current)==null||f.call(r),r.current=null,document.body.style.overflow="",document.removeEventListener(A.KEYDOWN,x),u.removeEventListener(A.CHANGE,h)}},[t,c,d]),i.useMemo(()=>({open:t,toggle:a,close:c,dismiss:d}),[t,a,c,d])},Yt=e=>{const[t,s]=i.useState(e);return i.useEffect(()=>{const r=()=>s(e||window.scrollY>re);return r(),window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[e]),t}
1,$t=({forceScrolled:e=!1})=>{const t=Bt(y().key),s=Yt(e),r=zt(!e);return n.jsx(U.Provider,{value:t,children:n.jsx(le.Provider,{value:r,children:n.jsxs("nav",{id:"navbar",className:"fixed top-0 left-0 right-0 z-50 transition-all",children:[n.jsx("div",{className:"max-w-section mx-auto px-5 md:px-[60px]",children:n.jsxs("div",{id:"navbar-inner",className:`flex items-center gap-2 lg:gap-4${s?" scrolled":""}`,children:[n.jsx(ce,{}),n.jsx(de,{id:"navbar-links",withMenus:!0}),n.jsx(It,{})]})}),n.jsx(Dt,{})]})})})},Gt=(e,t)=>{i.useEffect(()=>{const s=e.current,r=t.current;if(!s||!r)return;let o=0,a=!1,c=0;const d=()=>Math.max(0,document.documentElement.scrollHeight-window.innerHeight),l=()=>{const g=d()>0;if(s.toggleAttribute("data-hidden",!g),!g)return;const m=window.innerHeight/document.documentElement.scrollHeight,w=Math.max(Fe,Math.round(window.innerHeight*m)),me=Math.round(window.scrollY/d()*(window.innerHeight-w));r.style.height=`${w}px`,r.style.transform=`translate3d(0, ${me}px, 0)`},u=()=>{s.setAttribute("data-active",""),window.clearTimeout(o),o=window.setTimeout(()=>{a||s.removeAttribute("data-active")},ze)},x=()=>{l(),u()},h=g=>{a=!0,c=g.clientY-r.getBoundingClientRect().top,r.setPointerCapture(g.pointerId),s.setAttribute("data-dragging",""),u(),g.preventDefault()},p=g=>{if(!a)return;const m=Math.max(1,window.innerHeight-r.offsetHeight),w=Math.min(Math.max(g.clientY-c,0),m);window.scrollTo({top:w/m*d(),behavior:"auto"})},f=()=>{a=!1,s.removeAttribute("data-dragging"),u()},E=new ResizeObserver(l);return window.addEventListener("scroll",x,{passive:!0}),window.addEventListener("resize",l),r.addEventListener("pointerdown",h),r.addEventListener("pointermove",p),r.addEventListener("pointerup",f),r.addEventListener("pointercancel",f),s.addEventListener("pointerenter",u),E.observe(document.documentElement),l(),()=>{window.clearTimeout(o),E.disconnect(),window.removeEventListener("scroll",x),window.removeEventListener("resize",l),r.removeEventListener("pointerdown",h),r.removeEventListener("pointermove",p),r.removeEventListener("pointerup",f),r.removeEventListener("pointercancel",f),s.removeEventListener("pointerenter",u)}},[e,t])},Kt=()=>{const e=i.useRef(null),t=i.useRef(null);return Gt(e,t),n.jsx("div",{ref:e,"aria-hidden":"true",className:"site-scrollbar",children:n.jsx("div",{ref:t,className:"site-scrollbar__thumb"})})},Wt=()=>{const e=i.useRef(null);return i.useEffect(()=>{const t=e.current,s=document.documentElement;if(!t||typeof ResizeObserver!="function")return;const r=()=>s.style.setProperty(V,`${Math.ceil(t.offsetHeight)}px`),o=new ResizeObserver(r);return o.observe(t),r(),()=>{o.disconnect(),s.style.removeProperty(V)}},[]),e},Zt=()=>{const{pathname:e,search:t}=y(),s=i.useRef(!0);i.useEffect(()=>{if(s.current){s.current=!1;return}typeof window.gtag=="function"&&window.gtag("event","page_view",{page_path:e+t,page_location:window.location.href,page_title:document.title})},[e,t])},Vt=e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,qt=e=>Math.min(Math.max(Math.abs(e)*Ue,Be),Ye),Xt=()=>{let e=0;const t=()=>{e&&cancelAnimationFrame(e),e=0};return{animate:(r,o)=>{t();const a=window.scrollY,c=r-a;if(Math.abs(c)<1)return;const d=qt(c),l=performance.now(),u=x=>{const h=Math.min((x-l)/d,1);o(Math.round(a+c*Vt(h))),e=h<1?requestAnimationFrame(u):0};e=requestAnimationFrame(u)},cancel:t}},Qt=(e,t)=>{let s=e instanceof Element?e:null;for(;s&&s!==document.body&&s!==document.documentElement;){const{overflowY:r}=getComputedStyle(s);if((r==="auto"||r==="scroll")&&s.scrollHeight>s.clientHeight){const a=s.scrollTop<=0,c=s.scrollTop+s.clientHeight>=s.scrollHeight-1;if(t<0&&!a||t>0&&!c)return!0}s=s.parentElement}return!1},Jt=e=>{let t=window.scrollY,s=window.scrollY,r=window.scrollY,o=0,a=0;const c=m=>Math.min(Math.max(m,0),Math.max(0,document.documentElement.scrollHeight-window.innerHeight)),d=()=>{o&&cancelAnimationFrame(o),o=0,a=0},l=()=>{d(),t=s=r=window.scrollY},u=m=>{const w=a?Math.min(m-a,64):16;if(a=m,s+=(t-s)*(1-Math.exp(-10*w/1e3)),Math.abs(t-s)<Ge&&(s=t),r=Math.round(s),window.scrollTo({top:r,behavior:"instant"}),s===t)return d();o=requestAnimationFrame(u)},x=m=>{if(m.defaultPrevented||m.ctrlKey||m.metaKey||Math.abs(m.deltaX)>Math.abs(m.deltaY)||Qt(m.target,m.deltaY))return;e();const w=m.deltaMode===WheelEvent.DOM_DELTA_LINE?$e:m.deltaMode===WheelEvent.DOM_DELTA_PAGE?window.innerHeight:1;m.preventDefault(),o||(s=window.scrollY),t=c(t+m.deltaY*w),o||(o=requestAnimationFrame(u))},h=m=>{d(),t=s=r=c(m),window.scrollTo({top:r,behavior:"instant"})},p=()=>{Math.abs(window.scrollY-r)>1&&l()},f=m=>{o&&m.stopImmediatePropagation()};return{install:()=>{window.addEventListener("wheel",x,{passive:!1}),window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("scrollend",f,{capture:!0})},uninstall:()=>{d(),window.removeEventListener("wheel",x),window.removeEventListener("scroll",p),window.removeEventListener("scrollend",f,{capture:!0})},sync:l,follow:h,clamp:c}},en="(prefers-reduced-motion: reduce)",tn=e=>{const t=i.useRef(()=>{});i.useEffect(()=>{if(window.matchMedia(en).matches)return;const s=Xt(),r=Jt(s.cancel);return t.current=()=>{s.cancel(),r.sync()},r.install(),G(o=>s.animate(r.clamp(_e(o)),r.follow)),window.addEventListener("touchstart",s.cancel,{passive:!0}),window.addEventListener("keydown",s.cancel),()=>{t.current=()=>{},G(null),s.cancel(),r.uninstall(),window.removeEventListener("touchstart",s.cancel),window.removeEventListener("keydown",s.cancel)}},[]),i.useEffect(()=>{t.current()},[e])},nn=({pathname:e,page:t,children:s})=>{const{bare:r=!1}=t,o=e===te.home,a=Wt();return Zt(),tn(e),n.jsxs(n.Fragment,{children:[n.jsx($t,{forceScrolled:!o}),n.jsx("main",{className:"relative z-10 bg-sidebar",children:r?n.jsx("div",{className:"relative z-10",children:s}):n.jsx("div",{className:"flow-root overflow-clip bg-background relative z-10 site-sheet-end",children:s})}),n.jsx("div",{ref:a,className:"site-footer-dock z-0 md:sticky md:bottom-[min(0px,calc(100dvh-var(--site-footer-height,0px)))]",children:n.jsx(Ct,{})}),n.jsx(Kt,{})]})},$n=fe(function(){const t=he(),s=se(y().pathname);return n.jsx(nn,{pathname:s,page:He(t,s),children:n.jsx(pe,{})})});export{$n as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.