1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13761,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.s(["Rise",0,function({as:e="div",delay:s=0,className:n="",hero:i=!1,children:l}){let a=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=a.current;if(!e||e.classList.contains("riseHero"))return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void e.classList.add("in");let t=new IntersectionObserver(e=>{for(let r of e)r.isIntersecting&&(r.target.classList.add("in"),t.unobserve(r.target))},{threshold:.12});return t.observe(e),()=>t.disconnect()},[]);let c=s>0?` d${s}`:"";return(0,t.jsx)(e,{ref:a,className:`${i?"riseHero":"rise"}${c} ${n}`.trim(),children:l})}])},26091,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(45627),n=e.i(1113),i=e.i(91392);function l({size:e=20}){return(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 20 20","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5 3.5v13l11-6.5-11-6.5Z",fill:"#fff"})})}function a({size:e=20}){return(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 20 20","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5 3h3.6v14H5V3Zm6.4 0H15v14h-3.6V3Z",fill:"#fff"})})}function c({track:e}){let{current:r,playing:n,play:i,toggle:o}=(0,s.usePlayer)(),u=r?.slug===e.slug,h=u&&n;return(0,t.jsx)("button",{className:"playBtn","aria-label":h?`Pause ${e.title}`:`Play ${e.title}`,onClick:()=>u?o():i(e),children:h?(0,t.jsx)(a,{}):(0,t.jsx)(l,{})})}e.s(["BigPlayButton",0,c,"RowPlayButton",0,function({track:e}){let{current:r,playing:n,play:i,toggle:l}=(0,s.usePlayer)(),a=r?.slug===e.slug,c=a&&n;return(0,t.jsx)("button",{className:"pl","aria-label":c?`Pause ${e.title}`:`Play ${e.title}`,onClick:t=>{t.preventDefault(),t.stopPropagation(),a?l():i(e)},children:c?(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3 2h3v10H3V2Zm5 0h3v10H8V2Z"})}):(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3 1.8v10.4L12 7 3 1.8Z"})})})},"WaveformPlayer",0,function({track:e,accentColor:l="#16A89C",heightPx:a=44,barCount:o=52,hero:u=!1}){let{current:h,position:d,duration:f,seekTo:m,seekBy:p}=(0,s.usePlayer)(),x=(0,r.useSyncExternalStore)(e=>{let t=window.matchMedia("(max-width: 480px)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},()=>window.matchMedia("(max-width: 480px)").matches,()=>!1),g=h?.slug===e.slug,j=g&&f>0?f:e.durationSec,v=g&&j>0?d/j:0,w=x?Math.min(o,24):o;return(0,t.jsxs)("div",{className:"waveRow",children:[(0,t.jsx)(c,{track:e}),(0,t.jsx)(n.Waveform,{audioId:e.slug,progress:v,heightPx:a,barCount:w,accentColor:l,disabled:!g,onSeek:e=>{g&&m(e)},onSeekBy:e=>{g&&p(e)},ariaValueText:g?`${(0,i.formatDuration)(d)} of ${(0,i.formatDuration)(j)}`:(0,i.formatDuration)(j)||"Not playing",scale:u?"hero":"compact",glow:u,playhead:u}),(0,t.jsx)("span",{className:"waveTime",children:g&&d>0?(0,i.formatDuration)(d):(0,i.formatDuration)(j)})]})}])},18566,(e,t,r)=>{t.exports=e.r(76562)},72987,e=>{"use strict";var t=e.i(43476),r=e.i(22016),s=e.i(57688),n=e.i(26091),i=e.i(91392);e.s(["EpisodeRow",0,function({episode:e,detail:l}){return(0,t.jsxs)("div",{className:l?"epRow hasDetail":"epRow",children:[e.thumbnailUrl&&(0,t.jsx)(r.default,{href:`/episodes/${e.slug}`,prefetch:!1,className:"epThumb","aria-hidden":"true",tabIndex:-1,children:(0,t.jsx)(s.default,{src:e.thumbnailUrl,alt:"",width:112,height:112,sizes:"56px"})}),(0,t.jsx)(n.RowPlayButton,{track:{slug:e.slug,title:e.title,number:e.number,audioUrl:e.audioUrl,durationSec:e.durationSec,thumbnailUrl:e.thumbnailUrl}}),(0,t.jsx)("span",{className:"num",children:e.number??"·"}),(0,t.jsxs)("div",{className:"body",children:[(0,t.jsx)(r.default,{href:`/episodes/${e.slug}`,prefetch:!1,children:(0,t.jsx)("b",{children:e.title})}),(0,t.jsx)("span",{children:(0,i.formatDate)(e.publishedAt)}),l&&(0,t.jsx)("p",{className:"epDetail",children:l})]}),(0,t.jsx)("span",{className:"dur",children:(0,i.formatDuration)(e.durationSec)})]})}])},12326,e=>{"use strict";var t=e.i(43476);e.s(["SearchIcon",0,function({size:e=18,className:r}){return(0,t.jsxs)("svg",{className:r,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,t.jsx)("path",{d:"m20 20-3.8-3.8"})]})}])},74148,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(18566),n=e.i(22016),i=e.i(72987);let l={title:12,guest:9,notes:3,transcript:1},a=Object.keys(l),c=new Set(["a","an","and","the","of","to","in","on","for","is","it","with","my","your","i","you","what","how","do"]);function o(e){if("'"===e||"â"===e)return"";let t=e.normalize("NFKD").replace(/[Ì-ͯ]/g,"").toLowerCase();return/^[a-z0-9#]+$/.test(t)?t:" "}function u(e){return Array.from(e,o).join("").replace(/ +/g," ").trim()}function h(e){let t="",r=[],s=0;for(let n of e){for(let e of o(n))t+=e,r.push(s);s+=n.length}return{folded:t,map:r}}
1function d(e){let t=u(e.slice(0,120)).split(" ").filter(Boolean),r=t.filter(e=>!c.has(e));return[...new Set(r.length>0?r:t)].slice(0,12)}function f(e,t){let r=0,s=0,n=` ${t}`;for(;;){let t=e.indexOf(n,s);if(-1===t)return r;r++,s=t+n.length}}function m({text:e,terms:r}){return(0,t.jsx)(t.Fragment,{children:(function(e,t){let r=t.filter(e=>e&&"#"!==e);if(0===r.length||!e)return[{text:e,match:!1}];let{folded:s,map:n}=h(e),i=[],l=e=>void 0!==e&&" "!==e;for(let t=0;t<s.length;t++){if(t>0&&l(s[t-1])||!r.some(e=>s.startsWith(e,t)))continue;let a=t;for(;a<s.length&&l(s[a]);)a++;let c=n[t],o=a<n.length?n[a]:e.length;i.push([c,o]),t=a}if(0===i.length)return[{text:e,match:!1}];let a=[],c=0;for(let[t,r]of i){let s=e.slice(t,r).replace(/[\s.,;:!?)"â]+$/,"");t>c&&a.push({text:e.slice(c,t),match:!1}),a.push({text:s,match:!0}),c=t+s.length}return c<e.length&&a.push({text:e.slice(c),match:!1}),a})(e,r).map((e,r)=>e.match?(0,t.jsx)("mark",{children:e.text},r):(0,t.jsx)("span",{children:e.text},r))})}var p=e.i(58249),x=e.i(12326);function g(e){return e.episodes.map(([e,t,r,s,n,i,l,a,c,o,u])=>({slug:e,title:t,guest:r,number:s,notes:n,transcript:i,publishedAt:l,audioUrl:a,durationSec:c,thumbnailUrl:o||`/thumbs/${e}.webp`,kind:u??"full"}))}function j(e){return(0,t.jsx)(n.default,{...e,href:"/episodes",prefetch:!1})}let v={notes:"Show notes",transcript:"Transcript"},w=null;e.s(["SearchClient",0,function(){let e=(0,s.useRouter)(),c=(0,s.usePathname)(),o=((0,s.useSearchParams)().get("q")??"").slice(0,120),[b,$]=(0,r.useState)(o),[y,N]=(0,r.useState)(null),[S,k]=(0,r.useState)(!1),M=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=!0;return(w??=fetch("/search-index.json").then(e=>{if(!e.ok)throw Error(`search index ${e.status}`);return e.json()}).then(g).catch(e=>{throw w=null,e})).then(t=>e&&N(t)).catch(()=>e&&k(!0)),()=>{e=!1}},[]);let P=(0,r.useMemo)(()=>y?y.map(e=>({doc:e,fields:{title:` ${u(e.title)} ${null!=e.number?`${e.number} #${e.number}`:""} `,guest:` ${u(e.guest??"")} `,notes:` ${u(e.notes)} `,transcript:` ${u(e.transcript??"")} `}})):null,[y]),C=(0,r.useMemo)(()=>new Map((y??[]).map(e=>[e.slug,e])),[y]),R=b.trim(),T=(0,r.useMemo)(()=>d(R),[R]),{hits:B,total:D}=(0,r.useMemo)(()=>P&&R?function(e,t,r=40){let s=d(t);if(0===s.length)return{hits:[],total:0};let n=u(t.slice(0,120)),i=n.includes(" ")?` ${n}`:null,c=[];for(let t of e){let{fields:e}=t,r=0,n=!0;for(let t of s){let s=!1;for(let n of a){let i=f(e[n],t);0!==i&&(s=!0,r+=l[n]*(1+Math.log2(i)))}if(!s){n=!1;break}}if(n){if(i)for(let t of a)e[t].includes(i)&&(r+=2*l[t]);c.push({entry:t,score:r})}}return c.sort((e,t)=>t.score-e.score||(e.entry.doc.publishedAt<t.entry.doc.publishedAt?1:-1)),{hits:c.slice(0,r).map(({entry:e,score:t})=>{let r=function(e,t,r){if(r){let t=["notes","transcript"].find(t=>e.fields[t].includes(r));if(t)return t}let s=r=>t.filter(t=>f(e.fields[r],t)>0).length,n=s("notes"),i=s("transcript");return 0===n&&0===i?null:i>n?"transcript":"notes"}(e,s,i),n="notes"===r?e.doc.notes:"transcript"===r?e.doc.transcript:null;return{slug:e.doc.slug,score:t,snippet:n?function(e,t,r=null,s=110){let n=e.replace(/\s+/g," ").trim();if(!n)return null;let{folded:i,map:l}=h(n),a=function(e,t,r){let s=` ${e}`;if(r){let e=s.indexOf(r);if(-1!==e)return e}let n=-1;for(let e of t){let t=s.indexOf(` ${e}`);-1!==t&&(-1===n||t<n)&&(n=t)}return n}(i,t,r);if(-1===a)return n.length>2*s?`${n.slice(0,2*s).replace(/\s\S*$/,"")}â¦`:n;let c=l[Math.min(a,l.length-1)]??0,o=Math.max(0,c-s),u=Math.min(n.length,c+s);if(o>0){let e=n.indexOf(" ",o);o=-1!==e&&e<c?e+1:o}if(u<n.length){let e=n.lastIndexOf(" ",u);u=e>c?e:u}return`${o>0?"â¦":""}${n.slice(o,u).trim()}${u<n.length?"â¦":""}`}(n,s,i):null,snippetField:r}}),total:c.length}}(P,R):{hits:[],total:0},[P,R]),E=(0,r.useRef)([]);(0,r.useEffect)(()=>{if(R===o.trim())return;let t=setTimeout(()=>{E.current.push(R),e.replace(R?`${c}?q=${encodeURIComponent(R)}`:c,{scroll:!1})},250);return()=>clearTimeout(t)},[R,o,c,e]),(0,r.useEffect)(()=>{let e=o.trim(),t=E.current.indexOf(e);-1!==t?E.current.splice(0,t+1):(E.current=[],$(o))},[o]),(0,r.useEffect)(()=>{if(!P||R.length<2||M.current===R)return;let e=setTimeout(()=>
1{M.current=R,(0,p.track)("search",{search_term:R.slice(0,100),results:D})},1200);return()=>clearTimeout(e)},[P,R,D]);let I=(0,r.useMemo)(()=>(y??[]).filter(e=>e.transcript).length,[y]),O=(0,r.useMemo)(()=>(y??[]).filter(e=>"full"===e.kind).length,[y]);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("form",{action:"/search",method:"get",role:"search",className:"searchForm",onSubmit:e=>{e.preventDefault(),P&&R.length>=1&&M.current!==R&&(M.current=R,(0,p.track)("search",{search_term:R.slice(0,100),results:D}))},children:[(0,t.jsxs)("div",{className:"searchWrap",children:[(0,t.jsx)(x.SearchIcon,{className:"searchIcon"}),(0,t.jsx)("input",{type:"search",name:"q",value:b,onChange:e=>$(e.target.value.slice(0,120)),className:"searchInput","aria-label":"Search episodes","aria-controls":"search-results",placeholder:"Try forgiveness, parenting, or a guest's name",autoFocus:!o,enterKeyHint:"search"})]}),(0,t.jsx)("button",{type:"submit",className:"btn btnTeal searchSubmit",children:"Search"})]}),(0,t.jsxs)("div",{id:"search-results",children:[S&&(0,t.jsxs)("p",{className:"searchCount",children:["Search is unavailable right now. ",(0,t.jsx)(j,{children:"Browse every episode"})," instead."]}),!S&&!y&&R&&(0,t.jsx)("p",{className:"searchCount",children:"Searchingâ¦"}),y&&!R&&(0,t.jsxs)("p",{className:"searchCount","aria-live":"polite",children:[O," episodes: titles, guests, and show notes",I>0?`, plus the full transcript of ${I} of them.`:"."]}),y&&R&&(0,t.jsx)("p",{className:"searchCount","aria-live":"polite",children:0===D?`No episodes match â${R}â.`:D>40?`The 40 best of ${D} episodes that match â${R}â`:`${D} ${1===D?"episode matches":"episodes match"} â${R}â`}),B.length>0&&(0,t.jsx)("div",{className:"epRows",children:B.map(e=>{let r=C.get(e.slug);return r?(0,t.jsx)(i.EpisodeRow,{episode:r,detail:e.snippet&&e.snippetField?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"foundIn",children:v[e.snippetField]})," ",(0,t.jsx)(m,{text:e.snippet,terms:T})]}):void 0},e.slug):null})}),y&&R&&0===B.length&&(0,t.jsxs)("div",{className:"searchEmpty",children:[(0,t.jsx)("p",{children:"Try a single word, a guest's last name, or an episode number."}),(0,t.jsxs)("p",{children:["Or browse ",(0,t.jsx)(j,{children:"every episode by topic"}),", or start with"," ",(0,t.jsx)(n.default,{href:"/#start",children:"the episodes new listeners love"}),"."]})]})]})]})}],74148)}]);
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.