(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,168639,e=>{"use strict";var t,r,a,n,o,s,l,c=e.i(790294),i=e.i(16043),d=(t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}),u="__POSTHOG_REACT_SHARED_STATE__",m="u">typeof globalThis?globalThis:"u">typeof window?window:{};try{s=m[u]=m[u]||new WeakMap}catch(e){s=new WeakMap}s.has(i.createContext)||s.set(i.createContext,{});var p=s.get(i.createContext);p.context||(p.context=(0,i.createContext)({get client(){return l||p.defaultPostHogInstance},bootstrap:void 0}));var f=p.context,g=function(e){return"function"==typeof e},b=function(e){var t=Object.prototype.toString.call(e);return e instanceof Error||"[object Error]"===t||"[object Exception]"===t||"[object DOMException]"===t||"[object DOMError]"===t},h=function(e,t){try{Object.defineProperty(e,"name",{value:t,writable:!0,enumerable:!0,configurable:!0})}catch(e){}},x=function(e,t){for(var r=new WeakSet,a=e;!r.has(a);){if(r.add(a),!b(a.cause)){void 0!==a.cause&&(t.cause=a.cause),a.cause=t;return}a=a.cause}},k=function(e,t){if(!t)return e;var r=Error(b(e)?e.message:"Primitive value captured as exception: ".concat(String(e)));return(h(r,"React ErrorBoundary ".concat(b(e)?e.name:"Error")),r.stack=t,b(e))?(x(e,r),e):r},y={componentStack:null,exceptionEvent:null,error:null};r=o=function(e){function t(t){var r=e.call(this,t)||this;return r._resetError=function(){r.setState(y)},r.state=y,r}return d(t,e),t.prototype.componentDidCatch=function(e,t){var r,a=this.props.additionalProperties;g(a)?r=a(e,t):"object"==typeof a&&(r=a);var n=this.context.client,o=t.componentStack,s=n.captureException(k(e,o),r);this.setState({error:e,componentStack:null!=o?o:null,exceptionEvent:s})},t.prototype.render=function(){var e=this.props,t=e.children,r=e.fallback,a=this.state;if(null==a.componentStack)return g(t)?t():t;var n=g(r)?i.default.createElement(r,{error:a.error,componentStack:a.componentStack,exceptionEvent:a.exceptionEvent,resetError:this._resetError}):r;return i.default.isValidElement(n)?n:(console.warn("[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."),i.default.createElement(i.default.Fragment,null))},t}(i.default.Component),"symbol"==typeof(a="PostHogErrorBoundary")&&(a=a.description?"[".concat(a.description,"]"):""),Object.defineProperty(r,"name",{configurable:!0,value:a}),o.contextType=f,n=c.f,p.defaultPostHogInstance&&p.defaultPostHogInstance!==l||(p.defaultPostHogInstance=n),l=n,e.s(["f",0,function(){return(0,i.useContext)(f).client}])},705065,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(136562),n=e.i(139697),o=e.i(702441),s=e.i(475615),l=e.i(522396),c=e.i(623304);e.i(707060);var i=e.i(387086),d=e.i(196991),u=e.i(288265),m=e.i(919035),p=e.i(168639),f=e.i(16043);let g=[{key:"grape",label:(0,i.b)("Grape"),note:(0,i.b)("Light backgrounds"),panel:"light"},{key:"volt",label:(0,i.b)("Volt"),note:(0,i.b)("Dark backgrounds"),panel:"dark"},{key:"ink",label:(0,i.b)("Ink"),note:(0,i.b)("Light backgrounds"),panel:"light"},{key:"cloud",label:(0,i.b)("Cloud"),note:(0,i.b)("Dark backgrounds"),panel:"dark"}],b=[{key:"horizontal",label:(0,i.b)("Horizontal"),blurb:(0,i.b)("The primary lockup. Use it wherever there’s room."),hasSquare:!1},{key:"vertical",label:(0,i.b)("Vertical"),blurb:(0,i.b)("Stacked lockup for square formats and centered compositions."),hasSquare:!0},{key:"glyph",label:(0,i.b)("Glyph"),blurb:(0,i.b)("The mark alone — avatars, favicons, small sizes."),hasSquare:!0}];function h({bg:e,config:t,colorway:r,fmt:a,square:n}){let o=`${t}-${r}${n?"-square":""}`;return`/brand/logos/${e}/${t}/${a}/${o}${"png"===a?"@2x":""}.${a}`}function x(e){let a,o,s,l,c,i,d=(0,r.c)(19),{asset:u,children:m}=e,f=(0,p.f)();d[0]!==u?(a=h(u),d[0]=u,d[1]=a):a=d[1];let g=a;d[2]!==u?(o=function({bg:e,config:t,colorway:r,fmt:a,square:n}){let o=["openrouter",t,r];return n&&o.push("square"),"on-background"===e&&o.push("bg"),`${o.join("-")}.${a}`}(u),d[2]=u,d[3]=o):o=d[3];let b=o;return d[4]!==u.bg||d[5]!==u.colorway||d[6]!==u.config||d[7]!==u.fmt||d[8]!==u.square||d[9]!==f?(s=()=>{f.capture("download_brand_asset",{config:u.config,colorway:u.colorway,format:u.fmt,background:u.bg,square:u.square})},d[4]=u.bg,d[5]=u.colorway,d[6]=u.config,d[7]=u.fmt,d[8]=u.square,d[9]=f,d[10]=s):s=d[10],d[11]!==g||d[12]!==b?(l=(0,t.jsx)("a",{href:g,download:b}),d[11]=g,d[12]=b,d[13]=l):l=d[13],d[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M12 3v12m0 0 4-4m-4 4-4-4M4 21h16"})}),d[14]=c):c=d[14],d[15]!==m||d[16]!==s||d[17]!==l?(i=(0,t.jsxs)(n.Button,{variant:"outline",size:"sm",className:"min-h-10 flex-1 md:min-h-8",onClick:s,render:l,children:[c,m]}),d[15]=m,d[16]=s,d[17]=l,d[18]=i):i=d[18],i}function k(e){let n,s,l,c,i,d,p,f,g,b,k,y,v,_,j,w,S,N,E,P,C=(0,r.c)(62),{bg:q,config:O,colorway:T,square:$}=e,B=(0,u.f)(),z=(0,m.f)(),R="light"===T.panel,H=$&&O.hasSquare;if(C[0]!==q||C[1]!==T.key||C[2]!==O.key||C[3]!==R||C[4]!==H){let e;c={bg:q,config:O.key,colorway:T.key,fmt:"svg",square:H},C[12]!==q||C[13]!==T.key||C[14]!==O.key||C[15]!==H?(e={bg:q,config:O.key,colorway:T.key,fmt:"png",square:H},C[12]=q,C[13]=T.key,C[14]=O.key,C[15]=H,C[16]=e):e=C[16],l=e,s="h-[62%] w-auto","horizontal"===O.key?s="w-full max-w-72":H&&(s="h-[82%] w-auto");let t="aspect-[4/3] p-6";"horizontal"===O.key?t="aspect-[3/1] px-8":H&&(t="aspect-square p-6"),n=o.N,p="flex flex-col overflow-hidden";let r=R?"bg-(--or-cloud)":"bg-(--or-ink)",u="transparent"===q&&"[background-size:16px_16px] [background-position:0_0,0_8px,8px_-8px,-8px_0]",m="transparent"===q&&(R?"bg-[image:linear-gradient(45deg,rgba(3,8,10,0.05)_25%,transparent_25%),linear-gradient(-45deg,rgba(3,8,10,0.05)_25%,transparent_25%),linear-gradient(45deg,transparent_75%,rgba(3,8,10,0.05)_75%),linear-gradient(-45deg,transparent_75%,rgba(3,8,10,0.05)_75%)]":"bg-[image:linear-gradient(45deg,rgba(252,252,254,0.06)_25%,transparent_25%),linear-gradient(-45deg,rgba(252,252,254,0.06)_25%,transparent_25%),linear-gradient(45deg,transparent_75%,rgba(252,252,254,0.06)_75%),linear-gradient(-45deg,transparent_75%,rgba(252,252,254,0.06)_75%)]");C[17]!==t||C[18]!==r||C[19]!==u||C[20]!==m?(d=(0,a.f)("flex items-center justify-center border-b border-border",t,r,u,m),C[17]=t,C[18]=r,C[19]=u,C[20]=m,C[21]=d):d=C[21],i=h(c),C[0]=q,C[1]=T.key,C[2]=O.key,C[3]=R,C[4]=H,C[5]=n,C[6]=s,C[7]=l,C[8]=c,C[9]=i,C[10]=d,C[11]=p}else n=C[5],s=C[6],l=C[7],c=C[8],i=C[9],d=C[10],p=C[11];return C[22]!==T.label||C[23]!==O.label||C[24]!==B||C[25]!==z?(f=B("OpenRouter {config} logo — {colorway}",{config:z(O.label).toLowerCase(),colorway:z(T.label)}),C[22]=T.label,C[23]=O.label,C[24]=B,C[25]=z,C[26]=f):f=C[26],C[27]!==s||C[28]!==i||C[29]!==f?(g=(0,t.jsx)("img",{src:i,alt:f,className:s}),C[27]=s,C[28]=i,C[29]=f,C[30]=g):g=C[30],C[31]!==d||C[32]!==g?(b=(0,t.jsx)("div",{className:d,children:g}),C[31]=d,C[32]=g,C[33]=b):b=C[33],C[34]!==T.label||C[35]!==z?(k=z(T.label),C[34]=T.label,C[35]=z,C[36]=k):k=C[36],C[37]!==k?(y=(0,t.jsx)("span",{className:"text-sm font-medium text-foreground",children:k}),C[37]=k,C[38]=y):y=C[38],C[39]!==T.note||C[40]!==z?(v=z(T.note),C[39]=T.note,C[40]=z,C[41]=v):v=C[41],C[42]!==v?(_=(0,t.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:v}),C[42]=v,C[43]=_):_=C[43],C[44]!==_||C[45]!==y?(j=(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[y,_]}),C[44]=_,C[45]=y,C[46]=j):j=C[46],C[47]!==c?(w=(0,t.jsx)(x,{asset:c,children:"SVG"}),C[47]=c,C[48]=w):w=C[48],C[49]!==l?(S=(0,t.jsx)(x,{asset:l,children:"PNG"}),C[49]=l,C[50]=S):S=C[50],C[51]!==w||C[52]!==S?(N=(0,t.jsxs)("div",{className:"mt-auto flex gap-1.5",children:[w,S]}),C[51]=w,C[52]=S,C[53]=N):N=C[53],C[54]!==j||C[55]!==N?(E=(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2.5 p-3",children:[j,N]}),C[54]=j,C[55]=N,C[56]=E):E=C[56],C[57]!==n||C[58]!==E||C[59]!==p||C[60]!==b?(P=(0,t.jsxs)(n,{className:p,children:[b,E]}),C[57]=n,C[58]=E,C[59]=p,C[60]=b,C[61]=P):P=C[61],P}e.s(["BrandAssets",0,function(){let e,o,i,h,x,y,v,_,j,w,S,N,E,P,C,q,O,T,$,B,z,R,H=(0,r.c)(50),L=(0,p.f)(),M=(0,u.f)(),A=(0,m.f)(),[D,G]=(0,f.useState)("transparent");H[0]===Symbol.for("react.memo_cache_sentinel")?(e={},H[0]=e):e=H[0];let[I,V]=(0,f.useState)(e);H[1]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{"solid"===new URL(window.location.href).searchParams.get("bg")&&G("on-background")},i=[],H[1]=o,H[2]=i):(o=H[1],i=H[2]),(0,f.useEffect)(o,i),H[3]!==L?(h=e=>{G(e),L.capture("change_brand_background_treatment",{treatment:e});let t=new URL(window.location.href);"on-background"===e?t.searchParams.set("bg","solid"):t.searchParams.delete("bg"),window.history.replaceState(null,"",t.toString())},H[3]=L,H[4]=h):h=H[4];let U=h;return H[5]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)(d.T,{children:(0,t.jsxs)("div",{className:"max-w-xl",children:[(0,t.jsx)("h1",{className:"text-3xl font-semibold tracking-tight text-foreground sm:text-4xl",children:"Brand assets"}),(0,t.jsx)("p",{className:"mt-3 text-base leading-relaxed text-muted-foreground",children:"Every configuration of the OpenRouter mark, ready to use. SVG scales anywhere; PNGs are exported at 2×. Please don’t stretch, recolor, or remix the marks."})]})}),H[5]=x):x=H[5],H[6]!==U?(y=e=>U("on-background"===e?"on-background":"transparent"),H[6]=U,H[7]=y):y=H[7],H[8]!==M?(v=M("Transparent"),H[8]=M,H[9]=v):v=H[9],H[10]!==v?(_=(0,t.jsx)(l.Y,{value:"transparent",className:"min-h-10 flex-1 md:min-h-0 md:flex-initial",children:v}),H[10]=v,H[11]=_):_=H[11],H[12]!==M?(j=M("Solid background"),H[12]=M,H[13]=j):j=H[13],H[14]!==j?(w=(0,t.jsx)(l.Y,{value:"on-background",className:"min-h-10 flex-1 md:min-h-0 md:flex-initial",children:j}),H[14]=j,H[15]=w):w=H[15],H[16]!==D||H[17]!==y||H[18]!==_||H[19]!==w?(S=(0,t.jsxs)(l.c,{value:D,onValueChange:y,className:"w-full md:w-auto",children:[_,w]}),H[16]=D,H[17]=y,H[18]=_,H[19]=w,H[20]=S):S=H[20],H[21]!==D||H[22]!==M?(N="transparent"===D?M("No backdrop — sits on your surface."):M("Baked-in Cloud or Ink backdrop."),H[21]=D,H[22]=M,H[23]=N):N=H[23],H[24]!==N?(E=(0,t.jsx)("p",{className:"hidden text-xs text-muted-foreground md:block",children:N}),H[24]=N,H[25]=E):E=H[25],H[26]!==L?(P=()=>{L.capture("download_all_brand_assets")},H[26]=L,H[27]=P):P=H[27],H[28]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)("a",{href:"/brand/logos/openrouter-logos.zip",download:"openrouter-logos.zip"}),H[28]=C):C=H[28],H[29]===Symbol.for("react.memo_cache_sentinel")?(q=(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M12 3v12m0 0 4-4m-4 4-4-4M4 21h16"})}),H[29]=q):q=H[29],H[30]!==M?(O=M("Download all"),H[30]=M,H[31]=O):O=H[31],H[32]!==P||H[33]!==O?(T=(0,t.jsxs)(n.Button,{variant:"outline",size:"sm",className:"min-h-10 w-full md:ml-auto md:min-h-8 md:w-auto",onClick:P,render:C,children:[q,O]}),H[32]=P,H[33]=O,H[34]=T):T=H[34],H[35]!==S||H[36]!==E||H[37]!==T?($=(0,t.jsxs)("div",{className:"mt-8 flex flex-wrap items-center gap-3",children:[S,E,T]}),H[35]=S,H[36]=E,H[37]=T,H[38]=$):$=H[38],H[39]!==D||H[40]!==M||H[41]!==A||H[42]!==L||H[43]!==I?(B=b.map(e=>(0,t.jsxs)("section",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:A(e.label)}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:A(e.blurb)})]}),e.hasSquare&&(0,t.jsxs)("div",{className:"flex min-h-10 items-center gap-2",children:[(0,t.jsx)(s.f,{leading:"snug",htmlFor:`square-${e.key}`,className:"cursor-pointer",children:M("Square canvas")}),(0,t.jsx)(c.Z,{id:`square-${e.key}`,checked:!!I[e.key],onCheckedChange:t=>{V(r=>({...r,[e.key]:t})),L.capture("toggle_brand_square_canvas",{config:e.key,enabled:t})}})]})]}),(0,t.jsx)("div",{className:(0,a.f)("mt-4 grid gap-3","horizontal"===e.key?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"),children:g.map(r=>(0,t.jsx)(k,{bg:D,config:e,colorway:r,square:!!I[e.key]},r.key))})]},e.key)),H[39]=D,H[40]=M,H[41]=A,H[42]=L,H[43]=I,H[44]=B):B=H[44],H[45]!==B?(z=(0,t.jsx)("div",{className:"mt-10 flex flex-col gap-14",children:B}),H[45]=B,H[46]=z):z=H[46],H[47]!==$||H[48]!==z?(R=(0,t.jsxs)("div",{className:"pt-8","data-ssr-content":"brand-assets",children:[x,$,z]}),H[47]=$,H[48]=z,H[49]=R):R=H[49],R}],705065)}]); //# sourceMappingURL=0q-cg9f5b6f5t.js.map