1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var a in n)n.hasOwnProperty(a)&&(e[a]=n[a])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:bolt-website":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="79da569d-8b54-47df-a1bd-3a915aadd976",e._sentryDebugIdIdentifier="sentry-dbid-79da569d-8b54-47df-a1bd-3a915aadd976")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[78716],{95784:function(e,t,n){"use strict";n.d(t,{hU:function(){return o.h},kC:function(){return r.k},xu:function(){return a.x}});var a=n(87352),r=n(95517),o=n(27318)},33758:function(e,t,n){"use strict";n.d(t,{Q2:function(){return l.Theme},W2:function(){return a.W},X6:function(){return o.X},kC:function(){return r.k},xv:function(){return i.x}});var a=n(26922),r=n(95517),o=n(42912),i=n(3208),l=n(84164)},85962:function(e,t,n){"use strict";n.d(t,{h:function(){return a.h},x:function(){return r.x}});var a=n(27318),r=n(3208)},21558:function(e,t,n){"use strict";n.d(t,{Q:function(){return a.Theme}});var a=n(84164)},61061:function(e){e.exports={LogoContainer:"FooterBottom_LogoContainer__2zWdC",SocialButton:"FooterBottom_SocialButton___bGcL",CtaRow:"FooterBottom_CtaRow__4IKlE"}},41844:function(e){e.exports={Nav:"FooterColumn_Nav__Jgzbo",NavColumn:"FooterColumn_NavColumn__447oh",ColHeading:"FooterColumn_ColHeading__mkFD_",ColHeader:"FooterColumn_ColHeader__VWp5K",ColToggle:"FooterColumn_ColToggle__r7s_q",ColToggleIcon:"FooterColumn_ColToggleIcon__VLXMD",LinkListContent:"FooterColumn_LinkListContent__UB9Vw",LinkListWrap:"FooterColumn_LinkListWrap__UL8Yz",LinkList:"FooterColumn_LinkList__Zpqn0"}},47672:function(e){e.exports={Row:"CtaRow_Row__CzGlg",Stretch:"CtaRow_Stretch__0Jpm5",Gap2:"CtaRow_Gap2__lySmy",Gap3:"CtaRow_Gap3__N7ut_",Gap4:"CtaRow_Gap4__77nGK"}},88096:function(e){e.exports={HeaderRevealMedia:"HeaderMediaReveal_HeaderRevealMedia__HWtME",HeaderRevealMediaClip:"HeaderMediaReveal_HeaderRevealMediaClip__mS7uC",HeaderRevealParallax:"HeaderMediaReveal_HeaderRevealParallax__mmW_j"}},56516:function(e){e.exports={HeaderReveal:"HeaderReveal_HeaderReveal__pt_1Y",HeaderRevealStagger:"HeaderReveal_HeaderRevealStagger__jk4Z_",HeaderRevealMove:"HeaderReveal_HeaderRevealMove__bwfY1",HeaderRevealFade:"HeaderReveal_HeaderRevealFade__PymvG"}},86037:function(e){e.exports={HeaderSubtitle:"HeaderSubtitle_HeaderSubtitle__gD_U6"}},37227:function(e){e.exports={"HeroContent-hero":"Hero_HeroContent-hero__cfdeO","HeroContent-heroCinematic":"Hero_HeroContent-heroCinematic__fSx10","HeroContainer-hero":"Hero_HeroContainer-hero__oxpfM","HeroContainer-heroCinematic":"Hero_HeroContainer-heroCinematic__07rNv",HeroMediaLayer:"Hero_HeroMediaLayer___ia26",HeroMediaFill:"Hero_HeroMediaFill__13lY9",HeroOverlay:"Hero_HeroOverlay__Sl4R2",HeroBackgroundFade:"Hero_HeroBackgroundFade__KAa4T"}},9140:function(e){e.exports={AiLabelOverlay:"AiLabelOverlay_AiLabelOverlay__8g1Cl"}},2766:function(e){e.exports={MediaContainer:"MediaContainer_MediaContainer__BAjMo","MediaContainer-auto":"MediaContainer_MediaContainer-auto__UqTfH","MediaContainer-fill":"MediaContainer_MediaContainer-fill__oQR75","MediaContainer-heroWide":"MediaContainer_MediaContainer-heroWide__rS2Ha","MediaContainer-heroCinematic":"MediaContainer_MediaContainer-heroCinematic__3zZeK","MediaContainer-showcaseWide":"MediaContainer_MediaContainer-showcaseWide___BxCi","MediaContainer-showcaseCinematic":"MediaContainer_MediaContainer-showcaseCinematic__di8X9","MediaContainer-showcasePanorama":"MediaContainer_MediaContainer-showcasePanorama__tAO7M","MediaContainer-showcaseFullBleed":"MediaContainer_MediaContainer-showcaseFullBleed__HpJRB","skeleton-pulse":"MediaContainer_skeleton-pulse__VtUmp"}},42788:function(e,t,n){"use strict";n.d(t,{FooterNav:function(){return c}});var a=n(78198),r=n(65797),o=n(42730),i=n(6547),l=n(85962),u=n(49987),s=n(41844);function c(e){var t,n=e.sections,a="".concat(null==(t=n[0])?void 0:t.t
1itle,"-0");return(0,r.jsx)(o.fC,{asChild:!0,collapsible:!0,defaultValue:a,type:"single",children:(0,r.jsx)("nav",{"aria-label":"Footer navigation",className:s.Nav,children:n.map(function(e,t){var n="".concat(e.title,"-").concat(t);return(0,r.jsx)(d,{section:e,value:n},n)})})})}function d(e){var t=e.section,n=e.value;return(0,r.jsxs)(o.ck,{className:s.NavColumn,value:n,children:[(0,r.jsx)(l.x,{className:s.ColHeading,color:"gray",highContrast:!0,size:"2",weight:"medium",children:t.title}),(0,r.jsx)(o.h4,{asChild:!0,children:(0,r.jsx)("div",{className:s.ColHeader,children:(0,r.jsxs)(o.xz,{className:s.ColToggle,children:[(0,r.jsx)(l.x,{color:"gray",highContrast:!0,size:"2",weight:"medium",children:t.title}),(0,r.jsx)(l.h,{asChild:!0,className:s.ColToggleIcon,color:"gray",highContrast:!0,radius:"large",size:"3",tabIndex:-1,variant:"ghost",children:(0,r.jsx)("span",{"aria-hidden":"true",children:(0,r.jsx)(i.Z,{})})})]})})}),(0,r.jsx)(o.VY,{className:s.LinkListContent,forceMount:!0,children:(0,r.jsx)("div",{className:s.LinkListWrap,children:(0,r.jsx)("ul",{className:s.LinkList,children:t.links.map(function(e){return(0,r.jsx)("li",{children:(0,r.jsx)(u.g,(0,a.b)((0,a.a)({},e),{highContrast:!0,size:"2",underline:"hover",weight:"light"}))},e.href)})})})})]})}},94028:function(e,t,n){"use strict";n.r(t),n.d(t,{HeaderRevealContent:function(){return L},HeaderRevealMedia:function(){return H},HeaderRevealParallax:function(){return j},HeaderRevealSection:function(){return M}});var a=n(14010),r=n(78198),o=n(65797),i=n(19527),l=n(77811),u=n(31245),s=n(27953),c=n(46470),d=n(31996),f=n(19017),v=n(74209),h=n(41295),m=n(39731),_=n(84889),p=n(55041),C=n(88096);function g(){var e=(0,a._)(["inset(0 round ","px)"]);return g=function(){return e},e}function y(){var e=(0,a._)(["","px"]);return y=function(){return e},e}var b={stiffness:60,damping:25,mass:1},w=(0,l.BX)(0),x=(0,i.createContext)(null),M=(0,i.forwardRef)(function(e,t){var n=e.hasMedia,a=void 0!==n&&n,l=e.children,m=(0,r.c)(e,["hasMedia","children"]),_=(0,i.useRef)(null),C=(0,p.G)(p.I.sm),y=(0,u.J)(),w=(0,s.v)({target:_,offset:["start start","end start"]}).scrollYProgress,M=(0,c.H)(w,[.4,.75],[1,.95]),H=(0,c.H)(w,[.4,.75],[0,16]),j=(0,d.q)(M,b),L=(0,d.q)(H,b),R=(0,f.Y)(g(),L),A=(0,c.H)(j,[1,.95],[0,-40]),P=(0,d.q)(A,b),S=(0,c.H)(w,[0,1],[0,150]),k=(0,d.q)(S,b),N=a&&C&&!y,I=a&&!y,T=(0,i.useMemo)(function(){return{scale:j,clipPath:R,contentY:P,mediaY:k,isAnimated:N,isParallax:I}},[j,R,P,k,N,I]);return(0,o.jsx)(x.Provider,{value:T,children:(0,o.jsx)(v.X,{features:h.H,children:(0,o.jsx)("section",(0,r.b)((0,r.a)({},m),{ref:function(e){_.current=e,"function"==typeof t?t(e):t&&(t.current=e)},children:l}))})})});function H(e){var t=e.className,n=e.parallax,a=void 0!==n&&n,r=e.children,l=(0,i.useContext)(x);return(0,o.jsx)(m.m.div,{className:(0,_.W)(C.HeaderRevealMedia,a&&C.HeaderRevealMediaClip,t),style:!a&&null!=l&&l.isAnimated?{scale:l.scale,clipPath:l.clipPath}:void 0,children:r})}function j(e){var t,n=e.children,a=(0,i.useContext)(x),r=null!=(t=null==a?void 0:a.mediaY)?t:w,l=(0,f.Y)(y(),r);return(0,o.jsx)(m.m.div,{className:C.HeaderRevealParallax,style:null!=a&&a.isParallax?{y:r,"--header-parallax-offset":l}:void 0,children:n})}function L(e){var t=e.children,n=(0,i.useContext)(x);return(0,o.jsx)(m.m.div,{style:null!=n&&n.isAnimated?{y:n.contentY}:void 0,children:t})}},59779:function(e,t,n){"use strict";n.d(t,{s:function(){return p}});var a=n(78198),r=n(65797),o=n(84889),i=n(48586);function l(e){var t=e.size,n=void 0===t?40:t,a=e.label,o=e.className;return(0,r.jsxs)("svg",{"aria-label":void 0===a?"Generated with AI":a,className:o,height:n,role:"img",style:{display:"block"},viewBox:"0 0 80 80",width:n,xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M40.0011 0C62.0909 0 80 17.9091 80 40.0011C80 62.0931 62.0909 80 40.0011 80C17.9113 80 0 62.0909 0 40.0011C0 17.9113 17.9091 0 40.0011 0Z",fill:"#FBFDFC"}),(0,r.jsx)("path",{d:"M17.8412 55.3821C17.6049 55.3821 17.3925 55.288 17.2021 55.0954C17.0095 54.9049 16.9154 54.6926 16.9154 54.4562C16.9154 54.3096 16.9307 54.1782 16.9591 54.06L27.3211 25.7539C27.4087 25.43 27.5925 25.1432 27.8727 24.8937C28.1507 24.6442 28.5403 24.5194 29.0416 24.5194H35.5665C36.0656 24.5194 36.4552 24.6442 36.7353 24.8937C37.0133 25.1432 37.1972 25.43 37.2869 25.7539L47.6051 54.06C47.6642 54.1782 47.6927 54.3096 47.6927 54.4562C47.6927 54.6926 47.5964 54.9049 47.4059 55.0954C47.2155 55.2858 46.9879 55.3821 46.723 55.3821H41.2991C40.8591 55.3821 40.5286 55.2727 40.3075 55.0516C40.0865 54.8305 39.9464 54.6335 39.8895 54.4562L38.169 49.9581H26.3974L24.723 54.4562C24.6639 54.6335 24.5304 54.8305 24.3268 55.0516C24.121 55.2727 23.7686 55.3821 23.2696 55.3821H17.8412ZM28.2032 43.6105H36.4048L32.2613 31.9702L28.2054 43.6105H28.2032Z",fill:"#191F1C"}),(0,r.jsx)("path",{d:"M52.2761 55.3821C51.9522 55.3821 51.6873 55.2792 51.4816 55.0735C51.2758 54.8677 51.1729 54.6029 51.1729 54.2789V25.6204C51.1729 25.2965 51.2758 25.0338 51.4816 24.8259C51.6873 24.6179 51.9522 24.5172 52.2761 24.5172H58.1838C58.5078 24.5172 58.7704 24.6201 58.9784 24.8259C59.1841 25.0316 59.287 25.2965 59.287 25.6204V54.2789C59.287 54.6029 59.1841 54.8677 58.9784 55.0735C58.7726 55.2792 58.5078 55.3821 58.1838 55.3821H52.2761Z",fill:"#191F1C"})]})}var u=n(9140);function s(e){var t=e.label;return(0,r.jsx)(l,{className:u.AiLabelOverlay,label:t})}var c=n(2766),d=n(26566),f=n(65388),v=n(80031),h={4:"surface-radius-1",5:"surface-radius-2",6:"surface-radius-3"},m=function(e){if(!e)return{};var t,n="var(--".concat(null!=(t=h[e.size])?t:"radius-".concat(e.size),")");return"top"===e.position?{borderTopLeftRadius:n,borderTopRightRadius:n}:"bottom"===e.position?{borderBottomLeftRadius:n,borderBottomRightRadius:n}:{borderRadius:n}},_={heroWide:c["MediaContainer-heroWide"],heroCinematic:c["MediaContainer-heroCinematic"],showcaseWide:c["MediaContainer-showcaseWide"],showcaseCinematic:c["MediaContainer-showcaseCinematic"],showcasePanorama:c["MediaContainer-showcasePanorama"],showcaseFullBleed:c["MediaContainer-showcaseFullBleed"],fill:c["MediaContainer-fill"],auto:c["MediaContainer-auto"]};function p(e){var t,n,l=e.imageProps,u=e.videoProps,h=e.variant,p=e.borderRadius,C=e.containerClassName,g=e.youtubeLink,y=e.suppressAiLabel,b=m(p),w=!(void 0!==y&&y)&&!!(null!=(t=null==l?void 0:l.isAiGenerated)?t:null!=u&&u.isAiGenerated);return l?n="ImageObject":(u||g)&&(n="VideoObject"),(0,r.jsx)(i.x,{asChild:!0,className:(0,o.W)(c.MediaContainer,_[h],C),"data-testid":"Layout/MediaContainer",overflow:"hidden",position:"relative",style:b,width:"100%",children:(0,r.jsxs)("figure",{itemScope:!0,itemType:n?"https://schema.org/".concat(n):void 0,children:[l?(0,r.jsx)(f.Image,(0,a.a)({},l)):null,u&&!g?(0,r.jsx)(d.Video,(0,a.a)({},u)):null,g?(0,r.jsx)(v.YouTube,{autoPlay:null==u?void 0:u.autoPlay,className:null==u?void 0:u.className,controls:null==u?void 0:u.controls,muted:null==u?void 0:u.muted,poster:null==u?void 0:u.poster,shouldLazyLoad:null==u?void 0:u.shouldLazyLoad,soundControl
1s:null==u?void 0:u.soundControls,youtubeLink:g}):null,w?(0,r.jsx)(s,{}):null]})})}},65388:function(e,t,n){"use strict";n.r(t),n.d(t,{Image:function(){return l}});var a=n(78198),r=n(65797),o=n(19527),i=function(e){e.setAttribute("data-loaded","true")};function l(e){var t=e.component,n=e.alt,l=e.onError,u=e.onLoad,s=(e.isAiGenerated,(0,a.c)(e,["component","alt","onError","onLoad","isAiGenerated"]));return t?(0,o.cloneElement)(t,(0,a.b)((0,a.a)({},t.props),{itemProp:"contentUrl"})):(0,r.jsx)("img",(0,a.b)((0,a.a)({alt:n,"data-loaded":"false",decoding:"async",itemProp:"contentUrl",loading:"lazy"},s),{onError:function(e){i(e.currentTarget),null==l||l(e)},onLoad:function(e){i(e.currentTarget),null==u||u(e)},ref:function(e){null!=e&&e.complete&&i(e)}}))}},51653:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var a=n(78198),r=n(65797),o=n(59779),i=n(33905);function l(e){var t=e.animation,n=(0,a.c)(e,["animation"]);return t?(0,r.jsx)(i.MediaContainerWithAnimation,(0,a.b)((0,a.a)({},n),{animation:t})):(0,r.jsx)(o.s,(0,a.a)({},n))}},33905:function(e,t,n){"use strict";n.d(t,{MediaContainerWithAnimation:function(){return g}});var a=n(14010),r=n(78198),o=n(65797),i=n(19527),l=n(27953),u=n(31996),s=n(46470),c=n(19017),d=n(74209),f=n(41295),v=n(39731),h=n(48586),m=n(59779);function _(){var e=(0,a._)(["scale(",")"]);return _=function(){return e},e}var p={scrollScaleDown:["start 25%","center start"],scrollScaleUp:["start center","start start"],scrollScaleUpBeyond:["start center","start start"]},C={scrollScaleDown:[1,.9],scrollScaleUp:[.9,1],scrollScaleUpBeyond:[1,1.1]};function g(e){var t=e.animation,n=(0,r.c)(e,["animation"]),a=(0,i.useRef)(null),g=(0,l.v)({target:a,offset:p[t]}).scrollYProgress,y=(0,u.q)(g,{stiffness:500,damping:60,mass:1}),b=(0,s.H)(y,[0,1],C[t]),w=(0,c.Y)(_(),b);return(0,o.jsx)(d.X,{features:f.H,children:(0,o.jsx)(h.x,{overflow:"hidden",children:(0,o.jsx)(v.m.div,{ref:a,style:{transform:w,willChange:"transform"},children:(0,o.jsx)(m.s,(0,r.a)({},n))})})})}},26566:function(e,t,n){"use strict";n.d(t,{Video:function(){return h}});var a=n(15429),r=n(78198),o=n(65797),i=n(95784),l=n(19527),u=n(31596),s=n(52196),c=n(961),d=n(89470),f={src:"https://assets.homepage.bolt.eu/1.22.157/_next/static/media/og-image.46b9874b.png",height:630,width:1200,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAIAAAA8r+mnAAAAYUlEQVR42mPQbI3Qb49iqPNgqLRlqLRhqPPSb48GCjIYd8Qw1LjM27li4e7Vc3Ysb145iaHey7A9GixR6zZj2+KDF48funi8e90MhjpPo/YYBqAug/ZooBwYuQNFDcBGAQBcdCYFJlGtmAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},v=function(e){e.setAttribute("data-loaded","true")};function h(e){var t=e.className,n=e.sources,h=e.src,m=e.shouldLazyLoad,_=void 0===m||m,p=e.type,C=void 0===p?"video/mp4":p,g=e.autoPlay,y=void 0===g||g,b=e.controls,w=e.muted,x=e.soundControls,M=void 0!==x&&x,H=e.videoMetadata,j=e.poster,L=e.onLoadedData,R=(e.isAiGenerated,(0,r.c)(e,["className","sources","src","shouldLazyLoad","type","autoPlay","controls","muted","soundControls","videoMetadata","poster","onLoadedData","isAiGenerated"])),A=(0,a._)((0,l.useState)(!_),2),P=A[0],S=A[1],k=(0,a._)((0,l.useState)(y),2),N=k[0],I=k[1],T=(0,a._)((0,l.useState)(!!y&&(void 0===w||w)),2),F=T[0],Y=T[1],B=(0,l.useRef)(null),E=(0,l.useRef)(!1),U=(void 0!==b&&b||!y)&&N,z=(null==H?void 0:H.name)||"Bolt video",G=(null==H?void 0:H.description)||z,D=j||f,V=null!=H&&H.uploadDate&&"string"==typeof H.uploadDate?new Date(H.uploadDate).toISOString():void 0;(0,l.useEffect)(function(){var e=B.current;if(e){var t="undefined"!=typeof IntersectionObserver;!t&&_&&S(!0);var n=t?new IntersectionObserver(function(t){(0,a._)(t,1)[0].isIntersecting?(_&&S(!0),y&&e.paused&&e.play().catch(function(){})):e.paused||e.pause()},{root:null,rootMargin:"500px 0px 0px 0px"}):null,r=function(){"hidden"!==document.visibilityState||e.paused?y&&"visible"===document.visibilityState&&e.paused&&e.play().catch(function(){}):e.pause()};return null==n||n.observe(e),document.addEventListener("visibilitychange",r),function(){null==n||n.disconnect(),document.removeEventListener("visibilitychange",r)}}},[_,y]),(0,l.useEffect)(function(){if(M&&"undefined"!=typeof IntersectionObserver){var e=B.current;if(e){var t=new IntersectionObserver(function(e){(0,a._)(e,1)[0].intersectionRatio<.2?E.current||(E.current=!0,Y(!0)):E.current=!1},{threshold:[0,.2,1]});return t.observe(e),function(){t.disconnect()}}}},[M]);var W=(0,l.useCallback)(function(){I(!0)},[]),O=(0,l.useCallback)(function(){var e=B.current;null!=e&&e.seeking||I(!1)},[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("video",(0,r.b)((0,r.a)({autoPlay:y,className:t,controls:U,"data-chromatic":"ignore","data-loaded":"false",loop:!0,muted:F,onLoadedData:function(e){v(e.currentTarget),null==L||L(e)}
1,onPause:O,onPlay:W,playsInline:!0,poster:j,preload:"metadata",ref:function(e){B.current=e,e&&e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&v(e)}},R),{children:P&&null!=n&&n.length?n.map(function(e){return(0,o.jsx)("source",(0,r.a)({itemProp:"contentUrl",type:e.type||C},e),e.src)}):(0,o.jsx)("source",{itemProp:"contentUrl",src:h,type:C})})),(0,o.jsx)("meta",{content:z,itemProp:"name"}),(0,o.jsx)("meta",{content:G,itemProp:"description"}),(0,o.jsx)("meta",{content:D,itemProp:"thumbnailUrl"}),V?(0,o.jsx)("meta",{content:V,itemProp:"uploadDate"}):null,null!=H&&H.duration?(0,o.jsx)("meta",{content:H.duration,itemProp:"duration"}):null,null!=H&&H.width?(0,o.jsx)("meta",{content:String(H.width),itemProp:"width"}):null,null!=H&&H.height?(0,o.jsx)("meta",{content:String(H.height),itemProp:"height"}):null,N?null:(0,o.jsx)(i.kC,{align:"center",height:"100%",inset:"0",justify:"center",onClick:function(){var e=B.current;e&&e.play().catch(function(){})},position:"absolute",width:"100%",children:(0,o.jsx)(i.hU,{"aria-label":"Start video",size:"4",children:(0,o.jsx)(u.Z,{})})}),M?(0,o.jsx)(i.xu,{position:"absolute",right:"5",top:{initial:"calc(var(--navigation-height) + var(--space-4))",md:d.lv.md},children:(0,o.jsx)(i.hU,{"aria-label":"Toggle sound",highContrast:!0,onClick:function(){Y(function(e){return!e})},radius:"full",size:"4",children:F?(0,o.jsx)(c.Z,{}):(0,o.jsx)(s.Z,{})})}):null]})}},80031:function(e,t,n){"use strict";n.d(t,{YouTube:function(){return d}});var a=n(15429),r=n(65797),o=n(95784),i=n(19527),l=n(31596),u=n(52196),s=n(961),c=n(89470);function d(e){var t=e.className,n=e.youtubeLink,d=e.title,f=e.shouldLazyLoad,v=void 0===f||f,h=e.autoPlay,m=void 0===h||h,_=e.controls,p=void 0!==_&&_,C=e.muted,g=void 0===C||C,y=e.soundControls,b=e.poster,w=(0,a._)((0,i.useState)(!v),2),x=w[0],M=w[1],H=(0,a._)((0,i.useState)(m),2),j=H[0],L=H[1],R=(0,a._)((0,i.useState)(!!m&&g),2),A=R[0],P=R[1],S=(0,a._)((0,i.useState)(m),2),k=S[0],N=S[1],I=(0,i.useRef)(null),T=(0,i.useRef)(null),F=(0,i.useMemo)(function(){return function(e){var t=/(?:https?:\/\/)?(?:www\.|m\.)?(?:youtube\.com\/(?:watch\?v=|embed\/|v\/|shorts\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})(?:[&?].*)?/.exec(e);if(!t)throw Error("Invalid YouTube URL");return t[1]}(n)},[n]),Y=(p||!m)&&j,B=(0,i.useMemo)(function(){var e,t;return t=new URLSearchParams({autoplay:(e={autoPlay:m,muted:!!m&&g,controls:p||!m}).autoPlay?"1":"0",mute:e.muted?"1":"0",loop:"1",enablejsapi:"1",playlist:F,color:"white",rel:"0",playsinline:"1",controls:e.controls?"1":"0",iv_load_policy:"3"}),"https://www.youtube-nocookie.com/embed/".concat(F,"?").concat(t.toString())},[F,m,g,p]);(0,i.useEffect)(function(){if(T.current)try{A?T.current.mute():T.current.unMute()}catch(e){}},[A]);var E=(0,i.useCallback)(function(){L(!0),N(!0)},[]),U=(0,i.useCallback)(function(){L(!1)},[]);return(0,i.useEffect)(function(){var e=I.current;if(e){var t=function(){if(!T.current)return!0;try{return void 0===window.YT||T.current.getPlayerState()!==window.YT.PlayerState.PLAYING}catch(e){return!0}},n="undefined"!=typeof IntersectionObserver;!n&&v&&M(!0);var r=n?new IntersectionObserver(function(e){var n,r;if((0,a._)(e,1)[0].isIntersecting){if(v&&M(!0),m&&t())try{null==(n=T.current)||n.playVideo()}catch(e){}}else if(!t())try{null==(r=T.current)||r.pauseVideo()}catch(e){}},{root:null,rootMargin:"500px 0px 0px 0px"}):null,o=function(){var e,n;if("hidden"!==document.visibilityState||t()){if(m&&"visible"===document.visibilityState&&t())try{null==(n=T.current)||n.playVideo()}catch(e){}}else try{null==(e=T.current)||e.pauseVideo()}catch(e){}};return null==r||r.observe(e),document.addEventListener("visibilitychange",o),function(){null==r||r.disconnect(),document.removeEventListener("visibilitychange",o)}}},[v,m]),(0,i.useEffect)(function(){if(x&&I.current){var e=!1,t=function(){if(!e){var t=I.current;if(t&&void 0!==window.YT){if(T.current)try{T.current.stopVideo()}catch(e){}var n="youtube-player-".concat(F,"-").concat(Date.now());t.id=n;try{T.current=new window.YT.Player(n,{events:{onStateChange:function(e){void 0!==window.YT&&(e.data===window.YT.PlayerState.PLAYING?E():e.data===window.YT.PlayerState.PAUSED&&U())}}})}catch(e){}}}};if(void 0===window.YT){if(window.__ytInitQueue||(window.__ytInitQueue=[],window.onYouTubeIframeAPIReady=function(){var e=window.__ytInitQueue||[];window.__ytInitQueue=void 0,e.forEach(function(e){e()})}),window.__ytInitQueue.push(t),!document.querySelector('script[src="https://www.youtube.com/iframe_api"]')){var n=document.createElement("script");n.src="https://www.youtube.com/iframe_api";var a=document.getElementsByTagName("script")[0];a.parentNode&&a.parentNode.insertBefore(n,a)}}else t();return function(){if(e=!0,window.__ytInitQueue){var n=window.__ytInitQueue.indexOf(t);n>-1&&window.__ytInitQueue.splice(n,1)}if(T.current){try{T.current.stopVideo()}catch(e){}T.current=null}}}},[x,F,E,U]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("iframe",{allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:t,"data-chromatic":"ignore","data-loaded":"false",frameBorder:"0",height:"100%",loading:"lazy",onLoad:function(e){e.currentTarget.setAttribute("data-loaded","true")},ref:I,src:x?B:void 0,style:{userSelect:"none",pointerEvents:Y?"auto":"none"},title:void 0===d?"YouTube video":d,width:"100%"}),k?null:(0,r.jsx)("div",{style:{position:"absolute",inset:0,backgroundImage:b?"url(".concat(b,")"):"url(https://img.youtube.com/vi/".concat(F,"/maxresdefault.jpg), url(https://img.youtube.com/vi/").concat(F,"/hqdefault.jpg)"),backgroundSize:"cover",backgroundPosition:"center",pointerEvents:"none"}}),j?null:(0,r.jsx)(o.kC,{align:"center",height:"100%",inset:"0",justify:"center",onClick:function(){var e;if(I.current)try{null==(e=T.current)||e.playVideo()}catch(e){}},position:"absolute",width:"100%",children:(0,r.jsx)(o.hU,{"aria-label":"Start video",size:"4",children:(0,r.jsx)(l.Z,{})})}),void 0!==y&&y?(0,r.jsx)(o.xu,{position:"absolute",right:"5",top:{initial:"9",md:c.lv.md},children:(0,r.jsx)(o.hU,{"aria-label":"Toggle sound",highContrast:!0,onClick:function(){P(function(e){return!e})},radius:"full",size:"4",children:A?(0,r.jsx)(s.Z,{}):(0,r.jsx)(u.Z,{})})}):null]})}},38182:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var a=["accent-3","brand"];function r(e,t){var n="brand"===e?"brand":null==e?void 0:e.split("-")[0],r=e&&a.includes(e)?"dark":t;return{finalAppearance:r,style:e?{"--color-background":"brand"===n?"var(--accent-8)":"var(--".concat(e,")")}
1:void 0,colorName:n,hasBackground:!!r||!!e}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.