1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[190],{25137:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var i=l(37876),n=l(14232);function r(e){let{playerContainerId:t,currentItemTitle:l,isVideoType:r}=e,[a,d]=(0,n.useState)(!1),[o,s]=(0,n.useState)(!1),[c,u]=(0,n.useState)(20),m=(0,n.useRef)(null),p=(0,n.useRef)(null),v=(0,n.useRef)(null);if((0,n.useEffect)(()=>{let e=()=>{let e=document.getElementById(t);e&&u(Math.max(e.getBoundingClientRect().left,20))},l=()=>{let e=document.getElementById(t);if(!e)return;let l=e.getBoundingClientRect().bottom<0;!l||a||o?!l&&(a&&d(!1),o&&s(!1)):d(!0)};return e(),window.addEventListener("scroll",l),window.addEventListener("scroll",e),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",l),window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[t,a,o]),(0,n.useEffect)(()=>{if(!a||!r)return;let e=window.videojs;if(!(null==e?void 0:e.getPlayer))return;let l=document.getElementById(t);if(!l)return;let i=l.querySelector("video-js, .video-js");if(null==i?void 0:i.id){try{let t=e.getPlayer(i.id);if(!t)return;v.current=t;let n=t.currentTime(),r=t.paused(),a=t.muted(),d=p.current;d&&i.parentElement&&(l.style.minHeight="".concat(l.getBoundingClientRect().height,"px"),m.current=i.parentElement,d.appendChild(i.parentElement),t.currentTime(n),r||t.play().catch(()=>{}),t.muted(a))}catch(e){console.error("Error creating mini player:",e)}return()=>{let e=p.current;if(v.current&&e&&m.current){let l=e.querySelector("video-js, .video-js");if(null==l?void 0:l.parentElement){let e=document.getElementById(t);e&&(e.appendChild(l.parentElement),e.style.minHeight="",setTimeout(()=>{let t=e.querySelector(".ddx-tap-to-unmute");t&&"true"===t.dataset.muted&&(t.style.display="")},100))}}}}},[a,r,t]),!r)return null;let y=a&&!o,h=c-24;return(0,i.jsxs)("div",{style:{position:"fixed",bottom:"98px",...h>=200?{left:"12px",width:"".concat(h,"px"),maxWidth:"400px"}:{right:"12px",width:"280px"},backgroundColor:"#000",borderRadius:"8px",boxShadow:"0 8px 24px rgba(0,0,0,0.4)",zIndex:9999,overflow:"hidden",cursor:"pointer",transition:"transform 0.3s ease, opacity 0.3s ease",transform:y?"translateY(0)":"translateY(120%)",opacity:+!!y,pointerEvents:y?"auto":"none"},onClick:e=>{let l=e.target;if(l.closest(".video-js")||l.closest(".vjs-control-bar")||l.closest("button")||l.closest(".vjs-tech"))return;let i=document.getElementById(t);i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),s(!0))},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",backgroundColor:"rgba(0,0,0,0.9)",borderBottom:"1px solid rgba(255,255,255,0.1)"},children:[(0,i.jsx)("span",{style:{color:"#fff",fontSize:"13px",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,marginRight:"8px"},children:l}),(0,i.jsx)("button",{type:"button","aria-label":"Close mini player",onClick:e=>{if(e.stopPropagation(),s(!0),d(!1),v.current&&v.current.pause(),p.current&&m.current){let e=p.current.querySelector("video-js, .video-js");if(null==e?void 0:e.parentElement){let l=document.getElementById(t);l&&(l.appendChild(e.parentElement),l.style.minHeight="",setTimeout(()=>{let e=l.querySelector(".ddx-tap-to-unmute");e&&"true"===e.dataset.muted&&(e.style.display="")},100))}}},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px"},children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"white","aria-hidden":"true",children:(0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]}),(0,i.jsx)("div",{ref:p,onClick:e=>e.stopPropagation(),style:{width:"100%",aspectRatio:"16 / 9",backgroundColor:"#000",cursor:"default"}})]})}},30190:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>p});var i=l(37876),n=l(14232),r=l(89099),a=l(74455),d=l(43921),o=l(25137),s=l(87357),c=l.n(s),u=l(72224);let m=e=>{var t;let l=window.videojs;return(null==l?void 0:l.getPlayer)&&null!=(t=l.getPlayer("bc-playlist-video-".concat(e)))?t:null};function p(e){var t,l,s;let{playlist_data:p,containerId:v}=e,y=(0,r.useRouter)(),h=(null==p?void 0:p.items)||[],f=(null==p?void 0:p.post_type)==="videos",[g,_]=(0,n.use
1State)(0),[b,x]=(0,n.useState)({}),j=(0,n.useRef)(v||"embedded-playlist-".concat((null==p?void 0:p.term_id)||"default")).current,E=(0,n.useRef)(!0),w=(0,n.useRef)(!1),T=(0,n.useRef)(!0),I=h[0],C=(0,n.useRef)({videoId:(null==I||null==(t=I.player_details)?void 0:t.video_id)||"",accountId:(null==I||null==(l=I.player_details)?void 0:l.account_id)||"6415924869001",playerId:(null==I||null==(s=I.player_details)?void 0:s.player_id)||"WfUnbZq03"}),P=h[g];(0,n.useEffect)(()=>{if(!y.isReady||0===h.length||!E.current)return;let e=y.query.video,t=y.query.video_timestamp;if(e){let l=parseInt(e,10)-1;!isNaN(l)&&l>=0&&l<h.length&&(_(l),t&&(w.current=!0))}E.current=!1},[y.isReady,y.query.video,y.query.video_timestamp,h.length]),(0,n.useEffect)(()=>{if(0===h.length)return;let e=setTimeout(()=>{var e;let t=m(j);(null==t||null==(e=t.catalog)?void 0:e.getVideo)&&h.forEach((e,l)=>{var i;if(0===l||e.featured_image)return;let n=null==(i=e.player_details)?void 0:i.video_id;n&&t.catalog.getVideo(n,(e,t)=>{if(e)return;let l=(null==t?void 0:t.poster)||(null==t?void 0:t.thumbnail);l&&x(e=>({...e,[n]:l}))})})},2e3);return()=>clearTimeout(e)},[h,j]),(0,n.useEffect)(()=>{var e;if(0===g&&E.current||!(null==P||null==(e=P.player_details)?void 0:e.video_id))return;let t=setTimeout(()=>{var e,t;let l=m(j);if(!(null==l||null==(e=l.catalog)?void 0:e.getVideo))return;let i=null==P||null==(t=P.player_details)?void 0:t.video_id;i&&l.catalog.getVideo(i,(e,t)=>{if(e)return;let n=(null==t?void 0:t.poster)||(null==t?void 0:t.thumbnail);n&&x(e=>({...e,[i]:n})),T.current=l.muted(),l.catalog.load(t),l.muted(!0),w.current&&l.one("playing",function(){let e=parseInt(y.query.video_timestamp,10);!isNaN(e)&&e>0&&this.currentTime(e),w.current=!1}),l.one("playing",function(){this.muted(T.current)}),l.play().catch(()=>{})})},500);return()=>clearTimeout(t)},[g,P,j,y.query.video_timestamp]),(0,n.useEffect)(()=>{let e=null,t=null,l=setTimeout(()=>{let l=m(j);if(!l)return;let i=()=>{g<h.length-1&&_(e=>e+1)};l.on("ended",i),e=l,t=i},1e3);return()=>{if(clearTimeout(l),e&&t)try{e.off("ended",t)}catch(e){}}},[g,h.length,j]);let N=e=>{var t;let l=e.split(":").map(Number),i=3===l.length?3600*l[0]+60*l[1]+l[2]:60*l[0]+(l[1]||0),n=m(j);n&&(n.currentTime(i),n.play(),null==(t=document.getElementById(j))||t.scrollIntoView({behavior:"smooth",block:"start"}))};return h.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{playerContainerId:j,currentItemTitle:(null==P?void 0:P.title)||"",isVideoType:f}),(0,i.jsxs)("div",{style:{width:"100%"},children:[(null==P?void 0:P.title)&&(0,i.jsx)("h2",{className:c().videoTitle,children:(0,i.jsx)("span",{className:c().videoTitleText,children:P.title})}),C.current.videoId&&(0,i.jsx)(d.A,{videoId:C.current.videoId,accountId:C.current.accountId,playerId:C.current.playerId,autoplay:!1,muted:!0,containerId:j,noMargin:!1}),(0,i.jsxs)("div",{className:c().contentContainer,children:[h.length>1&&(0,i.jsxs)("div",{className:c().leftColumn,children:[(0,i.jsxs)("p",{className:c().playlistLabel,children:["Playlist (",h.length,")"]}),h.map((e,t)=>{let l=t===g,n=(e=>{var t;let l=null==(t=e.player_details)?void 0:t.video_id;return e.featured_image||(l?b[l]:void 0)||void 0})(e);return(0,i.jsxs)("div",{className:"".concat(c().playlistItem," ").concat(l?c().playlistItemActive:""),onClick:()=>{t!==g&&_(t)},children:[(0,i.jsxs)("div",{className:c().thumbnail,children:[n?(0,i.jsx)(a.pn,{src:n,alt:e.title,width:160,height:90,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover"}}):(0,i.jsx)("div",{style:{position:"absolute",inset:0,background:"#333"}}),l&&(0,i.jsx)("div",{className:c().playOverlay,children:"â¶"})]}),(0,i.jsxs)("div",{className:c().itemMeta,children:[(0,i.jsx)("p",{className:"".concat(c().itemTitle," ").concat(l?c().itemTitleActive:""),children:e.title}),l&&(0,i.jsx)("span",{className:c().nowPlaying,children:"Now playing"})]})]},e.id)})]}),(0,i.jsxs)("div",{className:c().rightColumn,children:[(null==P?void 0:P.short_description)&&(0,i.jsx)("p",{className:c().shortDescription,dangerouslySetInnerHTML:{__html:(0,u.cE)(P.short_description)}}),(null==P?void 0:P.table_of_contents)&&P.table_of_contents.length>0&&(0,i.jsxs)("div",{className:c().tocContainer,children:[(0,i.jsx)("p",{className:c().tocTitle,children:"Table of Contents"}),(0,i.jsx)("ul",{className:c().tocList,children:P.table_of_contents.map((e,t)=>(0,i.jsxs)("li",{children:[(0,i.jsxs)("button",{className:c().tocButton,onClick:()=>N(e.timestamp),children:[e.title,e.timestamp&&" (".concat(e.timestamp,")")]}),e.subsections&&e.subsections.length>0&&(0,i.jsx)("ul",{style:{paddingLeft:"14px",marginTop:"2px"},children:e.subsections.map((e,t)=>(0,i.jsx)("li",{children:(0,i.jsxs)("button",{className:c().tocButton,onClick:()=>N(e.timestamp),children:[e.title,e.timestamp&&" (".concat(e.timestamp,")")]})},t))})]},t))})]}),(null==P?void 0:P.content)&&(0,i.jsx)("div",{className:c().transcriptContent,dangerouslySetInnerHTML:{__html:(0,u.cE)(P.content)}})]})]})]})]}):null}},43921:(e,t,l)=>{"use strict";l.d(t,{A:()=>
1o});var i=l(37876),n=l(14232),r=l(45105),a=l.n(r);let d=new Set;function o(e){let{videoId:t,accountId:l,playerId:r="default",autoplay:o=!1,muted:s=!0,containerId:c="brightcove-playlist-main-player",noMargin:u=!1}=e,m="https://players.brightcove.net/".concat(l,"/").concat(r,"_default/index.min.js"),p="bc-playlist-".concat(m),v="undefined"!=typeof document&&!!document.querySelector('script[src="'.concat(m,'"]')),y=!d.has(p)&&!v;y&&d.add(p);let h="bc-playlist-video-".concat(c),f=(0,n.useRef)(!1),[g,_]=(0,n.useState)(s),b='<div class="brightcove-video-container">\n <video-js\n id="'.concat(h,'"\n data-account="').concat(l,'"\n data-player="').concat(r,'"\n data-embed="default"\n controls=""\n data-video-id="').concat(t,'"\n data-playlist-id=""\n data-application-id=""\n class="video-js vjs-fluid"\n ').concat(o?"autoplay":"","\n ").concat(s?"muted":"","\n ></video-js>\n</div>");return(0,n.useEffect)(()=>{if(f.current)return;let e=0,t=setInterval(()=>{e++;let l=window.videojs,i=window.bc;if(!l&&!i){e>=100&&clearInterval(t);return}let n=document.getElementById(c);if(!n){e>=100&&clearInterval(t);return}let r=n.querySelector("[data-account], video-js, .video-js"),a=null==r?void 0:r.getAttribute("id");if(!a){e>=100&&clearInterval(t);return}let d=null;if(l&&"function"==typeof l.getPlayer&&(d=l.getPlayer(a)),!d&&i&&"function"==typeof i)try{d=i(a)}catch(e){}if(!d){e>=100&&clearInterval(t);return}if(clearInterval(t),f.current)return;f.current=!0;let u=null==r?void 0:r.querySelector("video");u&&(u.setAttribute("playsinline",""),u.setAttribute("webkit-playsinline",""));let m=()=>{let e=d.textTracks();for(let t=0;t<e.length;t++)if("captions"===e[t].kind||"subtitles"===e[t].kind){e[t].mode="showing";break}};d.ready(function(){o&&(this.muted(s),this.play().catch(()=>{})),this.readyState()>=1?m():this.one("loadedmetadata",m);let e=null,t=()=>{e&&clearTimeout(e),e=setTimeout(m,500)};this.textTracks().addEventListener("addtrack",t),this.remoteTextTracks().addEventListener("addtrack",t),this.on("volumechange",()=>{if(_(this.muted()),!this.muted()){let e=n.querySelector(".ddx-tap-to-unmute");e&&(e.style.display="none")}})})},100);return()=>clearInterval(t)},[c]),(0,i.jsxs)("div",{id:c,style:{position:"relative",marginBottom:u?"0":"20px",clear:"both"},children:[(0,i.jsx)("div",{className:"html-content",dangerouslySetInnerHTML:{__html:b}}),g&&(0,i.jsxs)("button",{type:"button",className:"ddx-tap-to-unmute","aria-label":"Tap to unmute","data-muted":"true",onClick:()=>{let e=window.videojs;if(!e)return;let t=document.getElementById(c);if(!t)return;let l=t.querySelector("video-js, .video-js");if(!(null==l?void 0:l.id))return;let i=e.getPlayer(l.id);i&&(i.muted(!1),i.play().catch(()=>{}),_(!1))},style:{position:"absolute",bottom:"48px",right:"8px",zIndex:10,display:"flex",alignItems:"center",gap:"6px",background:"rgba(0,0,0,0.7)",color:"#fff",border:"none",borderRadius:"4px",padding:"6px 10px",cursor:"pointer",fontSize:"13px"},children:[(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"white","aria-hidden":"true",children:(0,i.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"})}),"Tap to unmute"]}),y&&!v&&(0,i.jsx)(a(),{src:m,strategy:"afterInteractive",id:"bc-playlist-script-".concat(c)})]})}},87357:e=>{e.exports={videoTitle:"EmbeddedPlaylist_videoTitle__LXk6D",videoTitleText:"EmbeddedPlaylist_videoTitleText__KC_xs",shortDescription:"EmbeddedPlaylist_shortDescription__k59a2",transcriptContent:"EmbeddedPlaylist_transcriptContent__McbdY",playlistLabel:"EmbeddedPlaylist_playlistLabel__fSCoT",contentContainer:"EmbeddedPlaylist_contentContainer__OyT5b",leftColumn:"EmbeddedPlaylist_leftColumn___nz_B",rightColumn:"EmbeddedPlaylist_rightColumn__TqQnq",playlistItem:"EmbeddedPlaylist_playlistItem__vPEu1",playlistItemActive:"EmbeddedPlaylist_playlistItemActive__9mdNA",thumbnail:"EmbeddedPlaylist_thumbnail__LS0GO",playOverlay:"EmbeddedPlaylist_playOverlay__9Tx33",itemMeta:"EmbeddedPlaylist_itemMeta__wUbSd",itemTitle:"EmbeddedPlaylist_itemTitle__3L6eu",itemTitleActive:"EmbeddedPlaylist_itemTitleActive__sYbPd",nowPlaying:"EmbeddedPlaylist_nowPlaying__o2u9N",tocContainer:"EmbeddedPlaylist_tocContainer__0UXWY",tocTitle:"EmbeddedPlaylist_tocTitle__F8jnf",tocList:"EmbeddedPlaylist_tocList__azePx",tocButton:"EmbeddedPlaylist_tocButton__Hd2Ca",spinner:"EmbeddedPlaylist_spinner__GqMdF","emb-spin":"EmbeddedPlaylist_emb-spin__8rE08"}}}]);
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.