(()=>{vare={86954:e=>{functiont(e,t=100,r={}){if("function"!=typeofe)thrownewTypeError(`Expected the first parameter to be a function, got \`${typeofe}\`.`);if(t<0)thrownewRangeError("`wait` must not be negative.");const{immediate:s}="boolean"==typeofr?{immediate:r}:r;leta,o,n,i,c;functionl(){constt=a,r=o;returna=void0,o=void0,c=e.apply(t,r),c}functiond(){conste=Date.now()-i;e<t&&e>=0?n=setTimeout(d,t-e):(n=void0,s||(c=l()))}constu=function(...e){if(a&&this!==a&&Object.getPrototypeOf(this)===Object.getPrototypeOf(a))thrownewError("Debounced method called with different contexts of the same prototype.");a=this,o=e,i=Date.now();constr=s&&!n;returnn||(n=setTimeout(d,t)),r&&(c=l()),c};returnObject.defineProperty(u,"isPending",{get:()=>void0!==n}),u.clear=()=>{n&&(clearTimeout(n),n=void0)},u.flush=()=>{n&&u.trigger()},u.trigger=()=>{c=l(),u.clear()},u}e.exports.debounce=t,e.exports=t},44997:e=>{vart=1e3,r=60*t,s=60*r,a=24*s,o=7*a,n=365.25*a;functioni(e,t,r,s){vara=t>=1.5*r;returnMath.round(e/r)+" "+s+(a?"s":"")}e.exports=function(e,c){c=c||{};varl=typeofe;if("string"===l&&e.length>0)returnfunction(e){if((e=String(e)).length>100)return;vari=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!i)return;varc=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":returnc*n;case"weeks":case"week":case"w":returnc*o;case"days":case"day":case"d":returnc*a;case"hours":case"hour":case"hrs":case"hr":case"h":returnc*s;case"minutes":case"minute":case"mins":case"min":case"m":returnc*r;case"seconds":case"second":case"secs":case"sec":case"s":returnc*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":returnc;default:return}}(e);if("number"===l&&isFinite(e))returnc.long?function(e){varo=Math.abs(e);if(o>=a)returni(e,o,a,"day");if(o>=s)returni(e,o,s,"hour");if(o>=r)returni(e,o,r,"minute");if(o>=t)returni(e,o,t,"second");returne+" ms"}(e):function(e){varo=Math.abs(e);if(o>=a)returnMath.round(e/a)+"d";if(o>=s)returnMath.round(e/s)+"h";if(o>=r)returnMath.round(e/r)+"m";if(o>=t)returnMath.round(e/t)+"s";returne+"ms"}(e);thrownewError("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},82389:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});vars=r(86087),a=r(13022),o=r(79094),n=r(10790);consti=(0,s.memo)((({playerId:e,title:t,cover:r,link:s,track:a,children:o,showEpisodeTitle:i,showCoverArt:l,showEpisodeDescription:d,colors:u})=>l||i||d?(0,n.jsxs)("div",{className:"jetpack-podcast-player__header",children:[(0,n.jsxs)("div",{className:"jetpack-podcast-player__current-track-info",children:[l&&r&&(0,n.jsx)("div",{className:"jetpack-podcast-player__cover",children:(0,n.jsx)("img",{className:"jetpack-podcast-player__cover-image",src:r,alt:""})}),i&&!!(t||a&&a.title)&&(0,n.jsx)(c,{playerId:e,title:t,link:s,track:a,colors:u})]}),!!(d&&a&&a.description)&&(0,n.jsx)("p",{id:`${e}__track-description`,className:"jetpack-podcast-player__track-description",children:a.description}),o]}):o)),c=(0,s.memo)((({playerId:e,title:t,link:r,track:s,colors:i={primary:{name:null,custom:null,classes:""}}})=>(0,n.jsxs)("h2",{id:`${e}__title`,className:"jetpack-podcast-player__title",children:[!(!s||!s.title)&&(0,n.jsxs)("span",{className:(0,a.A)("jetpack-podcast-player__current-track-title",i.primary.classes),style:{color:i.primary.custom},children:[s.title,(0,n.jsx)("a",{className:"jetpack-podcast-player__track-title-link",href:s.link||s.src,target:"_blank",rel:"noopener noreferrer nofollow",children:o.A})]}),!!(s&&s.title&&t)&&(0,n.jsx)("span",{className:"jetpack-podcast-player--visually-hidden",children:" - "}),!!t&&(0,n.jsx)(l,{title:t,link:r,colors:i})]}))),l=(0,s.memo)((({title:e,link:t})=>(0,n.jsx)("span",{className:"jetpack-podcast-player__podcast-title",children:t?(0,n.jsx)("a",{className:"jetpack-podcast-player__link",href:t,target:"_blank",rel:"noopener noreferrer nofollow",children:e}):{title:e}}))),d=i},3750:(e,t,r)=>{"use strict";r.d(t
`${(0,i.sprintf)(__("Loading: %s","jetpack"),r)}${o}`,"assertive"),!0};loadAndPlay=e=>{this.recordUserInteraction(),this.loadTrack(e)&&this.props.playMediaSource(this.props.playerId)};getTrack=e=>this.props.tracks[e];handleError=e=>{if(!this.state.hasUserInteraction){constt=window.navigator.userAgent.match(/Trident\/7\./)?"IE11: Playing sounds in webpages setting is not checked":e;this.setState((()=>{thrownewError(t)}))}this.props.errorMediaSource(this.props.playerId),(0,s.speak)(`${__("Error: Episode unavailable - Open in a new tab","jetpack")}`,"assertive")};handlePlay=()=>{this.props.playMediaSource(this.props.playerId),this.setState({hasUserInteraction:!0})};handlePause=()=>{this.props.pauseMediaSource(this.props.playerId),this.props.playerState!==d.pF&&this.props.pauseMediaSource(this.props.playerId)};handleTimeChange=e=>{this.props.setMediaSourceCurrentTime(this.props.playerId,e)};handleJump=()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime-5)};handleSkip=()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime+30)};updateMediaData=e=>{this.props.updateMediaSourceData(this.props.playerId,{duration:e.target?.duration,domId:e.target?.id})};registerPlayer(){conste=this.getTrack(this.state.currentTrack)||{},{playerId:t}=this.props;this.props.registerMediaSource(t,{title:e.title,link:e.link,state:d.vh}),this.props.setDefaultMediaSource(t)}componentDidMount(){this.props.playerId&&this.registerPlayer()}componentWillUnmount(){this.props.playerId&&this.props.unregisterMediaSource(this.props.playerId)}componentDidUpdate(e){constt=e=>e?.length?e.map((e=>e.guid)):[],r=t(this.props.tracks),s=newSet(t(e.tracks));r.length===s.size&&r.every((e=>s.has(e)))||this.loadTrack(0)}staticgetDerivedStateFromProps(e,t){returne.tracks.length<=t.currentTrack?{...t,currentTrack:0}:null}render(){const{playerId:e,title:t,link:r,cover:s,tracks:a,attributes:o,currentTime:n,playerState:d}=this.props,{itemsToShow:m,primaryColor:f,customPrimaryColor:g,hexPrimaryColor:k,secondaryColor:C,customSecondaryColor:v,hexSecondaryColor:E,backgroundColor:w,customBackgroundColor:S,hexBackgroundColor:j,showCoverArt:_,showEpisodeTitle:b,showEpisodeDescription:M}=o,{currentTrack:T}=this.state,A=a.slice(0,m),x=this.getTrack(T),F=(0,u.GU)({primaryColor:f,customPrimaryColor:g,secondaryColor:C,customSecondaryColor:v,backgroundColor:w,customBackgroundColor:S}),I={color:v,backgroundColor:S,"--jetpack-podcast-player-primary":k,"--jetpack-podcast-player-secondary":E,"--jetpack-podcast-player-background":j},P=(0,c.A)("jetpack-podcast-player",d,F.secondary.classes,F.background.classes);return(0,y.jsxs)("section",{className:P,style:I,"aria-labelledby":t||x&&x.title?`${e}__title`:void0,"aria-describedby":x&&x.description?`${e}__track-description`:void0,"data-jetpack-iframe-ignore":!0,children:[(0,y.jsx)(p.A,{playerId:e,title:t,link:r,cover:s,track:this.getTrack(T),showCoverArt:_,showEpisodeTitle:b,showEpisodeDescription:M,colors:F,children:(0,y.jsx)(l.A,{onJumpBack:this.handleJump,onSkipForward:this.handleSkip,trackSource:this.getTrack(T).src,onPlay:this.handlePlay,onPause:this.handlePause,onError:this.handleError,playStatus:d,currentTime:n,onTimeChange:this.handleTimeChange,onMetadataLoaded:this.updateMediaData})}),A.length>1&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h4",{id:`jetpack-podcast-player__tracklist-title--${e}`,className:"jetpack-podcast-player--visually-hidden",children:(0,i.sprintf)(
__("Playlist: %s","jetpack"),t)}),(0,y.jsx)("p",{id:`jetpack-podcast-player__tracklist-description--${e}`,className:"jetpack-podcast-player--visually-hidden",children:__("Select an episode to play it in the audio player.","jetpack")}),(0,y.jsx)(h.A,{playerId:e,playerState:d,currentTrack:T,tracks:A,selectTrack:this.selectTrack,colors:F})]})]})}}f.defaultProps={title:"",cover:"",link:"",attributes:{url:null,itemsToShow:5,showCoverArt:!0,showEpisodeTitle:!0,showEpisodeDescription:!0},tracks:[]};constg=(0,a.compose)([m.A,(0,o.withSelect)(((e,t)=>{const{playerId:r}=t,{getMediaSourceCurrentTime:s,getMediaPlayerState:a}=e(d.ax);return{currentTime:s(r),playerState:a(r)}})),(0,o.withDispatch)((e=>{const{registerMediaSource:t,updateMediaSourceData:r,unregisterMediaSource:s,setDefaultMediaSource:a,playMediaSource:o,pauseMediaSource:n,toggleMediaSource:i,errorMediaSource:c,setMediaSourceCurrentTime:l}=e(d.ax);return{registerMediaSource:t,updateMediaSourceData:r,unregisterMediaSource:s,setDefaultMediaSource:a,playMediaSource:o,pauseMediaSource:n,toggleMediaSource:i,errorMediaSource:c,setMediaSourceCurrentTime:l}}))])(f)},74050:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});vars=r(86087),a=r(27723),o=r(10790);const__=a.__,n=(0,s.memo)((({link:e,title:t,colors:r})=>(0,o.jsxs)("div",{className:"jetpack-podcast-player__track-error",children:[__("Episode unavailable.","jetpack")," ",e&&(0,o.jsx)("span",{className:r.secondary.classes,style:{color:r.secondary.custom},children:(0,o.jsxs)("a",{className:"jetpack-podcast-player__link",href:e,rel:"noopener noreferrer nofollow",target:"_blank",children:[(0,o.jsx)("span",{className:"jetpack-podcast-player--visually-hidden",children:`${(0,a.sprintf)(/* translators: %s is the title of the track. This text is visually hidden from the screen, but available to screen readers. */
__("%s:","jetpack"),t)}`}),__("Open in a new tab","jetpack")]})})]})))},35311:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(86087),a=r(27723),o=r(62796),n=r(10790);const __=a.__,i=(0,s.memo)((({isPlaying:e,isError:t,className:r})=>{let s,a;t?(a="error",
f=t?__("track","jetpack"):void0;return(0,l.jsxs)("li",{className:m,style:Object.keys(y).length?y:null,children:[(0,l.jsxs)("a",{className:"jetpack-podcast-player__link jetpack-podcast-player__track-link",href:e.link||e.src,role:"button","aria-current":f,onClick:e=>{e.shiftKey||e.metaKey||e.altKey||(e.preventDefault(),a(d))},onKeyDown:e=>{" "===event.key&&(e.preventDefault(),a(d))},children:[(0,l.jsx)(c.A,{className:"jetpack-podcast-player__track-status-icon",isPlaying:r,isError:s}),(0,l.jsx)("span",{className:"jetpack-podcast-player__track-title",children:e.title}),e.duration&&(0,l.jsx)("time",{className:"jetpack-podcast-player__track-duration",dateTime:e.duration,children:e.duration})]}),t&&s&&(0,l.jsx)(i.A,{link:e.link,title:e.title,colors:u})]})}))},81166:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});vars=r(86087),a=r(27723),o=r(10790);const__=a.__;functionn(e){classtextendss.Component{state={didError:!1,isIE11AudioIssue:!1};componentDidCatch=(e,t)=>{this.props.onError(e,t)};staticgetDerivedStateFromError=e=>({didError:!0,isIE11AudioIssue:!!e.message.match(/IE11/)});render(){const{didError:t,isIE11AudioIssue:r}=this.state;returnt?(0,o.jsx)("section",{className:"jetpack-podcast-player",children:(0,o.jsx)("p",{className:"jetpack-podcast-player__error",children:r?__('The podcast player cannot be displayed as your browser settings do not allow for sounds to be played in webpages. This can be changed in your browser’s "Internet options" settings. In the "Advanced" tab you will have to check the box next to "Play sounds in webpages" in the "Multimedia" section. Once you have confirmed that the box is checked, please press "Apply" and then reload this page.',"jetpack"):__("An unexpected error occured within the Podcast Player. Reloading this page might fix the problem.","jetpack",0)})}):(0,o.jsx)(e,{...this.props})}}returnt.defaultProps={onError:()=>{}},t}},79094:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});vars=r(5573),a=r(10790);consto=(0,a.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(s.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})})},62796:(e,t,r)=>{"use strict";r.r(t),r.d(t,{error:()=>i,playing:()=>n});vars=r(5573),a=r(10790);consto={height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n=(0,a.jsxs)(s.SVG,{...o,children:[(0,a.jsx)(s.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,a.jsx)(s.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"})]}),i=(0,a.jsxs)(s.SVG,{...o,children:[(0,a.jsx)(s.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,a.jsx)(s.Path,{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})]})},19812:(e,t,r)=>{"use strict";r.d(t,{GU:()=>n,tQ:()=>a});vars=r(13022);functiona(e,t){if(e&&t)return`has-${t}-${e}`}consto={},n=e=>{constt=Object.values(e).join();returno[t]??=(({primaryColor:e,customPrimaryColor:t,secondaryColor:r,customSecondaryColor:o,backgroundColor:n,customBackgroundColor:i})=>{constc=a("color",e),l=a("color",r),d=a("background-color",n);return{primary:{name:e,custom:t,classes:(0,s.A)({"has-primary":c||t,[c]:c})},secondary:{name:r,custom:o,classes:(0,s.A)({"has-secondary":l||o,[l]:l})},background:{name:n,custom:i,classes:(0,s.A)({"has-background":d||i,[d]:d})}}})(e)}},72445:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});vars=r(20195),a=r(86087),o=r(27723),n=r(86954),i=r.n(n),c=r(23117),l=r(10790);const__=o.__,d="undefined"!=typeof_wpmejsSettings?_wpmejsSettings:{};functionu(e,t,r){consts=document.createElement("div");s.className=e;consta=document.createElement("button");returna.innerText=t,a.addEventListe