import{R as p,b as Pe,r as w,a as e,j as o,F as K}from"./core.browser.esm-QYlOFUDS.js";import{g as Re}from"./_commonjsHelpers-ih3yennJ.js";import"./_sentry-release-injection-file-DBidL4S7.js";import{r as Me}from"./interopRequireDefault-YUJQcIj5.js";import{r as De,a as Le}from"./createSvgIcon-R73wm6Km.js";import{a as Rt}from"./authorizedFetch-DdpMLBPG.js";import{w as N,R as Mt}from"./withRailsContext-C58avmHt.js";import{n as u,S as f,a as Z,P as A}from"./Section-DhCpnZ0x.js";import{H as V}from"./HorizontalLinks-DvF05630.js";import{C as Ae}from"./ContentWithMedia-CQe82lZy.js";import{c as Q}from"./classNames-DSlcZqN0.js";import{R as T}from"./ResponsiveProse-hQdwIRkg.js";import{B as Dt,S as he,F as Lt}from"./FeaturedPost-BTIDagQZ.js";import{S as ue}from"./SectionTitle-YX43mhDC.js";import{P as ne}from"./PageTitle-BCniVtLY.js";import{T as R,d as Wt}from"./TableOfContents-y0Ry6NkI.js";import{G as Yt,i as Ft}from"./GhostContent-CY1vjZK0.js";import{m as qt}from"./memoize-one.esm-DqRu4PWJ.js";import{U as jt,C as Bt,a as Je}from"./CompanyProfileSocials-7HOXG6Kc.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new i.Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="fae84d9d-b7ad-46ff-89e9-deea5d54b28b",i._sentryDebugIdIdentifier="sentry-dbid-fae84d9d-b7ad-46ff-89e9-deea5d54b28b")}catch{}})();(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new i.Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="c13fd26e-3d3b-446e-b0b0-5d7583d35b45",i._sentryDebugIdIdentifier="sentry-dbid-c13fd26e-3d3b-446e-b0b0-5d7583d35b45")}catch{}})();(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new i.Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="b0a471c5-7241-4b91-b623-6e04452759ec",i._sentryDebugIdIdentifier="sentry-dbid-b0a471c5-7241-4b91-b623-6e04452759ec")}catch{}})();(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new i.Error().stack;n&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[n]="bd6a01e5-cfbb-49be-91ad-7cdf6cae6682",i._sentryDebugIdIdentifier="sentry-dbid-bd6a01e5-cfbb-49be-91ad-7cdf6cae6682")}catch{}})();function et(i,n){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);n&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),a.push.apply(a,t)}return a}function ie(i){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?et(Object(a),!0).forEach(function(t){S(i,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):et(Object(a)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(a,t))})}return i}function M(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function tt(i,n){for(var a=0;a<n.length;a++){var t=n[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function D(i,n,a){return n&&tt(i.prototype,n),a&&tt(i,a),Object.defineProperty(i,"prototype",{writable:!1}),i}function S(i,n,a){return n in i?Object.defineProperty(i,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[n]=a,i}function x(){return(x=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(i[t]=a[t])}return i}).apply(this,arguments)}function L(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),n&&wt(i,n)}function Ue(i){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(i)}function wt(i,n){return(wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,t){return a.__proto__=t,a})(i,n)}function Ht(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zt(i,n){if(i==null)return{};var a,t,r={},l=Object.keys(i);for(t=0;t<l.length;t++)a=l[t],n.indexOf(a)>=0||(r[a]=i[a]);return r}function E(i,n){if(i==null)return{};var a,t,r=zt(i,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(t=0;t<l.length;t++)a=l[t],n.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(i,a)&&(r[a]=i[a])}return r}function v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Ut(i,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function W(i){var n=Ht();return function(){var a,t=Ue(i);if(n){var r=Ue(this).constructor;a=Reflect.construct(t,arguments,r)}else a=t.apply(this,arguments);return Ut(this,a)}}function je(i){return $t(i)||Vt(i)||Gt(i)||Kt()}function $t(i){if(Array.isArray(i))return $e(i)}function Vt(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Gt(i,n){if(i){if(typeof i=="string")return $e(i,n);var a=Object.prototype.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?$e(i,n):void 0}}function $e(i,n){(n==null||n>i.length)&&(n=i.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=i[a];return t}function Kt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function St(i,n){return n={exports:{}},i(n,n.exports),n.exports}function kt(){}function xt(){}function C(i){return i.map(function(n){return n===!1?null:n}).join(" ").replace(/\s+/g," ").trim()}function it(i,n){return 100/i*n/n}function nt(i,n){return 100*i/n}function q(i){return"".concat(i,"%")}function We(i,n,a){if(i===n)return!0;var t=F[Ge(i)],r=F[Ge(n)];return!(!t||t!==r)&&t(i,n,a)}function rt(i){return function(n,a,t){if(!t)return i(n,a,[]);for(var r,l=t.length;r=t[--l];)if(r[0]===n&&r[1]===a)return!0;return i(n,a,t)}}function Zt(i,n,a){var t=i.length;if(t!==n.length)return!1;for(a.push([i,n]);t--;)if(!We(i[t],n[t],a))return!1;return!0}function Qt(i,n,a){if(typeof i.equal=="function")return a.push([i,n]),i.equal(n,a);var t=at(i),r=at(n),l=t.length;if(l!==r.length)return!1;for(t.sort(),r.sort();l--;)if(t[l]!==r[l])return!1;for(a.push([i,n]),l=t.length;l--;){var c=t[l];if(!We(i[c],n[c],a))return!1}return!0}function at(i){var n=[];for(var a in i)a!=="constructor"&&n.push(a);return n}function Xt(i){return!!i&&typeof i=="object"}function Jt(i){var n=Object.prototype.toString.call(i);return n==="[object RegExp]"||n==="[object Date]"||ei(i)}function ei(i){return i.$$typeof===hi}function ti(i){return Array.isArray(i)?[]:{}}function Ie(i,n){return n.clone!==!1&&n.isMergeableObject(i)?pe(ti(i),i,n):i}function ii(i,n,a){return i.concat(n).map(function(t){return Ie(t,a)})}function ni(i,n,a){var t={};return a.isMergeableObject(i)&&Object.keys(i).forEach(function(r){t[r]=Ie(i[r],a)}),Object.keys(n).forEach(function(r){a.isMergeableObject(n[r])&&i[r]?t[r]=pe(i[r],n[r],a):t[r]=Ie(n[r],a)}),t}function pe(i,n,a){(a=a||{}).arrayMerge=a.arrayMerge||ii,a.isMergeableObject=a.isMergeableObject||ci;var t=Array.isArray(n);return t===Array.isArray(i)?t?a.arrayMerge(i,n,a):ni(i,n,a):Ie(n,a)}function H(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return{}},a=function(t){function r(c,h){var d;return M(this,r),d=l.call(this,c,h),d.state=n(ie({},h.state)),d.updateStateProps=d.updateStateProps.bind(v(d)),d}L(r,t);var l=W(r);return D(r,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(c,h){return!lt(h,this.state)||!lt(c,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(n(ie({},this.context.state)))}},{key:"render",value:function(){var c=this,h=Ee(this.state,this.props);return p.createElement(i,x({ref:function(d){c.instance=d}},h,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),r}(p.Component);return S(a,"contextType",Ze),S(a,"propTypes",{children:P.children}),S(a,"defaultProps",{children:null}),a}var ri="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ai=ri;xt.resetWarningCache=kt;var oi=function(){function i(t,r,l,c,h,d){if(d!==ai){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}function n(){return i}i.isRequired=i;var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:n,element:i,elementType:i,instanceOf:n,node:i,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:xt,resetWarningCache:kt};return a.PropTypes=a,a},s=St(function(i){i.exports=oi()}),Be="loading",ot="success",st="error",P={children:s.oneOfType([s.arrayOf(s.node),s.node]),direction:s.oneOf(["forward","backward"]),height:function(i,n){var a=i[n];return i.orientation!=="vertical"||a!==null&&typeof a=="number"?null:new Error("Missing required property '".concat(n,"' when orientation is vertical.  You must supply a number representing the height in pixels"))},orientation:s.oneOf(["horizontal","vertical"]),isBgImage:function(i,n){return i[n]===!0&&i.tag==="img"?new Error("HTML img elements should not have a backgroundImage.  Please use ".concat(n," for other block-level HTML tags, like div, a, section, etc...")):null}},Oe=function(i){var n=i.min,a=i.max,t=i.x;return Math.min(a,Math.max(n,t))},si={buttonBack:"buttonBack___1mlaL"},li=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],Ve=function(i){function n(t){var r;return M(this,n),r=a.call(this,t),r.handleOnClick=r.handleOnClick.bind(v(r)),r}L(n,i);var a=W(n);return D(n,[{key:"handleOnClick",value:function(t){var r=this.props,l=r.carouselStore,c=r.currentSlide,h=r.onClick,d=r.step,m=r.infinite,b=r.visibleSlides,g=r.totalSlides-b,y=Math.max(c-d,0);m&&(y=c===0?g:y),l.setStoreState({currentSlide:y,isPlaying:!1},h!==null&&h.call(this,t))}},{key:"render",value:function(){var t=this.props,r=(t.carouselStore,t.className),l=(t.currentSlide,t.disabled,t.onClick,t.step,t.totalSlides,t.visibleSlides,t.infinite),c=E(t,li),h=C([si.buttonBack,"carousel__back-button",r]),d=n.setDisabled(this.props.disabled,this.props.currentSlide,l);return p.createElement("button",x({type:"button","aria-label":"previous",className:h,onClick:this.handleOnClick,disabled:d},c),this.props.children)}}],[{key:"setDisabled",value:function(t,r,l){return t!==null?t:r===0&&!l}}]),n}(p.Component);S(Ve,"propTypes",{carouselStore:s.object.isRequired,children:P.children.isRequired,className:s.string,currentSlide:s.number.isRequired,disabled:s.bool,onClick:s.func,step:s.number.isRequired,totalSlides:s.number.isRequired,visibleSlides:s.number.isRequired,infinite:s.bool}),S(Ve,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var Ge=St(function(i,n){var a={}.toString,t=typeof window<"u"?window.Node:Function;i.exports=n=function(l){var c=typeof l;if(c!="object")return c;if(c=r[a.call(l)],c=="object")return l instanceof Map?"map":l instanceof Set?"set":"object";if(c)return c;if(l instanceof t)switch(l.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var r=n.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}});Ge.types;var F={};F.number=function(i,n){return i!==i&&n!==n},F.function=function(i,n,a){return i.toString()===n.toString()&&F.object(i,n,a)&&We(i.prototype,n.prototype)},F.date=function(i,n){return+i==+n},F.regexp=function(i,n){return i.toString()===n.toString()},F.element=function(i,n){return i.outerHTML===n.outerHTML},F.textnode=function(i,n){return i.textContent===n.textContent},F.arguments=F["bit-array"]=F.array=rt(Zt),F.object=rt(Qt);var lt=We,ci=function(i){return Xt(i)&&!Jt(i)},di=typeof Symbol=="function"&&Symbol.for,hi=di?Symbol.for("react.element"):60103;pe.all=function(i,n){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(a,t){return pe(a,t,n)},{})};var Ee=pe,Ze=p.createContext(),ct=function i(n){return Object.freeze(n),Object.getOwnPropertyNames(n).forEach(function(a){!n.hasOwnProperty(a)||n[a]===null||typeof n[a]!="object"&&typeof n[a]!="function"||Object.isFrozen(n[a])||i(n[a])}),n},ui={masterSpinnerFinished:!1},pi=function(){function i(n){M(this,i),this.state=ct(Ee(ui,n)),this.subscriptions=[],this.masterSpinnerSubscriptions={},this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return D(i,[{key:"setStoreState",value:function(n,a){this.state=ct(Ee(this.state,n)),this.updateSubscribers(a)}},{key:"getStoreState",value:function(){return Ee({},this.state)}},{key:"subscribe",value:function(n){this.subscriptions.push(n)}},{key:"unsubscribe",value:function(n){var a=this.subscriptions.indexOf(n);a!==-1&&this.subscriptions.splice(a,1)}},{key:"updateSubscribers",value:function(n){this.subscriptions.forEach(function(a){return a()}),typeof n=="function"&&n(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(n){Object.keys(this.masterSpinnerSubscriptions).indexOf(n)===-1&&(this.masterSpinnerSubscriptions[n]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(n){return Object.keys(this.masterSpinnerSubscriptions).indexOf(n)!==-1&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[n])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(n){this.masterSpinnerSubscriptions[n].success=!0,this.masterSpinnerSubscriptions[n].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(n){this.masterSpinnerSubscriptions[n].error=!0,this.masterSpinnerSubscriptions[n].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var n=this;return Object.keys(this.masterSpinnerSubscriptions).filter(function(a){return n.masterSpinnerSubscriptions[a].complete!==!0}).length===0}}]),i}(),mi=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],ge,_r=(ge=function(i){function n(t){var r;if(M(this,n),r=a.call(this,t),t.isIntrinsicHeight&&t.orientation!=="horizontal")throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var l={currentSlide:t.currentSlide,disableAnimation:t.disableAnimation,disableKeyboard:t.disableKeyboard,hasMasterSpinner:t.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:t.interval,isPageScrollLocked:t.isPageScrollLocked,isPlaying:t.isPlaying,lockOnWindowScroll:t.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:t.naturalSlideHeight,naturalSlideWidth:t.naturalSlideWidth,orientation:t.orientation,playDirection:t.playDirection,privateUnDisableAnimation:!1,slideSize:it(t.totalSlides,t.visibleSlides),slideTraySize:nt(t.totalSlides,t.visibleSlides),step:t.step,dragStep:t.dragStep,totalSlides:t.totalSlides,touchEnabled:t.touchEnabled,dragEnabled:t.dragEnabled,visibleSlides:t.visibleSlides,infinite:t.infinite,isIntrinsicHeight:t.isIntrinsicHeight};return r.carouselStore=new pi(l),r}L(n,i);var a=W(n);return D(n,[{key:"componentDidUpdate",value:function(t){var r=this,l={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach(function(c){t[c]!==r.props[c]&&(l[c]=r.props[c])}),this.props.currentSlide!==t.currentSlide&&!this.props.disableAnimation&&(l.disableAnimation=!0,l.privateUnDisableAnimation=!0),this.props.totalSlides===t.totalSlides&&this.props.visibleSlides===t.visibleSlides||(l.slideSize=it(this.props.totalSlides,this.props.visibleSlides),l.slideTraySize=nt(this.props.totalSlides,this.props.visibleSlides)),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(l.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(l).length>0&&this.carouselStore.setStoreState(l)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var t=this.props,r=(t.children,t.className,t.currentSlide,t.disableAnimation,t.disableKeyboard,t.hasMasterSpinner,t.interval,t.isPageScrollLocked,t.isPlaying,t.lockOnWindowScroll,t.naturalSlideHeight,t.naturalSlideWidth,t.orientation,t.playDirection,t.step,t.dragStep,t.tag),l=(t.totalSlides,t.touchEnabled,t.dragEnabled,t.visibleSlides,t.infinite,t.isIntrinsicHeight,E(t,mi)),c=C(["carousel",this.props.className]);return p.createElement(r,x({className:c},l),p.createElement(Ze.Provider,{value:this.carouselStore},this.props.children))}}]),n}(p.Component),S(ge,"propTypes",{children:P.children.isRequired,className:s.string,currentSlide:s.number,disableAnimation:s.bool,disableKeyboard:s.bool,hasMasterSpinner:s.bool,interval:s.number,isPageScrollLocked:s.bool,isPlaying:s.bool,lockOnWindowScroll:s.bool,naturalSlideHeight:s.number.isRequired,naturalSlideWidth:s.number.isRequired,orientation:P.orientation,playDirection:P.direction,step:s.number,dragStep:s.number,tag:s.string,totalSlides:s.number.isRequired,touchEnabled:s.bool,dragEnabled:s.bool,visibleSlides:s.number,infinite:s.bool,isIntrinsicHeight:s.bool}),S(ge,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),ge);Ze.Consumer;var Nr=H(Ve,function(i){return{currentSlide:i.currentSlide,step:i.step,totalSlides:i.totalSlides,visibleSlides:i.visibleSlides,infinite:i.infinite}}),fi={buttonFirst:"buttonFirst___2rhFr"},gi=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],ye,yi=(ye=function(i){function n(){var t;return M(this,n),t=a.call(this),t.handleOnClick=t.handleOnClick.bind(v(t)),t}L(n,i);var a=W(n);return D(n,[{key:"handleOnClick",value:function(t){var r=this.props,l=r.carouselStore,c=r.onClick;l.setStoreState({currentSlide:0,isPlaying:!1},c!==null&&c.call(this,t))}},{key:"render",value:function(){var t=this.props,r=(t.carouselStore,t.className),l=t.currentSlide,c=t.disabled,h=(t.onClick,t.totalSlides,E(t,gi)),d=C([fi.buttonFirst,"carousel__first-button",r]),m=c!==null?c:l===0;return p.createElement("button",x({type:"button","aria-label":"first",className:d,onClick:this.handleOnClick,disabled:m},h),this.props.children)}}]),n}(p.Component),S(ye,"propTypes",{carouselStore:s.object.isRequired,children:P.children.isRequired,className:s.string,currentSlide:s.number.isRequired,disabled:s.bool,onClick:s.func,totalSlides:s.number.isRequired}),S(ye,"defaultProps",{className:null,disabled:null,onClick:null}),ye);H(yi,function(i){return{currentSlide:i.currentSlide,totalSlides:i.totalSlides}});var bi={buttonNext:"buttonNext___2mOCa"},vi=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],be,wi=(be=function(i){function n(t){var r;return M(this,n),r=a.call(this,t),r.handleOnClick=r.handleOnClick.bind(v(r)),r}L(n,i);var a=W(n);return D(n,[{key:"handleOnClick",value:function(t){var r=this.props,l=r.currentSlide,c=r.onClick,h=r.step,d=r.carouselStore,m=r.infinite,b=r.totalSlides-r.visibleSlides,g=h+l,y=Math.min(g,b);m&&(y=b===l?0:y),d.setStoreState({currentSlide:y,isPlaying:!1},c!==null&&c.call(this,t))}},{key:"render",value:function(){var t=this.props,r=(t.carouselStore,t.className),l=t.currentSlide,c=t.disabled,h=(t.onClick,t.step,t.totalSlides),d=t.visibleSlides,m=t.infinite,b=E(t,vi),g=C([bi.buttonNext,"carousel__next-button",r]),y=n.setDisabled(c,l,d,h,m);return p.createElement("button",x({type:"button","aria-label":"next",className:g,onClick:this.handleOnClick,disabled:y},b),this.props.children)}}],[{key:"setDisabled",value:function(t,r,l,c,h){return t!==null?t:r>=c-l&&!h}}]),n}(p.PureComponent),S(be,"propTypes",{carouselStore:s.object.isRequired,children:P.children.isRequired,className:s.string,currentSlide:s.number.isRequired,disabled:s.bool,onClick:s.func,step:s.number.isRequired,totalSlides:s.number.isRequired,visibleSlides:s.number.isRequired,infinite:s.bool}),S(be,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),be),Ar=H(wi,function(i){return{currentSlide:i.currentSlide,step:i.step,totalSlides:i.totalSlides,visibleSlides:i.visibleSlides,infinite:i.infinite}}),Si={buttonLast:"buttonLast___2yuh0"},ki=["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"],ve,xi=(ve=function(i){function n(){var t;return M(this,n),t=a.call(this),t.handleOnClick=t.handleOnClick.bind(v(t)),t}L(n,i);var a=W(n);return D(n,[{key:"handleOnClick",value:function(t){var r=this.props,l=r.carouselStore,c=r.onClick,h=r.totalSlides,d=r.visibleSlides;l.setStoreState({currentSlide:h-d,isPlaying:!1},c!==null&&c.call(this,t))}},{key:"render",value:function(){var t=this.props,r=(t.carouselStore,t.className),l=t.currentSlide,c=t.disabled,h=(t.onClick,t.totalSlides),d=t.visibleSlides,m=E(t,ki),b=C([Si.buttonLast,"carousel__last-button",r]),g=c!==null?c:l>=h-d;return p.createElement("button",x({type:"button","aria-label":"last",className:b,onClick:this.handleOnClick,disabled:g},m),this.props.children)}}]),n}(p.Component),S(ve,"propTypes",{carouselStore:s.object.isRequired,children:P.children.isRequired,className:s.string,currentSlide:s.number.isRequired,disabled:s.bool,onClick:s.func,totalSlides:s.number.isRequired,visibleSlides:s.number.isRequired}),S(ve,"defaultProps",{className:null,disabled:null,onClick:null}),ve);H(xi,function(i){return{currentSlide:i.currentSlide,totalSlides:i.totalSlides,visibleSlides:i.visibleSlides}});var Ci={buttonNext:"buttonNext___3Lm3s"},Ti=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],we,_i=(we=function(i){function n(t){var r;return M(this,n),r=a.call(this,t),r.handleOnClick=r.handleOnClick.bind(v(r)),r}L(n,i);var a=W(n);return D(n,[{key:"handleOnClick",value:function(t){var r=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},r!==null&&r.call(this,t))}},{key:"render",value:function(){var t=this.props,r=(t.carouselStore,t.children,t.childrenPaused),l=t.childrenPlaying,c=t.className,h=t.isPlaying,d=(t.onClick,E(t,Ti)),m=C([Ci.buttonNext,"carousel__play-button",c]);return p.createElement("button",x({type:"button","aria-label":"play",className:m,onClick:this.handleOnClick},d),h&&l,!h&&r,this.props.children)}}]),n}(p.PureComponent),S(we,"propTypes",{carouselStore:s.object.isRequired,children:s.node,childrenPaused:s.node,childrenPlaying:s.node,className:s.string,isPlaying:s.bool.isRequired,onClick:s.func}),S(we,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),we);H(_i,function(i){return{isPlaying:i.isPlaying}});var dt={dot:"dot___3c3SI"},Ni=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],Se,Ai=(Se=function(i){function n(t){var r;return M(this,n),r=a.call(this,t),r.handleOnClick=r.handleOnClick.bind(v(r)),r}L(n,i);var a=W(n);return D(n,[{key:"handleOnClick",value:function(t){var r=this.props,l=r.carouselStore,c=r.onClick,h=r.slide,d=r.totalSlides,m=r.visibleSlides,b=h>=d-m?d-m:h;l.setStoreState({currentSlide:b,isPlaying:!1},c!==null&&c.call(this,t))}},{key:"render",value:function(){var t=this.props,r=(t.carouselStore,t.children,t.className),l=t.currentSlide,c=t.disabled,h=(t.onClick,t.selected),d=t.slide,m=(t.totalSlides,t.visibleSlides),b=E(t,Ni),g=d>=l&&d<l+m,y=typeof h=="boolean"?h:g,_=g===!0,I=typeof c=="boolean"?c:_,k=C([dt.dot,y&&dt.dotSelected,"carousel__dot","carousel__dot--".concat(d),y&&"carousel__dot--selected",r]);return p.createElement("button",x({"aria-label":"slide dot",type:"button",onClick:this.handleOnClick,className:k,disabled:I},b),this.props.children)}}]),n}(p.Component),S(Se,"propTypes",{carouselStore:s.object.isRequired,children:P.children,className:s.string,currentSlide:s.number.isRequired,disabled:s.bool,onClick:s.func,selected:s.bool,slide:s.number.isRequired,totalSlides:s.number.isRequired,visibleSlides:s.number.isRequired}),S(Se,"defaultProps",{children:null,className:null,disabled:null,onClick:null,selected:null}),Se),Oi=H(Ai,function(i){return{currentSlide:i.currentSlide,totalSlides:i.totalSlides,visibleSlides:i.visibleSlides}}),Ei={},Ii=["renderDots"],Pi=["carouselStore","children","className","currentSlide","dotNumbers","totalSlides","visibleSlides","disableActiveDots","showAsSelectedForCurrentSlideOnly","renderDots"],ke,Ri=(ke=function(i){function n(){return M(this,n),a.apply(this,arguments)}L(n,i);var a=W(n);return D(n,[{key:"renderDots",value:function(){var t=this.props,r=t.currentSlide,l=t.totalSlides,c=t.visibleSlides,h=t.disableActiveDots,d=t.showAsSelectedForCurrentSlideOnly,m=t.renderDots;if(m){var b=this.props;return b.renderDots,m(E(b,Ii))}for(var g=[],y=0;y<l;y+=1){var _=y>=r&&y<r+c,I=y===r,k=d?I:_,O=y>=l-c?l-c:y;g.push(p.createElement(Oi,{key:y,slide:O,selected:k,disabled:!!h&&k},p.createElement("span",{className:C["carousel__dot-group-dot"]},this.props.dotNumbers&&y+1)))}return g}},{key:"render",value:function(){var t=this.props,r=(t.carouselStore,t.children),l=t.className,c=(t.currentSlide,t.dotNumbers,t.totalSlides,t.visibleSlides,t.disableActiveDots,t.showAsSelectedForCurrentSlideOnly,t.renderDots,E(t,Pi)),h=C([Ei.DotGroup,"carousel__dot-group",l]);return p.createElement("div",x({className:h},c),this.renderDots(),r)}}]),n}(p.Component),S(ke,"propTypes",{children:P.children,className:s.string,currentSlide:s.number.isRequired,carouselStore:s.object.isRequired,totalSlides:s.number.isRequired,visibleSlides:s.number.isRequired,dotNumbers:s.bool,disableActiveDots:s.bool,showAsSelectedForCurrentSlideOnly:s.bool,renderDots:s.func}),S(ke,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),ke);H(Ri,function(i){return{currentSlide:i.currentSlide,totalSlides:i.totalSlides,visibleSlides:i.visibleSlides}});var oe={image:"image___xtQGH"},Mi=["src","alt"],Di=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],Ke=function(i){function n(t){var r;return M(this,n),r=a.call(this,t),r.state={imageStatus:Be},r.handleImageLoad=r.handleImageLoad.bind(v(r)),r.handleImageError=r.handleImageError.bind(v(r)),r.image=null,r}L(n,i);var a=W(n);return D(n,[{key:"componentDidMount",value:function(){n.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(t){t.src!==this.props.src&&(n.unsubscribeMasterSpinner(t),n.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){n.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:Be}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var t=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=t}}},{key:"handleImageLoad",value:function(t){this.setState({imageStatus:ot}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(t)}},{key:"handleImageError",value:function(t){this.setState({imageStatus:st}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(t)}},{key:"tempTag",value:function(){return this.props.tag==="img"?"div":this.props.tag}},{key:"customRender",value:function(t){return typeof this.props[t]=="function"?this.props[t]():this.props.children}},{key:"renderLoading",value:function(t){var r=this.tempTag(),l=C([oe.image,oe.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return p.createElement(r,x({className:l},t),this.customRender("renderLoading"))}},{key:"renderError",value:function(t){var r=this.tempTag(),l=C([oe.image,oe.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return p.createElement(r,x({className:l},t),this.customRender("renderError"))}},{key:"renderSuccess",value:function(t){var r=this.props,l=r.style,c=r.tag,h=C([oe.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),d=x({},l),m=t;if(c!=="img"){var b=t.src;t.alt,m=E(t,Mi),d=x({},l,{backgroundImage:'url("'.concat(b,'")'),backgroundSize:"cover"})}return p.createElement(c,x({className:h,style:d},m),this.props.children)}},{key:"render",value:function(){var t=this.props,r=(t.carouselStore,t.children,t.className,t.hasMasterSpinner,t.isBgImage,t.onError,t.onLoad,t.renderError,t.renderLoading,t.style,t.tag,E(t,Di));switch(this.state.imageStatus){case Be:return this.renderLoading(r);case ot:return this.renderSuccess(r);case st:return this.renderError(r);default:throw new Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(t){t.hasMasterSpinner&&t.carouselStore.subscribeMasterSpinner(t.src)}},{key:"unsubscribeMasterSpinner",value:function(t){t.hasMasterSpinner&&t.carouselStore.unsubscribeMasterSpinner(t.src)}}]),n}(p.Component);S(Ke,"propTypes",{alt:s.string,carouselStore:s.object.isRequired,children:P.children,className:s.string,hasMasterSpinner:s.bool.isRequired,isBgImage:P.isBgImage,onError:s.func,onLoad:s.func,renderError:s.func,renderLoading:s.func,src:s.string.isRequired,style:s.object,tag:s.string}),S(Ke,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var ht=H(Ke,function(i){return{hasMasterSpinner:i.hasMasterSpinner,orientation:i.orientation}}),Li={spinner:"spinner___27VUp",spin:"spin___S3UuE"},Wi=["className"],xe,Ct=(xe=function(i){function n(){return M(this,n),a.apply(this,arguments)}L(n,i);var a=W(n);return D(n,[{key:"render",value:function(){var t=this.props,r=t.className,l=E(t,Wi),c=C([Li.spinner,"carousel__spinner",r]);return p.createElement("div",x({className:c},l))}}]),n}(p.PureComponent),S(xe,"propTypes",{className:s.string}),S(xe,"defaultProps",{className:null}),xe),ee={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",loading:"loading___1pvNI",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},Yi=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],Ce,Fi=2,qi=3,ji=(Ce=function(i){function n(t){var r;return M(this,n),r=a.call(this,t),r.state={isImageLoading:!0,isHovering:!1,isZooming:!1,x:null,y:null,scale:1},r.tpCache={},r.handleImageComplete=r.handleImageComplete.bind(v(r)),r.handleOnMouseMove=r.handleOnMouseMove.bind(v(r)),r.handleOnMouseOut=r.handleOnMouseOut.bind(v(r)),r.handleOnMouseOver=r.handleOnMouseOver.bind(v(r)),r.handleOnTouchEnd=r.handleOnTouchEnd.bind(v(r)),r.handleOnTouchMove=r.handleOnTouchMove.bind(v(r)),r.handleOnTouchStart=r.handleOnTouchStart.bind(v(r)),r}L(n,i);var a=W(n);return D(n,[{key:"componentDidUpdate",value:function(t,r){r.isZooming===!1&&this.state.isZooming===!0&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),r.isZooming===!0&&this.state.isZooming===!1&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(){this.setState({isImageLoading:!1})}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:Fi})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(t){if(!this.state.isZooming){var r=q(t.nativeEvent.offsetX/t.target.offsetWidth*100),l=q(t.nativeEvent.offsetY/t.target.offsetHeight*100);this.setState({x:r,y:l})}}},{key:"handleOnTouchStart",value:function(t){var r=this;this.props.isPinchZoomEnabled&&(je(t.targetTouches).forEach(function(l){r.tpCache[l.identifier]={clientX:l.clientX,clientY:l.clientY}}),this.setState(function(l){return{isZooming:l.isZooming||Object.keys(r.tpCache).length>1}}))}},{key:"handleOnTouchMove",value:function(t){var r=this;if(this.state.isZooming){t.persist();var l=je(t.targetTouches).filter(function(O){return r.tpCache[O.identifier]}).slice(0,2);if(l.length===2){t.stopPropagation();var c=t.target.getBoundingClientRect(),h=l[0].identifier,d=l[1].identifier,m={x1:this.tpCache[h].clientX,y1:this.tpCache[h].clientY,x2:this.tpCache[d].clientX,y2:this.tpCache[d].clientY};m.distance=n.distanceBetweenTwoTouches(ie({},m));var b=n.midpointBetweenTwoTouches(ie({},m));m.cx=b.x,m.cy=b.y;var g={x1:l[0].clientX,y1:l[0].clientY,x2:l[1].clientX,y2:l[1].clientY};g.distance=n.distanceBetweenTwoTouches(ie({},g));var y=n.midpointBetweenTwoTouches(ie({},g));g.cx=y.x,g.cy=y.y;var _=q(Oe({min:0,max:100,x:(g.cx-c.left)/c.width*100})),I=q(Oe({min:0,max:100,x:(g.cy-c.top)/c.height*100})),k=function(O){return Oe({min:1,max:qi,x:O.scale+(g.distance-m.distance)/100})};this.setState(function(O){return{isZooming:k(O)!==1,scale:k(O),x:_,y:I}})}}}},{key:"handleOnTouchEnd",value:function(t){var r=this;this.props.isPinchZoomEnabled&&(je(t.changedTouches).forEach(function(l){delete r.tpCache[l.identifier]}),Object.keys(this.tpCache).length===0&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var t=this.props.spinner;return p.createElement("div",{className:C([ee.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},t&&t(),!t&&p.createElement(Ct,null))}return null}},{key:"render",value:function(){var t=this.props,r=t.alt,l=t.bgImageProps,c=t.bgImageTag,h=(t.carouselStore,t.className),d=t.imageClassName,m=t.overlayClassName,b=(t.isPinchZoomEnabled,t.spinner,t.src),g=t.srcZoomed,y=t.tag,_=E(t,Yi),I=C([ee.container,h]),k=C([ee.image,"carousel__zoom-image",d]),O=C([ee.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&ee.hover,this.state.isZooming&&ee.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",m]),$={};return(this.state.isHovering||this.state.isZooming)&&($.transformOrigin="".concat(this.state.x," ").concat(this.state.y),$.transform="scale(".concat(this.state.scale,")")),p.createElement(y,x({className:I},_),p.createElement(ht,x({alt:r,className:k,tag:c,src:b,onLoad:this.handleImageComplete,onError:this.handleImageComplete},l)),p.createElement(ht,{className:O,tag:"div",src:g||b,style:$,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(t){var r=t.x1,l=t.y1;return{x:(r+t.x2)/2,y:(l+t.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(t){var r=t.x1,l=t.y1,c=t.x2,h=t.y2;return Math.sqrt(Math.pow(c-r,2)+Math.pow(h-l,2))}}]),n}(p.Component),S(Ce,"propTypes",{alt:s.string,bgImageProps:s.object,bgImageTag:s.string,carouselStore:s.object.isRequired,className:s.string,imageClassName:s.string,overlayClassName:s.string,spinner:s.func,src:s.string.isRequired,srcZoomed:s.string,tag:s.string,isPinchZoomEnabled:s.bool}),S(Ce,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,srcZoomed:null,tag:"div"}),Ce);H(ji,function(){return{}});var Te={slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"},Bi=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tabIndex","tag","totalSlides","visibleSlides","isIntrinsicHeight"],_e,Hi=(_e=function(i){function n(t){var r;return M(this,n),r=a.call(this,t),r.handleOnFocus=r.handleOnFocus.bind(v(r)),r.handleOnBlur=r.handleOnBlur.bind(v(r)),r.state={focused:!1},r}L(n,i);var a=W(n);return D(n,[{key:"isVisible",value:function(){var t=this.props,r=t.currentSlide,l=t.index,c=t.visibleSlides;return l>=r&&l<r+c}},{key:"handleOnFocus",value:function(t){var r=this,l=this.props.onFocus;this.setState({focused:!0},function(){l!==null&&l.call(r,t)})}},{key:"handleOnBlur",value:function(t){var r=this,l=this.props.onBlur;this.setState({focused:!1},function(){l!==null&&l.call(r,t)})}},{key:"renderFocusRing",value:function(){return this.state.focused?p.createElement("div",{className:[Te.focusRing,"carousel__slide-focus-ring"].join(" ")}):null}},{key:"render",value:function(){var t=this,r=this.props,l=r.ariaLabel,c=(r.carouselStore,r.children,r.className),h=r.classNameHidden,d=r.classNameVisible,m=(r.currentSlide,r.index,r.innerClassName),b=r.innerTag,g=r.naturalSlideHeight,y=r.naturalSlideWidth,_=(r.onBlur,r.onFocus,r.orientation),I=r.slideSize,k=r.style,O=r.tabIndex,$=r.tag,re=r.totalSlides,X=(r.visibleSlides,r.isIntrinsicHeight),j=E(r,Bi),z={};_==="horizontal"?(z.width=q(I),z.paddingBottom=q(100*g/(y*re))):(z.width=q(100),z.paddingBottom=q(100*g/y));var me={};X&&(_==="horizontal"?z.height="unset":z.width="unset",z.paddingBottom="unset",me.position="unset");var Fe=x({},z,k),Y=this.isVisible(),qe=C([Te.slide,_==="horizontal"&&Te.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",Y&&d,Y&&"carousel__slide--visible",!Y&&h,!Y&&"carousel__slide--hidden",c]),J=C([Te.slideInner,"carousel__inner-slide",m]),B=this.isVisible()?0:-1,fe=typeof O=="number"?O:B;return p.createElement($,x({ref:function(ae){t.tagRef=ae},tabIndex:fe,"aria-selected":this.isVisible(),"aria-label":l,role:"option",onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,className:qe,style:Fe},j),p.createElement(b,{ref:function(ae){t.innerTagRef=ae},className:J,style:me},this.props.children,this.renderFocusRing()))}}]),n}(p.PureComponent),S(_e,"propTypes",{ariaLabel:s.string,carouselStore:s.object,children:P.children,className:s.string,classNameHidden:s.string,classNameVisible:s.string,currentSlide:s.number.isRequired,index:s.number.isRequired,innerClassName:s.string,innerTag:s.string,naturalSlideHeight:s.number.isRequired,naturalSlideWidth:s.number.isRequired,onBlur:s.func,onFocus:s.func,orientation:P.orientation.isRequired,slideSize:s.number.isRequired,style:s.object,tabIndex:s.number,tag:s.string,totalSlides:s.number.isRequired,visibleSlides:s.number.isRequired,isIntrinsicHeight:s.bool}),S(_e,"defaultProps",{ariaLabel:"slide",carouselStore:null,children:null,className:null,classNameHidden:null,classNameVisible:null,innerClassName:null,innerTag:"div",onBlur:null,onFocus:null,style:{},tabIndex:null,tag:"div",isIntrinsicHeight:!1}),_e),Or=H(Hi,function(i){return{currentSlide:i.currentSlide,naturalSlideHeight:i.naturalSlideHeight,naturalSlideWidth:i.naturalSlideWidth,orientation:i.orientation,slideSize:i.slideSize,totalSlides:i.totalSlides,visibleSlides:i.visibleSlides,isIntrinsicHeight:i.isIntrinsicHeight}}),zi=function(){function i(){M(this,i)}return D(i,[{key:"parents",value:function(n,a){return n.parentNode===null?a:this.parents(n.parentNode,a.concat([n]))}},{key:"scrollParent",value:function(n){for(var a=this.parents(n.parentNode,[]),t=0;t<a.length;t+=1)if(i.scroll(a[t]))return a[t];return document.scrollingElement||document.documentElement}},{key:"getScrollParent",value:function(n){return i.isNodeValid(n)?this.scrollParent(n):null}}],[{key:"style",value:function(n,a){return getComputedStyle(n,null).getPropertyValue(a)}},{key:"overflow",value:function(n){return i.style(n,"overflow")+i.style(n,"overflow-y")+i.style(n,"overflow-x")}},{key:"scroll",value:function(n){return/(auto|scroll)/.test(i.overflow(n))}},{key:"isNodeValid",value:function(n){return n instanceof HTMLElement||n instanceof SVGElement}}]),i}(),U={horizontalSlider:"horizontalSlider___281Ls",horizontalSliderTray:"horizontalSliderTray___1L-0W",verticalSlider:"verticalSlider___34ZFD",verticalSliderTray:"verticalSliderTray___267D8",verticalTray:"verticalTray___12Key",verticalSlideTrayWrap:"verticalSlideTrayWrap___2nO7o",sliderTray:"sliderTray___-vHFQ",sliderAnimation:"sliderAnimation___300FY",masterSpinnerContainer:"masterSpinnerContainer___1Z6hB"},Ui=["ariaLabel","carouselStore","children","className","classNameAnimation","classNameTray","classNameTrayWrap","currentSlide","disableAnimation","disableKeyboard","dragEnabled","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","masterSpinnerFinished","moveThreshold","naturalSlideHeight","naturalSlideWidth","onMasterSpinner","orientation","playDirection","privateUnDisableAnimation","slideSize","slideTraySize","spinner","style","tabIndex","totalSlides","touchEnabled","trayProps","trayTag","visibleSlides","isIntrinsicHeight"],$i=["dragStep","step","infinite","preventVerticalScrollOnTouch","preventingVerticalScroll","horizontalPixelThreshold","verticalPixelThreshold"],Vi=["className","onClickCapture","onMouseDown","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ref","style"],Ne,Gi=(Ne=function(i){function n(t){var r;return M(this,n),r=a.call(this,t),r.getSliderRef=r.getSliderRef.bind(v(r)),r.handleDocumentScroll=r.handleDocumentScroll.bind(v(r)),r.handleOnClickCapture=r.handleOnClickCapture.bind(v(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(v(r)),r.handleOnMouseDown=r.handleOnMouseDown.bind(v(r)),r.handleOnMouseMove=r.handleOnMouseMove.bind(v(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(v(r)),r.handleOnTouchCancel=r.handleOnTouchCancel.bind(v(r)),r.handleOnTouchEnd=r.handleOnTouchEnd.bind(v(r)),r.handleOnTouchMove=r.handleOnTouchMove.bind(v(r)),r.handleOnTouchStart=r.handleOnTouchStart.bind(v(r)),r.playBackward=r.playBackward.bind(v(r)),r.playForward=r.playForward.bind(v(r)),r.callCallback=r.callCallback.bind(v(r)),r.blockWindowScroll=r.blockWindowScroll.bind(v(r)),r.state={cancelNextClick:!1,deltaX:0,deltaY:0,isBeingMouseDragged:!1,isBeingTouchDragged:!1,preventingVerticalScroll:!1,startX:0,startY:0},r.interval=null,r.isDocumentScrolling=null,r.moveTimer=null,r.originalOverflow=null,r.scrollParent=null,r.scrollStopTimer=null,r}L(n,i);var a=W(n);return D(n,[{key:"componentDidMount",value:function(){this.props.lockOnWindowScroll&&window.addEventListener("scroll",this.handleDocumentScroll,!1),(this.props.touchEnabled||this.props.preventVerticalScrollOnTouch)&&window.addEventListener("touchmove",this.blockWindowScroll,!1),document.documentElement.addEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.addEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.addEventListener("mouseup",this.handleOnMouseUp,!1),this.props.isPlaying&&this.play()}},{key:"componentDidUpdate",value:function(t){!t.isPlaying&&this.props.isPlaying&&this.play(),t.isPlaying&&!this.props.isPlaying&&this.stop(),!t.isPageScrollLocked&&this.props.isPageScrollLocked&&this.lockScroll(),t.isPageScrollLocked&&!this.props.isPageScrollLocked&&this.unlockScroll(),t.privateUnDisableAnimation===!1&&this.props.privateUnDisableAnimation===!0&&this.props.carouselStore.setStoreState({privateUnDisableAnimation:!1,disableAnimation:!1})}},{key:"componentWillUnmount",value:function(){document.documentElement.removeEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.removeEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.removeEventListener("mouseup",this.handleOnMouseUp,!1),window.removeEventListener("scroll",this.handleDocumentScroll,!1),window.removeEventListener("touchmove",this.blockWindowScroll,!1),this.stop(),window.cancelAnimationFrame.call(window,this.moveTimer),window.clearTimeout(this.scrollStopTimer),this.isDocumentScrolling=null,this.moveTimer=null,this.scrollStopTimer=null}},{key:"getSliderRef",value:function(t){this.sliderTrayElement=t}},{key:"fakeOnDragStart",value:function(t){var r=t.screenX,l=t.screenY,c=t.touchDrag,h=c!==void 0&&c,d=t.mouseDrag,m=d!==void 0&&d;this.props.carouselStore.setStoreState({isPlaying:!1}),window.cancelAnimationFrame.call(window,this.moveTimer),this.props.orientation==="vertical"&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),this.setState({isBeingTouchDragged:h,isBeingMouseDragged:m,startX:r,startY:l})}},{key:"fakeOnDragMove",value:function(t,r){var l=this;this.moveTimer=window.requestAnimationFrame.call(window,function(){l.setState(function(c){return{deltaX:t-c.startX,deltaY:r-c.startY,preventingVerticalScroll:Math.abs(r-c.startY)<=l.props.verticalPixelThreshold&&Math.abs(t-c.startX)>=l.props.horizontalPixelThreshold}})})}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),this.props.orientation==="vertical"&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(t,r){var l=this.props.trayProps;l&&typeof l[t]=="function"&&(r.persist(),l[t](r))}},{key:"handleOnMouseDown",value:function(t){if(!this.props.dragEnabled)return void this.callCallback("onMouseDown",t);t.preventDefault(),this.fakeOnDragStart({screenX:t.screenX,screenY:t.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",t)}},{key:"handleOnMouseMove",value:function(t){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),t.preventDefault(),this.fakeOnDragMove(t.screenX,t.screenY))}},{key:"handleOnMouseUp",value:function(t){this.state.isBeingMouseDragged&&(t.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(t){if(!this.state.cancelNextClick)return void this.callCallback("onClickCapture",t);t.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",t)}},{key:"handleOnTouchStart",value:function(t){if(!this.props.touchEnabled)return void this.callCallback("onTouchStart",t);this.props.orientation==="vertical"&&t.preventDefault();var r=t.targetTouches[0];this.fakeOnDragStart({screenX:r.screenX,screenY:r.screenY,touchDrag:!0}),this.callCallback("onTouchStart",t)}},{key:"handleDocumentScroll",value:function(){var t=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(function(){t.isDocumentScrolling=!1},66))}},{key:"handleOnTouchMove",value:function(t){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)return void this.callCallback("onTouchMove",t);window.cancelAnimationFrame.call(window,this.moveTimer);var r=t.targetTouches[0];r&&(this.fakeOnDragMove(r.screenX,r.screenY),this.callCallback("onTouchMove",t))}},{key:"forward",value:function(){var t=this.props,r=t.currentSlide,l=t.step,c=t.totalSlides,h=t.visibleSlides;return Math.min(r+l,c-h)}},{key:"backward",value:function(){var t=this.props,r=t.currentSlide,l=t.step;return Math.max(r-l,0)}},{key:"handleOnKeyDown",value:function(t){var r=t.keyCode,l=this.props,c=l.carouselStore,h=l.currentSlide,d=l.disableKeyboard,m=l.totalSlides,b=l.visibleSlides,g={};d===!0||m<=b||(r===37&&(t.preventDefault(),this.focus(),g.currentSlide=Math.max(0,h-1),g.isPlaying=!1),r===39&&(t.preventDefault(),this.focus(),g.currentSlide=Math.min(m-b,h+1),g.isPlaying=!1),c.setStoreState(g))}},{key:"playForward",value:function(){var t=this.props,r=t.carouselStore,l=t.currentSlide;r.setStoreState({currentSlide:this.forward()===l?0:this.forward()})}},{key:"playBackward",value:function(){var t=this.props,r=t.carouselStore,l=t.currentSlide,c=t.totalSlides,h=t.visibleSlides;r.setStoreState({currentSlide:this.backward()===l?c-h:this.backward()})}},{key:"play",value:function(){var t=this.props.playDirection;this.interval=setInterval(t==="forward"?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var t=new zi;this.scrollParent=t.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"blockWindowScroll",value:function(t){this.state.preventingVerticalScroll&&(t.preventDefault(),t.stopImmediatePropagation())}},{key:"computeCurrentSlide",value:function(){var t=n.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),r=n.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,t,this.props.dragStep),l=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),c=Oe({min:0,max:l,x:this.props.currentSlide+r});this.props.infinite&&(this.props.currentSlide>=l&&r>0&&(c=0),this.props.currentSlide===0&&r<0&&(c=l)),this.props.carouselStore.setStoreState({currentSlide:c})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(t){this.endTouchMove(),this.callCallback("onTouchEnd",t)}},{key:"handleOnTouchCancel",value:function(t){this.endTouchMove(),this.callCallback("onTouchCancel",t)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var t=this.props,r=t.hasMasterSpinner,l=t.masterSpinnerFinished,c=t.spinner;return r&&!l?(typeof this.props.onMasterSpinner=="function"&&this.props.onMasterSpinner(),p.createElement("div",{className:C([U.masterSpinnerContainer,"carousel__master-spinner-container"])},c&&c(),!c&&p.createElement(Ct,null))):null}},{key:"render",value:function(){var t=this,r=this.props,l=r.ariaLabel,c=(r.carouselStore,r.children),h=r.className,d=r.classNameAnimation,m=r.classNameTray,b=r.classNameTrayWrap,g=r.currentSlide,y=r.disableAnimation,_=(r.disableKeyboard,r.dragEnabled,r.hasMasterSpinner,r.interval,r.isPageScrollLocked,r.isPlaying,r.lockOnWindowScroll,r.masterSpinnerFinished,r.moveThreshold,r.naturalSlideHeight),I=r.naturalSlideWidth,k=(r.onMasterSpinner,r.orientation),O=(r.playDirection,r.privateUnDisableAnimation,r.slideSize),$=r.slideTraySize,re=(r.spinner,r.style),X=r.tabIndex,j=(r.totalSlides,r.touchEnabled,r.trayProps),z=r.trayTag,me=r.visibleSlides,Fe=r.isIntrinsicHeight,Y=E(r,Ui),qe=x({},re),J={};k==="vertical"&&(J.height=0,J.paddingBottom=q(100*_*me/I),J.width=q(100));var B={},fe=q(O*g*-1);(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||y)&&(B.transition="none"),Fe&&(B.display="flex",B.alignItems="stretch"),k==="vertical"?(B.transform="translateY(".concat(fe,") translateY(").concat(this.state.deltaY,"px)"),B.width=q(100),B.flexDirection="column"):(B.width=q($),B.transform="translateX(".concat(fe,") translateX(").concat(this.state.deltaX,"px)"),B.flexDirection="row");var ae=C([k==="vertical"?U.verticalSlider:U.horizontalSlider,"carousel__slider",k==="vertical"?"carousel__slider--vertical":"carousel__slider--horizontal",h]),Nt=C([U.sliderTrayWrap,"carousel__slider-tray-wrapper",k==="vertical"?U.verticalSlideTrayWrap:U.horizontalTrayWrap,k==="vertical"?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",b]),At=C([U.sliderTray,d||U.sliderAnimation,"carousel__slider-tray",k==="vertical"?U.verticalTray:U.horizontalTray,k==="vertical"?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",m]),Ot=X!==null?X:0,Et=(Y.dragStep,Y.step,Y.infinite,Y.preventVerticalScrollOnTouch,Y.preventingVerticalScroll,Y.horizontalPixelThreshold,Y.verticalPixelThreshold,E(Y,$i)),It=(j.className,j.onClickCapture,j.onMouseDown,j.onTouchCancel,j.onTouchEnd,j.onTouchMove,j.onTouchStart,j.ref,j.style,E(j,Vi));return p.createElement("div",x({ref:function(Pt){t.sliderElement=Pt},className:ae,"aria-live":"polite","aria-label":l,style:qe,tabIndex:Ot,onKeyDown:this.handleOnKeyDown,role:"listbox"},Et),p.createElement("div",{className:Nt,style:J},p.createElement(z,x({ref:this.getSliderRef,className:At,style:B,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},It),c),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(t,r,l,c){return(t==="horizontal"?r:l)/c}},{key:"slidesMoved",value:function(t,r,l,c,h,d){var m=r==="horizontal"?l:c,b=Math.abs(Math.round(m/h)),g=Math.abs(m)>=h*t?d:0,y=Math.max(g,b);if(m<0)return y;var _=-y;return _===0?0:_}}]),n}(p.Component),S(Ne,"propTypes",{ariaLabel:s.string,carouselStore:s.object.isRequired,children:s.node.isRequired,className:s.string,classNameAnimation:s.string,classNameTray:s.string,classNameTrayWrap:s.string,currentSlide:s.number.isRequired,disableAnimation:s.bool,disableKeyboard:s.bool,dragEnabled:s.bool.isRequired,dragStep:s.number,hasMasterSpinner:s.bool.isRequired,infinite:s.bool,interval:s.number.isRequired,isPageScrollLocked:s.bool.isRequired,isPlaying:s.bool.isRequired,lockOnWindowScroll:s.bool.isRequired,preventVerticalScrollOnTouch:s.bool,horizontalPixelThreshold:s.number,verticalPixelThreshold:s.number,masterSpinnerFinished:s.bool.isRequired,moveThreshold:s.number,naturalSlideHeight:s.number.isRequired,naturalSlideWidth:s.number.isRequired,onMasterSpinner:s.func,orientation:P.orientation.isRequired,playDirection:P.direction.isRequired,privateUnDisableAnimation:s.bool,slideSize:s.number.isRequired,slideTraySize:s.number.isRequired,spinner:s.func,step:s.number.isRequired,style:s.object,tabIndex:s.number,totalSlides:s.number.isRequired,touchEnabled:s.bool.isRequired,trayProps:s.shape({className:s.string,onClickCapture:s.func,onMouseDown:s.func,onTouchCancel:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,ref:s.shape({}),style:s.string}),trayTag:s.string,visibleSlides:s.number,isIntrinsicHeight:s.bool}),S(Ne,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,preventVerticalScrollOnTouch:!0,horizontalPixelThreshold:15,verticalPixelThreshold:10,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,spinner:null,style:{},tabIndex:null,trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),Ne),Er=H(Gi,function(i){return{currentSlide:i.currentSlide,disableAnimation:i.disableAnimation,privateUnDisableAnimation:i.privateUnDisableAnimation,disableKeyboard:i.disableKeyboard,dragEnabled:i.dragEnabled,hasMasterSpinner:i.hasMasterSpinner,infinite:i.infinite,interval:i.interval,isPageScrollLocked:i.isPageScrollLocked,isPlaying:i.isPlaying,lockOnWindowScroll:i.lockOnWindowScroll,preventingVerticalScroll:i.preventingVerticalScroll,masterSpinnerFinished:i.masterSpinnerFinished,naturalSlideHeight:i.naturalSlideHeight,naturalSlideWidth:i.naturalSlideWidth,orientation:i.orientation,playDirection:i.playDirection,slideSize:i.slideSize,slideTraySize:i.slideTraySize,step:i.step,dragStep:i.dragStep,totalSlides:i.totalSlides,touchEnabled:i.touchEnabled,visibleSlides:i.visibleSlides,isIntrinsicHeight:i.isIntrinsicHeight}}),se={},ut;function Ki(){if(ut)return se;ut=1;var i=Me(),n=De();Object.defineProperty(se,"__esModule",{value:!0}),se.default=void 0;var a=n(Pe()),t=i(Le()),r=(0,t.default)(a.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");return se.default=r,se}var Zi=Ki();const Ir=Re(Zi);var le={},pt;function Qi(){if(pt)return le;pt=1;var i=Me(),n=De();Object.defineProperty(le,"__esModule",{value:!0}),le.default=void 0;var a=n(Pe()),t=i(Le()),r=(0,t.default)(a.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");return le.default=r,le}var Xi=Qi();const Pr=Re(Xi);var ce={},mt;function Ji(){if(mt)return ce;mt=1;var i=Me(),n=De();Object.defineProperty(ce,"__esModule",{value:!0}),ce.default=void 0;var a=n(Pe()),t=i(Le()),r=(0,t.default)(a.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");return ce.default=r,ce}var en=Ji();const Rr=Re(en);var de={},ft;function tn(){if(ft)return de;ft=1;var i=Me(),n=De();Object.defineProperty(de,"__esModule",{value:!0}),de.default=void 0;var a=n(Pe()),t=i(Le()),r=(0,t.default)(a.createElement("path",{d:"M8 5v14l11-7z"}),"PlayArrow");return de.default=r,de}var nn=tn();const Mr=Re(nn),Qe="yc_library_watch_history",Tt="yc_library_visit_count",_t="yc_library_last_article_visit",Dr=i=>{localStorage.setItem(_t,i)},Lr=()=>localStorage.getItem(_t)||"",rn=()=>{const i=localStorage.getItem(Tt);return i?parseInt(i,10):0},Wr=()=>{const i=rn()+1;localStorage.setItem(Tt,i.toString())};function Ye(){const i=localStorage.getItem(Qe);return i?JSON.parse(i):{}}const Yr=(i,n,a)=>{const t=Ye();t[i.slug]={seconds:n,finished:a,article:i,updatedAt:new Date},localStorage.setItem(Qe,JSON.stringify(t))},an=()=>{localStorage.removeItem(Qe)},Fr=i=>{const n=Ye()[i];return(n==null?void 0:n.seconds)||0},qr=()=>Object.values(Ye()).sort((i,n)=>i.updatedAt>n.updatedAt?-1:1).map(i=>({...i.article,video_progress_seconds:i.seconds})),jr=async()=>{const i=Object.values(Ye()).sort((a,t)=>a.updatedAt>t.updatedAt?-1:1).map(a=>({id:a.article.id,seconds:a.seconds,finished:a.finished}));if(!i.length)return;(await Rt("/library/record-watch-history",{method:"POST",body:JSON.stringify(i)})).ok&&(an(),location.reload())},on=["#","<","[<","![","-","*",...[...Array(20).keys()].map(i=>`${i}.`)],gt=i=>!!i&&on.some(n=>i==null?void 0:i.trim().startsWith(n)),Br=i=>{const n=i.split(`

`),a=n.splice(5);let t=!1;for(;!t&&a.length>0;){const r=n[n.length-1],l=a[0],c=gt(r),h=gt(l);c||h?n.push(a.shift()):t=!0}return[n.join(`

`),a.join(`

`)]},sn="/vite/assets/img-home-header-stripe-BaxUe-oY.png",ln="/vite/assets/yc-home-header-02-N0drq3of.png",cn="/vite/assets/img-home-header-plangrid-uSOfi43P.png",dn="/vite/assets/yc-home-waas-airbnb-01-B6fsTzve.png",hn="/vite/assets/yc-home-waas-instacart-01-8zyClIgY.png",un=i=>w.createElement("svg",{width:"51px",height:"35px",viewBox:"0 0 51 35",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...i},w.createElement("title",null,"Group 8"),w.createElement("g",{id:"Redesign",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},w.createElement("g",{id:"yc-home-01",transform:"translate(-172.000000, -5425.000000)"},w.createElement("g",{id:"Group-8",transform:"translate(172.000000, 5425.000000)"},w.createElement("circle",{id:"Oval-Copy-5",fill:"#F3EDD3",cx:17.1780822,cy:17.1780822,r:17.1780822}),w.createElement("g",{id:"Group-7",transform:"translate(18.830065, 7.000000)",fill:"#F3AA67"},w.createElement("path",{d:"M15.1247686,25 L15.1247686,7.10839844 C11.8986944,2.36946615 8.02052058,0 3.49024714,0 C3.49854792,0.0190429688 3.45582331,18.7565918 3.49024714,18.838623 C7.36388292,18.838623 11.2420567,20.8924154 15.1247686,25 Z",id:"Path-6"}),w.createElement("path",{d:"M28.1247686,25 L28.1247686,7.10839844 C24.8986944,2.36946615 21.0205206,0 16.4902471,0 C16.4985479,0.0190429688 16.4558233,18.7565918 16.4902471,18.838623 C20.3638829,18.838623 24.2420567,20.8924154 28.1247686,25 Z",id:"Path-6-Copy",transform:"translate(22.300701, 12.500000) scale(-1, 1) translate(-22.300701, -12.500000) "}),w.createElement("path",{d:"M1.71583308,4.24902344 L0,4.74462891 L0,24.1152344 C5.15072466,22.6261638 9.34612279,22.7940512 12.5861944,24.6188965 C12.5637335,24.5820313 8.13868464,19.6469727 2.11085261,20.0407715 C2.06804662,20.0812988 1.93637344,14.8173828 1.71583308,4.24902344 Z",id:"Path-7"}),w.createElement("path",{d:"M20.7158331,4.24902344 L19,4.74462891 L19,24.1152344 C24.1507247,22.6261638 28.3461228,22.7940512 31.5861944,24.6188965 C31.5637335,24.5820313 27.1386846,19.6469727 21.1108526,20.0407715 C21.0680466,20.0812988 20.9363734,14.8173828 20.7158331,4.24902344 Z",id:"Path-7-Copy",transform:"translate(25.293097, 14.433960) scale(-1, 1) translate(-25.293097, -14.433960) "})))))),pn=i=>w.createElement("svg",{width:"42px",height:"35px",viewBox:"0 0 42 35",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...i},w.createElement("title",null,"Group 6"),w.createElement("defs",null,w.createElement("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"100%",id:"linearGradient-1"},w.createElement("stop",{stopColor:"#F3AA67",offset:"0%"}),w.createElement("stop",{stopColor:"#EEBD5F",offset:"100%"}))),w.createElement("g",{id:"Redesign",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},w.createElement("g",{id:"yc-home-01",transform:"translate(-575.000000, -5425.000000)"},w.createElement("g",{id:"Group-6",transform:"translate(575.000000, 5425.000000)"},w.createElement("circle",{id:"Oval-Copy-4",fill:"#F3EDD3",cx:17.1780822,cy:17.1780822,r:17.1780822}),w.createElement("g",{id:"Group-3",transform:"translate(17.000000, 9.000000)"},w.createElement("rect",{id:"Rectangle-Copy-2",fill:"url(#linearGradient-1)",x:0,y:0,width:25,height:25}),w.createElement("path",{d:"M5.73776908,17 L5.73776908,13.8352941 L9.11937378,13.8352941 L9.11937378,17 L10.8571429,17 L10.8571429,9 L9.11937378,9 L9.11937378,12.1647059 L5.73776908,12.1647059 L5.73776908,9 L4,9 L4,17 L5.73776908,17 Z M14.8455598,17 L14.8455598,12.0352941 L18.5868726,17 L20,17 L20,9 L18.2972973,9 L18.2972973,13.9764706 L14.5444015,9 L13.1428571,9 L13.1428571,17 L14.8455598,17 Z",id:"HN-Copy",fill:"#FFFFFF",fillRule:"nonzero"})))))),mn=i=>w.createElement("svg",{width:"42px",height:"35px",viewBox:"0 0 42 35",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...i},w.createElement("title",null,"Group 2"),w.createElement("g",{id:"Redesign",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},w.createElement("g",{id:"yc-home-01",transform:"translate(-966.000000, -5419.000000)"},w.createElement("g",{id:"Group-2",transform:"translate(966.000000, 5419.000000)"},w.createElement("circle",{id:"Oval-Copy-4",fill:"#F3EDD3",cx:17.1780822,cy:17.1780822,r:17.1780822}),w.createElement("rect",{id:"Rectangle-Copy",fill:"#F3AA67",x:18,y:10.4241164,width:23.5758836,height:23.5758836,rx:3}),w.createElement("path",{d:"M27.0248963,28 C27.4149378,28 27.7904564,27.9446721 28.1514523,27.8340164 C28.5124481,27.7233607 28.8298755,27.5594262 29.1037344,27.3422131 C29.3775934,27.125 29.5954357,26.8565574 29.7572614,26.5368852 C29.9190871,26.2172131 30,25.8483607 30,25.4303279 C30,24.8893443 29.8547718,24.4221311 29.5643154,24.0286885 C29.2738589,23.6352459 28.846473,23.397541 28.2821577,23.3155738 L28.2821577,23.3155738 L28.2821577,23.2909836 C28.7551867,23.1762295 29.1244813,22.9364754 29.3900415,22.5717213 C29.6556017,22.2069672 29.7883817,21.7909836 29.7883817,21.3237705 C29.7883817,20.9385246 29.7116183,20.6004098 29.5580913,20.3094262 C29.4045643,20.0184426 29.1991701,19.7766393 28.9419087,19.5840164 C28.6846473,19.3913934 28.3858921,19.2459016 28.0456432,19.147541 C27.7053942,19.0491803 27.3443983,19 26.9626556,19 C26.6390041,19 26.3278008,19.0368852 26.0290456,19.1106557 C25.7302905,19.1844262 25.4564315,19.2971311 25.2074689,19.4487705 C24.9585062,19.6004098 24.7427386,19.795082 24.560166,20.0327869 C24.3775934,20.2704918 24.2365145,20.5491803 24.1369295,20.8688525 L24.1369295,20.8688525 L25.7178423,21.2868852 C25.8257261,20.9836066 25.9979253,20.7479508 26.2344398,20.579918 C26.4709544,20.4118852 26.7385892,20.3278689 27.0373444,20.3278689 C27.4107884,20.3278689 27.7136929,20.4344262 27.9460581,20.647541 C28.1784232,20.8606557 28.2946058,21.1352459 28.2946058,21.4713115 C28.2946058,21.7336066 28.2448133,21.942623 28.1452282,22.0983607 C28.0456432,22.2540984 27.9149378,22.3729508 27.753112,22.454918 C27.5912863,22.5368852 27.4087137,22.5901639 27.2053942,22.6147541 C27.0020747,22.6393443 26.7925311,22.6516393 26.5767635,22.6516393 L26.5767635,22.6516393 L26.1908714,22.6516393 L26.1908714,23.9795082 L26.5518672,23.9795082 C26.7759336,23.9795082 27.0041494,23.9959016 27.2365145,24.0286885 C27.4688797,24.0614754 27.6784232,24.125 27.8651452,24.2192623 C28.0518672,24.3135246 28.2053942,24.4487705 28.3257261,24.625 C28.4460581,24.8012295 28.5062241,25.0286885 28.5062241,25.307377 C28.5062241,25.5122951 28.466805,25.6987705 28.3879668,25.8668033 C28.3091286,26.0348361 28.2012448,26.1782787 28.0643154,26.2971311 C27.9273859,26.4159836 27.7697095,26.5081967 27.5912863,26.5737705 C27.4128631,26.6393443 27.2240664,26.6721311 27.0248963,26.6721311 C26.626556,26.6721311 26.3112033,26.5737705 26.0788382,26.3770492 C25.846473,26.1803279 25.6846473,25.9016393 25.593361,25.5409836 L25.593361,25.5409836 L24,25.9590164 C24.0995851,26.3196721 24.2448133,26.6290984 24.4356846,26.8872951 C24.626556,27.1454918 24.8526971,27.3565574 25.1141079,27.5204918 C25.3755187,27.6844262 25.6680498,27.8053279 25.9917012,27.8831967 C26.3153527,27.9610656 26.659751,28 27.0248963,28 Z M35,28 L35,19 L33.6501548,19 L31,21.2627119 L31.8668731,22.3177966 L33.5139319,20.7542373 L33.5139319,28 L35,28 Z",id:"31-copy",fill:"#FFFFFF",fillRule:"nonzero"}),w.createElement("rect",{id:"Rectangle-Copy-3",stroke:"#F6F6EF",fill:"#F3AA67",x:20.7640333,y:7.5,width:5.37498599,height:6.85862786,rx:2}),w.createElement("rect",{id:"Rectangle-Copy-4",stroke:"#F6F6EF",fill:"#F3AA67",x:32.6397098,y:7.5,width:5.37498599,height:6.85862786,rx:2})))));function yt({cardsData:i,generator:n}){const a=i.length>=3&&"md:w-1/3";return e("div",{className:"mt-4 flex flex-col gap-4 md:mt-8 md:flex-row md:justify-around md:gap-8",children:i.slice(0,3).map(t=>e("div",{className:Q("flex items-stretch rounded bg-white shadow",a),children:n(t)},t.key))})}const fn=p.memo(({logos:i,grayOnHover:n,className:a})=>e("div",{className:Q("ycdc-logo-grid items-center justify-evenly overflow-hidden bg-white",a),children:i.map(t=>e("a",{className:"inline-block px-3 py-5 md:px-5 md:py-7",href:t.url,target:"_blank",children:e("img",{className:Q("h-auto w-[65px] object-contain sm:w-[75px] md:h-[35px] md:w-[110px]",n&&"hover:grayscale hover:filter"),width:"110",height:"35",src:t.image,title:t.name,alt:t.name})},t.name))})),gn={md:"md:gap-8",lg:"md:gap-12"};function yn({stats:i,gapClass:n="md",className:a,...t}){return e("div",{className:Q("space-y-4 md:grid md:grid-cols-3 md:space-y-0",gn[n],a),...t,children:i.slice(0,3).map(r=>e("p",{className:"mx-auto md:mt-0",children:r.content},r.key))})}const bn=[{key:"unicorns",content:e(K,{children:"60+ Billion Dollar Companies"})},{key:"founders",content:e(K,{children:"7,000+ Founders"})},{key:"valuation",content:e(K,{children:"600B+ Combined Valuation"})}],vn=[{key:2,iconUrl:un,title:"Startup Library",description:"Search a collection of free content that answers a wide range of questions about starting a startup.",link:{...u.LIBRARY,name:"View the YC Startup Library"}},{key:1,iconUrl:pn,title:"Hacker News",description:"The #1 site to find the latest tech news, technology discussions, and startup launches.",link:{...u.HACKER_NEWS,name:"Check out Hacker News",target:"_blank"}},{key:3,iconUrl:mn,title:"Events",description:"From job fairs to conferences for aspiring founders, we host events that bring together the broader startup community.",link:{...u.BLOG_EVENTS_TAG,name:"View Events"}}];function wn({blogPosts:i,featuredBlogPost:n,startupLogos:a,featuredJobPostings:t}){const{applyBatchShort:r,applyDeadlineShort:l}=p.useContext(Mt),c=p.useMemo(()=>i.slice(0,3).map(d=>e(Dt,{post:d},d.id)),[i]),h=p.useMemo(()=>t.slice(0,3).map(d=>({...d,key:d.id})),[t]);return o(A,{children:[o(f,{topSize:"lg",bottomSize:"xl",children:[e(Ae,{marginTop:"none",noProse:!0,contentSize:6,content:o(K,{children:[e(ne,{children:"We help founders build the great companies of the next 100 years."}),e(T,{children:e("p",{children:"Y Combinator gives startups access to the best community of founders, advice, hiring and funding. Learn more about the YC batch program and what happens at YC."})}),o("div",{className:"mt-8 sm:mx-auto sm:max-w-lg sm:text-center lg:mx-0 lg:text-left",children:[o("div",{className:"space-x-2",children:[e(Z,{className:"ycdc-btn ycdc-btn-lg",link:u.PROGRAM_APPLY,children:"Apply Now"}),e(Z,{className:"ycdc-btn ycdc-btn-lg ycdc-btn-link",link:u.RETRO_ABOUT,children:"Learn More"})]}),o("p",{className:"mt-3 text-base text-gray-700",children:[e("strong",{className:"font-medium",children:r})," Application Deadline -"," ",e("strong",{className:"font-medium",children:l})]})]})]}),media:o("div",{className:"flex flex-row flex-nowrap justify-center lg:justify-end",children:[e("figure",{className:"",children:e("img",{className:"overflow-hidden rounded-lg shadow-lg",src:sn,alt:""})}),e("figure",{className:"z-10 -ml-56 pt-56",children:e("img",{className:"overflow-hidden rounded-lg shadow-lg",src:cn,alt:""})}),e("figure",{className:"-ml-24",children:e("img",{className:"overflow-hidden rounded-lg shadow-lg",src:ln,alt:""})})]})}),e(yn,{stats:bn,className:"my-8 text-2xl font-medium text-gray-700"}),e("figure",{className:"mt-8",children:e(fn,{logos:a,grayOnHover:!0})}),e(V,{links:[{text:"See all companies",href:u.COMPANIES_DIRECTORY.href},{text:"Top companies list",href:u.COMPANIES_TOP.href},{text:"Work at a YC Company",href:u.WORK_AT_A_STARTUP.href,target:"_blank"}]})]}),o(f,{className:"bg-beige",topSize:"xl",children:[e(ue,{className:"mx-auto text-center tracking-tight",children:"YC helps startups from idea to IPO"}),e(Ae,{noProse:!0,contentSize:5,content:o(K,{children:[e(he,{children:"Startup School"}),o(T,{children:[o("h2",{children:["Learn the basics of starting a company with ",e(Z,{className:"!no-underline",link:u.STARTUP_SCHOOL,children:"Startup School"}),"."]}),e("p",{children:"Our free online program and community of founders will help you learn about startups, build a product, and track growth."})]}),e(V,{links:[{text:"Sign up for Startup School",href:u.STARTUP_SCHOOL.href,target:"_blank"},{text:"Learn more",href:u.STARTUP_SCHOOL.href,target:"_blank"}]})]}),media:e("div",{className:"mx-auto max-w-[480px]",children:o("div",{className:"relative w-full overflow-hidden pt-[56.25%]",children:[e("iframe",{width:"480",height:"270",className:"absolute inset-0 h-full w-full",src:"https://www.youtube-nocookie.com/embed/C27RVio2rOs",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),e("div",{className:"mt-1 text-center text-sm",children:"Startup School Overview"})]})})})]}),o(f,{className:"bg-beige",children:[e(Ae,{noProse:!0,contentSize:6,content:o(K,{children:[e(he,{children:"Work at a Startup"}),o(T,{children:[e("h2",{children:"Be the first employee at the next Airbnb, Stripe, or Coinbase."}),o("p",{children:["Apply to top YC startups with a single profile and connect directly with founders through YC’s ",e(Z,{link:u.STARTUP_JOBS,children:"Work at a Startup"}),"."]})]}),e(V,{links:[{text:"View all YC startup jobs",href:u.STARTUP_JOBS.href},{text:"Create a profile",href:u.EXT_WAAS_APPLICATION.href,target:"_blank"}]})]}),media:o("div",{className:"flex flex-row flex-nowrap justify-center lg:-mt-10",children:[o("figure",{className:"",children:[e("img",{className:"overflow-hidden rounded-lg shadow-lg",src:hn,alt:""}),e("figcaption",{children:"Instacart 2014"})]}),o("figure",{className:"-ml-16 pt-32",children:[e("img",{className:"overflow-hidden rounded-lg shadow-lg",src:dn,alt:""}),e("figcaption",{children:"Airbnb 2009"})]})]})}),e("h3",{className:"mt-2 text-lg font-semibold",children:"Latest jobs from YC startups"}),o("div",{className:"mt-4",children:[e("div",{className:"mb-2 font-semibold text-gray-500 lg:hidden",children:"Featured Jobs"}),e(yt,{cardsData:h,generator:d=>o("div",{className:"relative w-full p-6",children:[o("div",{className:"flex items-center gap-x-2",children:[e("figure",{className:"shrink-0",children:e("img",{className:"h-8 w-8 rounded-full",src:d.companyLogoUrl,alt:""})}),o("div",{className:"font-semibold",children:[d.companyName," (",d.companyBatchName,")"]})]}),e("div",{className:"mt-2 font-semibold",children:e("a",{href:d.url,children:d.title})}),e("div",{className:"text-sm text-gray-700",children:d.location}),d.seeMoreLink&&e(V,{className:"absolute top-full",links:[{href:d.seeMoreLink.path,text:d.seeMoreLink.text}]})]})})]})]}),(n||c.length>0)&&o(f,{topSize:"xl",children:[e(ue,{className:"mx-auto text-center tracking-tight",children:"Latest News"}),o("div",{className:"space-y-8",children:[n&&e(Lt,{post:n}),c.length>0&&o("div",{children:[e(he,{children:"Recent Posts"}),e("div",{className:"mx-auto mt-8 grid max-w-lg gap-9 lg:max-w-none lg:grid-cols-3",children:c}),e(V,{links:[{text:"View the latest news at Y Combinator",href:u.BLOG.href}]})]})]})]}),o(f,{children:[e(he,{children:"Y Combinator Resources"}),e(ue,{className:"max-w-4xl",children:"We’ve built these free resources for aspiring founders."}),e(yt,{cardsData:vn,generator:d=>o("div",{className:"px-8 py-4",children:[e("img",{className:"h-12 w-12",src:d.iconUrl,alt:""}),e("div",{className:"mt-2 font-semibold",children:d.title}),e("div",{className:"mt-2 flex-1 font-light text-gray-700",children:d.description}),e("div",{className:"mt-4 font-semibold text-linkColor",children:e("a",{href:d.link.href,children:d.link.name})})]})})]})]})}const Hr=N(wn),Sn=2,kn=3,xn=[{title:"Contents",name:"contents",entries:[{title:"Downloads",elemId:"downloads"},{title:"About the Safe",elemId:"about"}]},{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"Template Sales and Cloud Service Agreements",href:u.SALES_AGREEMENT.href},{title:"Series A Term Sheet Template",href:u.SERIES_A_TERMSHEET.href},{title:"About Y Combinator",href:u.RETRO_ABOUT.href},{title:"Frequently Asked Questions",href:u.RETRO_FAQ.href},{title:"Handshake Deal Protocol",href:u.HANDSHAKE_DEAL.href}]}];function Cn({docLinks:i,nonUSDocLinks:n,userGuideLink:a}){return o(A,{children:[o(f,{children:[e("h1",{className:"ycdc-page-title",children:"Safe Financing Documents"}),e("div",{className:"ycdc-page-updated",children:"By Carolynn Levy"})]}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[e("div",{children:o(T,{className:"mb-8 lg:mb-12",children:[e("h3",{id:"downloads",children:"Download the Safe"}),e("p",{children:e("strong",{children:"US companies"})}),e("p",{children:"There are three versions of the post-money safe intended for use by US companies, plus an optional side letter."}),e("ul",{children:i.map(([t,r,l,c])=>e("li",{children:e("a",{href:l,download:c,children:r})},t))}),e("p",{children:e("strong",{children:"Non-US companies"})}),e("p",{children:"There is one version of the post-money safe, Valuation Cap (no discount), intended for use by companies formed in Canada, Cayman and Singapore, plus an optional side letter for each country. Before using any of these international forms, you should consult with a lawyer licensed in the relevant country."}),e("ul",{children:n.map(([t,r,l,c])=>e("li",{children:e("a",{href:l,download:c,children:r})},t))}),e("h3",{id:"about",children:"About the Safe"}),e("p",{className:"lead",children:"Y Combinator introduced the safe (simple agreement for future equity) in late 2013, and since then, it has been used by almost all YC startups and countless non-YC startups as the main instrument for early-stage fundraising."}),e("p",{children:"Our first safe was a “pre-money” safe, because at the time of its introduction, startups were raising smaller amounts of money in advance of raising a priced round of financing (typically, a Series A Preferred Stock round). The safe was a simple and fast way to get that first money into the company, and the concept was that holders of safes were merely early investors in that future priced round. But early stage fundraising evolved in the years following the introduction of the original safe, and now startups are raising much larger amounts of money as a first “seed” round of financing. While safes are being used for these seed rounds, these rounds are really better considered as wholly separate financings, rather than “bridges” into later priced rounds."}),e("p",{children:"In 2018 we released the “post-money” safe. By “post-money,” we mean that safe holder ownership is measured after (post) all the safe money is accounted for - which is its own round now - but still before (pre) the new money in the priced round that converts and dilutes the safes (usually the Series A, but sometimes Series Seed). The post-money safe has what we think is a huge advantage for both founders and investors - the ability to calculate immediately and precisely how much ownership of the company has been sold. It’s critically important for founders to understand how much dilution is caused by each safe they sell, just as it is fair for investors to know how much ownership of the company they have purchased."}),e("p",{children:"The safe has two fundamental features that are critically important for startups:"}),o("ul",{children:[o("li",{children:["It allows for"," ",e("a",{href:u.PG_HIGH_RESOLUTION_FUNDING.href,target:"_blank",children:"high resolution fundraising"}),". Startups can close with an investor as soon as both parties are ready to sign and the investor is ready to wire money, instead of trying to coordinate a single close with all investors simultaneously. In fact, high resolution fundraising may be much easier now that both founders and investors have more certainty and transparency into what each side is giving and getting."]}),e("li",{children:"As a flexible, one-document security without numerous terms to negotiate, safes save startups and investors money in legal fees and reduce the time spent negotiating the terms of the investment. Startups and investors will usually only have to negotiate one item: the valuation cap. Because a safe has no expiration or maturity date, there should be no time or money spent dealing with extending maturity dates, revising interest rates or the like."})]}),o("p",{children:["Whether you are using the safe for the first time or are already familiar with safes, we recommend reviewing our"," ",e("a",{href:a[Sn],download:a[kn],children:"Safe User Guide"})," ","(geared primarily at US companies). The Safe User Guide explains how the safe converts, with sample calculations, an explanation of the pro rata side letter, and suggestions for best use."]}),e("p",{children:"While the safe may not be suitable for all financing situations, the terms are intended to be balanced, taking into account both the startup’s and the investors’ interests. There is a trade-off between simplicity and comprehensiveness, so while not every edge case is addressed, we believe the safe covers the most pertinent and common issues. Both parties are encouraged to have their lawyers review the safe if they want to, but we believe it provides a starting point that can be used in most situations, without modifications. We hold this belief because of our firsthand experience seeing and helping hundreds of companies fundraise every year, as well as the thoughtful feedback we received from the founders, investors, lawyers and accountants with whom we have shared drafts of every iteration of the safe."}),e("p",{className:"font-semibold italic",children:"Needless to say, YC does not assume responsibility for the contents of, or the consequence of using, any version of the safe or any other document found on our website. Before using any of these forms, you should consult with a lawyer licensed in the country where your company was formed."})]})}),e(R,{expandable:!1,highlightVisible:!1,sections:xn})]})})]})}const zr=N(Cn),Tn=[{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"The YC Safe",href:u.SAFE_DOCUMENTS.href},{title:"About Y Combinator",href:u.RETRO_ABOUT.href},{title:"Handshake Deal Protocol",href:u.HANDSHAKE_DEAL.href}]}];function _n({salesAgreementDoc:i,commonPaperSalesAgreementDoc:n}){return o(A,{children:[e(f,{children:e("h1",{className:"ycdc-page-title",children:"Template Sales Contracts: original Sales Agreement and new Cloud Service Agreement"})}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[o(T,{className:"mb-8 lg:mb-12",children:[e("p",{children:"Since 2015, YC has provided a free, downloadable template Sales Agreement to give any software-as-a-service startup a leg-up on papering its first SaaS sales agreement. That agreement is available here:"}),e("ul",{children:e("li",{children:e("a",{href:i.href,download:i.download_name,children:i.title})})}),e("p",{children:"You should consider the Sales Agreement as a starting point and customize it to meet your needs - we’ve highlighted the areas that, in our experience, are most likely to vary from startup to startup."}),o("p",{children:["Today, if you would like an even more comprehensive and customizable SaaS sales agreement, Common Paper (a Winter 2023 YC portfolio company) has released a Cloud Service Agreement. For startups that would like more guidance in tailoring the agreement, Common Paper provides"," ",e("a",{href:"https://commonpaper.com/standards/cloud-service-agreement/",children:"a free tool to customize the Cloud Service Agreement"})," ","by walking you through various contract terms, providing defaults or choices. For startups looking for a solid template agreement as a starting point, without additional guidance, a Word version of the Cloud Service Agreement is available:"]}),e("ul",{children:e("li",{children:e("a",{href:n.href,download:n.download_name,children:n.title})})}),e("p",{children:"Thanks to Goodwin Proctor for providing the original Sales Agreement. Needless to say, neither YC, Goodwin Proctor nor Common Paper assume responsibility for any consequences of using the Sales Agreement or the Cloud Service Agreement."})]}),e(R,{expandable:!1,highlightVisible:!1,sections:Tn})]})})]})}const Ur=N(_n),Nn=[{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"The YC Safe",href:u.SAFE_DOCUMENTS.href},{title:"About Y Combinator",href:u.RETRO_ABOUT.href},{title:"Template Sales and Cloud Service Agreements",href:u.SALES_AGREEMENT.href},{title:"Handshake Deal Protocol",href:u.HANDSHAKE_DEAL.href}]}];function An({seriesATSDoc:i}){return o(A,{children:[e(f,{children:e("h1",{className:"ycdc-page-title",children:"Series A Term Sheet Template"})}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[e("div",{children:o(T,{className:"mb-8 lg:mb-12",children:[e("h3",{children:"A Standard and Clean Series A Term Sheet"}),o("p",{className:"lead",children:["While working with companies in"," ",e("a",{href:u.LEGACY_YC_BLOG_SERIES_A.href,target:"_blank",children:"YC’s Series A program"})," ","we’ve noticed a common problem: founders don’t know what “good” looks like in a term sheet. This makes sense, because it is often, literally, the first time in their careers that they’ve seen one. This puts founders at a significant disadvantage because VCs see term sheets all the time and know what to expect. Because we’ve invested in so many founders over the years and have seen hundreds of Series A term sheets, we know what “good” looks like. We work with our founders to understand where terms diverge from “good”, what they can do about that divergence, and when and how it makes sense to negotiate."]}),e("p",{children:"Below is what a Series A term sheet looks like with standard and clean terms from a good Silicon Valley VC. Bracketed items (besides the names of the company and lead investor) are always or frequently negotiated. Items not in brackets are sometimes negotiated, but this has more to do with the idiosyncratic features of the company or the situation, and generally aren’t terms that parties intend to heavily bargain over during the negotiation."}),e("p",{children:"One of the critical things you’ll notice is that we didn’t put in standard pricing. While the lead in a Series A round generally wants 20% of the company, pricing can flex up and down depending on the leverage held by each side. We think price is an important term, but too specific to each raise to try to create a standard. We’re more concerned with terms around control and structure that are less familiar to founders, and therefore more prone to cause confusion and trouble."}),e("p",{children:"Note: this term sheet doesn’t belong to any particular VC -- we drafted it -- but it does substantively reflect what we see most often. Founders with a lot of negotiating leverage can sometimes do better, and the converse is true too."}),e("ul",{children:e("li",{children:e("a",{href:i.href,download:i.download_name,children:i.title})})}),o("p",{children:["It may be surprising to see everything covered in a single page.",e("sup",{id:"footnoteid1",children:e("a",{href:"#footnote1",children:"1"})})," ","This wasn’t always the case, but became common over the last decade as some investors decided to make their term sheets more user friendly by shortening the legalese as if to say, “We aren’t going to get bogged down in the minutiae. We’re going to make this easy, friendly, standard and fast.”"]}),e("p",{children:"This leads us to the most important thing to understand about the term sheet: it’s another way in which your Series A investor might be telling you something. A contract allocates risks between the parties, so the terms the investor insists on can sometimes say a lot about the investor’s perceived risks. These perceived risks show up in a couple of ways."}),o("p",{children:["The first way relates to control terms. We don’t mean the set of investor vetoes in the “Voting Rights” section, which are pretty standard fare,",e("sup",{id:"footnoteid2",children:e("a",{href:"#footnote2",children:"2"})})," ","but rather issues of board composition and the investor’s ability to block or dictate operational decisions made by the board. The board structure in this term sheet is founder-friendly because the founders retain board control 2-1.",e("sup",{id:"footnoteid3",children:e("a",{href:"#footnote3",children:"3"})})," ","The way in which founders most often lose control at the Series A is with a 2-2-1 board structure, i.e. 2 founders, 2 investors and an independent board member. The loss of board control is most significant because it means the founders can be fired from their own company.",e("sup",{id:"footnoteid4",children:e("a",{href:"#footnote4",children:"4"})})," ","Another way in which founders lose some control is a term that doesn’t appear in the standard example above, which is a separate provision that says the investor director’s approval is required for operational decisions like setting the annual budget, hiring/firing executives, pivoting the business, adding new lines of business, etc. When boards are set up to take power away from founders, the investor’s outward justification will frequently be reasons of governance or accountability. But the more power that’s taken away, the more it’s undeniable that the investor is attempting to structure away a perceived risk. So when an investor says that they’re committed to partnering with you for the long-term – or that they’re betting everything on you – but then tells you something else with the terms that they insist on, believe the terms."]}),o("p",{children:["The other way perceived risks manifest is if a term sheet includes non-standard or “dirty” economic terms. Here, the term sheet example is instructive not for what it contains but what it ",e("em",{children:"doesn’t"}),". Examples of such terms would be:"]}),o("ul",{children:[e("li",{children:"Liquidation preference greater than 1x — the investor gets back more than its invested capital first."}),e("li",{children:"Participating preferred — the investor double-dips by getting its money back plus its pro rata portion of exit proceeds, rather than choosing between the two."}),e("li",{children:"Cumulative dividends — the investor compounds its liquidation preference every year by X%, which increases the economic hurdle that has to be cleared before founders and employees see any value."}),e("li",{children:"Warrant coverage — the investor gets extra fully diluted ownership without paying for it at the agreed upon valuation."})]}),e("p",{children:"These are all ways of adding structure to reduce typical venture risk, either directly by boosting the investor’s downside economics, or indirectly by juicing the upside outcomes. The investor is essentially saying, “I’m sort of afraid of losing my money.” It can also foreshadow how they might behave when things aren’t going well, such as pushing you to sell when you don’t want to, or dial back risk when it’s important to take it. Good investors would rather address economic risks by negotiating valuation, and are otherwise happy to give standard terms because they know that the real money in venture is not made with structure, but by building long-term value, which they are confident in their ability to help you do."}),e("p",{children:"The last thing to remember is that your Series A documents are a foundation and precedent for the terms of future rounds. Good foundations make the next term sheet and financing round fast and simple, as future investors just step into the same straightforward terms. Doing the opposite complicates future fundraises, such as future investors asking for the same structure-heavy terms, existing investors refusing to drop terms that subsequent investors want removed as a precondition of investing, etc. Unwinding bad terms is difficult, and oftentimes impossible."}),e("p",{children:"That said, the point is to get a clean deal, not to cycle a lot to get the perfect deal. No one ever built an enduring company just by winning their Series A negotiation. Also, even if you can’t get everything right or the way you want it, you always have the power to execute. If you do that, the value you build can outrun suboptimal terms or establish leverage to renegotiate later. So don’t lose sight of the ultimate goal: closing fast and getting back to work."}),e("h3",{children:"Notes"}),o("ol",{children:[o("li",{id:"footnote1",children:["Some great investors still send longer term sheets, but this has more to do with their preference for going a bit deeper into the details at this stage, rather than deferring this until the definitive documents. The definitive documents are derived from the term sheet and are the much longer (100+ pages) binding contracts that everyone signs and closes on. It’s common to negotiate a few additional points at this stage, though deviation from anything explicitly addressed in the term sheet is definitely re-trading. Also, in a few places, this term sheet refers to certain terms as being “standard.” That may seem vague and circular, but term sheets frequently do describe certain terms that way. What that really means is that there’s an accepted practice of what appears in the docs for these terms among the lawyers who specialize in startups and venture deals, so make sure your lawyer (and the investor’s lawyer) fit that description.",e("a",{href:"#footnoteid1",children:"↩"})]}),o("li",{id:"footnote2",children:["The two most impactful investor vetoes in this section are the veto on a financing, which is covered by clauses (ii) and (iii), and the veto on a sale of the company, which is in clause (vii). We point these out because the concrete implications of these clauses aren’t facially obvious, and because most term sheets use similar technical jargon for these vetoes.",e("a",{href:"#footnoteid2",children:"↩"})]}),o("li",{id:"footnote3",children:["The founders implicitly control those 2 seats because they’re designated by a majority of common, and founders generally control a majority of common for a long time. In even more founder-friendly term sheets, those 2 seats may be designated by the founders themselves (as individuals).",e("a",{href:"#footnoteid3",children:"↩"})]}),o("li",{id:"footnote4",children:["Whether being fired from the company as an employee also triggers the removal of the founder from the board is a separate question and depends on what was negotiated in the financing documents. Sometimes a founder’s right to vote her shares to appoint a director will be conditioned on the founder being currently employed by the company. Whenever conditions are attached to your rights to vote on anything, make sure to ask your lawyer to walk you through the various scenarios in which those conditions matter and how they can hurt you.",e("a",{href:"#footnoteid4",children:"↩"})]})]}),e("em",{children:"This is not legal advice."})]})}),e(R,{expandable:!1,highlightVisible:!1,sections:Nn})]})})]})}const $r=N(An),On=[{title:"Contents",name:"contents",entries:[{title:"Intro",elemId:"intro"},{title:"The Problem",elemId:"problem"},{title:"The Protocol",elemId:"protocol"},{title:"Audit Trail",elemId:"audit"},{title:"Avoids Ambiguity",elemId:"ambiguity"}]},{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"About Y Combinator",href:u.RETRO_ABOUT.href},{title:"Frequently Asked Questions",href:u.RETRO_FAQ.href},{title:"Financing Documents",href:u.SAFE_DOCUMENTS.href}]}],te="toc-entry";function En(){return o(A,{children:[e(f,{children:e("h1",{className:"ycdc-page-title",children:"The Handshake Deal Protocol"})}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[e("div",{className:"space-y-8 lg:space-y-12",children:o(T,{children:[e("h3",{className:te,id:"intro",children:"Intro"}),e("p",{className:"lead",children:"Silicon Valley runs on handshake deals. A handshake deal is a verbal commitment to a transaction. The actual transaction comes later, when documents are signed and money changes hands."}),e("p",{children:"Why do we need handshake deals? Why not just wait till the actual transaction? Because things can happen fast in the startup world."}),e("p",{children:"So both investors and founders need a way to reserve space in a transaction. Founders need it because creating documents and getting them signed would slow down their fundraising, and investors need it because if they had to wait for documents to get created and signed before they could commit, they'd miss out on the hotter deals."}),e("p",{children:"Handshake deals are not unique to Silicon Valley of course. They tend to arise wherever trust is sufficiently high and speed is sufficiently important. Diamond dealers apparently use them a lot."}),e("h3",{className:te,id:"problem",children:"The Problem"}),e("p",{children:"Unfortunately, things don't work as smoothly in Silicon Valley as among diamond dealers. This is not a closed community of pros who deal with one another day after day. Many participants in the funding market are noobs, and some are dishonest."}),o("p",{children:[e("strong",{children:"Every cycle we get reports of supposed handshake deals that fell through."})," ","Without video of the conversation it's hard for us to be sure whether there really was a deal and the investor welched, or there wasn't and the founders are just victims of their own wishful thinking."]}),e("p",{children:"The problem is compounded by the fact that some investors deliberately mislead startups about how interested they are in investing. Startups' prospects can change rapidly. If investors say no in a way that sounds like yes, they can essentially take a free option to invest. They haven't actually committed, so it costs them nothing, but if the startup turns out to be a hot one, they can retroactively claim that their almost-yes was an actual yes, and that the startup is morally obliged to let them invest."}),e("h3",{className:te,id:"protocol",children:"The Protocol"}),o("p",{children:[e("strong",{children:"Fortunately there is a way to fix most of these problems: to define a standard protocol for handshake deals."})," ","We're going to start using this within YC, and we hope it will spread to the rest of the startup community."]}),e("p",{children:"The protocol defines an offer as an amount to be invested, plus a valuation or valuation cap (or no cap), plus an optional discount. Here are some example offers:"}),o("ul",{children:[e("li",{children:"$100k at $5 million pre-money."}),e("li",{children:"$100k at a $5 million cap."}),e("li",{children:"$100k uncapped."}),e("li",{children:"$100k uncapped with a 10% discount."})]}),e("p",{children:"According to the protocol, you have a handshake deal if and only if the following happens:"}),o("ol",{children:[e("li",{children:`The investor says "I'm in."`}),e("li",{children:"The startup sends the investor an email or text message saying “Can you confirm you’re in for [offer]?” — spelling out the exact offer including the specific amount and terms."}),e("li",{children:"The investor replies yes."})]}),"Unless and until this process is completed, there is no handshake deal. So it is in the interest of investors to complete the 4th step, because until they do the startup is under no obligation to take their money.",e("h3",{className:te,id:"audit",children:"Audit Trail"}),e("p",{children:"Since both parties will usually have mobile devices from which they can send such messages, they should ordinarily do it in person as the final step of the agreement. They should each regard it as suspicious if the other is unwilling to."}),o("p",{children:[e("strong",{children:"At the very least this protocol will tell us who's at fault if we get a report of a handshake deal falling through."})," ","But it should do more than that. A definite protocol that leaves a trail will both prevent founders from misleading themselves, and discourage investors from misleading them."]}),o("p",{children:["I don't think the offer has to specify the documents to be used. In practice this is rarely an issue. People either use one of the"," ",e("a",{href:"/documents/",children:"standard documents"})," (for small investments) or negotiate in good faith (for large ones). Market terms are well enough understood that it should be easy to see who's at fault if one party is making difficulties about the terms, and that's all we ask from this protocol."]}),e("h3",{className:te,id:"ambiguity",children:"Avoids Ambiguity"}),o("p",{children:[e("strong",{children:"The protocol deliberately makes it impossible to say certain things."})," ","For example, an investor can't just say they'll invest $x, without specifying a valuation or cap. Investors who do that can escape their commitment later by claiming the price turned out to be too high. An offer to invest has to specify a valuation or cap, or no cap. Otherwise it's incompletely defined and thus not even an offer."]}),e("p",{children:"It also isn't possible to make a handshake deal on an offer to invest a range of money. Investors will sometimes try to make a deal to invest, say, $50k to $150k. If a startup agrees to that, they're obliged to save $150k of space but the investor is only obliged to invest $50k. An offer to invest a range of money is really two separate things: an offer to invest the bottom end of the range, plus an expression of interest in possibly investing more. So we suggest startups respond to each separately: do a handshake deal for the bottom end of the range, and respond politely to the investor's interest in investing more, but don't feel any obligation to take more money till the investor commits to investing it. Knowing they're guaranteed no more than the lower end of their range should sometimes cause investors to commit upfront to investing more. And if it doesn't, it would have been a mistake for the startup to rely on getting more."}),e("p",{children:"Finally, it isn't possible to add conditions to a handshake deal. For example, there is no way for an investor to use this protocol to offer, as some investors try to do, to invest if other people will—e.g. to say that they'll invest as part of a larger round if you can find a lead. That sort of commitment is so worthless in practice that it's a mistake for startups either to rely on it, or to feel themselves bound by it. It's not even rightly considered an offer, but at best a lead (and one that will rapidly grow cold). While the investor can’t add conditions to a handshake deal, it is possible to change the deadlines in which the offer must be accepted and the funding has to be completed. The purpose of these deadlines is to prevent situations where either the investor delays acceptance of the handshake deal or the startup and the investor have a valid handshake deal, but no time frame in which the investor must send its money. These deadlines avoid any ambiguity about whether or not there is a valid handshake deal and about when the handshake deal expires, and it should certainly expire if the investor fails to fund after a certain period of time. Ten days is a reasonable period of time for both parties to complete the funding process, but they can decide on different timing, provided there is unequivocal agreement (in writing) about a different deadline."}),e("p",{children:"Startups and investors can of course make any sort of arrangement they want. But they don't have a handshake deal according to this protocol unless the terms are precise and unconditional."})]})}),e(R,{expandable:!1,highlightVisible:!0,entryDOMSelector:`.${te}`,sections:On})]})})]})}const Vr=N(En),In=[{title:"Social Media",name:"elsewhere",displayType:"unordered",entries:[{title:"Blog",href:u.BLOG.href},{title:"Twitter",href:u.YC_TWITTER.href},{title:"Facebook",href:u.YC_FACEBOOK.href},{title:"YouTube",href:u.YC_YOUTUBE.href}]}];function Pn({contactsImageSrc:i}){return o(A,{children:[e(f,{children:e("h1",{className:"ycdc-page-title",children:"Contact"})}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[e("div",{children:o(T,{children:[o("p",{children:["Before contacting us, please check the"," ",e("a",{href:u.RETRO_FAQ.href,children:"Frequently Asked Questions"}),"."]}),e("p",{children:"Here are contact emails for different parts of YC:"}),e("p",{children:e("img",{src:i,alt:""})})]})}),e(R,{expandable:!1,highlightVisible:!1,sections:In})]})})]})}const Gr=N(Pn),Rn=[{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"Demo Day",href:u.DEMO_DAY.href},{title:"YC top companies",href:u.COMPANIES_TOP.href},{title:"Safe Financing documents",href:u.SAFE_DOCUMENTS.href},{title:"Handshake Deal Protocol",href:u.HANDSHAKE_DEAL.href}]}];function Mn({htmlContent:i,ghostEditLink:n,...a}){return o(A,{children:[e(f,{children:e("h1",{className:"ycdc-page-title",children:"Resources for Investors"})}),o(f,{className:"ycdc-toc-container",children:[e(T,{children:e(Yt,{editLink:n,htmlContent:Ft(i,a),contentWrapperClassname:"prose"})}),e(R,{expandable:!1,highlightVisible:!0,sections:Rn})]})]})}const Kr=N(Mn),Dn=[{title:"Contents",name:"contents",entries:[{title:"Who Should Apply",elemId:"whoapply"},{title:"What We Do",elemId:"whatwedo"},{title:"Alumni",elemId:"alumni"},{title:"Quotes",elemId:"quotes"}]},{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"About Y Combinator",href:u.RETRO_ABOUT.href},{title:"Frequently Asked Questions",href:u.RETRO_FAQ.href}]}];function Ln(){return o(A,{children:[e(f,{children:e("h1",{className:"ycdc-page-title",children:"Biotech & Life Science Companies"})}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[o(T,{children:[o("p",{className:"lead",children:["YC funded our first biotech company, (",e("a",{href:"https://www.ginkgobioworks.com/",children:"Ginkgo Bioworks"}),"), in 2014. Since then, we’ve expanded aggressively into all areas of biotech and the life sciences. Today, YC funds more biotech startups each year than any other investor."]}),e("h3",{id:"whoapply",children:"Who Should Apply"}),e("p",{children:"A revolution is happening in life sciences that is reminiscent of what happened in software in the 90’s. Now that cost and cycle time have decreased for biotech, it’s possible for new startups to do groundbreaking work."}),e("p",{children:"While we also fund companies that are further along, we’re especially comfortable funding life science projects at their earliest stage, right when they’re ready to spin out of university research."}),o("p",{children:["We’ve funded companies that cover the whole life sciences spectrum, including synthetic biology, therapeutics, digital health, diagnostics, medical devices, food technology like clean meat, platforms and tools. The examples range from creating"," ",e("a",{href:"http://notablelabs.com/",children:"personalized"})," cancer treatments to"," ",e("a",{href:"http://solugen.com/",children:"producing industrial chemicals"}),"."]}),e("h3",{id:"whatwedo",children:"What We Do for Life Science Companies"}),e("p",{children:"Every life sciences company is different, so we don’t have a curriculum or a one-size-fits-all program. Instead, we work with each company individually to help solve whatever their current challenges are."}),e("p",{children:"Some of the things we often help companies with include: regulatory approval and clinical trial sites, patents and IP protection, reimbursement and developing their business model, negotiating with tech transfer offices, finding initial customers, and raising money from investors. We also love to get deep into the science and help founders think through the scientific bets they are making."}),e("p",{children:"Life science companies are still expensive to start (though they are getting cheaper), and one of the most important things we do is to prepare companies to raise a large round from investors. Bio companies in YC have been very successful at raising multi-million dollar rounds at the end of the program"}),e("p",{children:"One of the most valuable parts of YC for bio companies is the network of other bio companies we have funded. It is now a diverse network of impressive domain experts who go out of their way to help each other. There are also now a number of YC companies that provide critical services widely used by the other bio companies:"}),o("ul",{children:[o("li",{children:[e("a",{href:"https://www.enzyme.com",children:"Enzyme"})," - FDA consulting as a service"]}),o("li",{children:[e("a",{href:"https://www.scienceexchange.com",children:"Science Exchange"})," - marketplace for scientific supplies"]}),o("li",{children:[e("a",{href:"http://www.atomwise.com/",children:"Atomwise"})," – computational drug discovery"]}),o("li",{children:[e("a",{href:"http://www.cognitionip.com/",children:"Cognition IP"})," – life science patent law firm"]}),o("li",{children:[e("a",{href:"https://www.quartzy.com/",children:"Quartzy"})," - lab management"]}),o("li",{children:[e("a",{href:"https://www.culturebiosciences.com/",children:"Culture Biosciences"})," - bioreactors on demand"]})]}),e("p",{children:"YC doesn’t have its own lab space for founders. We’ve found that what founders want in lab space is simply too varied for one space to work for everyone. Instead, we work with the lab space providers to get preferential access and deals for YC companies. The Bay Area has some of the world’s best lab space options for startups, so no matter what you need, we can help you find it."}),e("h3",{id:"alumni",children:"Alumni"}),e("p",{children:"Here are some of the biotech/life sciences companies we’ve funded:"}),o("ul",{children:[o("li",{children:[e("a",{href:"http://ginkgobioworks.com/",children:"Gingko Bioworks"})," – engineering new organisms"]}),o("li",{children:[e("a",{href:"http://solugen.com/",children:"Solugen"})," – producing industrial chemicals with synthetic biology"]}),o("li",{children:[e("a",{href:"https://asherbio.com/",children:"Asher Bio"})," - cancer immunotherapies"]}),o("li",{children:[e("a",{href:"https://www.lucirahealth.com/",children:"Lucira Health"})," - diagnostics for infectious disease"]}),o("li",{children:[e("a",{href:"http://www.zenflow.com/",children:"Zenflow"})," – medical device for PBH"]}),o("li",{children:[e("a",{href:"https://www.reverielabs.com/",children:"Reverie Labs"})," – next-generation kinase inhibitors for oncology"]}),o("li",{children:[e("a",{href:"https://notablelabs.com",children:"Notable Labs"})," - personalized drug discovery for blood cancer"]}),o("li",{children:[e("a",{href:"https://billiontoone.com/",children:"BillionToOne"})," - fetal genetic testing service"]}),o("li",{children:[e("a",{href:"https://alpine-roads.com/",children:"Alpine Roads"})," - plants engineered to express milk proteins"]}),o("li",{children:[e("a",{href:"https://athelas.com/",children:"Athelas"})," - point-of-care blood diagnostic device"]}),o("li",{children:[e("a",{href:"https://shasqi.com",children:"Shasqi"})," - localized delivery for oncology drugs"]}),o("li",{children:[e("a",{href:"https://endpoint.health/",children:"Endpoint Health"})," - precision medicine for hospital care"]})]}),o("p",{children:[e("a",{href:`${u.COMPANIES_DIRECTORY.href}?industry=Healthcare`,children:"Here is a complete list"})," ","of the healthcare/life sciences companies we’ve funded."]}),e("h3",{id:"blog",children:"Blog posts"}),e("p",{children:"Here are some things we’ve written about biotech companies."}),o("ul",{children:[e("li",{children:e("a",{href:"https://www.ycombinator.com/library/4L-how-biotech-startup-funding-will-change-in-the-next-10-years",children:"How Biotech Startup Funding Will Change in the Next 10 Years"})}),e("li",{children:e("a",{href:"https://www.ycombinator.com/library/8f-how-to-spin-your-scientific-research-out-of-a-university-and-into-a-startup",children:"How to Spin Your Scientific Research Out Of a University and Into a Startup"})}),e("li",{children:e("a",{href:"https://www.ycombinator.com/library/4r-yc-and-hard-tech-startups",children:"YC and Hard Tech Startups"})})]}),e("h3",{id:"quotes",children:"Quotes"}),e("blockquote",{children:e("p",{children:"The pace of YC is insane — you are part of a network of fast-growing companies and feed off the energy. Ginkgo is on a dramatically faster pace of growth now thanks to YC. I was amazed how similar the challenges of scaling a startup are whether you are a biotech or a software company. We learned a ton. I’d do it again in a heartbeat."})}),e("p",{children:"– Jason Kelly, Ginkgo Bioworks"}),e("blockquote",{children:e("p",{children:"YC was essential for creating Bikanta’s ‘dictionary’. During YC, we defined many of the key elements of our company, from what is the core of our technology to the important business milestones to achieve to how to create a resourceful team. The YC experience was critical in shaping what started as empowering technology into what is now a productive and game-changing company."})}),e("p",{children:"– Ambika Bumb, Bikanta"})]}),e(R,{expandable:!1,highlightVisible:!1,sections:Dn})]})})]})}const Zr=N(Ln),Wn=({id:i,className:n,question:a,pageProps:t})=>o(T,{className:Q("ycdc-faq",n),id:i,children:[e("dt",{children:e("strong",{children:a.title})}),e("dd",{className:"prose",children:typeof a.a=="string"?e("p",{children:a.a}):typeof a.a=="function"?a.a(t):a.a})]}),Yn=[{name:"basics",title:"The Basics",entries:[{title:"Don't share your invitation.",elemId:"q1",a:e("p",{children:"Your invitation is only intended for you. This is a private, invitation-only event."})},{title:"Use a computer, not a phone or tablet.",elemId:"q3",a:e("p",{children:"During Demo Day, we use an online system to let you specify which startups you want to meet. It is easiest to browse companies and generate invitations while watching the presentations on the same large screen."})},{title:"Handshake Deal Protocol.",elemId:"q6",a:o("p",{children:["Most of the companies are going to be using a standardized convention for handshake deals. ",e(Z,{link:u.HANDSHAKE_DEAL,children:"Learn more"}),"."]})},{title:"Familiarize yourself with the Safe",elemId:"q7",a:o("p",{children:['The companies will be raising money using investment paperwork created by Y Combinator - the Simple Agreement for Future Equity ("Safe"). You should make sure you are familiar with this paperwork. ',e(Z,{link:u.SAFE_DOCUMENTS,children:"Learn more"}),"."]})}]}];function Fn(){return o(A,{children:[e(f,{children:e("h1",{className:"ycdc-page-title",children:"Demo Day Tips"})}),Yn.map(i=>e(f,{size:"md",children:o("div",{className:"ycdc-toc-container",children:[e(Ae,{noProse:!0,marginTop:"none",contentSize:11,content:e("div",{className:"space-y-8",children:o("div",{id:`faqSection-${i.name}`,children:[e("div",{className:"prose",children:e("h3",{children:i.title})}),e("div",{className:"mt-4 space-y-4",children:i.entries.map((n,a)=>e(Wn,{id:Wt(i,n,a),question:n},a+1))})]},i.title)})}),e(R,{highlightVisible:!1,expandable:!1,sections:[i]})]})},i.name))]})}const Qr=N(Fn),qn=[{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"About Y Combinator",href:u.RETRO_ABOUT.href},{title:"Frequently Asked Questions",href:u.RETRO_FAQ.href}]}];function jn(){return o(A,{children:[e(f,{children:e("h1",{className:"ycdc-page-title",children:"Founder Ethics"})}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[o(T,{children:[e("p",{className:"lead",children:"Y Combinator is a network of people who trust one another, often solely on the basis of participation in the YC program."}),e("p",{children:"The YC community is strong because its members share a set of common values such as integrity, respect and accountability. We believe these are critical traits for founders to have. The continuing strength and value of this network hinges on the trustworthiness of its members. Founders who behave unethically put the reputation of the entire community at risk."}),e("p",{children:"Some examples of ethical behavior we expect from founders are:"}),o("ul",{children:[e("li",{children:"Treating co-founders and employees with fairness and respect."}),e("li",{children:"Not using misleading, dishonest or illegal sales tactics."}),e("li",{children:"Not spamming members of the community, or shilling in any manner for funds, investors, consultants/advisors, events/conferences, politicians/campaigns, tokens/NFTs, content marketing or similar."}),e("li",{children:"Being honest with investors and partners."}),e("li",{children:"Not harassing or threatening any co-founder, YC community member, employee, or anyone else."}),e("li",{children:"Keeping off-the-record or confidential information (whether about YC itself or a YC company) private and secret."}),e("li",{children:"Ensuring your company resolves privacy and security issues promptly and appropriately."}),e("li",{children:"Treating emails and other communications shared within the YC network as confidential, and not forwarding to non-YC founders, investors, or the press."}),e("li",{children:"Not behaving in a way that damages the reputation of his/her company or of YC."}),e("li",{children:"Being honest in the YC application and interview process."}),o("li",{children:["Keeping your word, including honoring ",e("a",{href:"/handshake/",children:"handshake deals"}),", contractual obligations and the like."]}),e("li",{children:"Treating the money invested in your company with the utmost respect, to be used exclusively to further the goals of the company."}),e("li",{children:"Abiding by the Y Combinator Brand Use Rules, the BookFace Community Guidelines and the Hacker News Guidelines."}),e("li",{children:"Generally operating in good faith and behaving in a professional and upstanding way."})]}),e("p",{children:"To maintain our community, if we determine (in our sole discretion) that a founder has behaved unethically during or after YC, we will revoke their YC founder status. This includes access to all Y Combinator spaces, software, lists and events. All founders in a company may be held responsible for the unethical actions of a single co-founder or a company employee, depending on the circumstances."}),e("p",{children:"We will stand behind you no matter how much your company struggles, as long as you behave ethically."})]}),e(R,{expandable:!1,highlightVisible:!1,sections:qn})]})})]})}const Xr=N(jn),Bn=[{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"Apply to Y Combinator",href:u.PROGRAM_APPLY.href},{title:"About Y Combinator",href:u.RETRO_ABOUT.href},{title:"Frequently Asked Questions",href:u.RETRO_FAQ.href}]}];function Hn(){return o(A,{children:[o(f,{children:[e("h1",{className:"ycdc-page-title",children:"YC's Non-profit Program"}),e("div",{className:"ycdc-page-updated",children:"By Tim Brady"})]}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[o(T,{children:[o("p",{children:["We work with a small number of non-profits startups in every YC batch, usually between 2 to 4 companies. We started working with non-profits in 2013 and have worked with more than 30 companies so far. Here is a"," ",e(Z,{link:u.COMPANIES_DIRECTORY,queryOrSearch:"?nonprofit=true",children:"list of the non-profits"})," ","that have gone through the YC program so far."]}),e("p",{children:"While 501c3 non-profit companies vary greatly in strategy, we favor those companies that strive to cover their operating costs by charging fees for the products & services they create rather than relying on donations. We do this for two primary reasons: (1) Charging users for your product ensures that you provide the value you claim to deliver. Users of free products & services rarely complain. Paying users complain loudly; they will let you know when you’ve gone off course. (2) You are not as vulnerable to market downturns. Donations dry up quickly in economic downturns. Revenue-generating products and service can insulate you from that."}),e("p",{children:"Non-profit startups that charge fees for their products and service are also more similar to for-profits startups. Consequently, a lot of the advice we give at YC and much of the curriculum during the batch is directly applicable to both. During the batch, non-profits are mixed in with the for-profit startups."})]}),e(R,{expandable:!1,highlightVisible:!1,sections:Bn})]})})]})}const Jr=N(Hn),zn=[{title:"Related",name:"related",entries:[{title:"Apply to Y Combinator",href:u.PROGRAM_APPLY.href}]},{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"About Y Combinator",href:u.RETRO_ABOUT.href},{title:"Frequently Asked Questions",href:u.RETRO_FAQ.href}]}];function Un(){return o(A,{children:[e(f,{children:e("h1",{className:"ycdc-page-title",children:"YC Recommendations"})}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[o(T,{children:[o("p",{children:["If you are a founder of a YC-funded company, you can recommend promising founders to YC and keep track of their applications"," ",e("a",{href:"https://bookface.ycombinator.com/recommendations",children:"via Bookface"}),"."]}),e("p",{children:"If they haven’t applied yet, we’ll send an email encouraging them."}),o("p",{children:["Thank you!",e("br",{}),e("br",{}),"–YC"]})]}),e(R,{expandable:!1,highlightVisible:!1,sections:zn})]})})]})}const ea=N(Un),$n=[{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"About Y Combinator",href:u.RETRO_ABOUT.href},{title:"Frequently Asked Questions",href:u.RETRO_FAQ.href}]}];function Vn(){return o(A,{children:[e(f,{children:e("h1",{className:"ycdc-page-title",children:"Why We Don't Invite Groups to Interviews"})}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[o(T,{children:[e("p",{className:"lead",children:"A lot of groups that don’t get invited to interviews would like to know why. This is a reasonable thing to want. If there’s something wrong with your project, you want to know what."}),e("p",{children:"So why don’t we tell people why we didn’t invite them to interview? Because, paradoxical as it sounds, there often is no reason. The median application is usually pretty good. The reason it gets rejected is not that it seems particularly bad, but that there are a sufficient number of others that seem particularly good."}),e("p",{children:"Probably the reason people expect feedback about why they were rejected is that they implicitly think of applying to YC like taking a test and getting a grade. But a test where only a fixed number of applicants can pass regardless of the average quality is not a grade in that sense."}),e("p",{children:"There are physical limits on the number of teams a YC Partner can reasonably work with during a batch. We interview as many great teams as needed to find that number of companies and then generally stop, no matter how many good ones apply. From that cutoff down to about the halfway point, the applications are pretty good. The reason they didn’t get invited was not that there was anything specifically wrong with them. They were just pushed down by other applicants who were particularly stellar."}),e("p",{children:"So the reason we can’t respond to emails about why teams were rejected is that a lot of the time there’s literally no answer. We could make one up, but we’d be lying in many cases, and the better the group, the more likely we’d be lying. The main reason the top third or so of the applicants don’t get invited to interviews is literally not to be found anywhere in their application, but instead is distributed across the top few applications that pushed them down below the cutoff."})]}),e(R,{expandable:!1,highlightVisible:!1,sections:$n})]})})]})}const ta=N(Vn),Gn=({slideUrls:i,className:n})=>{const a=p.useRef(0),t=p.useRef(2%i.length),r=p.useRef(!1),[l,c]=p.useState(i[0]),[h,d]=p.useState(i[1]),[m,b]=p.useState(""),[g,y]=p.useState("hidden"),_=p.useCallback(()=>{const I=[c,d],k=[b,y],O=I[a.current],$=k[a.current];a.current=(a.current+1)%I.length;const re=k[a.current],X=t.current;$("slideshow-fade-out"),re("slideshow-fade-in"),setTimeout(()=>{O(i[X])},900),t.current=(t.current+1)%i.length},[c,d,b,y]);return p.useEffect(()=>{const I=setInterval(()=>{r.current||_()},6e3);return()=>clearInterval(I)},[c,d,b,y]),o("figure",{className:Q(n,"ycdc-slideshow"),children:[e("img",{id:"slideshow0",className:m,src:l,alt:""}),e("img",{id:"slideshow1",className:g,src:h,alt:""}),e("figcaption",{className:"hidden",children:"Slideshow of founders and startups at Y Combinator."})]})};function Kn({logos:i,className:n}){return e("div",{className:Q("startupLogos mb-6",n),children:i.map(a=>e("a",{href:a.url,target:"_blank",children:e("div",{children:e("img",{src:a.image,title:a.name,alt:a.name})})},a.name))})}const G=p.memo(({children:i})=>e("aside",{className:"sm:ycdc-section-gutter",children:e("h4",{className:"text-sm leading-[25px] text-gray-400",children:i})})),Zn=({quote:{name:i,imageUrl:n,quote:a,title:t}})=>o("figure",{className:"flex flex-row flex-nowrap",children:[e("img",{className:"my-1 mr-1.5 h-20 w-20 max-w-full border border-gray-300 object-cover object-top",width:"80",height:"80",alt:i,src:n}),e("figcaption",{className:"ml-5 min-h-20",children:o("blockquote",{children:[o("p",{className:"mb-4 leading-relaxed",children:["“",a,"”"]}),o("cite",{children:[e("strong",{children:i}),o("em",{className:"text-xs not-italic",children:[", ",t]})]})]})})]}),He="text-2xl leading-relaxed",ze="text-linkColor",Qn=[o(p.Fragment,{children:[e("h2",{className:He,children:e("a",{className:ze,href:"/",children:"Why Do Y Combinator"})}),"Discover how we help founders make something people want."]},"a"),o(p.Fragment,{children:[e("h2",{className:He,children:e("a",{className:ze,href:"/deal",children:"The New Standard Deal"})}),"When a company is accepted into the YC batch program, we now invest a total of $500,000."]},"b"),o(p.Fragment,{children:[e("h2",{className:He,children:e("a",{className:ze,href:"/jobs",children:"Jobs at YC Startups"})}),"Browse open roles posted this week at vetted and well-funded Y Combinator startups."]},"c")];function Xn({slideshowImageUrls:i,startupLogos:n,waasJobData:a,createWaasProfileUrl:t,quotes:r,alsoData1:l,alsoData2:c}){return o(A,{children:[o(f,{children:[e(G,{children:"Latest"}),e("div",{className:"flex flex-col flex-wrap items-start justify-between space-y-5 sm:flex-row sm:flex-nowrap sm:space-x-5 sm:space-y-0",children:Qn.map((h,d)=>e("div",{className:"flex-1",children:h},d))})]}),o(f,{children:[e(G,{children:"About"}),o("div",{className:"flex flex-col md:flex-row-reverse",children:[e(Gn,{className:"md:w-5/8",slideUrls:i}),o("div",{className:"flex-1 pt-8 md:pr-[26px] md:pt-0",children:[o("div",{className:"prose",children:[e("h2",{children:"Y Combinator created a new model for funding early stage startups."}),o("p",{children:["Twice a year we invest ",e("a",{href:"http://www.ycombinator.com/deal/",children:"$500,000"})," per company in a large number of startups."]}),e("p",{children:"We work intensively with the companies for three months, to get them into the best possible shape and refine their pitch to investors. Each cycle culminates in Demo Day, when the startups present their companies to a carefully selected, invite-only audience."}),e("p",{children:"But YC doesn’t end on Demo Day. We and the YC alumni network continue to help founders for the life of their company, and beyond."})]}),e(V,{links:[{...u.RETRO_ABOUT,text:"Learn More"},{...u.RETRO_FAQ,text:"Application FAQs"},{...u.PROGRAM_WHY,text:"Why YC"}]})]})]})]}),o(f,{children:[e(G,{children:"Startups"}),o("div",{className:"mx-4 flex flex-col items-start justify-between space-y-4 pb-6 text-xl leading-relaxed sm:flex-row sm:space-x-10 sm:space-y-0",children:[o("h2",{children:["Since ",e("b",{children:"2005"}),", we've funded over ",e("b",{children:"3,500"})," startups."]}),o("h2",{children:["Y Combinator is a community of over ",e("b",{children:"9,000"})," founders."]}),o("h2",{children:["Our companies have a combined valuation nearing ",e("b",{children:"$1T"}),"."]})]}),e(Kn,{logos:n}),e(V,{links:[{...u.COMPANIES_TOP,text:"Top companies"},{...u.COMPANIES_DIRECTORY,text:"See all companies"}]})]}),o(f,{children:[e(G,{children:"Jobs"}),o("article",{children:[o("div",{className:"prose max-w-none",children:[e("h2",{children:"Be the first employee at the next Airbnb, Stripe, or Coinbase."}),o("p",{children:["Apply to top YC startups with a single profile and connect directly with founders through YC’s"," ",e("a",{href:"/jobs",target:"_target",children:"Work at a Startup."})]})]}),e("div",{className:"mt-6 flex flex-col flex-wrap justify-between gap-4 sm:flex-row",children:a.map(h=>e("div",{className:"w-full border border-gray-100 bg-white px-4 py-3 sm:w-[32%]",children:o("a",{href:h.url,target:"_target",children:[o("div",{className:"mb-2 flex items-center",children:[e("div",{className:"mr-3 w-9",children:h.logoUrl&&e("img",{className:"clip-circle-9 w-9",src:h.logoUrl,alt:""})}),e("div",{className:"text-lg font-bold",children:h.name})]}),o("div",{children:[e("div",{className:"overflow-hidden whitespace-nowrap font-bold leading-relaxed text-gray-800",children:h.title}),e("div",{className:"overflow-hidden whitespace-nowrap text-sm leading-relaxed text-black",children:h.location}),o("div",{className:"text-xs leading-relaxed text-gray-400",children:["last active ",h.lastActiveWords," ago"]})]})]})},h.id))}),e(V,{links:[{href:"/jobs/role/engineer",text:"Engineering jobs",target:"_target"},{href:"/jobs/role/designer",text:"Design jobs",target:"_target"},{href:"/jobs/role/recruiting",text:"Recruiting jobs",target:"_target"},{href:t,text:"Create a profile",target:"_target"}]})]})]}),o(f,{children:[e(G,{children:"Quotes"}),o("article",{className:"space-y-6",children:[r.map(h=>e(Zn,{quote:h},h.name)),e(V,{links:[{href:"/quotes",text:"More quotes"}]})]})]}),o(f,{children:[e(G,{children:"Also"}),[l,c].map(h=>e("div",{className:"flex flex-col md:flex-row md:space-x-[4.5%]",children:h.map(({title:d,description:m,href:b,imageUrl:g,flushBottom:y})=>o("a",{href:b,className:"mb-[4.5%] flex w-full flex-1 justify-between bg-white p-5 md:w-[30.333%]",children:[o("div",{children:[e("h3",{className:"text-s mb-2 font-bold",children:d}),e("p",{className:"text-xs",children:m})]}),e("img",{className:`ml-5 h-20 flex-none ${y?"-mb-5 self-end":"self-center"}`,src:g,alt:d})]},d))},h.map(d=>d.title).join()))]})]})}const ia=N(Xn),Jn=[{title:"Inline TOC",name:"inline",entries:[{title:"First item",elemId:"first"},{title:"Second item",elemId:"second"}]},{title:"Elsewhere (typically links to other pages)",name:"elsewhere",displayType:"unordered",entries:[{title:"Demo Day",href:u.DEMO_DAY.href},{title:"YC top companies",href:u.COMPANIES_TOP.href},{title:"Safe Financing documents",href:u.SAFE_DOCUMENTS.href},{title:"Handshake Deal Protocol",href:u.HANDSHAKE_DEAL.href}]}];function er(){return o(A,{children:[e(f,{children:e(ne,{children:"YCDC Styleguide"})}),o(f,{children:[e(G,{children:"Titles"}),e(ne,{children:"<PageTitle/> or .ycdc-page-title"}),e("div",{className:"ycdc-page-updated",children:".ycdc-page-update"}),e("h1",{children:"Naked h1"}),e("h2",{children:"Naked h2"}),e("h3",{children:"Naked h3"}),e("h4",{children:"Naked h4"}),e(ue,{children:"<SectionTitle/>"}),e(he,{children:"<SectionAside/>"})]}),o(f,{children:[e(G,{children:"Responsive Prose"}),o("div",{className:"ycdc-toc-container",children:[e("div",{className:"space-y-6",children:o(T,{children:[e(ue,{children:"Responsive Prose"}),e("p",{children:e("i",{children:"The contents of this entire section are wrapped in <ResponsiveProse/>"})}),e("h1",{children:"h1 Header"}),e("h2",{children:"h2 Header"}),e("h3",{children:"h3 Header"}),e("h4",{children:"h4 Header"}),e("h3",{id:"first",children:"h3 #first"}),e("p",{className:"lead",children:"This is a lead paragraph. Donec sapien dolor, convallis non tempor commodo, tristique vitae nisi. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer sit amet varius nisi, vel fringilla quam. Mauris ullamcorper tristique iaculis."}),e("h3",{id:"second",children:"h3 #second"}),e("p",{children:"This is a regular paragraph. Duis cursus mi at sapien laoreet, vel cursus libero tempor. Proin ac eros ornare ligula vehicula sollicitudin a dictum tellus. Suspendisse lacinia venenatis tortor, nec semper turpis tempor vitae. Mauris et est nisl."}),e("p",{children:"Another regular paragraph. Proin elementum orci sed convallis faucibus. Nullam accumsan, dolor in facilisis interdum, sem tortor suscipit quam, at fermentum ligula turpis eget lectus. Pellentesque non vehicula nibh. Nunc malesuada placerat leo, id pulvinar sem pretium nec. Sed sit amet diam eu tortor faucibus commodo. Vestibulum vitae iaculis ex. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce vel ipsum lectus."}),o("p",{children:["This is a paragraph with a ",e("a",{href:"/",children:"link to somewhere else"})," in the middle of it."]}),e("h3",{children:"Unordered List"}),o("ul",{children:[e("li",{children:"Just text"}),e("li",{children:"Just text"}),e("li",{children:e("p",{children:"Text in a paragraph tag"})}),e("li",{children:"Just text"})]}),e("h3",{children:"Ordered List"}),o("ol",{children:[e("li",{children:"Just text"}),e("li",{children:"Just text"}),e("li",{children:e("p",{children:"Text in a paragraph tag"})}),e("li",{children:"Just text"})]})]})}),e(R,{expandable:!1,highlightVisible:!0,sections:Jn})]})]})]})}const na=N(er),tr=[{title:"Contents",name:"contents",entries:[{title:"What We Do",elemId:"whatwedo"},{title:"More Than Money",elemId:"morethanmoney"},{title:"Format",elemId:"format"},{title:"Philosophy",elemId:"philosophy"}]},{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"Frequently Asked Questions",href:u.RETRO_FAQ.href},{title:"Benefits for YC Founders",href:u.PROGRAM_WHY.href},{title:"YC for Biotech",href:u.BIOTECH.href},{title:"How to Apply Successfully",href:"/howtoapply"},{title:"SAFE financing documents",href:u.SAFE_DOCUMENTS.href},{title:"Y Combinator's Founding Principles",href:u.PRINCIPLES.href}]}];function ir(){return o(A,{children:[e(f,{children:e(ne,{children:"About Y Combinator"})}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[o(T,{children:[e("h3",{id:"whatwedo",children:"What We Do"}),e("h2",{children:"Y Combinator provides seed funding for startups. Seed funding is the earliest stage of venture funding. It pays your expenses while you’re getting started."}),e("p",{children:"Some companies may need no more than seed funding. Others will go through several rounds. There is no right answer; how much funding you need depends on the kind of company you start."}),e("p",{children:"At Y Combinator, our goal is to get you through the first phase. This usually means: get you to the point where you’ve built something impressive enough to raise money on a larger scale. Then we can introduce you to later stage investors—or occasionally even acquirers."}),e("h3",{id:"morethanmoney",children:"More Than Money"}),e("h2",{children:"We make small investments in return for small stakes in the companies we fund."}),e("p",{children:"All venture investors supply some combination of money and help. In our case the money is by far the smaller component. In fact, many of the startups we fund don’t need the money. We think of the money we invest as more like financial aid in college: it’s so people who do need the money can pay their living expenses while Y Combinator is happening."}),o("p",{children:["See a list of the benefits and resources available to YC founders ",e("a",{href:"/",children:"here"}),"."]}),o("p",{children:[e("a",{href:"/about/",children:"What happens at Y Combinator?"})," ",e("strong",{children:"The most important thing we do is work with startups on their ideas."})," ","We’re hackers ourselves, and we’ve spent a lot of time figuring out how to make things people want. So we can usually see fairly quickly the direction in which a small idea should be expanded, or the point at which to begin attacking a large but vague one."]}),e("p",{children:"The questions at this stage range from apparently minor (what to call the company) to frighteningly ambitious (the long-term plan for world domination). Over the course of three months we usually manage to help founders come up with initial answers to all of them."}),o("p",{children:[e("strong",{children:"The second most important thing we do is help founders deal with investors and acquirers."})," ","Yes, we can make introductions, but that part is easy. We spend much more time teaching founders how to pitch their startups to investors, and how to close a deal once they’ve generated interest. In the second phase we supply not just advice but protection; potential investors are more likely to treat you well if you come from YC, because how they treat you determines whether in the future we’ll steer deals toward or away from them."]}),e("p",{children:"We also get the startups we fund incorporated properly with all the standard paperwork, avoiding legal time-bombs that could cause serious hassles and delays later. We introduce founders to lawyers who will often agree to defer payment for legal work. We regularly help startups find and hire their first employees. We can help with intellectual property questions, like what to patent, and when. One of the least publicized things we do, for obvious reasons, is mediate disputes between founders. No startup thinks they’re going to need that, but most do at some point."}),e("p",{children:"The kind of advice we give literally can’t be bought, because anyone qualified to give it is already rich. You can only get it from investors."}),e("h3",{id:"format",children:"Format"}),e("h2",{children:"Twice a year, we invest a small amount of money in a large number of startups. We have two batches per year – one from January through March and one from June through August."}),o("p",{children:["To apply to Y Combinator, you just fill out an"," ",e("a",{href:"https://apply.ycombinator.com/",children:"application form"}),". We invite the most promising groups to meet us, and we make funding decisions afterward."]}),e("p",{children:"The YC program lasts for three months. During those three months, founders participate in group office hours every two weeks and can meet with partners for office hours as often as needed."}),e("p",{children:"During the batch, we host a weekly talk, where we invite an expert in some aspect of startups to speak. Typically, speakers include startup founders, venture capitalists, and executives from well-known technology companies."}),e("p",{children:"About ten weeks in, we host Demo Day where all the startups can present their products and services to a specially selected audience of investors and press."}),o("p",{children:["Y Combinator is occasionally described as a"," ",e("a",{href:"http://www.newsweek.com/id/34734",children:"boot camp"}),", but this is not really accurate. We probably get called that because we fund a lot of startups at once. But the similarities end there; the atmosphere is the opposite of regimented."]}),e("p",{children:"Funding startups in batches works better for everyone. It’s more efficient for us, and better for the startups, who probably end up helping one another at least as much as we help them."}),e("p",{children:"Because we fund such large numbers of startups, Y Combinator has a huge alumni network, and there’s a strong ethos of helping out fellow YC founders. So whatever your problem, whether you need beta testers, a place to stay in another city, advice about a browser bug, or a connection to a particular company, there’s a good chance someone in the network can help you."}),e("h3",{id:"philosophy",children:"Philosophy"}),e("h2",{children:"We think founders are most productive when they can spend most of their time building. Our goal is to create an environment where you can focus exclusively on building product and talking to users."}),e("p",{children:"We seem to have succeeded in creating a good environment, because many founders have told us that the first ten weeks of Y Combinator were the most productive period of their lives."}),e("p",{children:"We try to interfere as little as possible in the startups we fund. We don’t take board seats or many of the other powers investors sometimes require. We offer lots of advice, but we can’t force anyone to take it. We realize that independence is one of the reasons people want to start startups in the first place. And frankly, it’s also one of the reasons startups succeed. Investors who try to control the companies they fund often end up destroying them."}),e("p",{children:"Why are we so flexible? Our goal is to be the preferred source of seed funding for startups, and to be that we have to do right by everyone. The good founders all know one another, so if the groups we fund feel they’re getting a bad deal, no one will want funding from us in the future. And later stage investors (especially VCs) also tend to know one another, so if the companies we seed end up being broken in any way, no one will want to invest in them in the future."}),e("p",{children:"So far we seem to be on track, because both the startups we’ve funded and their next round of investors seem happy with us."})]}),e(R,{expandable:!1,highlightVisible:!1,sections:tr})]})})]})}const ra=N(ir),nr=[{title:"Contents",name:"contents",entries:[{title:"Press & Media",elemId:"press"},{title:"About Y Combinator",elemId:"about"},{title:"Stats",elemId:"stats"},{title:"Follow",elemId:"follow"}]},{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"About Y Combinator",href:u.RETRO_ABOUT.href},{title:"Frequently Asked Questions",href:u.RETRO_FAQ.href}]}];function rr(){return o(A,{children:[e(f,{children:e(ne,{children:"Press"})}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[o(T,{children:[e("h3",{id:"press",children:"Press & Media"}),e("p",{children:e("a",{href:"mailto:press@ycombinator.com",children:"press@ycombinator.com"})}),e("h3",{id:"about",children:"About Y Combinator"}),e("p",{children:"YC helps founders launch, build, and scale the great technology companies of the next 100 years."}),o("p",{children:["Since 2005, we’ve funded over ",e("a",{href:"/companies",children:"3,000 companies"}),". Today, over a dozen YC companies are public, more than 60 are valued at over $1B, and the combined valuation of YC alumni is over $600B."]}),o("p",{children:["YC was designed, created, and is run by startup founders (including many YC alumni) who have built the best platform for supporting startups as they grow. Our flagship YC batch program runs twice a year. We give companies seed funding (",e("a",{href:"/deal",children:"$500,000"}),") and work with founders intensively for 3 months."]}),o("ul",{children:[e("li",{children:e("a",{href:"/about/",children:"Learn more"})}),e("li",{children:e("a",{href:"https://blog.ycombinator.com/",children:"Latest news"})}),e("li",{children:e("a",{href:"/companies",children:"YC Directory"})}),e("li",{children:e("a",{href:"/people/",children:"People"})})]}),e("h3",{id:"stats",children:"Stats"}),o("ul",{children:[e("li",{children:"Since 2005, we’ve funded over 3,000 startups"}),e("li",{children:"Y Combinator is a community of over 7,000 founders"}),e("li",{children:"Our companies have a combined valuation of over $600B"})]}),e("h3",{id:"follow",children:"Follow"}),o("ul",{children:[e("li",{children:e("a",{href:"https://www.facebook.com/ycombinator",children:"Facebook"})}),e("li",{children:e("a",{href:"https://twitter.com/ycombinator",children:"Twitter"})}),e("li",{children:e("a",{href:"https://www.youtube.com/c/ycombinator",children:"YouTube"})}),e("li",{children:e("a",{href:"https://www.instagram.com/ycombinator/",children:"Instagram"})}),e("li",{children:e("a",{href:"https://www.linkedin.com/school/y-combinator/",children:"LinkedIn"})}),e("li",{children:e("a",{href:"https://www.tiktok.com/@y_combinator?lang=en",children:"TikTok"})}),e("li",{children:e("a",{href:"https://open.spotify.com/show/1tgqafxZAB0Bjd8nkwVtE4?si=6f342e636aba4e9e",children:"Spotify"})})]})]}),e(R,{expandable:!1,highlightVisible:!1,sections:nr})]})})]})}const aa=N(rr),ar=[{title:"Contents",name:"contents",entries:[{title:"Introduction",elemId:"intro"},{title:"Matter of Fact Answers",elemId:"matteroffact"},{title:"The Founders",elemId:"thefounders"},{title:"Insight",elemId:"insight"},{title:"Further Exploration",elemId:"exploration"},{title:"The Wildcard",elemId:"wildcard"},{title:"Help Us Out",elemId:"helpout"},{title:"Example Application",elemId:"example"},{title:"Notes",elemId:"footnotes"}]},{title:"Elsewhere",name:"elsewhere",displayType:"unordered",entries:[{title:"Apply to Y Combinator",href:u.PROGRAM_APPLY.href},{title:"Frequently Asked Questions",href:u.RETRO_FAQ.href},{title:"Why Groups Aren’t Invited",href:u.PROGRAM_WHY_NOT.href}]}];function or(){return o(A,{children:[o(f,{children:[e(ne,{children:"How to Apply to Y Combinator"}),e("div",{className:"ycdc-page-updated",children:"Paul Graham"})]}),e(f,{children:o("div",{className:"ycdc-toc-container",children:[o(T,{children:[e("h3",{id:"intro",children:"Introduction"}),o("h2",{children:["Twice a year Y Combinator takes"," ",e("a",{href:"http://www.ycombinator.com/apply/",children:"applications"})," for funding. I thought it might help applicants if I explained what we look for when we read them."]}),e("p",{children:"Probably the biggest thing people don’t understand about the process is the importance of expressing yourself clearly. Every year we get some applications that are obviously good, some that are obviously bad, and in the middle a huge number where we just can’t tell. The idea seems kind of promising, but it’s not explained well enough for us to understand it. The founders seem like they might be good, but we don’t get a clear enough picture of them to say for sure."}),e("p",{children:"I suspect for every group we invite to interviews, there are one or two more that are just as good but that we pass over because they don’t manage to convey how good they are. If that’s true, another way to say it is that, of groups good enough to make it to interviews, more than half blow the application."}),e("p",{children:"If we get 1000 applications and have 10 days to read them, we have to read about 100 a day. That means a YC partner who reads your application will on average have already read 50 that day and have 50 more to go. Yours has to stand out. So you have to be exceptionally clear and concise. Whatever you have to say, give it to us right in the first sentence, in the simplest possible terms."}),e("p",{children:"All the YC partners read applications. We each do it separately, to avoid groupthink, so I’m not sure exactly what the others do, but it’s probably similar to what I do."}),e("h3",{id:"matteroffact",children:"Matter of Fact Answers"}),e("p",{children:"The first question I look at is, “What is your company going to make?” This isn’t the question I care most about, but I look at it first because I need something to hang the application on in my mind."}),e("div",{id:"r1",children:o("p",{children:["The best answers are the most matter of fact. It’s a mistake to use marketing-speak to make your idea sound more exciting. We’re immune to marketing-speak; to us it’s just noise. ",e("a",{href:"#n1",children:"1."})," So don’t begin your answer with something like"]})}),e("blockquote",{children:e("p",{children:"We are going to transform the relationship between individuals and information."})}),e("p",{children:"That sounds impressive, but it conveys nothing. It could be a description of any technology company. Are you going to build a search engine? Database software? A router? I have no idea."}),e("p",{children:"One test of whether you’re explaining your idea effectively is to ask how close the reader is to reproducing it. After reading that sentence I’m no closer than I was before, so its content is effectively zero. Another mistake is to begin with a sweeping introductory paragraph about how important the problem is:"}),e("blockquote",{children:e("p",{children:"Information is the lifeblood of the modern organization. The ability to channel information quickly and efficiently to those who need it is critical to a company’s success. A company that achieves an edge in the efficient use of information will, all other things being equal, have a significant edge over competitors."})}),e("p",{children:"Again, zero content; after reading this, the reader is no closer to reproducing your project than before. A good answer would be something like:"}),e("blockquote",{children:e("p",{children:"A database with a wiki-like interface, combined with a graphical UI for controlling who can see and edit what."})}),e("p",{children:"I’m not convinced yet that this will be the next Google, but at least I’m starting to engage with it. I’m thinking what such a thing would be like."}),e("p",{children:"One reason founders resist giving matter-of-fact descriptions is that they seem to constrain your potential. “But it’s so much more than a database with a wiki UI!” The problem is, the less constraining your description, the less you’re saying. So it’s better to err on the side of matter-of-factness."}),e("p",{children:"We advise startups presenting at Demo Day to do the same. Better to start with an overly narrow description of your project than try to describe it in its full generality and lose the audience completely. If there’s a simple one-sentence description of what you’re doing that only conveys half your potential, that’s actually pretty good. You’re halfway to your destination in just the first sentence."}),e("p",{children:"One good trick for describing a project concisely is to explain it as a variant of something the audience already knows. It’s like Wikipedia, but within an organization. It’s like an answering service, but for email. It’s eBay for jobs. This form of description is wonderfully efficient. Don’t worry that it will make your idea seem “derivative.” Some of the best ideas in history began by sticking together two existing ideas no one realized could be combined."}),e("h3",{id:"thefounders",children:"The Founders"}),e("p",{children:"After spending 20 seconds or so trying to understand the idea, I skip down to look at the founders. My initial goal is to figure out what kind of group I’m dealing with."}),e("p",{children:"Three friends about to graduate from college? Two colleagues who work together at a big company and want to jump ship? Are they all programmers? A mix of programmers and business people? There are maybe 20 or 30 different configurations of founders."}),e("p",{children:"Once I know what type of group I have, I try to figure out how good an instance of that type it is. The most important question for deciding that is"}),e("blockquote",{children:e("p",{children:"Please tell us in one or two sentences about something impressive that each founder has built or achieved."})}),e("p",{children:"To me this is the most important question on the application. It’s deliberately open-ended; there’s no one type of answer we’re looking for. It could be that you did really well in school, or that you wrote a highly-regarded piece of software, or that you paid your own way through college after leaving home at 16. It’s not the type of achievement that matters so much as the magnitude. Succeeding in a startup is, in the most literal sense, extraordinary, so we’re looking for people able to do extraordinary things."}),e("p",{children:"As with all questions on the application, the best answers are the most specific. A surprising number of people answer with something like:"}),e("blockquote",{children:e("p",{children:"Jordan is an exceptionally dedicated person who gives 100% effort to every project he undertakes."})}),e("p",{children:"This kind of generic claim carries no weight. A single, specific example would be much more convincing. You probably shouldn’t list the startup itself as your most impressive achievement. We already know you’ve created that. Why waste the opportunity to brag about something else?"}),e("p",{children:"If there’s no one thing about you that you feel stands out, what should you list? I’d go with whatever you’ve done that was the hardest—-preferably (though not necessarily) the hardest intellectually. It doesn’t matter if it’s not the sort of thing you’d put on a resume. We’re not looking for the same things as HR departments."}),e("h3",{id:"insight",children:"Insight"}),e("p",{children:"If the founders seem promising, I’ll now spend more time trying to understand the idea. I care more about the founders than the idea, because most of the startups we fund will change their idea significantly."}),e("p",{children:"If a group of founders seemed impressive enough, I’d fund them with no idea. But a really good idea will also get our attention—-not because of the idea per se, but because it’s evidence the founders are smart."}),e("p",{children:"Just as what we look for in founders is not the type of achievement but the magnitude, what we look for in ideas is not the type of idea but the level of insight you have about it. You’re going to start an auction site? That could be a good idea or a bad idea. What matters is how you’re going to hold your own against eBay. What’s going to be distinctive about your solution?"}),e("p",{children:"It’s a common mistake to say the distinctive thing about your solution will be that it’s well-designed and easy to use. That is not an insight. You’re just claiming you’re going to execute well. Whoever wrote the current software was presumably also trying to. So you have to be more specific. Exactly what are you going to do that will make your software easier to use? And will that be enough? The reason a lot of big companies’ software sucks is that they have some kind of natural monopoly. Unless you have a plan for cracking it, it won’t make any difference if yours is better."}),e("p",{children:"We don’t mind if you’re doing something that will face serious obstacles. In fact, we like that. The best startup ideas are generally outliers that seem crazy to most people initially. But we want to see that you’re aware of the obstacles, and have at least a theory about how to overcome them. We’d be delighted to get an application that answered the question “What are you going to make?” with"}),e("blockquote",{children:e("p",{children:"A new search engine to compete with Google."})}),e("p",{children:"so long as this was followed by"}),e("blockquote",{children:e("p",{children:"We know that sounds impossible, but we think we can get a toehold initially by…"})}),e("div",{id:"r2",children:o("p",{children:["Wouldn’t you be interested at this point? Even if the plan had only a 1% chance of working, it would be worth backing. ",e("a",{href:"#n2",children:"2."})]})}),e("p",{children:"Whereas if we can see obstacles to your idea that you don’t seem to have considered, that’s a bad sign. This is your idea. You’ve had days, at least, to think about it, and we’ve only had a couple minutes. We shouldn’t be able to come up with objections you haven’t thought of."}),e("p",{children:"Paradoxically, it is for this reason better to disclose all the flaws in your idea than to try to conceal them. If we think of a problem you don’t mention, we’ll assume it’s because you haven’t thought of it. And since we care more about you than the idea, it’s a mistake to risk sacrificing yourself to make the idea seem better."}),e("h3",{id:"exploration",children:"Further Exploration"}),e("p",{children:"If the founders seem promising and the idea is interesting, I’ll now spend a lot more time on the application."}),o("p",{children:["I’ll take a look at the ",e("a",{href:"/video",children:"video"}),", if there is one. (Statistically we’re much more likely to interview people who submit a video.) I’ll check out the demo. And I’ll look at answers to some of the more mundane questions, like the stock allocation."]}),e("p",{children:"If the founders seem promising but the idea doesn’t, I check the question near the end that asks what other ideas the founders had. It’s quite common for us to fund groups to work on ideas they listed as alternates."}),e("h3",{id:"wildcard",children:"The Wildcard"}),e("p",{children:"There’s one question that acts like a wildcard, at least for me:"}),e("blockquote",{children:e("p",{children:"Please tell us about the time you most successfully hacked some (non-computer) system to your advantage."})}),e("p",{children:"If this wasn’t already clear, we’re not looking for the sort of obedient, middle-of-the-road people that big companies tend to hire. We’re looking for people who like to beat the system. So if the answer to this question is good enough, it will make me go back and take a second look at an application that otherwise seemed unpromising. In fact, I think there are people we’ve invited to interviews mainly on the strength of their answer to this question."}),e("h3",{id:"helpout",children:"Help Us Out"}),e("p",{children:"Generally, the advice I’d give to applicants is: help us out. Investors are optimists. We want to believe you’re great. Most people you meet in everyday life don’t."}),e("p",{children:"If you go around saying you’re going to start the next Google, most people’s initial reaction will be skepticism. Partly because the odds of succeeding are low, so skepticism is the safe bet, but also because most people are threatened by ambition: you seem to be trying to put yourself above them, even if that isn’t your intention."}),e("p",{children:"Investors are different—-not because they’re more generous spirited than other people, but because they get equity. Tell investors you’re going to start the next Google and they immediately perk up. They don’t default to skepticism, because they like risky bets. And they don’t feel like you’re trying to put yourself above them, because they hope to be drawn up with you."}),e("p",{children:"Like all investors, we want to believe. So help us believe. If there’s something about you that stands out, or some special insight you have into the problem you plan to work on, make sure we see it."}),e("p",{children:"The best way to do that is simply to be concise. You don’t have to sell us on you. We’ll sell ourselves, if we can just understand you. But every unnecessary word in your application subtracts from the effect of the necessary ones. So before submitting your application, print it out and take a red pen and cross out every word you don’t need. And in what’s left be as specific and as matter-of-fact as you can."}),e("h3",{id:"example",children:"Example Application"}),o("h2",{children:["Here’s an example of a successful application:"," ",e("a",{href:"/apply/dropbox",children:"Dropbox’s Summer 2007 application"})]}),e("h2",{id:"footnotes",children:"Notes"}),o("ol",{children:[o("li",{id:"n1",children:["This is true of investors generally. Never use vague or inflated language with experienced investors. They’ve heard so much of it that it no longer has any effect on them, except to confuse and annoy them. ",e("a",{href:"#r1",children:"↪"})]}),o("li",{id:"n2",children:["The “next Google” is unlikely to be a search engine, however, just as the “next Microsoft” was not a desktop software company. I used competing directly with Google as an example of a problem with maximum difficulty, not maximum payoff. Maximum payoff is more likely to come from making Google irrelevant than from replacing it. How exactly? I have no more than vague ideas about that. I wouldn’t expect to be able to figure out the right answer, just as I wouldn’t have expected anyone to figure out in 1990 what would make Microsoft irrelevant. ",e("a",{href:"#r2",children:"↪"})]})]}),o("p",{children:[e("strong",{children:"Thanks"})," to Trevor Blackwell, Jessica Livingston, and Robert Morris for reading drafts of this, and to Drew Houston for posting Dropbox’s application."]})]}),e(R,{expandable:!1,highlightVisible:!1,sections:ar})]})})]})}const oa=N(or),bt=p.memo(jt),Xe=class Xe extends p.PureComponent{constructor(n){super(n),this.messagesRef=p.createRef(),this.getSortedJobs=qt(()=>{const a=this.props.recommendedJobIds;return[...this.props.company.jobs].sort((r,l)=>(a&&a.includes(l.id)?1:0)-(a&&a.includes(r.id)?1:0))}),this.toggleShowMore=()=>{this.setState({showMoreDescription:!this.state.showMoreDescription})},this.state={showVideo:!1,showMoreDescription:!1}}componentDidMount(){}componentWillUnmount(){}renderEmployeeImage(){const{employee:n,company:a}=this.props;return o(K,{children:[!(n!=null&&n.avatar_url)&&e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"m-4 h-40 w-40 text-gray-200",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0012 15.75a7.488 7.488 0 00-5.982 2.975m11.963 0a9 9 0 10-11.963 0m11.963 0A8.966 8.966 0 0112 21a8.966 8.966 0 01-5.982-2.275M15 9.75a3 3 0 11-6 0 3 3 0 016 0z"})}),(n==null?void 0:n.avatar_url)&&e("img",{alt:`${n==null?void 0:n.full_name}, ${a.name}`,src:n==null?void 0:n.avatar_url,className:"sm:m-1 sm:w-40",onError:t=>{const r=t.target;r.src.indexOf("avatar.tobi")===-1&&(r.src=a.getBackupLogoUrl())}})]})}renderImage(){const{company:n}=this.props;return e("img",{alt:n.name,src:n.getSmallLogoUrl(),className:"sm:m-4 sm:w-28",onError:a=>{const t=a.target;t.src.indexOf("avatar.tobi")===-1&&(t.src=n.getBackupLogoUrl())}})}renderTitle(){const{company:n}=this.props;return e("div",{className:"text-2xl font-medium",children:o("a",{href:n.getDetailUrl(),target:"_target",children:[e("span",{className:"company-name hover:underline",children:n.name}),n.batch&&o("span",{className:"ml-2 text-sm text-gray-400",children:["(",n.batch,")"]})]})})}renderFounders(){const{company:n}=this.props;return o("div",{className:"w-full sm:grid sm:grid-cols-12",children:[e("div",{className:"ml-4 text-sm font-medium text-gray-600 sm:col-span-1 sm:mx-4 sm:text-right",children:"Founders"}),e("div",{className:"sm:col-span-11",children:n.founders.map(a=>e("div",{className:"mb-4 sm:mx-2",children:o("div",{className:"flex flex-col sm:flex-row",children:[e("img",{className:"ml-2 h-20 w-20 rounded-full sm:ml-5",src:a.avatar_thumb,alt:""}),o("div",{className:"ml-2 w-full sm:ml-9",children:[o("div",{className:"font-medium",children:[a.full_name,a.linkedin&&e("a",{href:a.linkedin,className:"fa fa-linkedin ml-4 p-1 text-blue-600",target:"_blank",children:" "})]}),a.founder_bio&&e("div",{className:"w-full text-sm",children:a.founder_bio}),!a.founder_bio&&a.past_companies&&e("div",{className:"company-founder-companies",children:a.past_companies})]})]})},a.id))})]})}renderFounderContact(){const{company:n}=this.props;return n.founders.length===0?e("div",{}):e(K,{children:o("div",{className:"company-connect",children:[e("div",{className:"call",children:o("div",{className:"description",children:["Start a conversation with ",n.founders[0].first_name," about the company or any open roles."]})}),e("div",{className:"profile",children:o("div",{className:"profile-inner",children:[e("div",{className:"photo",children:e("img",{src:n.founders[0].avatar_thumb,alt:""})}),o("div",{className:"details",children:[e("div",{className:"name",children:n.founders[0].full_name}),e("div",{className:"title",children:"Founder"})]})]})})]})})}renderHiringDescription(){const{company:n}=this.props;return o("div",{className:"grid w-full grid-cols-12",children:[e("div",{className:"mx-4 text-sm font-medium text-gray-600 sm:col-span-1 sm:text-right",children:"About"}),e("div",{className:"prose col-span-11 mx-5 max-w-none",children:e(bt,{source:n.hiring_description})})]})}renderTechDescription(){const{company:n}=this.props;return o("div",{className:"grid w-full grid-cols-12",children:[e("div",{className:"mx-4 text-sm font-medium text-gray-600 sm:col-span-1 sm:text-right",children:"Tech"}),e("div",{className:"prose col-span-11 mx-5 max-w-none",children:e(bt,{source:n.tech_description})})]})}renderReadMoreLink(){const{company:n}=this.props;return e("a",{href:n.getDetailUrl(),target:"_blank",children:"Learn more ›"})}hasVideo(){const{company:n}=this.props;if(n.hiring_video_url)return!0;if(this.props.eventId&&Object.keys(n.event_video_urls).length>0)return n.event_video_urls[this.props.eventId]}renderCardView(){const{company:n,showBio:a,employee:t}=this.props,r=(this.props.featured,"bg-beige-lighter"),l=this.props.featured?"border border-orange-500":"border border-gray-200";return o("div",{className:`${r} ${l} relative mb-4 rounded p-4`,children:[e("div",{className:"flex justify-center",children:o("a",{href:n.getDetailUrl(),target:"_target",children:[a&&this.renderEmployeeImage(),!a&&this.renderImage()]})}),a&&t&&o("div",{className:"text-center",children:[e("div",{className:"py-1 text-2xl font-medium",children:e("a",{href:n.getDetailUrl(),target:"_blank",children:t.full_name})}),e("div",{className:"pb-4 text-gray-700",children:o("a",{href:n.getDetailUrl(),target:"_blank",children:[t.yc_bio&&e("span",{children:t.yc_bio}),!t.yc_bio&&o("span",{children:[t.title," @ ",n.name," "]}),n.batch&&e("span",{children:`(${n.batch})`})]})})]}),!a&&e("div",{className:"text-center",children:o("div",{children:[this.renderTitle(),e("div",{className:"m-3 text-gray-700",children:n.description})]})}),e("div",{className:"absolute bottom-2 right-4 text-sm text-blue-500",children:this.renderReadMoreLink()})]})}renderListView(n=!1,a=!1){const{company:t}=this.props,r=(this.props.featured,"bg-beige-lighter"),l=this.props.featured?"border border-orange-500":n?"":"border border-gray-200";return o("div",{className:`${r} ${l} mb-5 rounded pb-6`,children:[this.props.showLogoAndName&&o("div",{className:"flex",children:[e("div",{className:"hidden sm:flex",children:e("a",{href:t.getDetailUrl(),target:"_target",children:this.renderImage()})}),o("div",{className:"mx-5 my-4 w-full sm:mr-4 sm:w-4/5",children:[o("div",{className:"flex",children:[e("div",{className:"mr-4 flex w-20 sm:hidden",children:e("a",{href:t.getDetailUrl(),target:"_target",children:this.renderImage()})}),o("div",{className:"flex w-full flex-col",children:[o("div",{className:"flex w-full flex-row",children:[o("div",{className:"sm:w-4/5",children:[this.renderTitle(),this.props.featured&&e("span",{className:"w-full pr-5 text-right text-sm italic text-orange-500",children:"Featured company"})]}),this.props.featured&&e("div",{className:"sm:text-md mt-2 whitespace-nowrap text-sm sm:mr-8 sm:mt-3",children:e("a",{className:"rounded-md bg-brand p-2 text-white hover:bg-brand-600",target:"_blank",href:t.getDetailUrl(),children:"View Company"})})]}),e("div",{children:e("div",{className:"mb-3 mt-3 text-gray-700",children:t.description})})]})]}),e(Bt,{company:t}),e("div",{className:"mt-4 flex sm:hidden sm:w-1/5",children:e(Je,{company:t})})]}),e("div",{className:"mt-4 hidden sm:flex sm:w-1/5",children:e(Je,{company:t})})]}),t.is_hiring&&e("div",{className:"row"})]})}render(){const{layout:n}=this.props;switch(n){case"list":return this.renderListView(!0);case"card":return this.renderCardView();default:return this.renderCardView()}}};Xe.defaultProps={layout:"list-compact",showApplyButtonInCard:!1,showReadMoreLinkInCard:!1,showRecommendedJobsOnly:!1,profile:null,showLogoAndName:!0,showVideo:!1};let vt=Xe;export{ra as A,Zr as B,_r as C,zr as D,Xr as E,Vr as H,Hr as I,Pr as K,Jr as N,Mr as P,ea as R,Ur as S,ta as W,rn as a,Lr as b,Dr as c,Br as d,Er as e,Or as f,Fr as g,Nr as h,Wr as i,Ar as j,Rr as k,Ir as l,qr as m,vt as n,$r as o,Gr as p,Kr as q,Qr as r,Yr as s,jr as t,ia as u,aa as v,oa as w,na as x};
