!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a099a4-b9bd-7482-a71e-2934afff8340")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,897464,e=>{"use strict";var t=e.i(270401),a=e.i(361409),r=e.i(761073);e.s(["useRegisterFieldControl",0,function(e,n){let{enabled:o=!0,getValue:l,id:i,value:s}=n,{registerFieldControl:d}=(0,r.useFieldRootContext)(),c=t.useRef(null);c.current||(c.current=Symbol()),(0,a.useIsoLayoutEffect)(()=>{let t=c.current;if(t&&o)return d(t,{controlRef:e,getValue:l,id:i,value:s}),()=>{d(t,void 0)}},[e,o,l,i,d,s])}])},761073,391699,e=>{"use strict";var t,a=e.i(397744),r=e.i(270401),n=e.i(618568);let o=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),l={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},i={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={disabled:!1,...i};e.s(["DEFAULT_FIELD_ROOT_STATE",0,s,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,i,"DEFAULT_VALIDITY_STATE",0,l,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[o.valid]:""}:{[o.invalid]:""}}],391699);let d=r.createContext({invalid:void 0,name:void 0,validityData:{state:l,errors:[],error:"",value:"",initialValue:null},setValidityData:n.NOOP,disabled:void 0,touched:i.touched,setTouched:n.NOOP,dirty:i.dirty,setDirty:n.NOOP,filled:i.filled,setFilled:n.NOOP,focused:i.focused,setFocused:n.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:s,markedDirtyRef:{current:!1},registerFieldControl:n.NOOP,validation:{getValidationProps:(e=n.EMPTY_OBJECT)=>e,getInputValidationProps:(e=n.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["useFieldRootContext",0,function(e=!0){let t=r.useContext(d);if(t.setValidityData===n.NOOP&&!e)throw Error((0,a.default)(28));return t}],761073)},965358,e=>{"use strict";var t=e.i(270401),a=e.i(618568);let r=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:a.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(r)}])},231152,e=>{"use strict";var t=e.i(270401),a=e.i(618568);let r=t.createContext({controlId:void 0,registerControlId:a.NOOP,labelId:void 0,setLabelId:a.NOOP,messageIds:[],setMessageIds:a.NOOP,getDescriptionProps:e=>e});e.s(["useLabelableContext",0,function(){return t.useContext(r)}])},459128,e=>{"use strict";var t=e.i(270401),a=e.i(361409),r=e.i(593478);e.s(["useAriaLabelledBy",0,function(e,n,o,l=!0,i){let[s,d]=t.useState(),c=(0,r.useBaseUiId)(i?`${i}-label`:void 0),u=e??n??s;return(0,a.useIsoLayoutEffect)(()=>{let t=e||n||!l?void 0:function(e,t){let a=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let a=e.id;if(a){let t=e.nextElementSibling;if(t&&t.htmlFor===a)return t}let r=e.labels;return r&&r[0]}(e);if(a)return!a.id&&t&&(a.id=t),a.id||void 0}(o.current,c);s!==t&&d(t)}),u}])},435848,e=>{"use strict";var t=e.i(270401),a=e.i(361409),r=e.i(228876),n=e.i(836033),o=e.i(120102),l=e.i(618568),i=e.i(593478),s=e.i(231152);e.s(["useLabelableId",0,function(e={}){let{id:d,implicit:c=!1,controlRef:u}=e,{controlId:f,registerControlId:m}=(0,s.useLabelableContext)(),p=(0,i.useBaseUiId)(d),h=c?f:void 0,g=(0,n.useRefWithInit)(()=>Symbol("labelable-control")),b=t.useRef(!1),v=t.useRef(null!=d),x=(0,r.useStableCallback)(()=>{b.current&&m!==l.NOOP&&(b.current=!1,m(g.current,void 0))});return(0,a.useIsoLayoutEffect)(()=>{let e;if(m!==l.NOOP){if(c){let t=u?.current;e=(0,o.isElement)(t)&&null!=t.closest("label")?d??null:h??p}else if(null!=d)v.current=!0,e=d;else{if(!v.current)return void x();e=p}if(void 0===e)return void x();b.current=!0,m(g.current,e)}},[d,u,h,m,c,p,g,x]),t.useEffect(()=>x,[x]),f??p}])},839669,e=>{"use strict";var t,a=e.i(665434),r=e.i(270401),n=(0,r.createContext)({get client(){return t},bootstrap:void 0}),o=function(e){return"function"==typeof e},l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])})(e,t)};"function"==typeof SuppressedError&&SuppressedError;var i={componentStack:null,exceptionEvent:null,error:null};!function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=a}function a(t){var a=e.call(this,t)||this;return a.state=i,a}l(a,e),a.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),a.prototype.componentDidCatch=function(e,t){var a,r=this.props.additionalProperties;o(r)?a=r(e):"object"==typeof r&&(a=r);var n=this.context.client.captureException(e,a),l=t.componentStack;this.setState({error:e,componentStack:null!=l?l:null,exceptionEvent:n})},a.prototype.render=function(){var e=this.props,t=e.children,a=e.fallback,n=this.state;if(null==n.componentStack)return o(t)?t():t;var l=o(a)?r.default.createElement(a,{error:n.error,componentStack:n.componentStack,exceptionEvent:n.exceptionEvent}):a;return r.default.isValidElement(l)?l:(console.warn("[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."),r.default.createElement(r.default.Fragment,null))},a.contextType=n}(r.default.Component),t=a.default,e.s(["usePostHog",0,function(){return(0,r.useContext)(n).client}])},956506,e=>{"use strict";var t=e.i(222666),a=e.i(505962),r=e.i(452473);let n=(0,e.i(207298).cva)("overflow-hidden rounded-lg border border-border bg-card text-card-foreground",{variants:{variant:{default:"",secondary:"",flat:"border-border/70",ghost:"border-none"}},defaultVariants:{variant:"default"}});e.s(["Card",0,function(e){let o,l,i,s,d,c,u=(0,a.c)(12);return u[0]!==e?({className:o,variant:s,ref:i,...l}=e,u[0]=e,u[1]=o,u[2]=l,u[3]=i,u[4]=s):(o=u[1],l=u[2],i=u[3],s=u[4]),u[5]!==o||u[6]!==s?(d=(0,r.cn)(n({variant:s}),o),u[5]=o,u[6]=s,u[7]=d):d=u[7],u[8]!==l||u[9]!==i||u[10]!==d?(c=(0,t.jsx)("div",{ref:i,className:d,...l}),u[8]=l,u[9]=i,u[10]=d,u[11]=c):c=u[11],c},"CardContent",0,function(e){let n,o,l,i,s,d=(0,a.c)(10);return d[0]!==e?({className:n,ref:l,...o}=e,d[0]=e,d[1]=n,d[2]=o,d[3]=l):(n=d[1],o=d[2],l=d[3]),d[4]!==n?(i=(0,r.cn)("p-6 pt-0",n),d[4]=n,d[5]=i):i=d[5],d[6]!==o||d[7]!==l||d[8]!==i?(s=(0,t.jsx)("div",{ref:l,className:i,...o}),d[6]=o,d[7]=l,d[8]=i,d[9]=s):s=d[9],s},"CardDescription",0,function(e){let n,o,l,i,s,d=(0,a.c)(10);return d[0]!==e?({className:n,ref:l,...o}=e,d[0]=e,d[1]=n,d[2]=o,d[3]=l):(n=d[1],o=d[2],l=d[3]),d[4]!==n?(i=(0,r.cn)("text-xs text-muted-foreground",n),d[4]=n,d[5]=i):i=d[5],d[6]!==o||d[7]!==l||d[8]!==i?(s=(0,t.jsx)("div",{ref:l,className:i,...o}),d[6]=o,d[7]=l,d[8]=i,d[9]=s):s=d[9],s},"CardFooter",0,function(e){let n,o,l,i,s,d=(0,a.c)(10);return d[0]!==e?({className:n,ref:l,...o}=e,d[0]=e,d[1]=n,d[2]=o,d[3]=l):(n=d[1],o=d[2],l=d[3]),d[4]!==n?(i=(0,r.cn)("flex items-center p-6 pt-0",n),d[4]=n,d[5]=i):i=d[5],d[6]!==o||d[7]!==l||d[8]!==i?(s=(0,t.jsx)("div",{ref:l,className:i,...o}),d[6]=o,d[7]=l,d[8]=i,d[9]=s):s=d[9],s},"CardHeader",0,function(e){let n,o,l,i,s,d=(0,a.c)(10);return d[0]!==e?({className:n,ref:l,...o}=e,d[0]=e,d[1]=n,d[2]=o,d[3]=l):(n=d[1],o=d[2],l=d[3]),d[4]!==n?(i=(0,r.cn)("flex flex-col gap-y-1.5 p-6",n),d[4]=n,d[5]=i):i=d[5],d[6]!==o||d[7]!==l||d[8]!==i?(s=(0,t.jsx)("div",{ref:l,className:i,...o}),d[6]=o,d[7]=l,d[8]=i,d[9]=s):s=d[9],s},"CardTitle",0,function(e){let n,o,l,i,s,d=(0,a.c)(10);return d[0]!==e?({className:n,ref:l,...o}=e,d[0]=e,d[1]=n,d[2]=o,d[3]=l):(n=d[1],o=d[2],l=d[3]),d[4]!==n?(i=(0,r.cn)("text-base font-semibold leading-snug",n),d[4]=n,d[5]=i):i=d[5],d[6]!==o||d[7]!==l||d[8]!==i?(s=(0,t.jsx)("div",{ref:l,className:i,...o}),d[6]=o,d[7]=l,d[8]=i,d[9]=s):s=d[9],s},"cardVariants",0,n])},558956,e=>{"use strict";var t=e.i(222666),a=e.i(505962),r=e.i(452473);let n=(0,e.i(207298).cva)("text-xs font-normal leading-none text-muted-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70");e.s(["Label",0,function(e){let o,l,i,s,d,c,u,f=(0,a.c)(14);return f[0]!==e?({className:o,ref:s,onMouseDown:l,...i}=e,f[0]=e,f[1]=o,f[2]=l,f[3]=i,f[4]=s):(o=f[1],l=f[2],i=f[3],s=f[4]),f[5]!==o?(d=(0,r.cn)(n(),o),f[5]=o,f[6]=d):d=f[6],f[7]!==l?(c=e=>{l?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},f[7]=l,f[8]=c):c=f[8],f[9]!==i||f[10]!==s||f[11]!==d||f[12]!==c?(u=(0,t.jsx)("label",{ref:s,className:d,onMouseDown:c,...i,htmlFor:i.htmlFor,children:i.children}),f[9]=i,f[10]=s,f[11]=d,f[12]=c,f[13]=u):u=f[13],u}])},378599,e=>{"use strict";var t,a=e.i(222666),r=e.i(505962);e.s([],919735),e.i(919735);var n=e.i(270401),o=e.i(123651),l=e.i(228876),i=e.i(235901),s=e.i(361409),d=e.i(854855),c=e.i(618568),u=e.i(281334),f=e.i(356120),m=e.i(593478),p=e.i(481902),h=e.i(397744);let g=n.createContext(void 0);var b=e.i(391699);let v=((t={}).checked="data-checked",t.unchecked="data-unchecked",t.disabled="data-disabled",t.readonly="data-readonly",t.required="data-required",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),x={...b.fieldValidityMapping,checked:e=>e?{[v.checked]:""}:{[v.unchecked]:""}};var y=e.i(761073),k=e.i(897464),C=e.i(965358),w=e.i(231152),j=e.i(459128),S=e.i(435848),E=e.i(939550),_=e.i(467219),N=e.i(412425);let P=n.forwardRef(function(e,t){let{checked:r,className:h,defaultChecked:b,"aria-labelledby":v,form:P,id:O,inputRef:R,name:T,nativeButton:L=!1,onCheckedChange:I,readOnly:B=!1,required:F=!1,disabled:A=!1,render:D,uncheckedValue:q,value:M,style:V,...$}=e,{clearErrors:H}=(0,C.useFormContext)(),{state:U,setTouched:z,setDirty:K,validityData:G,setFilled:W,setFocused:Y,shouldValidateOnChange:J,validationMode:Z,disabled:Q,name:X,validation:ee}=(0,y.useFieldRootContext)(),{labelId:et}=(0,w.useLabelableContext)(),ea=Q||A,er=X??T,en=(0,l.useStableCallback)(I),eo=n.useRef(null),el=(0,i.useMergedRefs)(eo,R,ee.inputRef),ei=n.useRef(null),es=(0,m.useBaseUiId)(),ed=(0,S.useLabelableId)({id:O,implicit:!1,controlRef:ei}),ec=L?void 0:ed,[eu,ef]=(0,o.useControlled)({controlled:r,default:!!b,name:"Switch",state:"checked"});(0,k.useRegisterFieldControl)(ei,{id:es,value:eu}),(0,s.useIsoLayoutEffect)(()=>{eo.current&&W(eo.current.checked)},[eo,W]),(0,N.useValueChanged)(eu,()=>{H(er),K(eu!==G.initialValue),W(eu),J()?ee.commit(eu):ee.commit(eu,!0)});let{getButtonProps:em,buttonRef:ep}=(0,p.useButton)({disabled:ea,native:L}),eh=(0,j.useAriaLabelledBy)(v,et,eo,!L,ec),eg=n.useMemo(()=>(0,f.mergeProps)({checked:eu,disabled:ea,form:P,id:ec,name:er,required:F,style:er?d.visuallyHiddenInput:d.visuallyHidden,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:el,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(B)return void e.preventDefault();let t=e.currentTarget.checked,a=(0,E.createChangeEventDetails)(_.REASONS.none,e.nativeEvent);en?.(t,a),a.isCanceled||ef(t)},onFocus(){ei.current?.focus()}},ee.getInputValidationProps,void 0!==M?{value:M}:c.EMPTY_OBJECT),[eu,ea,P,el,ec,er,en,B,F,ef,ee,M]),eb=n.useMemo(()=>({...U,checked:eu,disabled:ea,readOnly:B,required:F}),[U,eu,ea,B,F]),ev=(0,u.useRenderElement)("span",e,{state:eb,ref:[t,ei,ep],props:[{id:L?ed:es,role:"switch","aria-checked":eu,"aria-readonly":B||void 0,"aria-required":F||void 0,"aria-labelledby":eh,onFocus(){ea||Y(!0)},onBlur(){let e=eo.current;e&&!ea&&(z(!0),Y(!1),"onBlur"===Z&&ee.commit(e.checked))},onClick(e){B||ea||(e.preventDefault(),eo.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey})))}},ee.getValidationProps,$,em],stateAttributesMapping:x});return(0,a.jsxs)(g.Provider,{value:eb,children:[ev,!eu&&er&&void 0!==q&&(0,a.jsx)("input",{type:"hidden",form:P,name:er,value:q}),(0,a.jsx)("input",{...eg,suppressHydrationWarning:!0})]})}),O=n.forwardRef(function(e,t){let{render:a,className:r,style:o,...l}=e,{state:i}=(0,y.useFieldRootContext)(),s=function(){let e=n.useContext(g);if(void 0===e)throw Error((0,h.default)(63));return e}(),d={...i,...s};return(0,u.useRenderElement)("span",e,{state:d,ref:t,stateAttributesMapping:x,props:l})});e.s(["Root",0,P,"Thumb",0,O],254305);var R=e.i(254305),R=R,T=e.i(452473);let L={default:"h-6 w-11",sm:"h-5 w-9",xs:"h-3 w-5"},I={default:"h-5 w-5 group-enabled:group-active:w-6 data-[checked]:translate-x-5 group-enabled:group-active:data-[checked]:translate-x-4",sm:"h-4 w-4 group-enabled:group-active:w-5 data-[checked]:translate-x-4 group-enabled:group-active:data-[checked]:translate-x-3",xs:"h-2 w-2 group-enabled:group-active:w-2.5 data-[checked]:translate-x-2 group-enabled:group-active:data-[checked]:translate-x-1.5"};e.s(["Switch",0,function(e){let t,n,o,l,i,s,d=(0,r.c)(28),{className:c,size:u,checked:f,defaultChecked:m,onCheckedChange:p,disabled:h,required:g,name:b,id:v,title:x,onClick:y,ref:k,"aria-label":C,"aria-labelledby":w,"aria-describedby":j}=e,S=void 0===u?"default":u,E=L[S];d[0]!==c||d[1]!==E?(t=(0,T.cn)("group peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus disabled:cursor-not-allowed disabled:opacity-50 data-[checked]:bg-primary data-[unchecked]:bg-foreground/30 hover:data-[unchecked]:bg-foreground/40",E,c),d[0]=c,d[1]=E,d[2]=t):t=d[2],d[3]!==p?(n=p?e=>p(e):void 0,d[3]=p,d[4]=n):n=d[4],d[5]!==C||d[6]!==w?(o=(e,t)=>{let r=w??(C?void 0:e["aria-labelledby"]);return(0,a.jsx)("button",{type:"button",...e,"data-state":t.checked?"checked":"unchecked","aria-labelledby":r})},d[5]=C,d[6]=w,d[7]=o):o=d[7];let _=I[S];return d[8]!==_?(l=(0,T.cn)("pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-[translate,width] duration-200 ease-in-out data-[unchecked]:translate-x-0",_),d[8]=_,d[9]=l):l=d[9],d[10]!==l?(i=(0,a.jsx)(R.Thumb,{className:l}),d[10]=l,d[11]=i):i=d[11],d[12]!==j||d[13]!==C||d[14]!==f||d[15]!==m||d[16]!==h||d[17]!==v||d[18]!==b||d[19]!==y||d[20]!==k||d[21]!==g||d[22]!==t||d[23]!==n||d[24]!==o||d[25]!==i||d[26]!==x?(s=(0,a.jsx)(R.Root,{className:t,checked:f,defaultChecked:m,onCheckedChange:n,disabled:h,required:g,name:b,id:v,title:x,onClick:y,ref:k,"aria-label":C,"aria-describedby":j,nativeButton:!0,render:o,children:i}),d[12]=j,d[13]=C,d[14]=f,d[15]=m,d[16]=h,d[17]=v,d[18]=b,d[19]=y,d[20]=k,d[21]=g,d[22]=t,d[23]=n,d[24]=o,d[25]=i,d[26]=x,d[27]=s):s=d[27],s},"TRACK_SIZE_CLASSES",0,L],378599)},705065,e=>{"use strict";var t=e.i(222666),a=e.i(505962),r=e.i(553215),n=e.i(452473),o=e.i(528164),l=e.i(956506),i=e.i(558956),s=e.i(897575),d=e.i(378599),c=e.i(839669),u=e.i(270401);let f=[{key:"grape",label:"Grape",note:"Light backgrounds",panel:"light"},{key:"volt",label:"Volt",note:"Dark backgrounds",panel:"dark"},{key:"ink",label:"Ink",note:"Light backgrounds",panel:"light"},{key:"cloud",label:"Cloud",note:"Dark backgrounds",panel:"dark"}],m=[{key:"horizontal",label:"Horizontal",blurb:"The primary lockup. Use it wherever there’s room.",hasSquare:!1},{key:"vertical",label:"Vertical",blurb:"Stacked lockup for square formats and centered compositions.",hasSquare:!0},{key:"glyph",label:"Glyph",blurb:"The mark alone — avatars, favicons, small sizes.",hasSquare:!0}];function p({bg:e,config:t,colorway:a,fmt:r,square:n}){let o=`${t}-${a}${n?"-square":""}`;return`/brand/logos/${e}/${t}/${r}/${o}${"png"===r?"@2x":""}.${r}`}function h(e){let n,l,i,s,d,u,f=(0,a.c)(19),{asset:m,children:h}=e,g=(0,c.usePostHog)();f[0]!==m?(n=p(m),f[0]=m,f[1]=n):n=f[1];let b=n;f[2]!==m?(l=function({bg:e,config:t,colorway:a,fmt:r,square:n}){let o=["openrouter",t,a];return n&&o.push("square"),"on-background"===e&&o.push("bg"),`${o.join("-")}.${r}`}(m),f[2]=m,f[3]=l):l=f[3];let v=l;return f[4]!==m.bg||f[5]!==m.colorway||f[6]!==m.config||f[7]!==m.fmt||f[8]!==m.square||f[9]!==g?(i=()=>{g.capture(r.PostHogEvent.DownloadBrandAsset,{config:m.config,colorway:m.colorway,format:m.fmt,background:m.bg,square:m.square})},f[4]=m.bg,f[5]=m.colorway,f[6]=m.config,f[7]=m.fmt,f[8]=m.square,f[9]=g,f[10]=i):i=f[10],f[11]!==b||f[12]!==v?(s=(0,t.jsx)("a",{href:b,download:v}),f[11]=b,f[12]=v,f[13]=s):s=f[13],f[14]===Symbol.for("react.memo_cache_sentinel")?(d=(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"})}),f[14]=d):d=f[14],f[15]!==h||f[16]!==i||f[17]!==s?(u=(0,t.jsxs)(o.Button,{variant:"outline",size:"sm",className:"min-h-10 flex-1 gap-1.5 md:min-h-8",onClick:i,render:s,children:[d,h]}),f[15]=h,f[16]=i,f[17]=s,f[18]=u):u=f[18],u}function g(e){let r,o,i,s,d,c,u,f,m,g,b,v,x,y,k,C,w,j,S=(0,a.c)(53),{bg:E,config:_,colorway:N,square:P}=e,O="light"===N.panel,R=P&&_.hasSquare;if(S[0]!==E||S[1]!==N.key||S[2]!==_.key||S[3]!==O||S[4]!==R){let e;s={bg:E,config:_.key,colorway:N.key,fmt:"svg",square:R},S[12]!==E||S[13]!==N.key||S[14]!==_.key||S[15]!==R?(e={bg:E,config:_.key,colorway:N.key,fmt:"png",square:R},S[12]=E,S[13]=N.key,S[14]=_.key,S[15]=R,S[16]=e):e=S[16],i=e,o="h-[62%] w-auto","horizontal"===_.key?o="w-full max-w-72":R&&(o="h-[82%] w-auto");let t="aspect-[4/3] p-6";"horizontal"===_.key?t="aspect-[3/1] px-8":R&&(t="aspect-square p-6"),r=l.Card,u="flex flex-col overflow-hidden";let a=O?"bg-[#FCFCFE]":"bg-[#03080A]",f="transparent"===E&&"[background-size:16px_16px] [background-position:0_0,0_8px,8px_-8px,-8px_0]",m="transparent"===E&&(O?"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%)]");S[17]!==t||S[18]!==a||S[19]!==f||S[20]!==m?(c=(0,n.cn)("flex items-center justify-center border-b border-border",t,a,f,m),S[17]=t,S[18]=a,S[19]=f,S[20]=m,S[21]=c):c=S[21],d=p(s),S[0]=E,S[1]=N.key,S[2]=_.key,S[3]=O,S[4]=R,S[5]=r,S[6]=o,S[7]=i,S[8]=s,S[9]=d,S[10]=c,S[11]=u}else r=S[5],o=S[6],i=S[7],s=S[8],d=S[9],c=S[10],u=S[11];S[22]!==_.label?(f=_.label.toLowerCase(),S[22]=_.label,S[23]=f):f=S[23];let T=`OpenRouter ${f} logo — ${N.label}`;return S[24]!==o||S[25]!==d||S[26]!==T?(m=(0,t.jsx)("img",{src:d,alt:T,className:o}),S[24]=o,S[25]=d,S[26]=T,S[27]=m):m=S[27],S[28]!==c||S[29]!==m?(g=(0,t.jsx)("div",{className:c,children:m}),S[28]=c,S[29]=m,S[30]=g):g=S[30],S[31]!==N.label?(b=(0,t.jsx)("span",{className:"text-sm font-medium text-foreground",children:N.label}),S[31]=N.label,S[32]=b):b=S[32],S[33]!==N.note?(v=(0,t.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:N.note}),S[33]=N.note,S[34]=v):v=S[34],S[35]!==b||S[36]!==v?(x=(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[b,v]}),S[35]=b,S[36]=v,S[37]=x):x=S[37],S[38]!==s?(y=(0,t.jsx)(h,{asset:s,children:"SVG"}),S[38]=s,S[39]=y):y=S[39],S[40]!==i?(k=(0,t.jsx)(h,{asset:i,children:"PNG"}),S[40]=i,S[41]=k):k=S[41],S[42]!==y||S[43]!==k?(C=(0,t.jsxs)("div",{className:"mt-auto flex gap-1.5",children:[y,k]}),S[42]=y,S[43]=k,S[44]=C):C=S[44],S[45]!==x||S[46]!==C?(w=(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2.5 p-3",children:[x,C]}),S[45]=x,S[46]=C,S[47]=w):w=S[47],S[48]!==r||S[49]!==w||S[50]!==u||S[51]!==g?(j=(0,t.jsxs)(r,{className:u,children:[g,w]}),S[48]=r,S[49]=w,S[50]=u,S[51]=g,S[52]=j):j=S[52],j}e.s(["BrandAssets",0,function(){let e,l,p,h,b,v,x,y,k,C,w,j,S,E,_,N,P,O,R=(0,a.c)(34),T=(0,c.usePostHog)(),[L,I]=(0,u.useState)("transparent");R[0]===Symbol.for("react.memo_cache_sentinel")?(e={},R[0]=e):e=R[0];let[B,F]=(0,u.useState)(e);R[1]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{"solid"===new URL(window.location.href).searchParams.get("bg")&&I("on-background")},p=[],R[1]=l,R[2]=p):(l=R[1],p=R[2]),(0,u.useEffect)(l,p),R[3]!==T?(h=e=>{I(e),T.capture(r.PostHogEvent.ChangeBrandBackgroundTreatment,{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())},R[3]=T,R[4]=h):h=R[4];let A=h;R[5]===Symbol.for("react.memo_cache_sentinel")?(b=(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."})]}),R[5]=b):b=R[5],R[6]!==A?(v=e=>A("on-background"===e?"on-background":"transparent"),R[6]=A,R[7]=v):v=R[7],R[8]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)(s.SegmentedControlItem,{value:"transparent",className:"min-h-10 flex-1 md:min-h-0 md:flex-initial",children:"Transparent"}),y=(0,t.jsx)(s.SegmentedControlItem,{value:"on-background",className:"min-h-10 flex-1 md:min-h-0 md:flex-initial",children:"Solid background"}),R[8]=x,R[9]=y):(x=R[8],y=R[9]),R[10]!==L||R[11]!==v?(k=(0,t.jsxs)(s.SegmentedControl,{value:L,onValueChange:v,className:"w-full md:w-auto",children:[x,y]}),R[10]=L,R[11]=v,R[12]=k):k=R[12];let D="transparent"===L?"No backdrop — sits on your surface.":"Baked-in Cloud or Ink backdrop.";return R[13]!==D?(C=(0,t.jsx)("p",{className:"hidden text-xs text-muted-foreground md:block",children:D}),R[13]=D,R[14]=C):C=R[14],R[15]!==T?(w=()=>{T.capture(r.PostHogEvent.DownloadAllBrandAssets)},R[15]=T,R[16]=w):w=R[16],R[17]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)("a",{href:"/brand/logos/openrouter-logos.zip",download:"openrouter-logos.zip"}),R[17]=j):j=R[17],R[18]===Symbol.for("react.memo_cache_sentinel")?(S=(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"})}),R[18]=S):S=R[18],R[19]!==w?(E=(0,t.jsxs)(o.Button,{variant:"outline",size:"sm",className:"min-h-10 w-full gap-1.5 md:ml-auto md:min-h-8 md:w-auto",onClick:w,render:j,children:[S,"Download all"]}),R[19]=w,R[20]=E):E=R[20],R[21]!==C||R[22]!==E||R[23]!==k?(_=(0,t.jsxs)("div",{className:"mt-8 flex flex-wrap items-center gap-3",children:[k,C,E]}),R[21]=C,R[22]=E,R[23]=k,R[24]=_):_=R[24],R[25]!==L||R[26]!==T||R[27]!==B?(N=m.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:e.label}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e.blurb})]}),e.hasSquare&&(0,t.jsxs)("div",{className:"flex min-h-10 items-center gap-2",children:[(0,t.jsx)(i.Label,{htmlFor:`square-${e.key}`,className:"cursor-pointer text-sm",children:"Square canvas"}),(0,t.jsx)(d.Switch,{id:`square-${e.key}`,checked:!!B[e.key],onCheckedChange:t=>{F(a=>({...a,[e.key]:t})),T.capture(r.PostHogEvent.ToggleBrandSquareCanvas,{config:e.key,enabled:t})}})]})]}),(0,t.jsx)("div",{className:(0,n.cn)("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:f.map(a=>(0,t.jsx)(g,{bg:L,config:e,colorway:a,square:!!B[e.key]},a.key))})]},e.key)),R[25]=L,R[26]=T,R[27]=B,R[28]=N):N=R[28],R[29]!==N?(P=(0,t.jsx)("div",{className:"mt-10 flex flex-col gap-14",children:N}),R[29]=N,R[30]=P):P=R[30],R[31]!==_||R[32]!==P?(O=(0,t.jsxs)("div",{className:"pt-8","data-ssr-content":"brand-assets",children:[b,_,P]}),R[31]=_,R[32]=P,R[33]=O):O=R[33],O}],705065)}]); //# sourceMappingURL=3_oumggyxbjcf.js.map //# chunkId=01a099a4-b9bd-7482-a71e-2934afff8340