PageSourceSearch

https://comma.ai/_app/immutable/nodes/0.DZM2rJ3G.js

js comma.ai collected 2026-09-24 18:11:47 UTC 43,420 bytes, 35 lines download raw bytes

1import{X as Ht}from"../chunks/XMLParser.D8sXgY5l.js";import{s as Re,e as v,H as ye,j as w,c as p,a as $,q as De,d as h,k as E,l as u,b as dt,i as L,m as o,n as He,y as fe,r as et,v as ce,aa as Ut,P as Pt,t as q,o as O,p as R,I as We,J as qt,u as le,T as tt,G as Rt,ab as Mt,C as Gt,g as jt,M as ht,S as Ke,U as Zt,w as Wt,D as Ft,x as Ie,z as Qt,A as Xt,B as Yt,O as Jt,a7 as Kt}from"../chunks/scheduler.Dy-eRFqg.js";import{S as Ge,i as Ze,c as pe,a as _e,m as ge,t as F,b as Y,d as be,g as it,e as ut,f as el}from"../chunks/index.DLDJ6dtz.js";import{g as Bt}from"../chunks/globals.D0QH3NT1.js";import{B as nt}from"../chunks/Badge.nqVMfIbd.js";import{G as tl}from"../chunks/Grid.C5JT1E4E.js";import{G as ll,D as al}from"../chunks/discord.DfMsXHKW.js";import{X as sl}from"../chunks/x.uW-hgEBc.js";import{Y as nl}from"../chunks/youtube.0F-wmUf9.js";import{e as Le}from"../chunks/each.D6YF6ztN.js";import{A as rl}from"../chunks/arrow-right.C8fVWMiC.js";import{c as ol,E as mt}from"../chunks/email-updates.Dv8s3deZ.js";import{C as il}from"../chunks/comma.Dcp7TdPr.js";import{d as ul,e as cl,f as fl,h as dl,i as hl,j as ml,k as vl,l as Je,m as rt,u as pl,n as _l,o as gl,q as bl}from"../chunks/shopify.wWd4usKS.js";import{p as Ot}from"../chunks/stores.DtWU9YsT.js";import{B as Cl}from"../chunks/Button.BCqqevSH.js";import{S as kl}from"../chunks/Space.COqkkvoX.js";import{f as Ce}from"../chunks/currency.C2x9yI56.js";const wl=!0;async function El({fetch:n}){return{blogPosts:(await n("https://blog.comma.ai/feed").then(t=>t.text()).then(t=>new Ht({htmlEntities:!0}).parse(t)).then(t=>t.rss.channel.item.map(({title:a,guid:r,pubDate:s,"cb:readTime":f})=>{const i=new Date(s).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});return{title:a,link:r,date:i,readTime:f}}))).slice(0,3)}}const wa=Object.freeze(Object.defineProperty({__proto__:null,load:El,prerender:wl},Symbol.toStringTag,{value:"Module"})),$l="/_app/immutable/assets/MonumentExtended-Black.BeB6bNwg.woff2",Il=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.001 1C9.01358 1 8.63866 1.01306 7.46532 1.06646C6.29426 1.12008 5.49492 1.30548 4.7955 1.57751C4.07201 1.85847 3.4583 2.2343 2.84687 2.84596C2.23499 3.45738 1.85915 4.07109 1.57728 4.79435C1.30457 5.494 1.11894 6.29358 1.06623 7.46417C1.01375 8.63752 1 9.01267 1 12.0001C1 14.9876 1.01329 15.3613 1.06646 16.5347C1.12031 17.7057 1.30571 18.5051 1.57751 19.2045C1.8587 19.928 2.23453 20.5417 2.84619 21.1531C3.45738 21.765 4.07109 22.1418 4.79412 22.4227C5.49401 22.6947 6.29358 22.8801 7.4644 22.9338C8.63775 22.9872 9.01244 23.0002 11.9997 23.0002C14.9873 23.0002 15.3611 22.9872 16.5345 22.9338C17.7055 22.8801 18.5058 22.6947 19.2056 22.4227C19.9289 22.1418 20.5417 21.765 21.1529 21.1531C21.7648 20.5417 22.1406 19.928 22.4225 19.2047C22.6929 18.5051 22.8785 17.7055 22.9335 16.5349C22.9862 15.3616 23 14.9876 23 12.0001C23 9.01267 22.9862 8.63775 22.9335 7.4644C22.8785 6.29335 22.6929 5.494 22.4225 4.79458C22.1406 4.07109 21.7648 3.45738 21.1529 2.84596C20.541 2.23408 19.9291 1.85824 19.205 1.57751C18.5037 1.30548 17.7039 1.12008 16.5328 1.06646C15.3595 1.01306 14.986 1 11.9976 1H12.001ZM11.014 2.98148C11.3069 2.98102 11.6337 2.98148 12.0008 2.98148C14.9379 2.98148 15.286 2.99202 16.4458 3.04473C17.5183 3.09377 18.1004 3.27298 18.4881 3.42355C19.0015 3.62293 19.3675 3.86126 19.7522 4.24627C20.1372 4.63127 20.3756 4.99794 20.5754 5.51128C20.726 5.89857 20.9054 6.48066 20.9542 7.55317C21.0069 8.71277 21.0184 9.06111 21.0184 11.9968C21.0184 14.9324 21.0069 15.2808 20.9542 16.4403C20.9052 17.5129 20.726 18.0949 20.5754 18.4822C20.376 18.9956 20.1372 19.3611 19.7522 19.7459C19.3672 20.1309 19.0017 20.3692 18.4881 20.5686C18.1009 20.7199 17.5183 20.8986 16.4458 20.9476C15.2862 21.0004 14.9379 21.0118 12.0008 21.0118C9.06357 21.0118 8.71546 21.0004 7.55587 20.9476C6.48336 20.8981 5.90127 20.7189 5.51328 20.5684C4.99994 20.369 4.63327 20.1307 4.24827 19.7457C3.86327 19.3607 3.62493 18.9949 3.4251 18.4813C3.27453 18.094 3.09509 17.5119 3.04628 16.4394C2.99357 15.2798 2.98303 14.9315 2.98303 11.994C2.98303 9.05652 2.99357 8.71002 3.04628 7.55042C3.09532 6.47791 3.27453 5.89582 3.4251 5.50807C3.62447 4.99473 3.86327 4.62806 4.24827 4.243
106C4.63327 3.85805 4.99994 3.61972 5.51328 3.41988C5.90104 3.26863 6.48336 3.08988 7.55587 3.04061C8.57063 2.99477 8.96388 2.98102 11.014 2.97873V2.98148ZM17.8738 4.80753C17.145 4.80753 16.5538 5.3981 16.5538 6.12708C16.5538 6.85584 17.145 7.4471 17.8738 7.4471C18.6025 7.4471 19.1938 6.85584 19.1938 6.12708C19.1938 5.39833 18.6025 4.80707 17.8738 4.80707V4.80753ZM12.0008 6.35128C8.88115 6.35128 6.35181 8.88061 6.35181 12.0003C6.35181 15.12 8.88115 17.6482 12.0008 17.6482C15.1205 17.6482 17.6489 15.12 17.6489 12.0003C17.6489 8.88061 15.1203 6.35128 12.0006 6.35128H12.0008ZM12.0005 8.33216C14.0254 8.33216 15.6672 9.97369 15.6672 11.9989C15.6672 14.0238 14.0254 15.6656 12.0005 15.6656C9.9753 15.6656 8.33377 14.0238 8.33377 11.9989C8.33377 9.97369 9.9753 8.33216 12.0005 8.33216V8.33216Z" fill="CurrentColor"></path></svg>
2`;function yl(n){let e,t,l,a,r,s,f,i,m,_,g,C,c,d,b;return{c(){e=v("div"),t=v("a"),l=new ye(!1),a=w(),r=v("a"),s=new ye(!1),f=w(),i=v("a"),m=new ye(!1),_=w(),g=v("a"),C=new ye(!1),c=w(),d=v("a"),b=new ye(!1),this.h()},l(y){e=p(y,"DIV",{class:!0,style:!0});var z=$(e);t=p(z,"A",{href:!0,target:!0,class:!0});var V=$(t);l=De(V,!1),V.forEach(h),a=E(z),r=p(z,"A",{href:!0,target:!0,class:!0});var D=$(r);s=De(D,!1),D.forEach(h),f=E(z),i=p(z,"A",{href:!0,target:!0,class:!0});var N=$(i);m=De(N,!1),N.forEach(h),_=E(z),g=p(z,"A",{href:!0,target:!0,class:!0});var B=$(g);C=De(B,!1),B.forEach(h),c=E(z),d=p(z,"A",{href:!0,target:!0,class:!0});var k=$(d);b=De(k,!1),k.forEach(h),z.forEach(h),this.h()},h(){l.a=null,u(t,"href","https://github.com/commaai"),u(t,"target","_blank"),u(t,"class","github"),s.a=null,u(r,"href","https://twitter.com/comma_ai"),u(r,"target","_blank"),u(r,"class","twitter"),m.a=null,u(i,"href","https://www.instagram.com/comma_ai"),u(i,"target","_blank"),u(i,"class","instagram"),C.a=null,u(g,"href","https://www.youtube.com/commaai"),u(g,"target","_blank"),u(g,"class","youtube"),b.a=null,u(d,"href","https://discord.comma.ai"),u(d,"target","_blank"),u(d,"class","discord"),u(e,"class","social-icons svelte-y50ryu"),dt(e,"--size",n[0])},m(y,z){L(y,e,z),o(e,t),l.m(ll,t),o(e,a),o(e,r),s.m(sl,r),o(e,f),o(e,i),m.m(Il,i),o(e,_),o(e,g),C.m(nl,g),o(e,c),o(e,d),b.m(al,d)},p(y,[z]){z&1&&dt(e,"--size",y[0])},i:He,o:He,d(y){y&&h(e)}}}function Dl(n,e,t){let{size:l="24px"}=e;return n.$$set=a=>{"size"in a&&t(0,l=a.size)},[l]}class xt extends Ge{constructor(e){super(),Ze(this,e,Dl,yl,Re,{size:0})}}function vt(n,e,t){const l=n.slice();return l[19]=e[t].key,l[20]=e[t].label,l}function Al(n){let e,t='<strong>Get the latest updates</strong> <span class="svelte-rzl7t0">Products, openpilot releases, car support, and more.</span>',l,a,r,s,f,i,m,_,g,C,c,d,b,y=n[0]?"hide options":"choose updates",z,V,D,N=n[0]?"-":"+",B,k,A,U,I,S=n[0]&&pt(n),j=n[3]==="error"&&gt(n);return{c(){e=v("div"),e.innerHTML=t,l=w(),a=v("form"),r=v("div"),s=v("input"),f=w(),i=v("button"),m=v("span"),_=new ye(!1),C=w(),c=v("div"),d=v("button"),b=v("span"),z=q(y),V=w(),D=v("span"),B=q(N),k=w(),S&&S.c(),A=w(),j&&j.c(),this.h()},l(M){e=p(M,"DIV",{class:!0,"data-svelte-h":!0}),O(e)!=="svelte-15xwmkx"&&(e.innerHTML=t),l=E(M),a=p(M,"FORM",{id:!0,class:!0});var T=$(a);r=p(T,"DIV",{class:!0});var Z=$(r);s=p(Z,"INPUT",{name:!0,type:!0,autocomplete:!0,placeholder:!0,maxlength:!0,class:!0}),f=E(Z),i=p(Z,"BUTTON",{class:!0,type:!0,"aria-label":!0});var ae=$(i);m=p(ae,"SPAN",{"aria-hidden":!0,class:!0});var Ae=$(m);_=De(Ae,!1),Ae.forEach(h),ae.forEach(h),Z.forEach(h),C=E(T),c=p(T,"DIV",{class:!0});var oe=$(c);d=p(oe,"BUTTON",{class:!0,type:!0,"aria-expanded":!0});var Q=$(d);b=p(Q,"SPAN",{class:!0});var ie=$(b);z=R(ie,y),ie.forEach(h),V=E(Q),D=p(Q,"SPAN",{class:!0,"aria-hidden":!0});var K=$(D);B=R(K,N),K.forEach(h),Q.forEach(h),k=E(oe),S&&S.l(oe),oe.forEach(h),A=E(T),j&&j.l(T),T.forEach(h),this.h()},h(){u(e,"class","copy svelte-rzl7t0"),u(s,"name","email"),u(s,"type","email"),u(s,"autocomplete","email"),u(s,"placeholder","Enter email"),u(s,"maxlength","256"),s.required=!0,u(s,"class","svelte-rzl7t0"),_.a=null,u(m,"aria-hidden","true"),u(m,"class","svelte-rzl7t0"),u(i,"class","submit-button svelte-rzl7t0"),u(i,"type","submit"),u(i,"aria-label","Subscribe"),i.disabled=g=n[3]==="submitting",u(r,"class","email-row svelte-rzl7t0"),u(b,"class","svelte-rzl7t0"),u(D,"class","options-icon svelte-rzl7t0"),u(D,"aria-hidden","true"),u(d,"class","options-button svelte-rzl7t0"),u(d,"type","button"),u(d,"aria-expanded",n[0]),u(c,"class","options-control svelte-rzl7t0"),u(a,"id","footer-email-form"),u(a,"class","svelte-rzl7t0")},m(M,T){L(M,e,T),L(M,l,T),L(M,a,T),o(a,r),o(r,s),We(s,n[4]),o(r,f),o(r,i),o(i,m),_.m(rl,m),o(a,C),o(a,c
2),o(c,d),o(d,b),o(b,z),o(d,V),o(d,D),o(D,B),o(c,k),S&&S.m(c,null),o(a,A),j&&j.m(a,null),U||(I=[fe(s,"input",n[13]),fe(d,"click",n[14]),fe(a,"submit",qt(n[10]))],U=!0)},p(M,T){T&16&&s.value!==M[4]&&We(s,M[4]),T&8&&g!==(g=M[3]==="submitting")&&(i.disabled=g),T&1&&y!==(y=M[0]?"hide options":"choose updates")&&le(z,y),T&1&&N!==(N=M[0]?"-":"+")&&le(B,N),T&1&&u(d,"aria-expanded",M[0]),M[0]?S?S.p(M,T):(S=pt(M),S.c(),S.m(c,null)):S&&(S.d(1),S=null),M[3]==="error"?j?j.p(M,T):(j=gt(M),j.c(),j.m(a,null)):j&&(j.d(1),j=null)},d(M){M&&(h(e),h(l),h(a)),S&&S.d(),j&&j.d(),U=!1,et(I)}}}function zl(n){let e,t="Thanks for signing up! We only send emails we would want to receive.";return{c(){e=v("div"),e.textContent=t,this.h()},l(l){e=p(l,"DIV",{class:!0,role:!0,"data-svelte-h":!0}),O(e)!=="svelte-jpl5x2"&&(e.textContent=t),this.h()},h(){u(e,"class","success svelte-rzl7t0"),u(e,"role","status")},m(l,a){L(l,e,a)},p:He,d(l){l&&h(e)}}}function pt(n){let e,t=Le(mt),l=[];for(let a=0;a<t.length;a+=1)l[a]=_t(vt(n,t,a));return{c(){e=v("fieldset");for(let a=0;a<l.length;a+=1)l[a].c();this.h()},l(a){e=p(a,"FIELDSET",{class:!0});var r=$(e);for(let s=0;s<l.length;s+=1)l[s].l(r);r.forEach(h),this.h()},h(){u(e,"class","svelte-rzl7t0")},m(a,r){L(a,e,r);for(let s=0;s<l.length;s+=1)l[s]&&l[s].m(e,null)},p(a,r){if(r&4){t=Le(mt);let s;for(s=0;s<t.length;s+=1){const f=vt(a,t,s);l[s]?l[s].p(f,r):(l[s]=_t(f),l[s].c(),l[s].m(e,null))}for(;s<l.length;s+=1)l[s].d(1);l.length=t.length}},d(a){a&&h(e),tt(l,a)}}}function _t(n){let e,t,l,a,r,s,f,i,m;return f=Rt(n[16][0]),{c(){e=v("label"),t=v("input"),l=w(),a=v("span"),r=q(n[20]),s=w(),this.h()},l(_){e=p(_,"LABEL",{class:!0});var g=$(e);t=p(g,"INPUT",{type:!0,class:!0}),l=E(g),a=p(g,"SPAN",{});var C=$(a);r=R(C,n[20]),C.forEach(h),s=E(g),g.forEach(h),this.h()},h(){u(t,"type","checkbox"),t.__value=n[19],We(t,t.__value),u(t,"class","svelte-rzl7t0"),u(e,"class","preference svelte-rzl7t0"),f.p(t)},m(_,g){L(_,e,g),o(e,t),t.checked=~(n[2]||[]).indexOf(t.__value),o(e,l),o(e,a),o(a,r),o(e,s),i||(m=fe(t,"change",n[15]),i=!0)},p(_,g){g&4&&(t.checked=~(_[2]||[]).indexOf(t.__value))},d(_){_&&h(e),f.r(),i=!1,m()}}}function gt(n){let e,t;return{c(){e=v("p"),t=q(n[5]),this.h()},l(l){e=p(l,"P",{class:!0,role:!0});var a=$(e);t=R(a,n[5]),a.forEach(h),this.h()},h(){u(e,"class","error svelte-rzl7t0"),u(e,"role","alert")},m(l,a){L(l,e,a),o(e,t)},p(l,a){a&32&&le(t,l[5])},d(l){l&&h(e)}}}function Vl(n){let e,t,l;function a(f,i){return f[3]==="success"?zl:Al}let r=a(n),s=r(n);return{c(){e=v("div"),s.c(),this.h()},l(f){e=p(f,"DIV",{class:!0});var i=$(e);s.l(i),i.forEach(h),this.h()},h(){u(e,"class","footer-email-updates svelte-rzl7t0")},m(f,i){L(f,e,i),s.m(e,null),n[17](e),t||(l=[fe(window,"pointerdown",n[11]),fe(window,"keydown",n[12])],t=!0)},p(f,[i]){r===(r=a(f))&&s?s.p(f,i):(s.d(1),s=r(f),s&&(s.c(),s.m(e,null)))},i:He,o:He,d(f){f&&h(e),s.d(),n[17](null),t=!1,et(l)}}}function Sl(n,e,t){let l,a,r,s;const{email:f,selectedCategories:i,status:m,errorMessage:_,submit:g}=ol();ce(n,f,k=>t(4,r=k)),ce(n,i,k=>t(2,l=k)),ce(n,m,k=>t(3,a=k)),ce(n,_,k=>t(5,s=k));let C=!1,c;function d(){l.length||t(0,C=!0),g()}const b=[[]],y=k=>{C&&c&&!k.composedPath().includes(c)&&t(0,C=!1)},z=k=>{k.key==="Escape"&&t(0,C=!1)};function V(){r=this.value,f.set(r)}const D=()=>t(0,C=!C);function N(){l=Ut(b[0],this.__value,this.checked),i.set(l)}function B(k){Pt[k?"unshift":"push"](()=>{c=k,t(1,c)})}return[C,c,l,a,r,s,f,i,m,_,d,y,z,V,D,N,b,B]}class Nl extends Ge{constructor(e){super(),Ze(this,e,Sl,Vl,Re,{})}}const Tl=`<svg width="25" height="25" viewBox="0 0 25 25" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
3  <g>
4    <path d="M24.6 3.6c-.3-.4-.8-.6-1.3-.6h-18.4l-.1-.5c-.3-1.5-1.7-1.5-2.5-1.5h-1.3c-.6 0-1 .4-1 1s.4 1 1 1h1.8l3 13.6c.2 1.2 1.3 2.4 2.5 2.4h12.7c.6 0 1-.4 1-1s-.4-1-1-1h-12.7c-.2 0-.5-.4-.6-.8l-.2-1.2h12.6c1.3 0 2.3-1.4 2.5-2.4l2.4-7.4v-.2c.1-.5-.1-1-.4-1.4zm-4 8.5v.2c-.1.3-.4.8-.5.8h-13l-1.8-8.1h17.6l-2.3 7.1z"></path>
5    <circle cx="9" cy="22" r="2"></circle>
6    <circle cx="19" cy="22" r="2"></circle>
7  </g>
8</svg>
9`,Ll=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
10<path fill-rule="evenodd" clip-rule="evenodd" d="M2.23145 8L4.74573 20H19.2547L21.769 8H2.23145Z" stroke="currentColor" stroke-width="2"></path>
11<path d="M18.2929 8.70711C18.6834 9.09763 19.3166 9.09763 19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L18.2929 8.70711ZM15.7071 3.29289L15 2.58579L13.5858 4L14.2929 4.70711L15.7071 3.29289ZM19.7071 7.29289L15.7071 3.29289L14.2929 4.70711L18.2929 8.70711L19.7071 7.29289Z" fill="black"></path>
12<path d="M5.70711 8.70711C5.31658 9.09763 4.68342 9.09763 4.29289 8.70711C3.90237 8.31658 3.90237 7.68342 4.29289 7.29289L5.70711 8.70711ZM8.29289 3.29289L9 2.58579L10.4142 4L9.70711 4.70711L8.29289 3.29289ZM4.29289 7.29289L8.29289 3.29289L9.70711 4.70711L5.70711 8.70711L4.29289 7.29289Z" fill="CurrentColor"></path>
13</svg>
14`,Pl=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
15<path d="M6 6V8H14.59L5 17.59L6.41 19L16 9.41V18H18V6H6Z" fill="CurrentColor"></path>
16</svg>
17`;function Ml(){console.log(`
18                          .~ssos+.
19                        +8888888888i,
20                      {888888888888o.
21                      h8888888888888k
22                      t888888888s888k
23                        \`t88888d/ h88k
24                          \`\`\`    h88l
25                                ,88k\`
26                                .d8h\`
27                              +d8h
28                            _+d8h\`
29                          ;y8h+\`
30                          |-\`
31
32                    https://comma.ai/jobs
33    `)}function bt(n,e,t){const l=n.slice();return l[1]=e[t],l}function Ct(n){let e,t,l=n[1].title+"",a,r,s,f,i=n[1].date+"",m,_,g=n[1].readTime+"",C,c;return{c(){e=v("div"),t=v("a"),a=q(l),s=w(),f=v("div"),m=q(i),_=q(" - "),C=q(g),c=w(),this.h()},l(d){e=p(d,"DIV",{class:!0});var b=$(e);t=p(b,"A",{href:!0});var y=$(t);
33a=R(y,l),y.forEach(h),s=E(b),f=p(b,"DIV",{});var z=$(f);m=R(z,i),_=R(z," - "),C=R(z,g),z.forEach(h),c=E(b),b.forEach(h),this.h()},h(){u(t,"href",r=n[1].link),u(e,"class","entry")},m(d,b){L(d,e,b),o(e,t),o(t,a),o(e,s),o(e,f),o(f,m),o(f,_),o(f,C),o(e,c)},p(d,b){b&1&&l!==(l=d[1].title+"")&&le(a,l),b&1&&r!==(r=d[1].link)&&u(t,"href",r),b&1&&i!==(i=d[1].date+"")&&le(m,i),b&1&&g!==(g=d[1].readTime+"")&&le(C,g)},d(d){d&&h(e)}}}function jl(n){let e,t,l='<svg viewBox="0 0 24 24" width="32" height="32"><rect x="3" y="5" width="18" height="2"></rect><rect x="3" y="11" width="18" height="2"></rect><rect x="3" y="17" width="18" height="2"></rect></svg>',a,r,s,f='<a href="/" class="svelte-1u2audz">home</a> <a href="/openpilot" class="svelte-1u2audz">openpilot</a> <a href="/shop/comma-four" class="svelte-1u2audz">comma four</a> <a href="/shop" class="svelte-1u2audz">shop</a> <a href="/connect" class="svelte-1u2audz">connect</a> <a href="/vehicles" class="svelte-1u2audz">compatibility</a> <a href="/setup" class="svelte-1u2audz">setup guide</a> <a href="/support" class="svelte-1u2audz">support &amp; FAQs</a> <a href="https://blog.comma.ai" class="svelte-1u2audz">blog</a> <a href="/jobs" class="svelte-1u2audz">jobs - we&#39;re hiring!</a>',i,m,_,g,C="Latest from the blog:",c,d,b,y,z="Social",V,D,N,B=Le(n[0].data.blogPosts),k=[];for(let A=0;A<B.length;A+=1)k[A]=Ct(bt(n,B,A));return D=new xt({props:{size:"2rem"}}),{c(){e=v("nav"),t=v("button"),t.innerHTML=l,a=w(),r=v("div"),s=v("div"),s.innerHTML=f,i=w(),m=v("div"),_=v("div"),g=v("div"),g.textContent=C,c=w();for(let A=0;A<k.length;A+=1)k[A].c();d=w(),b=v("div"),y=v("div"),y.textContent=z,V=w(),pe(D.$$.fragment),this.h()},l(A){e=p(A,"NAV",{"aria-label":!0,class:!0});var U=$(e);t=p(U,"BUTTON",{type:!0,class:!0,"aria-expanded":!0,"aria-controls":!0,tabindex:!0,"data-svelte-h":!0}),O(t)!=="svelte-3abmgp"&&(t.innerHTML=l),a=E(U),r=p(U,"DIV",{class:!0,id:!0,role:!0,"aria-modal":!0,tabindex:!0});var I=$(r);s=p(I,"DIV",{class:!0,"data-svelte-h":!0}),O(s)!=="svelte-1vk8fpz"&&(s.innerHTML=f),i=E(I),m=p(I,"DIV",{class:!0});var S=$(m);_=p(S,"DIV",{class:!0});var j=$(_);g=p(j,"DIV",{class:!0,"data-svelte-h":!0}),O(g)!=="svelte-1ruvvwd"&&(g.textContent=C),c=E(j);for(let T=0;T<k.length;T+=1)k[T].l(j);j.forEach(h),d=E(S),b=p(S,"DIV",{class:!0});var M=$(b);y=p(M,"DIV",{class:!0,"data-svelte-h":!0}),O(y)!=="svelte-1qbcxva"&&(y.textContent=z),V=E(M),_e(D.$$.fragment,M),M.forEach(h),S.forEach(h),I.forEach(h),U.forEach(h),this.h()},h(){u(t,"type","button"),u(t,"class","toggle-button svelte-1u2audz"),u(t,"aria-expanded","false"),u(t,"aria-controls","menu-dropdown"),u(t,"tabindex","0"),u(s,"class","section-links svelte-1u2audz"),u(g,"class","title"),u(_,"class","blog"),u(y,"class","title"),u(b,"class","social-links"),u(m,"class","news-feed svelte-1u2audz"),u(r,"class","menu-container svelte-1u2audz"),u(r,"id","menu-dropdown"),u(r,"role","dialog"),u(r,"aria-modal","true"),u(r,"tabindex","-1"),u(e,"aria-label","navigation menu"),u(e,"class","svelte-1u2audz")},m(A,U){L(A,e,U),o(e,t),o(e,a),o(e,r),o(r,s),o(r,i),o(r,m),o(m,_),o(_,g),o(_,c);for(let I=0;I<k.length;I+=1)k[I]&&k[I].m(_,null);o(m,d),o(m,b),o(b,y),o(b,V),ge(D,b,null),N=!0},p(A,[U]){if(U&1){B=Le(A[0].data.blogPosts);let I;for(I=0;I<B.length;I+=1){const S=bt(A,B,I);k[I]?k[I].p(S,U):(k[I]=Ct(S),k[I].c(),k[I].m(_,null))}for(;I<k.length;I+=1)k[I].d(1);k.length=B.length}},i(A){N||(F(D.$$.fragment,A),N=!0)},o(A){Y(D.$$.fragment,A),N=!1},d(A){A&&h(e),tt(k,A),be(D)}}}function Bl(n,e,t){let l;return ce(n,Ot,a=>t(0,l=a)),[l]}class Ol extends Ge{constructor(e){super(),Ze(this,e,Bl,jl,Re,{})}}function xl(n){let e,t,l,a,r,s,f,i,m,_,g,C;return{c(){e=v("div"),t=v("button"),l=q("-"),r=w(),s=v("input"),f=w(),i=v("button"),m=q("+"),this.h()},l(c){e=p(c,"DIV",{class:!0});var d=$(e);t=p(d,"BUTTON",{"aria-label":!0,class:!0});var b=$(t);l=R(b,"-"),b.forEach(h),r=E(d),s=p(d,"INPUT",{type:!0,min:!0,"aria-label":!0,class:!0}),f=E(d),i=p(d,"BUTTON",{"aria-label":!0,class:!0});var y=$(i);m=R(y,"+"),y.forEach(h),d.forEach(h),this.h()},h(){u(t,"aria-label",a="Decrement "+n[2]),u(t,"class","svelte-1m6ox4m"),u(s,"type","number"),u(s,"min","0"),u(s,"aria-label",n[2]),u(s,"class","svelte-1m6ox4m"),u(i,"aria-label",_="Increment "+n[2]),u(i,"class","svelte-1m6ox4m"),u(e,"class","svelte-1m6ox4m")},m(c,d){L(c,e,d),o(e,t),o(t,l),o(e,r),o(e,s),We(s,n[0]),o(e,f),o(e,i),o(i,m),g||(C=[fe(t,"click",n[3]),fe(s,"input",n[4]),fe(s,"change",n[5]),fe(i,"click",n[6])],g=!0)},p(c,[d]){d&4&&a!==(a="Decrement "+c[2])&&u(t,"aria-label",a),d&4&&u(s,"aria-label",c[2]),d&1&&Mt(s.value)!==c[0]&&We(s,c[0]),d&4&&_!==(_="Increment "+c[2])&&u(i,"aria-label",_)},i:He,o:He,d(c){c&&h(e),g=!1,et(C)}}}function Hl(n,e,t){let{onChange:l}=e,{value:a}=e,{label:r}=e;const s=()=>{let _=a-1;l(_)};function f(){a=Mt(this.value),t(0,a)}const i=()=>
33{l(a)},m=()=>{let _=a+1;l(_)};return n.$$set=_=>{"onChange"in _&&t(1,l=_.onChange),"value"in _&&t(0,a=_.value),"label"in _&&t(2,r=_.label)},[a,l,r,s,f,i,m]}class Ul extends Ge{constructor(e){super(),Ze(this,e,Hl,xl,Re,{onChange:1,value:0,label:2})}}const{Boolean:ql}=Bt;function Rl(n){var a;const e=n.slice(),t=Number(e[2].amount)+Number(e[12]||0);e[14]=t;const l=Number(e[2].amount)-Number(((a=e[3])==null?void 0:a.amount)||0);return e[15]=l,e}function ot(n){var a;const e=n.slice(),t=((a=e[1])==null?void 0:a.amount)||0;e[12]=t;const l=!!e[1];return e[13]=l,e}function kt(n,e,t){var f,i,m,_,g;const l=n.slice();l[16]=e[t];const a=((f=l[16].node.merchandise.image)==null?void 0:f.url)||((m=(i=l[16].node.merchandise.product.images.edges[0])==null?void 0:i.node)==null?void 0:m.originalSrc);l[17]=a;const r=(_=l[16].node.discountAllocations)==null?void 0:_.find(({code:C})=>{var c,d;return C&&((c=l[1])==null?void 0:c.code)&&C.toLowerCase()===((d=l[1])==null?void 0:d.code.toLowerCase())});l[18]=r;const s={amount:Number(l[16].node.estimatedCost.totalAmount.amount)+Number(((g=l[18])==null?void 0:g.discountedAmount.amount)||0),currencyCode:l[16].node.estimatedCost.totalAmount.currencyCode};return l[19]=s,l}function wt(n,e,t){const l=n.slice();return l[22]=e[t][0],l[23]=e[t][1],l}function Et(n){let e,t="Your cart is empty.";return{c(){e=v("div"),e.textContent=t,this.h()},l(l){e=p(l,"DIV",{class:!0,"data-svelte-h":!0}),O(e)!=="svelte-1b5dzpi"&&(e.textContent=t),this.h()},h(){u(e,"class","empty")},m(l,a){L(l,e,a)},d(l){l&&h(e)}}}function $t(n){let e;function t(r,s){return typeof r[17]=="object"&&r[17].sources?Zl:Gl}let l=t(n),a=l(n);return{c(){e=v("picture"),a.c()},l(r){e=p(r,"PICTURE",{});var s=$(e);a.l(s),s.forEach(h)},m(r,s){L(r,e,s),a.m(e,null)},p(r,s){l===(l=t(r))&&a?a.p(r,s):(a.d(1),a=l(r),a&&(a.c(),a.m(e,null)))},d(r){r&&h(e),a.d()}}}function Gl(n){let e,t,l;return{c(){e=v("img"),this.h()},l(a){e=p(a,"IMG",{src:!0,alt:!0}),this.h()},h(){Ke(e.src,t=n[17])||u(e,"src",t),u(e,"alt",l=n[16].node.merchandise.product.title)},m(a,r){L(a,e,r)},p(a,r){r&1&&!Ke(e.src,t=a[17])&&u(e,"src",t),r&1&&l!==(l=a[16].node.merchandise.product.title)&&u(e,"alt",l)},d(a){a&&h(e)}}}function Zl(n){let e,t,l,a,r=Le(Object.entries(n[17].sources)),s=[];for(let f=0;f<r.length;f+=1)s[f]=It(wt(n,r,f));return{c(){for(let f=0;f<s.length;f+=1)s[f].c();e=w(),t=v("img"),this.h()},l(f){for(let i=0;i<s.length;i+=1)s[i].l(f);e=E(f),t=p(f,"IMG",{src:!0,alt:!0}),this.h()},h(){Ke(t.src,l=n[17].img.src)||u(t,"src",l),u(t,"alt",a=n[16].node.merchandise.product.title)},m(f,i){for(let m=0;m<s.length;m+=1)s[m]&&s[m].m(f,i);L(f,e,i),L(f,t,i)},p(f,i){if(i&1){r=Le(Object.entries(f[17].sources));let m;for(m=0;m<r.length;m+=1){const _=wt(f,r,m);s[m]?s[m].p(_,i):(s[m]=It(_),s[m].c(),s[m].m(e.parentNode,e))}for(;m<s.length;m+=1)s[m].d(1);s.length=r.length}i&1&&!Ke(t.src,l=f[17].img.src)&&u(t,"src",l),i&1&&a!==(a=f[16].node.merchandise.product.title)&&u(t,"alt",a)},d(f){f&&(h(e),h(t)),tt(s,f)}}}function It(n){let e,t,l;return{c(){e=v("source"),this.h()},l(a){e=p(a,"SOURCE",{srcset:!0,type:!0}),this.h()},h(){Zt(e,t=n[23].split(" ")[0])||u(e,"srcset",t),u(e,"type",l="image/"+n[22])},m(a,r){L(a,e,r)},p(a,r){r&1&&t!==(t=a[23].split(" ")[0])&&u(e,"srcset",t),r&1&&l!==(l="image/"+a[22])&&u(e,"type",l)},d(a){a&&h(e)}}}function yt(n){let e,t=n[16].node.merchandise.title+"",l;return{c(){e=v("div"),l=q(t),this.h()},l(a){e=p(a,"DIV",{class:!0});var r=$(e);l=R(r,t),r.forEach(h),this.h()},h(){u(e,"class","variant")},m(a,r){L(a,e,r),o(e,l)},p(a,r){r&1&&t!==(t=a[16].node.merchandise.title+"")&&le(l,t)},d(a){a&&h(e)}}}function Dt(n){let e,t,l,a,r=n[16].node.merchandise.product.title+"",s,f,i,m,_,g,C,c,d=Ce(n[19])+"",b,y,z,V=n[17]&&$t(n),D=n[16].node.merchandise.title!=="Default Title"&&yt(n);m=new kl({props:{multiplier:.5}});function N(...B){return n[10](n[16],...B)}return g=new Ul({props:{label:"quantity",onChange:N,value:n[16].node.quantity}}),{c(){e=v("div"),V&&V.c(),t=w(),l=v("div"),a=v("div"),s=q(r),f=w(),D&&D.c(),i=w(),pe(m.$$.fragment),_=w(),pe(g.$$.fragment),C=w(),c=v("div"),b=q(d),y=w(),this.h()},l(B){e=p(B,"DIV",{class:!0});var k=$(e);V&&V.l(k),t=E(k),l=p(k,"DIV",{class:!0});var A=$(l);a=p(A,"DIV",{class:!0});var U=$(a);
33s=R(U,r),U.forEach(h),f=E(A),D&&D.l(A),i=E(A),_e(m.$$.fragment,A),_=E(A),_e(g.$$.fragment,A),A.forEach(h),C=E(k),c=p(k,"DIV",{});var I=$(c);b=R(I,d),I.forEach(h),y=E(k),k.forEach(h),this.h()},h(){u(a,"class","title"),u(l,"class","details"),u(e,"class","item")},m(B,k){L(B,e,k),V&&V.m(e,null),o(e,t),o(e,l),o(l,a),o(a,s),o(l,f),D&&D.m(l,null),o(l,i),ge(m,l,null),o(l,_),ge(g,l,null),o(e,C),o(e,c),o(c,b),o(e,y),z=!0},p(B,k){n=B,n[17]?V?V.p(n,k):(V=$t(n),V.c(),V.m(e,t)):V&&(V.d(1),V=null),(!z||k&1)&&r!==(r=n[16].node.merchandise.product.title+"")&&le(s,r),n[16].node.merchandise.title!=="Default Title"?D?D.p(n,k):(D=yt(n),D.c(),D.m(l,i)):D&&(D.d(1),D=null);const A={};k&1&&(A.onChange=N),k&1&&(A.value=n[16].node.quantity),g.$set(A),(!z||k&3)&&d!==(d=Ce(n[19])+"")&&le(b,d)},i(B){z||(F(m.$$.fragment,B),F(g.$$.fragment,B),z=!0)},o(B){Y(m.$$.fragment,B),Y(g.$$.fragment,B),z=!1},d(B){B&&h(e),V&&V.d(),D&&D.d(),be(m),be(g)}}}function At(n){let e,t,l,a="Customs/duties/taxes are between you and your country.",r,s,f,i=n[13]&&zt(n);function m(c,d){return c[3]||c[13]?Vt:Wl}function _(c,d){return d===Vt?Rl(c):c}let g=m(n),C=g(_(n,g));return s=new Cl({props:{id:"checkout",style:"accent",fullWidth:!0,$$slots:{default:[Fl]},$$scope:{ctx:n}}}),s.$on("click",n[6]),{c(){i&&i.c(),e=w(),C.c(),t=w(),l=v("div"),l.textContent=a,r=w(),pe(s.$$.fragment),this.h()},l(c){i&&i.l(c),e=E(c),C.l(c),t=E(c),l=p(c,"DIV",{class:!0,"data-svelte-h":!0}),O(l)!=="svelte-rbje4m"&&(l.textContent=a),r=E(c),_e(s.$$.fragment,c),this.h()},h(){u(l,"class","disclaimer")},m(c,d){i&&i.m(c,d),L(c,e,d),C.m(c,d),L(c,t,d),L(c,l,d),L(c,r,d),ge(s,c,d),f=!0},p(c,d){c[13]?i?i.p(c,d):(i=zt(c),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null),g===(g=m(c))&&C?C.p(_(c,g),d):(C.d(1),C=g(_(c,g)),C&&(C.c(),C.m(t.parentNode,t)));const b={};d&67108864&&(b.$$scope={dirty:d,ctx:c}),s.$set(b)},i(c){f||(F(s.$$.fragment,c),f=!0)},o(c){Y(s.$$.fragment,c),f=!1},d(c){c&&(h(e),h(t),h(l),h(r)),i&&i.d(c),C.d(c),be(s,c)}}}function zt(n){let e,t,l,a="Referral discount",r,s,f=n[1].code+"",i,m,_,g,C=Ce({amount:n[12],currencyCode:n[2].currencyCode},0)+"",c;return{c(){e=v("div"),t=v("div"),l=v("strong"),l.textContent=a,r=w(),s=v("span"),i=q(f),m=w(),_=v("h4"),g=q("-"),c=q(C),this.h()},l(d){e=p(d,"DIV",{class:!0});var b=$(e);t=p(b,"DIV",{class:!0});var y=$(t);l=p(y,"STRONG",{"data-svelte-h":!0}),O(l)!=="svelte-1foxlb2"&&(l.textContent=a),r=E(y),s=p(y,"SPAN",{class:!0});var z=$(s);i=R(z,f),z.forEach(h),y.forEach(h),m=E(b),_=p(b,"H4",{class:!0});var V=$(_);g=R(V,"-"),c=R(V,C),V.forEach(h),b.forEach(h),this.h()},h(){u(s,"class","referral-code"),u(t,"class","referral-details svelte-oj0p2z"),u(_,"class","referral-amount"),u(e,"class","referral-discount svelte-oj0p2z")},m(d,b){L(d,e,b),o(e,t),o(t,l),o(t,r),o(t,s),o(s,i),o(e,m),o(e,_),o(_,g),o(_,c)},p(d,b){b&2&&f!==(f=d[1].code+"")&&le(i,f),b&6&&C!==(C=Ce({amount:d[12],currencyCode:d[2].currencyCode},0)+"")&&le(c,C)},d(d){d&&h(e)}}}function Wl(n){let e,t,l="Subtotal",a,r,s=Ce(n[2])+"",f;return{c(){e=v("div"),t=v("span"),t.textContent=l,a=w(),r=v("span"),f=q(s),this.h()},l(i){e=p(i,"DIV",{class:!0});var m=$(e);t=p(m,"SPAN",{"data-svelte-h":!0}),O(t)!=="svelte-3vhy5m"&&(t.textContent=l),a=E(m),r=p(m,"SPAN",{});var _=$(r);f=R(_,s),_.forEach(h),m.forEach(h),this.h()},h(){u(e,"class","price")},m(i,m){L(i,e,m),o(e,t),o(e,a),o(e,r),o(r,f)},p(i,m){m&4&&s!==(s=Ce(i[2])+"")&&le(f,s)},d(i){i&&h(e)}}}function Vt(n){let e,t,l,a="Subtotal",r,s,f,i=Ce({amount:n[14],currencyCode:n[2].currencyCode})+"",m,_,g=Ce({amount:n[15],currencyCode:n[2].currencyCode})+"",C,c=n[4]&&!n[13]&&St(n);return{c(){c&&c.c(),e=w(),t=v("div"),l=v("span"),l.textContent=a,r=w(),s=v("span"),f=v("s"),m=q(i),_=w(),C=q(g),this.h()},l(d){c&&c.l(d),e=E(d),t=p(d,"DIV",{class:!0});var b=$(t);l=p(b,"SPAN",{"data-svelte-h":!0}),O(l)!=="svelte-3vhy5m"&&(l.textContent=a),r=E(b),s=p(b,"SPAN",{});var y=$(s);f=p(y,"S",{});var z=$(f);m=R(z,i),z.forEach(h),_=E(y),C=R(y,g),y.forEach(h),b.forEach(h),this.h()},h(){u(t,"class","price")},m(d,b){c&&c.m(d,b),L(d,e,b),L(d,t,b),o(t,l),o(t,r),o(t,s),o(s,f),o(f,m),o(s,_),o(s,C)},p(d,b){d[4]&&!d[13]?c?c.p(d,b):(c=St(d),c.c(),c.m(e.parentNode,e)):c&&(c.d(1),c=null),b&6&&i!==(i=Ce({amount:d[14],currencyCode:d[2].currencyCode})+"")&&le(m,i),b&12&&g!==(g=Ce({amount:d[15],currencyCode:d[2].currencyCode})+"")&&le(C,g)},d(d){d&&(h(e),h(t)),c&&c.d(d)}}}function St(n){let e,t,l="Bulk Order Discount",a,r,s,f=Ce(n[4].discountedAmount)+"",i;return{c(){e=v("div"),t=v("span"),t.textContent=l,a=w(),r=v("span"),s=q("-"),i=q(f),this.h()},l(m){e=p(m,"DIV",{class:!0});var _=$(e);t=p(_,"SPAN",{"data-svelte-h":!0}),O(t)!=="svelte-jzbpr"&&(t.textContent=l),a=E(_),r=p(_,"SPAN",{});var g=$(r);s=R(g,"-"),i=R(g,f),g.forEach(h),_.forEach(h),this.h()},h(){u(e,"class","price")},m(m,_){L(m,e,_),o(e,t),o(e,a),o(e,r),o(r,s),o(r,i)},p(m,_){_&16&&f!==(f=Ce(m[4].discountedAmount)+"")&&le(i,f)},d(m){m&&h(e)}}}function Fl(n){let e;return{c(){e=q("Checkout")},l(t){e=R(t,"Checkout")},m(t,l){L(t,e,l)},d(t){t&&h(e)}}}function Ql(n){var A,U;let e,t,l,a,r,s="Your Cart",f,i,m="×",_,g,C,c,d,b,y,z,V=((A=n[0])==null?void 0:A.length)===0&&Et(),D=Le(n[0]),N=[];for(let I=0;I<D.length;I+=1)N[I]=Dt(kt(n,D,I));const B=I=>Y(N[I],1,1,()=>{N[I]=null});let k=((U=n[0])==null?void 0:U.length)!==0&&At(ot(n));return{c(){e=v("div"),t=w(),l=v("div"),a=v("div"),r=v("span"),r.textContent=s,f=w(),i=v("button"),i.textContent=m,_=w(),g=v("div"),V&&V.c(),C=w();for(let I=0;I<N.length;I+=1)N[I].c();c=w(),d=v("div"),k&&k.c(),this.h()},l(I){e=p(I,"DIV",{class:!0,role:!0}),$(e).forEach(h),t=E(I),l=p(I,"DIV",{class:!0,role:!0,"aria-modal":!0});var S=$(l);a=p(S,"DIV",{class:!0});var j=$(a);r=p(j,"SPAN",{"data-svelte-h":!0}),O(r)!=="svelte-woubyr"&&(r.textContent=s),f=E(j),i=p(j,"BUTTON",{"data-svelte-h":!0}
33),O(i)!=="svelte-6ymx2k"&&(i.textContent=m),j.forEach(h),_=E(S),g=p(S,"DIV",{class:!0});var M=$(g);V&&V.l(M),C=E(M);for(let Z=0;Z<N.length;Z+=1)N[Z].l(M);M.forEach(h),c=E(S),d=p(S,"DIV",{class:!0});var T=$(d);k&&k.l(T),T.forEach(h),S.forEach(h),this.h()},h(){u(e,"class","overlay svelte-oj0p2z"),u(e,"role","presentation"),u(a,"class","header svelte-oj0p2z"),u(g,"class","inventory svelte-oj0p2z"),u(d,"class","footer svelte-oj0p2z"),u(l,"class","sidemenu svelte-oj0p2z"),u(l,"role","dialog"),u(l,"aria-modal","true")},m(I,S){L(I,e,S),L(I,t,S),L(I,l,S),o(l,a),o(a,r),o(a,f),o(a,i),o(l,_),o(l,g),V&&V.m(g,null),o(g,C);for(let j=0;j<N.length;j+=1)N[j]&&N[j].m(g,null);o(l,c),o(l,d),k&&k.m(d,null),b=!0,y||(z=[fe(e,"click",n[9]),fe(i,"click",n[8])],y=!0)},p(I,[S]){var j,M;if(((j=I[0])==null?void 0:j.length)===0?V||(V=Et(),V.c(),V.m(g,C)):V&&(V.d(1),V=null),S&35){D=Le(I[0]);let T;for(T=0;T<D.length;T+=1){const Z=kt(I,D,T);N[T]?(N[T].p(Z,S),F(N[T],1)):(N[T]=Dt(Z),N[T].c(),F(N[T],1),N[T].m(g,null))}for(it(),T=D.length;T<N.length;T+=1)B(T);ut()}((M=I[0])==null?void 0:M.length)!==0?k?(k.p(ot(I),S),S&1&&F(k,1)):(k=At(ot(I)),k.c(),F(k,1),k.m(d,null)):k&&(it(),Y(k,1,1,()=>{k=null}),ut())},i(I){if(!b){for(let S=0;S<D.length;S+=1)F(N[S]);F(k),b=!0}},o(I){N=N.filter(ql);for(let S=0;S<N.length;S+=1)Y(N[S]);Y(k),b=!1},d(I){I&&(h(e),h(t),h(l)),V&&V.d(),tt(N,I),k&&k.d(),y=!1,et(z)}}}function Xl(n,e,t){let l,a,r,s,f;ce(n,ul,b=>t(0,l=b)),ce(n,cl,b=>t(1,a=b)),ce(n,fl,b=>t(2,r=b)),ce(n,dl,b=>t(3,s=b)),ce(n,hl,b=>t(4,f=b));let{loading:i=!1}=e;const m=Gt();function _(b,y){t(7,i=!0),m("updateProduct",{body:{variantId:b.node.merchandise.id,quantity:y,lineId:b.node.id}})}async function g(){t(7,i=!0),window.open(jt(ml),"_self"),t(7,i=!1)}function C(b){ht.call(this,n,b)}function c(b){ht.call(this,n,b)}const d=(b,y)=>{_(b,y)};return n.$$set=b=>{"loading"in b&&t(7,i=b.loading)},[l,a,r,s,f,_,g,i,C,c,d]}class Yl extends Ge{constructor(e){super(),Ze(this,e,Xl,Ql,Re,{loading:7})}}const{document:Nt}=Bt;function Tt(n){let e,t,l,a,r,s,f,i,m;return{c(){e=v("button"),t=new ye(!1),l=w(),a=v("div"),r=q("cart ("),s=q(n[2]),f=q(")"),this.h()},l(_){e=p(_,"BUTTON",{class:!0});var g=$(e);t=De(g,!1),l=E(g),a=p(g,"DIV",{class:!0});var C=$(a);r=R(C,"cart ("),s=R(C,n[2]),f=R(C,")"),C.forEach(h),g.forEach(h),this.h()},h(){t.a=l,u(a,"class","cart-text"),u(e,"class","button cart")},m(_,g){L(_,e,g),t.m(Tl,e),o(e,l),o(e,a),o(a,r),o(a,s),o(a,f),i||(m=fe(e,"click",n[4]),i=!0)},p(_,g){g&4&&le(s,_[2])},d(_){_&&h(e),i=!1,m()}}}function Lt(n){let e,t,l;function a(s){n[8](s)}let r={};return n[0]!==void 0&&(r.loading=n[0]),e=new Yl({props:r}),Pt.push(()=>el(e,"loading",a)),e.$on("click",n[5]),e.$on("updateProduct",n[6]),{c(){pe(e.$$.fragment)},l(s){_e(e.$$.fragment,s)},m(s,f){ge(e,s,f),l=!0},p(s,f){const i={};!t&&f&1&&(t=!0,i.loading=s[0],Kt(()=>t=!1)),e.$set(i)},i(s){l||(F(e.$$.fragment,s),l=!0)},o(s){Y(e.$$.fragment,s),l=!1},d(s){be(e,s)}}}function Jl(n){let e;return{c(){e=q("new")},l(t){e=R(t,"new")},m(t,l){L(t,e,l)},d(t){t&&h(e)}}}function Kl(n){let e;return{c(){e=q("we're hiring!")},l(t){e=R(t,"we're hiring!")},m(t,l){L(t,e,l)},d(t){t&&h(e)}}}function ea(n){let e;return{c(){e=q("New Challenge!")},l(t){e=R(t,"New Challenge!")},m(t,l){L(t,e,l)},d(t){t&&h(e)}}}function ta(n){let e,t,l="Product",a,r,s="openpilot",f,i,m,_="comma four",g,C,c,d,b="connect",y,z,V="Compatibility",D,N,B="Shop",k,A,U,I="Company",S,j,M="Blog",T,Z,ae,Ae="Jobs",oe,Q,ie,K,se,ke="Leaderboard",de,he,me,ee,J,X="Support",W,we,te="Support & FAQs",P,H,Ve="Setup Guide",$e,ne,ze,ue="Discord",Se,Ne,Pe,re,ve,Fe,Me,ct="make driving chill",lt,je,at,Ue,Be,Qe;return C=new nt({props:{style:"light",display:"inline",$$slots:{default:[Jl]},$$scope:{ctx:n}}}),Q=new nt({props:{style:"light",display:"inline",$$slots:{default:[Kl]},$$scope:{ctx:n}}}),he=new nt({props:{style:"accent",display:"inline",$$slots:{default:[ea]},$$scope:{ctx:n}}}),je=new xt({props:{size:"1.5rem"}}),Be=new Nl({}),{c(){e=v("div"),t=v("strong"),t.textContent=l,a=w(),r=v("a"),r.textContent=s,f=w(),i=v("a"),m=v("span"),m.textContent=_,g=w(),pe(C.$$.fragment),c=w(),d=v("a"),d.textContent=b,y=w(),z=v("a"),z.textContent=V,D=w(),N=v("a"),N.textContent=B,k=w(),A=v("div"),U=v("strong"),U.textContent=I,S=w(),j=v("a"),j.textContent=M,T=w(),Z=v("a"),ae=v("span"),ae.textContent=Ae,oe=w(),pe(Q.$$.fragment),ie=w(),K=v("a"),se=v("span"),se.textContent=ke,de=w(),pe(he.$$.fragment),me=w(),ee=v("div"),J=v("strong"),J.textContent=X,W=w(),we=v("a"),we.textContent=te,P=w(),H=v("a"),H.textContent=Ve,$e=w(),ne=v("a"),ze=v("span"),ze.textContent=ue,Se=w(),Ne=new ye(!1),Pe=w(),re=v("div"),ve=v("div"),Fe=new ye(!1),Me=v("span"),Me.textContent=ct,lt=w(),pe(je.$$.fragment),at=w(),Ue=v("div"),pe(Be.$$.fragment),this.h()},l(x){e=p(x,"DIV",{class:!0});var G=$(e);t=p(G,"STRONG",{"data-svelte-h":!0}),O(t)!=="svelte-1xtuoi7"&&(t.textContent=l),a=E(G),r=p(G,"A",{href:!0,"data-svelte-h":!0}),O(r)!=="svelte-1ciyn7"&&(r.textContent=s),f=E(G),i=p(G,"A",{class:!0,href:!0});var Oe=$(i);m=p(Oe,"SPAN",{"data-svelte-h":!0}),O(m)!=="svelte-dv3whr"&&(m.textContent=_),g=E(Oe),_e(C.$$.fragment,Oe),Oe.forEach(h),c=E(G),d=p(G,"A",{href:!0,"data-svelte-h":!0}),O(d)!=="svelte-l7xokz"&&(d.textContent=b),y=E(G),z=p(G,"A",{href:!0,"data-svelte-h":!0}),O(z)!=="svelte-7e7j7g"&&(z.textContent=V),D=E(G),N=p(G,"A",{href:!0,"data-svelte-h":!0}),O(N)!=="svelte-9uyxs3"&&(N.textContent=B),G.forEach(h),k=E(x),A=p(x,"DIV",{class:!0});var Ee=$(A);U=p(Ee,"STRONG",{"data-svelte-h":!0}),O(U)!=="svelte-8rbp2v"&&(U.textContent=I),S=E(Ee),j=p(Ee,"A",{href:!0,"data-svelte-h":!0}),O(j)!=="svelte-1q76usk"&&(j.textContent=M),T=E(Ee),Z=p(Ee,"A",{class:!0,href:!0});var xe=$(Z);ae=p(xe,"SPAN",{"data-svelte-h":!0}),O(ae)!=="svelte-o55182"&&(ae.textContent=Ae),oe=E(xe),_e(Q.$$.fragment,xe),xe.forEach(h),ie=E(Ee),K=p(Ee,"A",{class:!0,href:!0});var Xe=$(K);se=p(Xe,"SPAN",{"data-svelte-h":!0}),O(se)!=="svelte-kyb3mr"&&(se.textContent=ke),de=E(Xe),_e(he.$$.fragment,Xe),Xe.forEach(h),Ee.forEach(h),me=E(x),ee=p(x,"DIV",{class:!0});
33var Te=$(ee);J=p(Te,"STRONG",{"data-svelte-h":!0}),O(J)!=="svelte-1vd17gv"&&(J.textContent=X),W=E(Te),we=p(Te,"A",{href:!0,"data-svelte-h":!0}),O(we)!=="svelte-173qbv6"&&(we.textContent=te),P=E(Te),H=p(Te,"A",{href:!0,"data-svelte-h":!0}),O(H)!=="svelte-109ht19"&&(H.textContent=Ve),$e=E(Te),ne=p(Te,"A",{class:!0,href:!0});var Ye=$(ne);ze=p(Ye,"SPAN",{"data-svelte-h":!0}),O(ze)!=="svelte-1jjb1d6"&&(ze.textContent=ue),Se=E(Ye),Ne=De(Ye,!1),Ye.forEach(h),Te.forEach(h),Pe=E(x),re=p(x,"DIV",{class:!0});var qe=$(re);ve=p(qe,"DIV",{class:!0});var st=$(ve);Fe=De(st,!1),Me=p(st,"SPAN",{"data-svelte-h":!0}),O(Me)!=="svelte-1i4yf2h"&&(Me.textContent=ct),st.forEach(h),lt=E(qe),_e(je.$$.fragment,qe),at=E(qe),Ue=p(qe,"DIV",{class:!0});var ft=$(Ue);_e(Be.$$.fragment,ft),ft.forEach(h),qe.forEach(h),this.h()},h(){u(r,"href","/openpilot"),u(i,"class","badged"),u(i,"href","/shop/comma-four"),u(d,"href","/connect"),u(z,"href","/vehicles"),u(N,"href","/shop"),u(e,"class","footer-links"),u(j,"href","https://blog.comma.ai"),u(Z,"class","badged"),u(Z,"href","/jobs"),u(K,"class","badged"),u(K,"href","/leaderboard.html"),u(A,"class","footer-links"),u(we,"href","/support"),u(H,"href","/setup"),Ne.a=null,u(ne,"class","badged"),u(ne,"href","https://discord.comma.ai/"),u(ee,"class","footer-links"),Fe.a=Me,u(ve,"class","tagline"),u(Ue,"class","mailing-list"),u(re,"class","footer-links")},m(x,G){L(x,e,G),o(e,t),o(e,a),o(e,r),o(e,f),o(e,i),o(i,m),o(i,g),ge(C,i,null),o(e,c),o(e,d),o(e,y),o(e,z),o(e,D),o(e,N),L(x,k,G),L(x,A,G),o(A,U),o(A,S),o(A,j),o(A,T),o(A,Z),o(Z,ae),o(Z,oe),ge(Q,Z,null),o(A,ie),o(A,K),o(K,se),o(K,de),ge(he,K,null),L(x,me,G),L(x,ee,G),o(ee,J),o(ee,W),o(ee,we),o(ee,P),o(ee,H),o(ee,$e),o(ee,ne),o(ne,ze),o(ne,Se),Ne.m(Pl,ne),L(x,Pe,G),L(x,re,G),o(re,ve),Fe.m(il,ve),o(ve,Me),o(re,lt),ge(je,re,null),o(re,at),o(re,Ue),ge(Be,Ue,null),Qe=!0},p(x,G){const Oe={};G&512&&(Oe.$$scope={dirty:G,ctx:x}),C.$set(Oe);const Ee={};G&512&&(Ee.$$scope={dirty:G,ctx:x}),Q.$set(Ee);const xe={};G&512&&(xe.$$scope={dirty:G,ctx:x}),he.$set(xe)},i(x){Qe||(F(C.$$.fragment,x),F(Q.$$.fragment,x),F(he.$$.fragment,x),F(je.$$.fragment,x),F(Be.$$.fragment,x),Qe=!0)},o(x){Y(C.$$.fragment,x),Y(Q.$$.fragment,x),Y(he.$$.fragment,x),Y(je.$$.fragment,x),Y(Be.$$.fragment,x),Qe=!1},d(x){x&&(h(e),h(k),h(A),h(me),h(ee),h(Pe),h(re)),be(C),be(Q),be(he),be(je),be(Be)}}}function la(n){let e,t,l,a,r,s,f="comma",i,m,_,g,C,c,d="home",b,y,z="openpilot",V,D,N="comma four",B,k,A="compatibility",U,I,S="jobs",j,M,T,Z,ae,Ae,oe,Q,ie,K,se,ke,de,he,me,ee='<span>© comma_ai 2026</span> <a href="/terms">Terms &amp; Privacy</a>',J;_=new Ol({});let X=n[2]>0&&Tt(n),W=n[3]&&Lt(n);const we=n[7].default,te=Wt(we,n,n[9],null);return de=new tl({props:{columns:4,wrapMode:"single",alignItems:"start",size:"large",$$slots:{default:[ta]},$$scope:{ctx:n}}}),{c(){e=v("link"),t=w(),l=v("header"),a=v("div"),r=v("div"),s=v("a"),s.textContent=f,i=w(),m=v("div"),pe(_.$$.fragment),g=w(),C=v("nav"),c=v("a"),c.textContent=d,b=w(),y=v("a"),y.textContent=z,V=w(),D=v("a"),D.textContent=N,B=w(),k=v("a"),k.textContent=A,U=w(),I=v("a"),I.textContent=S,j=w(),M=v("div"),T=v("a"),Z=new ye(!1),ae=q(`
34        Shop`),Ae=w(),X&&X.c(),oe=w(),W&&W.c(),Q=w(),ie=v("main"),te&&te.c(),K=w(),se=v("footer"),ke=v("div"),pe(de.$$.fragment),he=w(),me=v("div"),me.innerHTML=ee,this.h()},l(P){const H=Ft("svelte-1i1jihc",Nt.head);e=p(H,"LINK",{rel:!0,href:!0,as:!0,type:!0,crossorigin:!0}),H.forEach(h),t=E(P),l=p(P,"HEADER",{class:!0});var Ve=$(l);a=p(Ve,"DIV",{class:!0});var $e=$(a);r=p($e,"DIV",{class:!0});var ne=$(r);s=p(ne,"A",{class:!0,href:!0,"data-svelte-h":!0}),O(s)!=="svelte-eu43sz"&&(s.textContent=f),i=E(ne),m=p(ne,"DIV",{class:!0});var ze=$(m);_e(_.$$.fragment,ze),ze.forEach(h),ne.forEach(h),g=E($e),C=p($e,"NAV",{class:!0});
34var ue=$(C);c=p(ue,"A",{href:!0,"data-svelte-h":!0}),O(c)!=="svelte-jzyh0p"&&(c.textContent=d),b=E(ue),y=p(ue,"A",{href:!0,"data-svelte-h":!0}),O(y)!=="svelte-1xqcox"&&(y.textContent=z),V=E(ue),D=p(ue,"A",{href:!0,"data-svelte-h":!0}),O(D)!=="svelte-6kj0ku"&&(D.textContent=N),B=E(ue),k=p(ue,"A",{href:!0,"data-svelte-h":!0}),O(k)!=="svelte-jbalet"&&(k.textContent=A),U=E(ue),I=p(ue,"A",{href:!0,"data-svelte-h":!0}),O(I)!=="svelte-1vierf3"&&(I.textContent=S),ue.forEach(h),j=E($e),M=p($e,"DIV",{class:!0});var Se=$(M);T=p(Se,"A",{class:!0,href:!0});var Ne=$(T);Z=De(Ne,!1),ae=R(Ne,`
35        Shop`),Ne.forEach(h),Ae=E(Se),X&&X.l(Se),Se.forEach(h),$e.forEach(h),Ve.forEach(h),oe=E(P),W&&W.l(P),Q=E(P),ie=p(P,"MAIN",{});var Pe=$(ie);te&&te.l(Pe),Pe.forEach(h),K=E(P),se=p(P,"FOOTER",{class:!0});var re=$(se);ke=p(re,"DIV",{class:!0});var ve=$(ke);_e(de.$$.fragment,ve),he=E(ve),me=p(ve,"DIV",{class:!0,"data-svelte-h":!0}),O(me)!=="svelte-wp7rxe"&&(me.innerHTML=ee),ve.forEach(h),re.forEach(h),this.h()},h(){u(e,"rel","preload"),u(e,"href",$l),u(e,"as","font"),u(e,"type","font/woff2"),u(e,"crossorigin","anonymous"),u(s,"class","title"),u(s,"href","/"),u(m,"class","menu-container"),u(r,"class","navbar-section-logo svelte-epgsvb"),u(c,"href","/"),Ie(c,"active",n[1].url.pathname==="/"),u(y,"href","/openpilot"),Ie(y,"active",n[1].url.pathname.startsWith("/openpilot")),u(D,"href","/shop/comma-four"),Ie(D,"active",n[1].url.pathname.startsWith("/shop/comma-four")),u(k,"href","/vehicles"),Ie(k,"active",n[1].url.pathname.startsWith("/vehicles")),u(I,"href","/jobs"),Ie(I,"active",n[1].url.pathname.startsWith("/jobs")),u(C,"class","navbar-section-links svelte-epgsvb"),Z.a=ae,u(T,"class","button shop"),u(T,"href","/shop"),u(M,"class","navbar-section-buttons svelte-epgsvb"),u(a,"class","navbar-container svelte-epgsvb"),u(l,"class","navbar svelte-epgsvb"),u(me,"class","copyright"),u(ke,"class","container"),u(se,"class","svelte-epgsvb")},m(P,H){o(Nt.head,e),L(P,t,H),L(P,l,H),o(l,a),o(a,r),o(r,s),o(r,i),o(r,m),ge(_,m,null),o(a,g),o(a,C),o(C,c),o(C,b),o(C,y),o(C,V),o(C,D),o(C,B),o(C,k),o(C,U),o(C,I),o(a,j),o(a,M),o(M,T),Z.m(Ll,T),o(T,ae),o(M,Ae),X&&X.m(M,null),L(P,oe,H),W&&W.m(P,H),L(P,Q,H),L(P,ie,H),te&&te.m(ie,null),L(P,K,H),L(P,se,H),o(se,ke),ge(de,ke,null),o(ke,he),o(ke,me),J=!0},p(P,[H]){(!J||H&2)&&Ie(c,"active",P[1].url.pathname==="/"),(!J||H&2)&&Ie(y,"active",P[1].url.pathname.startsWith("/openpilot")),(!J||H&2)&&Ie(D,"active",P[1].url.pathname.startsWith("/shop/comma-four")),(!J||H&2)&&Ie(k,"active",P[1].url.pathname.startsWith("/vehicles")),(!J||H&2)&&Ie(I,"active",P[1].url.pathname.startsWith("/jobs")),P[2]>0?X?X.p(P,H):(X=Tt(P),X.c(),X.m(M,null)):X&&(X.d(1),X=null),P[3]?W?(W.p(P,H),H&8&&F(W,1)):(W=Lt(P),W.c(),F(W,1),W.m(Q.parentNode,Q)):W&&(it(),Y(W,1,1,()=>{W=null}),ut()),te&&te.p&&(!J||H&512)&&Qt(te,we,P,P[9],J?Yt(we,P[9],H,null):Xt(P[9]),null);const Ve={};H&512&&(Ve.$$scope={dirty:H,ctx:P}),de.$set(Ve)},i(P){J||(F(_.$$.fragment,P),F(W),F(te,P),F(de.$$.fragment,P),J=!0)},o(P){Y(_.$$.fragment,P),Y(W),Y(te,P),Y(de.$$.fragment,P),J=!1},d(P){P&&(h(t),h(l),h(oe),h(Q),h(ie),h(K),h(se)),h(e),be(_),X&&X.d(),W&&W.d(P),te&&te.d(P),be(de)}}}function aa(n,e,t){let l,a,r;ce(n,Ot,c=>t(1,l=c)),ce(n,vl,c=>t(2,a=c)),ce(n,Je,c=>t(3,r=c));let{$$slots:s={},$$scope:f}=e,i=!1;async function m(){await rt(),Je.set(!0)}function _(){Je.set(!1)}async function g(c){await pl({cartId:jt(bl),lineId:c.detail.body.lineId,quantity:c.detail.body.quantity,variantId:c.detail.body.variantId}),await rt(),t(0,i=!1)}Jt(async()=>{const c=_l();c&&await gl(c),await rt(),document.addEventListener("keydown",d=>{d.key==="Escape"&&Je.set(!1)})}),Ml();function C(c){i=c,t(0,i)}return n.$$set=c=>{"$$scope"in c&&t(9,f=c.$$scope)},[i,l,a,r,m,_,g,s,C,f]}class Ea extends Ge{constructor(e){super(),Ze(this,e,aa,la,Re,{})}}export{Ea as component,wa as universal};

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.