1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4114],{34114:function(e,l,t){"use strict";t.d(l,{Z:function(){return i}});var r=t(57437),n=t(2265),a=t(56878),u=t(5620),o=t.n(u);function i(e){let{videoId:l,title:t,autoPlay:u=!0,startMuted:i=!1,chrome:p="full",endBehavior:h="endcard",handleRef:f,onReady:m,onEnded:b,onBlocked:y,onStateChange:_,className:x}=e,g=(0,n.useRef)(null),k=(0,n.useRef)(null),j=(0,n.useRef)(null),[w,C]=(0,n.useState)(!1),[N,M]=(0,n.useState)(!1),[D,S]=(0,n.useState)(!1),[T,E]=(0,n.useState)(i),[P,B]=(0,n.useState)(0),[V,R]=(0,n.useState)(0),[L,A]=(0,n.useState)(!0),[I,F]=(0,n.useState)(!1),U=(0,n.useRef)({onReady:m,onEnded:b,onBlocked:y,onStateChange:_});U.current={onReady:m,onEnded:b,onBlocked:y,onStateChange:_};let Y=(0,n.useRef)(0),z=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!l)return;let e=!1;return C(!1),S(!1),B(0),R(0),(0,a.ZV)().then(t=>{!e&&k.current&&(j.current=new t.Player(k.current,{videoId:l,playerVars:{controls:0,playsinline:1,autoplay:u?1:0,mute:i?1:0,rel:0,iv_load_policy:3,disablekb:1,fs:0,enablejsapi:1,origin:window.location.origin},events:{onReady:l=>{var t,r,n,a,o,c,s,d,v,p,h;e||(j.current=l.target,C(!0),R(null!==(h=null===(t=(r=l.target).getDuration)||void 0===t?void 0:t.call(r))&&void 0!==h?h:0),i&&(null===(n=(a=l.target).mute)||void 0===n||n.call(a)),u&&(null===(o=(c=l.target).playVideo)||void 0===o||o.call(c)),E(!!(null===(s=(d=l.target).isMuted)||void 0===s?void 0:s.call(d))),null===(v=(p=U.current).onReady)||void 0===v||v.call(p))},onStateChange:l=>{var t,r,n,u,o,i,c;e||(null===(t=(r=U.current).onStateChange)||void 0===t||t.call(r,l.data),l.data===a.ZH.PLAYING?(M(!0),S(!1),R(null!==(o=null===(u=j.current)||void 0===u?void 0:null===(n=u.getDuration)||void 0===n?void 0:n.call(u))&&void 0!==o?o:0)):l.data===a.ZH.PAUSED?M(!1):l.data===a.ZH.ENDED&&(M(!1),S(!0),null===(i=(c=U.current).onEnded)||void 0===i||i.call(c)))},onError:l=>{var t,r;!e&&a.i$.has(l.data)&&(null===(t=(r=U.current).onBlocked)||void 0===t||t.call(r))}}}))}).catch(()=>{var l,t;e||null===(l=(t=U.current).onBlocked)||void 0===l||l.call(t)}),()=>{var l,t;e=!0,null===(t=j.current)||void 0===t||null===(l=t.destroy)||void 0===l||l.call(t),j.current=null}},[l]),(0,n.useEffect)(()=>f?(f.current={play:()=>{var e,l;return null===(l=j.current)||void 0===l?void 0:null===(e=l.playVideo)||void 0===e?void 0:e.call(l)},pause:()=>{var e,l;return null===(l=j.current)||void 0===l?void 0:null===(e=l.pauseVideo)||void 0===e?void 0:e.call(l)},mute:()=>{var e,l;null===(l=j.current)||void 0===l||null===(e=l.mute)||void 0===e||e.call(l),E(!0)},unMute:()=>{var e,l;null===(l=j.current)||void 0===l||null===(e=l.unMute)||void 0===e||e.call(l),E(!1)},seekTo:e=>{var l,t;Y.current=Date.now()+600,B(e),null===(t=j.current)||void 0===t||null===(l=t.seekTo)||void 0===l||l.call(t,e,!0)},getCurrentTime:()=>{var e,l,t;return null!==(t=null===(l=j.current)||void 0===l?void 0:null===(e=l.getCurrentTime)||void 0===e?void 0:e.call(l))&&void 0!==t?t:0},getDuration:()=>{var e,l,t;return null!==(t=null===(l=j.current)||void 0===l?void 0:null===(e=l.getDuration)||void 0===e?void 0:e.call(l))&&void 0!==t?t:0}},()=>{f.current=null}):void 0,[f,w]),(0,n.useEffect)(()=>{if(!w||!N)return;let e=setInterval(()=>{var e,l,t,r;let n=j.current;if(!n||Date.now()<Y.current)return;B(null!==(t=null===(e=n.getCurrentTime)||void 0===e?void 0:e.call(n))&&void 0!==t?t:0);let a=null!==(r=null===(l=n.getDuration)||void 0===l?void 0:l.call(n))&&void 0!==r?r:0;a>0&&R(a)},250);return()=>clearInterval(e)},[w,N]);let H=(0,n.useCallback)(()=>{A(!0),z.current&&clearTimeout(z.current),z.current=setTimeout(()=>A(!1),2600)},[]);(0,n.useEffect)(()=>{if(!N||D){z.current&&clearTimeout(z.current),A(!0);return}return H(),()=>{z.current&&clearTimeout(z.current)}},[N,D,H]),(0,n.useEffect)(()=>{F("undefined"!=typeof document&&!!document.fullscreenEnabled)},[]);let Z=(0,n.useCallback)(()=>{var e,l,t,r;let n=j.current;if(n){if(D){Y.current=Date.now()+600,B(0),S(!1),null===(t=n.seekTo)||void 0===t||t.call(n,0,!0),null===(r=n.playVideo)||void 0===r||r.call(n);return}N?null===(e=n.pauseVideo)||void 0===e||e.call(n):null===(l=n.playVideo)||void 0===l||l.call(n)}},[N,D]),W=(0,n.useCallback)(()=>{var e,l;let t=j.current;t&&(T?(null===(e=t.unMute)||void 0===e||e.call(t),E(!1)):(null===(l=t.mute)||void 0===l||l.call(t),E(!0)))},[T]),G=(0,n.useCallback)(e=>{var l,t,r,n,a;let u=j.current;if(!u)return;let o=Math.max(0,Math.min((null!==(n=null===(l=u.getDuration)||void 0===l?void 0:l.call(u))&&void 0!==n?n:0)||1/0,(null!==(a=null===(t=u.getCurrentTime)||void 0===t?void 0:t.call(u))&&void 0!==a?a:0)+e));Y.current=Date.now()+600,B(o),null===(r=u.seekTo)||void 0===r||r.call(u,o,!0)},[]),Q=(0,n.useCallback)(()=>{var e;let l=g.current;l&&(document.fullscreenElement?document.exitFullscreen():null===(e=l.requestFullscreen)||void 0===e||e.call(l))},[]),$=(0,n.useCallback)(e=>{var l,t;if((null===(t=e.target)||void 0===t?void 0:null===(l=t.dataset)||void 0===l?void 0:l.gocScrub)!=="1"){switch(e.key){case"k":e.preventDefault(),Z();break;case"ArrowRight":e.preventDefault(),G(5);break;case"ArrowLeft":e.preventDefault(),G(-5);break;case"m":e.preventDefault(),W();break;case"f":I&&(e.preventDefault(),Q());break;default:return}H()}},[Z,G,W,Q,I,H]),q=V>0?Math.min(100,P/V*100):0,K="none"!==p,J=L?o().chromeVisible:o().chromeHidden;
1return(0,r.jsxs)("div",{ref:g,className:[o().root,x].filter(Boolean).join(" "),role:"region","aria-label":t?"".concat(t," â video player"):"Video player",onPointerMove:K?H:void 0,onKeyDown:K?$:void 0,children:[(0,r.jsx)("div",{className:o().stage,children:(0,r.jsx)("div",{ref:k})}),!w&&(0,r.jsx)("div",{className:o().spinner,"aria-hidden":"true"}),w&&!N&&!D&&(0,r.jsx)("div",{className:o().pausedCover,"aria-hidden":"true"}),K&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:o().tapShield,onClick:()=>{if(!L&&N){H();return}Z(),H()},"aria-label":N?"Pause":"Play"}),(0,r.jsxs)("div",{className:"".concat(o().overlay," ").concat(J),children:[!N&&!D&&w&&(0,r.jsx)("button",{type:"button",className:"".concat(o().centerButton," ").concat("minimal"===p?o()["centerButton--sm"]:""),onClick:Z,"aria-label":N?"Pause":"Play",children:(0,r.jsx)(c,{playing:N})}),"full"===p&&w&&(0,r.jsxs)("div",{className:o().bar,children:[(0,r.jsx)("button",{type:"button",className:o().barButton,onClick:Z,"aria-label":N?"Pause":"Play",children:(0,r.jsx)(c,{playing:N,size:14})}),(0,r.jsx)("span",{className:o().time,children:(0,a.sb)(P)}),(0,r.jsx)("input",{type:"range",className:o().scrub,"data-goc-scrub":"1",min:0,max:Math.max(V,1),step:1,value:Math.min(P,Math.max(V,1)),onChange:e=>{var l,t;let r=Number(e.target.value);Y.current=Date.now()+600,B(r),null===(t=j.current)||void 0===t||null===(l=t.seekTo)||void 0===l||l.call(t,r,!0),H()},style:{"--progress":"".concat(q,"%")},"aria-label":"Seek","aria-valuetext":"".concat((0,a.sb)(P)," of ").concat((0,a.sb)(V))}),(0,r.jsx)("span",{className:o().time,children:(0,a.sb)(V)}),(0,r.jsx)("button",{type:"button",className:o().barButton,onClick:W,"aria-label":T?"Unmute":"Mute",children:(0,r.jsx)(s,{muted:T})}),I&&(0,r.jsx)("button",{type:"button",className:o().barButton,onClick:Q,"aria-label":"Fullscreen",children:(0,r.jsx)(d,{})})]})]})]}),D&&"endcard"===h&&(0,r.jsxs)("div",{className:o().endCard,children:[t&&(0,r.jsx)("p",{className:o().endTitle,children:t}),(0,r.jsxs)("button",{type:"button",className:o().replay,onClick:Z,children:[(0,r.jsx)(v,{}),"Replay"]})]}),D&&"cover"===h&&(0,r.jsx)("div",{className:o().endCard,"aria-hidden":"true"})]})}function c(e){let{playing:l,size:t=30}=e;return(0,r.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:t,focusable:"false","aria-hidden":"true",children:l?(0,r.jsx)("path",{d:"M7 5h3.5v14H7zM13.5 5H17v14h-3.5z",fill:"currentColor"}):(0,r.jsx)("path",{d:"M8 5.5v13l11-6.5z",fill:"currentColor"})})}function s(e){let{muted:l}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",width:15,height:15,focusable:"false","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M4 9v6h3.5L12 19V5L7.5 9z",fill:"currentColor"}),l?(0,r.jsx)("path",{d:"M15.5 9.5l4 4m0-4l-4 4",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",fill:"none"}):(0,r.jsx)("path",{d:"M15.5 9a4 4 0 010 6M18 7a7 7 0 010 10",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",fill:"none"})]})}function d(){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",width:14,height:14,focusable:"false","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}function v(){return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",width:14,height:14,focusable:"false","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M12 5a7 7 0 107 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"}),(0,r.jsx)("path",{d:"M12 1.5v7l4-3.5z",fill:"currentColor"})]})}},56878:function(e,l,t){"use strict";t.d(l,{ZH:function(){return r},ZV:function(){return u},i$:function(){return n},jx:function(){return o},sb:function(){return i}});let r={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},n=new Set([2,5,100,101,150]),a=null;function u(){var e;return(null===(e=window.YT)||void 0===e?void 0:e.Player)?Promise.resolve(window.YT):a||(a=new Promise((e,l)=>{let t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{null==t||t(),e(window.YT)};let r=document.createElement("script");r.src="https://www.youtube.com/iframe_api",r.async=!0,r.onerror=()=>{a=null,l(Error("YouTube IFrame API failed to load"))},document.head.appendChild(r)}))}function o(e){if(!e)return null;if(/^[a-zA-Z0-9_-]{11}$/.test(e))return e;try{let l=new URL(e,"https://www.youtube.com"),t=l.searchParams.get("v");if(t&&11===t.length)return t;
1let r=l.pathname.split("/").filter(Boolean).pop();if(r&&11===r.length)return r}catch(e){}return null}function i(e){if(!Number.isFinite(e)||e<0)return"0:00";let l=Math.floor(e),t=Math.floor(l/3600),r=Math.floor(l%3600/60),n=l%60,a=e=>String(e).padStart(2,"0");return t>0?"".concat(t,":").concat(a(r),":").concat(a(n)):"".concat(r,":").concat(a(n))}},5620:function(e){e.exports={root:"player_root__VRn9v",stage:"player_stage__b5484",tapShield:"player_tapShield__lZiSi",overlay:"player_overlay__xUctx",chromeHidden:"player_chromeHidden__WNc3N",chromeVisible:"player_chromeVisible__gQNQb",centerButton:"player_centerButton__GxIBs","centerButton--sm":"player_centerButton--sm__jUXb_",bar:"player_bar__2ybmP",barButton:"player_barButton__Kh9qV",time:"player_time__Mj0t6",scrub:"player_scrub__QUxFT",pausedCover:"player_pausedCover__W2Yn_",endCard:"player_endCard__L7F_A",endTitle:"player_endTitle__OEozD",replay:"player_replay__o0JxM",spinner:"player_spinner__NzYtL",gocPlayerSpin:"player_gocPlayerSpin__GvwSx"}}}]);
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.